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

All settings are lost after forced shutdown #2499

Closed
2 tasks done
tobiaskarch opened this issue Oct 24, 2022 · 4 comments
Closed
2 tasks done

All settings are lost after forced shutdown #2499

tobiaskarch opened this issue Oct 24, 2022 · 4 comments
Labels
type:bug Something isn't working

Comments

@tobiaskarch
Copy link

tobiaskarch commented Oct 24, 2022

Please agree to the following

Summary

Cryptomator was reset to default settings after I started my computer

What software is involved?

  • Operating System: Windows 10
  • Cryptomator: 1.6.15

Volume Type

No response

Steps to Reproduce

  1. Add Cryptomator to autostart
  2. Maintain some settings
  3. Restart computer
  4. Turn off the computer by pressing and holding the power button
  5. Start computer

Expected Behavior

All settings are still there after the computer was started in step 5

Actual Behavior

Cryptomator has lost all settings and the log says "Invalid json file settings.json"

Reproducibility

Only once

Relevant Log Output

--- cryptomator1.log (cryptomator0.log below)

08:45:52.128 [main] INFO  o.c.common.settings.SettingsProvider - Settings loaded from C:\Users\tobias\AppData\Roaming\Cryptomator\settings.json
08:45:52.143 [main] INFO  org.cryptomator.common.Environment - user.home: C:\Users\tobias
08:45:52.143 [main] INFO  org.cryptomator.common.Environment - java.library.path: C:\Program Files\Cryptomator;<redacted...>;C:\Program Files\Cryptomator\app;.
08:45:52.144 [main] INFO  org.cryptomator.common.Environment - user.language: de
08:45:52.144 [main] INFO  org.cryptomator.common.Environment - user.region: null
08:45:52.144 [main] INFO  org.cryptomator.common.Environment - logback.configurationFile: null
08:45:52.144 [main] INFO  org.cryptomator.common.Environment - cryptomator.settingsPath: ~/AppData/Roaming/Cryptomator/settings.json
08:45:52.144 [main] INFO  org.cryptomator.common.Environment - cryptomator.ipcSocketPath: ~/AppData/Roaming/Cryptomator/ipc.socket
08:45:52.144 [main] INFO  org.cryptomator.common.Environment - cryptomator.integrationsWin.keychainPaths: ~/AppData/Roaming/Cryptomator/keychain.json
08:45:52.144 [main] INFO  org.cryptomator.common.Environment - cryptomator.logDir: ~/AppData/Roaming/Cryptomator
08:45:52.144 [main] INFO  org.cryptomator.common.Environment - cryptomator.pluginDir: ~/AppData/Roaming/Cryptomator/Plugins
08:45:52.144 [main] INFO  org.cryptomator.common.Environment - cryptomator.mountPointsDir: ~/Cryptomator
08:45:52.144 [main] INFO  org.cryptomator.common.Environment - cryptomator.minPwLength: null
08:45:52.145 [main] INFO  org.cryptomator.common.Environment - cryptomator.appVersion: 1.6.15
08:45:52.145 [main] INFO  org.cryptomator.common.Environment - cryptomator.buildNumber: msi-3983
08:45:52.145 [main] INFO  org.cryptomator.common.Environment - cryptomator.showTrayIcon: true
08:45:52.145 [main] INFO  org.cryptomator.common.Environment - cryptomator.p12Path: ~/AppData/Roaming/Cryptomator/key.p12
08:45:52.145 [main] INFO  o.cryptomator.launcher.Cryptomator - Starting Cryptomator 1.6.15 on Windows 10 10.0 (amd64)
08:45:52.202 [main] INFO  org.cryptomator.ipc.Server - Spawning IPC server listening on socket C:\Users\tobias\AppData\Roaming\Cryptomator\ipc.socket
08:45:52.716 [JavaFX Application Thread] INFO  o.cryptomator.launcher.Cryptomator - JavaFX runtime started after 1045ms
08:45:54.885 [App Scheduled Executor 01] INFO  o.c.common.settings.SettingsProvider - Settings saved to C:\Users\tobias\AppData\Roaming\Cryptomator\settings.json
08:46:00.142 [JavaFX Application Thread] INFO  o.cryptomator.ui.fxapp.UpdateChecker - Current version: 1.6.15, lastest version: 1.6.15


--- cryptomator0.log

