digidem / edt-offline

Low-energy device that creates an access-point with the Earth Defender's Toolkit platform running, even without the Internet. It provides applications, documentation, use cases, curated websites, and application bridges.
http://demo.earthdefenderstoolkit.com/
MIT License
12 stars 0 forks source link

Syncthing: Failed to load/generate certificate: save cert: open /config/cert.pem: permission denied #29

Closed luandro closed 1 year ago

luandro commented 1 year ago

Error:

[start] 2023/03/16 12:33:10 INFO: syncthing v1.23.2 "Fermium Flea" (go1.19.6 linux-arm64) root@buildkitsandbox 2023-03-07 19:03:19 UTC [noupgrade]
[start] 2023/03/16 12:33:10 INFO: Generating ECDSA key and certificate for syncthing...
[start] 2023/03/16 12:33:10 WARNING: Failed to load/generate certificate: save cert: open /config/cert.pem: permission denied

Probably related to Balena Starter Interface which is also accessing the same volumes as syncthing and filebrowser. Checking user ownership and modifying how that works should be the fix.

Worst case remove shared volumes from starter interface.

luandro commented 1 year ago

This was caused because the PUID and PGID Balena vars weren't being automatically added to the container. A new release with the new balena.yml should fix this.

luandro commented 1 year ago

Solved by #28