victorhooi
Contributor
- Joined
- Mar 16, 2012
- Messages
- 184
Is there some way to install Syncthing in TrueNAS Scale currently?
docker-compose up -d
where your docker-compose.yml is located.docker-compose up -d
in each of them unless the folder contains a specific suffix.#!/bin/bash systemctl start docker systemctl enable docker docker network create NETWORK_NAME for dir in "PATH"*/; do if [[ "$dir" != *.wip/ ]]; then cd $dir docker-compose up -d cd .. fi done
That's what I was thinkingHmm, yes, I have a little familiarity with it.
Are you saying I should just pull say, the LinuxServer Docker image for Syncthing (link) or the official SyncThing Docker image (link) into TrueNAS Scale, and use it that way?
What would be the best way of exposing the files within TrueNAS itself to the Docker image?
"NetworkSettings": { "Bridge": "", "SandboxID": "", "HairpinMode": false, "LinkLocalIPv6Address": "", "LinkLocalIPv6PrefixLen": 0, "Ports": {}, "SandboxKey": "", "SecondaryIPAddresses": null, "SecondaryIPv6Addresses": null, "EndpointID": "", "Gateway": "", "GlobalIPv6Address": "", "GlobalIPv6PrefixLen": 0, "IPAddress": "", "IPPrefixLen": 0, "IPv6Gateway": "", "MacAddress": "", "Networks": {} } } ]
OK, I reinstalled a new TrueNAS Scale using the latest nightly, and I'm trying to get Syncthing running there.
From the TrueNAS UI, I click on "Apps" on the left hand menu, then click on "Launch Docker Image" in the top right.
For Application Name - I believe this is just an arbitrary name to identify this docker container on the TrueNAS host right?
For Image Repository, I pick "syncthing/syncthing". The other options I leave at defaults:
View attachment 46648
For Container Settings, I don't set any of these, and leave at defaults.
For Networking, I don't set any of these, and leave at defaults - this means it should default to Docker's default of bridge networking, and the container should get an IP address like any other host on the local network, right?
For Port Forwarding, I don't set any of these - I believe the Syncthing docker file already exposes certain ports - so we should be fine here, right?
For Host Path Volumes - my understanding is that is just Bind mounts from docker - so I created a new Dataset on my ZFS pool, and linked that to "/var/syncthing" in the container:
View attachment 46647
For Volumes - this is named/unnamed volumes, I didn't set up any of these.
For Security Settings, I did tick the "Privileged" box.
After that, I create and run the container.
However, it doesn't seem to grab an IP add
If I use docker inspect on the container, under NetworkSettings, I see:
Code:"NetworkSettings": { "Bridge": "", "SandboxID": "", "HairpinMode": false, "LinkLocalIPv6Address": "", "LinkLocalIPv6PrefixLen": 0, "Ports": {}, "SandboxKey": "", "SecondaryIPAddresses": null, "SecondaryIPv6Addresses": null, "EndpointID": "", "Gateway": "", "GlobalIPv6Address": "", "GlobalIPv6PrefixLen": 0, "IPAddress": "", "IPPrefixLen": 0, "IPv6Gateway": "", "MacAddress": "", "Networks": {} } } ]
The container doesn't seem to have grabbed an IP address?
Did I miss something in the steps above, or has anybody else managed to get Syncthing running as a container recently under TrueNAS Scale?
I tried installing the truecharts app for syncthing using the default parameters, however after a few minutes of updating my login info in the syncthing ui, I get kicked out and can no longer connect to the ui for syncthing.
The truenas scale app ui shows the following messages:
Liveness probe failed: HTTP probe failed with statuscode: 401
Readiness probe failed: HTTP probe failed with statuscode: 401
Anyone having similar issues on 21.06-Beta?
My instance only runs locally without a password, but I set one up to test it and it seems to work fine for me.
Does anything show up in the container logs?I got TrueNasNewbie's exact issue. I also got what I think gigatex is describing. The app works, but when I set a GUI password, it becomes inaccessible.
I tried installing the truecharts app for syncthing using the default parameters, however after a few minutes of updating my login info in the syncthing ui, I get kicked out and can no longer connect to the ui for syncthing.
The truenas scale app ui shows the following messages:
Liveness probe failed: HTTP probe failed with statuscode: 401
Readiness probe failed: HTTP probe failed with statuscode: 401
Anyone having similar issues on 21.06-Beta?
I got TrueNasNewbie's exact issue. I also got what I think gigatex is describing. The app works, but when I set a GUI password, it becomes inaccessible.
I just updated the app and then added my GUI password and it seems to be working now.The fix is merged, you can try again after refreshing your catalog and updating the syncthing app.