18:16:43.772 [main] WARN  o.c.common.settings.SettingsProvider - Invalid json file C:\Users\tobias\AppData\Roaming\Cryptomator\settings.json
18:16:43.819 [main] INFO  org.cryptomator.common.Environment - user.home: C:\Users\tobias
18:16:43.820 [main] INFO  org.cryptomator.common.Environment - java.library.path: C:\Program Files\Cryptomator;<redacted...>;C:\Program Files\Cryptomator\app;.
18:16:43.820 [main] INFO  org.cryptomator.common.Environment - user.language: de
18:16:43.820 [main] INFO  org.cryptomator.common.Environment - user.region: null
18:16:43.820 [main] INFO  org.cryptomator.common.Environment - logback.configurationFile: null
18:16:43.820 [main] INFO  org.cryptomator.common.Environment - cryptomator.settingsPath: ~/AppData/Roaming/Cryptomator/settings.json
18:16:43.821 [main] INFO  org.cryptomator.common.Environment - cryptomator.ipcSocketPath: ~/AppData/Roaming/Cryptomator/ipc.socket
18:16:43.821 [main] INFO  org.cryptomator.common.Environment - cryptomator.integrationsWin.keychainPaths: ~/AppData/Roaming/Cryptomator/keychain.json
18:16:43.821 [main] INFO  org.cryptomator.common.Environment - cryptomator.logDir: ~/AppData/Roaming/Cryptomator
18:16:43.821 [main] INFO  org.cryptomator.common.Environment - cryptomator.pluginDir: ~/AppData/Roaming/Cryptomator/Plugins
18:16:43.821 [main] INFO  org.cryptomator.common.Environment - cryptomator.mountPointsDir: ~/Cryptomator
18:16:43.821 [main] INFO  org.cryptomator.common.Environment - cryptomator.minPwLength: null
18:16:43.821 [main] INFO  org.cryptomator.common.Environment - cryptomator.appVersion: 1.6.15
18:16:43.821 [main] INFO  org.cryptomator.common.Environment - cryptomator.buildNumber: msi-3983
18:16:43.821 [main] INFO  org.cryptomator.common.Environment - cryptomator.showTrayIcon: true
18:16:43.821 [main] INFO  org.cryptomator.common.Environment - cryptomator.p12Path: ~/AppData/Roaming/Cryptomator/key.p12
18:16:43.822 [main] INFO  o.cryptomator.launcher.Cryptomator - Starting Cryptomator 1.6.15 on Windows 10 10.0 (amd64)
18:16:43.890 [main] INFO  org.cryptomator.ipc.Server - Spawning IPC server listening on socket C:\Users\tobias\AppData\Roaming\Cryptomator\ipc.socket
18:16:45.764 [JavaFX Application Thread] INFO  o.cryptomator.launcher.Cryptomator - JavaFX runtime started after 2425ms
18:16:48.461 [App Scheduled Executor 01] INFO  o.c.common.settings.SettingsProvider - Settings saved to C:\Users\tobias\AppData\Roaming\Cryptomator\settings.json
18:18:42.626 [JavaFX Application Thread] INFO  o.cryptomator.ui.fxapp.UpdateChecker - Current version: 1.6.15, lastest version: 1.6.15
18:24:23.285 [JavaFX Application Thread] INFO  o.cryptomator.launcher.Cryptomator - JavaFX application stopped.
18:24:23.292 [main] INFO  o.cryptomator.launcher.Cryptomator - UI shut down
18:24:23.293 [main] INFO  o.cryptomator.launcher.Cryptomator - Exit 0

Anything else?

The monitor was turned off when I shut down the computer. So I did not see what the monitor would have displayed. When I started the computer this evening, Windows Updates were installed (if that is relevant)

@tobiaskarch tobiaskarch added the type:bug Something isn't working label Oct 24, 2022
@tobiaskarch tobiaskarch changed the title All settings are lost after computer startup All settings are lost after forced shutdown Oct 24, 2022
@infeo
Copy link
Member

infeo commented Oct 24, 2022

The log contains the following line:

18:16:43.772 [main] WARN o.c.common.settings.SettingsProvider - Invalid json file C:\Users\tobias\AppData\Roaming\Cryptomator\settings.json

The Cryptomator settings file contained an error and thus was resetted.

@tobiaskarch When you you write 1.Maintain some settings, does it mean you are editing the json file directly?

@tobiaskarch
Copy link
Author

tobiaskarch commented Oct 24, 2022

@tobiaskarch When you you write 1.Maintain some settings, does it mean you are editing the json file directly?

@infeo No, I only use the Cryptomator UI to configure settings

Edit: Technically, step 2 "Maintain some settings" is not necessary at all. Additional info: The last time I changed a setting was a very long time ago. So there was no recent setting change

@tobiaskarch
Copy link
Author

My SyncTrayzor config file was also corrupted. This issue mentions that it is related to Windows Updates: canton7/SyncTrayzor#471
With the force shutdown I may have interrupted the update process

@infeo
Copy link
Member

infeo commented Nov 12, 2022

Since this is not reproducable, i'll close the ticket. It can be reopened if the issue appears again.

@infeo infeo closed this as not planned Won't fix, can't repro, duplicate, stale Nov 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants