-
-
Notifications
You must be signed in to change notification settings - Fork 504
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
DietPi-Software | Syncthing: Service fails due to permission issue #3180
Comments
@ralban If you submitted a bugreport, please paste the ID here: |
b9746b36-f05f-42ca-bc73-e65d756dda33 |
I have the same issue, just installed syncthing yesterday, and I have been unable to access the web interface. I do have the additional information below that I gathered from dietpi-services logs. I'm a bit of a noob, but it looks like it might have to do with directory permissions. I do have my "dietpi-userdata" mounted on an external hard drive attached by USB. Here is the log notes from attempting to restart the syncthing service today: ● syncthing.service - Syncthing (DietPi) When I cd into the directory this is the permissions that I see for the directories that syncthing is creating and attempting to use when it starts up: drwx------ 2 root root 4096 Oct 23 14:51 syncthing I included the "Video" directory, not because syncthing created it, but it was created in that same userdata directory and it has very different permissions from the two folders created by syncthing. I also sent the following dietpi-bugreport: I hope this helps. |
Me three. Same install setup as @mowestusa |
+ DietPi-Software | Syncthing: Move binary from /etc/syncthing to /opt/syncthing + DietPi-Software | Syncthing: Align systemd unit with official one, which includes some hardening and signal handling that should allow internal updates without breaking service state. Hence leave internal updater enabled by default. + DietPi-Software | Syncthing: Do not touch config file on reinstalls. Otherwise create default config as user dietpi to assure correct permissions: #3180 The dir itself is created automatically with most strict access permissions (owner only). + DietPi-Software | Syncthing: The inotify-based FS watcher is now enabled by default, hence we can stay with defaults, as well the 1h rescan interval. As well leave browser start default enabled, disable instead via cmd option in systemd unit, where it is required. This allows user to access browser via binary from console.
@ralban @mowestusa @g7kse Fix is:
I opened a PR to fix it and enhanced/updated the installer in some other ways for next release: #3202
|
Ok Thanks @MichaIng all ok on gui which is now displayed but we still have a permission problem with folders 2019-10-25 08:24:18: Failed to create folder marker: mkdir /mnt/dietpi_userdata/syncthing_data/.stfolder: permission denied 2019-10-25 08:24:18: Error on folder "Syncthing Data" (0000-0000): folder marker missing |
@g7kse
|
All sorted. tnx Alex |
+ DietPi-Software | Syncthing: Move binary from /etc/syncthing to /opt/syncthing + DietPi-Software | Syncthing: Align systemd unit with official one, which includes some hardening and signal handling that should allow internal updates without breaking service state. Hence leave internal updater enabled by default. + DietPi-Software | Syncthing: Do not touch config file on reinstalls. Otherwise create default config as user dietpi to assure correct permissions: #3180 The dir itself is created automatically with most strict access permissions (owner only). + DietPi-Software | Syncthing: The inotify-based FS watcher is now enabled by default, hence we can stay with defaults, as well the 1h rescan interval. As well leave browser start default enabled, disable instead via cmd option in systemd unit, where it is required. This allows user to access browser via binary from console. + DietPi-Software | Syncthing: Remove file logging in favour of journal logging. Users should use journalctl (-u syncthing) to check logs + DietPi-Patch | Prepare and reinstall Syncthing to apply recent changes: #3202
ADMIN EDIT
Solution
Details:
Steps to reproduce:
Expected behaviour:
Actual behaviour:
Extra details:
Additional logs:
The text was updated successfully, but these errors were encountered: