Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail gracefully if settings can't be persisted #408

Open
fhunleth opened this issue Jun 19, 2022 · 0 comments
Open

Fail gracefully if settings can't be persisted #408

fhunleth opened this issue Jun 19, 2022 · 0 comments

Comments

@fhunleth
Copy link
Member

When trying to configure networking and the data partition isn't working, the following exception is raised:

** (File.Error) could not make directory (with -p) "/root/vintage_net": read-only file system
    (elixir 1.13.4) lib/file.ex:316: File.mkdir_p!/1
    (vintage_net 0.12.1) lib/vintage_net/persistence/flat_file.ex:24: VintageNet.Persistence.FlatFile.save/2
    (vintage_net 0.12.1) lib/vintage_net/interface.ex:112: VintageNet.Interface.configure/3

This is a really bad error, but it seems harsh to not let the network be configured since that might be the way to get a firmware update to fix the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant