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

syncthings addon failing #445

Closed
coolbombom opened this issue Nov 5, 2023 · 5 comments
Closed

syncthings addon failing #445

coolbombom opened this issue Nov 5, 2023 · 5 comments
Labels
bug Something isn't working syncthing syncthing Addon

Comments

@coolbombom
Copy link

Which addon?
syncthings

Describe the bug
syncthing is not syncing

syncthing show following error in gui and log:
Failure checking encryption consistency with device computer for folder "common-sync-folder" (z64hu-dw22): open /root/common-sync-folder/.stfolder/syncthing-encryption_password_token: no such file or directory

To Reproduce
i have no idea how it got to this stage. imagine after a update of homeassistant and a restart.

Expected behavior
syncthing to sync

System
Core 2023.11.1
Supervisor 2023.10.1
Operating System 11.1
Brugerflade 20231030.1

@coolbombom coolbombom added the bug Something isn't working label Nov 5, 2023
@Poeschl Poeschl added the syncthing syncthing Addon label Nov 5, 2023
@coolbombom
Copy link
Author

Hi

I finally figured out how to reproduce this issue.

I removed the addon, installed it again, synced with clients, everything works as it should.

I restart home assistant server, and the error occurs.

I have a password on the folder i sync from the clients, and maybe that is the issue? The syncthing server is loosing password token after restart of docker container.

kind regards
cbb

@coolbombom
Copy link
Author

In other words the docker setup needs to be setup to retain/store the encryption_password_token between restart of docker container? could that be it?

@salim-b
Copy link
Contributor

salim-b commented Dec 28, 2023

In other words the docker setup needs to be setup to retain/store the encryption_password_token between restart of docker container? could that be it?

Well, yes. Although, it's not only the encryption_password_token but also the synced data that needs to be retained between container restarts. Which brings us to...

Failure checking encryption consistency with device computer for folder "common-sync-folder" (z64hu-dw22): open /root/common-sync-folder/.stfolder/syncthing-encryption_password_token: no such file or directory

You're attempting to store syncthing data under /root/, it appears. That won't work due to Home Assistant's container setup:

When using this add-on to permanently hold your data, put the synced folders inside one of the following directories:

  • /data
  • /media
  • /share
  • /config
  • /ssl
  • /addons

Only the above directories are mapped into the add-on container. If you put synced folders in any other directory (like /root or /mnt), the synced data will be deleted on container restart.

RTFM 😉

@tomaszduda23
Copy link

It would be nice to make default folder persistent #447. I know that doc already mentioned that but what is the point of syncing to temporary folder at all?

@salim-b
Copy link
Contributor

salim-b commented Jan 13, 2024

Latest release of the add-on (v1.18.2) defaults to /share as folder path, which is persistent.

@Poeschl I think this issue can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working syncthing syncthing Addon
Projects
None yet
Development

No branches or pull requests

4 participants