I only have ssh (without remote desktop) on my vserver
Whatever you were doing before to try to connect to the gui, do the same thing but over https and not http.
well I thinks this is my problem Iâm using ssl since first runâŚ
after killing syncthing, logs looking fine - no hints with errors killing syncthing doenst seem to push any lines to synthing.log
Did you kill it with SIGABRT?
Itâs also possible that the init script you have makes the log to be overwritten.
nope I used kill -6 and deleted the log before killing. log file had about 260MBâŚ
there were no lines about errors than the SSL errors from aboveâŚ
Sorry, i donât follow what you are doing. If you donât have access to the web ui after reatarting syncthing then itâs not a bug, youâre most likely just connecting to the wrong port. The port is printed in the logs.
I couldnât access the gui from remote from time to time although syncthing was running and listening on the right port⌠so I watched the logs and found a lot of ssl errors (e.g. 2015/06/27 05:36:26 http: TLS handshake error from 109.XXX.XXX.33:4152: EOF). after killing syncthing, it workes fine (mostly until I canât access the gui again) before your hint just to kill syncthing, I always restarted the vserver⌠(which helped too)
and
didnât push any hints to syncthing.log
Well try running syncthing stand alone, send a kill -6 from a second shell and it should produce output. Itâs probably your init script swallowing it.
hi there! same this morning: syncthing running and listening - but GUI not responding.
watched the logs and found about 40 lines about running syncthin twice:
[monitor] 02:59:37 INFO: Syncthing exited: exit status 1
[monitor] 02:59:38 INFO: Starting syncthing
[7QCUL] 02:59:39 INFO: syncthing v0.11.11 (go1.4.2 linux-amd64 default) unknown-user@syncthing-builder 2015-06-28 19:10:57 UTC
[7QCUL] 02:59:39 INFO: My ID: 7QCULIP-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-GJC57AF
[7QCUL] 02:59:39 INFO: Database block cache capacity 8192 KiB
[7QCUL] 02:59:39 FATAL: Cannot open database: resource temporarily unavailable - Is another copy of Syncthing already running?
[monitor] 02:59:39 INFO: Syncthing exited: exit status 1
[monitor] 02:59:40 INFO: Starting syncthing
[7QCUL] 02:59:40 INFO: syncthing v0.11.11 (go1.4.2 linux-amd64 default) unknown-user@syncthing-builder 2015-06-28 19:10:57 UTC
[7QCUL] 02:59:40 INFO: My ID: 7QCULIP-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-GJC57AF
[7QCUL] 02:59:40 INFO: Database block cache capacity 8192 KiB
[7QCUL] 02:59:40 FATAL: Cannot open database: resource temporarily unavailable - Is another copy of Syncthing already running?
[monitor] 02:59:40 INFO: Syncthing exited: exit status 1
[monitor] 02:59:41 WARNING: 4 restarts in 6.649644053s; not retrying further
[monitor] 02:59:42 INFO: Starting syncthing
[7QCUL] 02:59:42 INFO: syncthing v0.11.11 (go1.4.2 linux-amd64 default) unknown-user@syncthing-builder 2015-06-28 19:10:57 UTC
[7QCUL] 02:59:42 INFO: My ID: 7QCULIP-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-GJC57AF
[7QCUL] 02:59:42 INFO: Database block cache capacity 8192 KiB
[7QCUL] 02:59:42 FATAL: Cannot open database: resource temporarily unavailable - Is another copy of Syncthing already running?
[monitor] 02:59:42 INFO: Syncthing exited: exit status 1
[monitor] 02:59:43 INFO: Starting syncthing
[7QCUL] 02:59:44 INFO: syncthing v0.11.11 (go1.4.2 linux-amd64 default) unknown-user@syncthing-builder 2015-06-28 19:10:57 UTC
[7QCUL] 02:59:44 INFO: My ID: 7QCULIP-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-GJC57AF
[7QCUL] 02:59:44 INFO: Database block cache capacity 8192 KiB
[7QCUL] 02:59:44 FATAL: Cannot open database: resource temporarily unavailable - Is another copy of Syncthing already running?
[monitor] 02:59:44 INFO: Syncthing exited: exit status 1
[monitor] 02:59:45 INFO: Starting syncthing
[7QCUL] 02:59:46 INFO: syncthing v0.11.11 (go1.4.2 linux-amd64 default) unknown-user@syncthing-builder 2015-06-28 19:10:57 UTC
[7QCUL] 02:59:46 INFO: My ID: 7QCULIP-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-GJC57AF
[7QCUL] 02:59:46 INFO: Database block cache capacity 8192 KiB
[7QCUL] 02:59:46 FATAL: Cannot open database: resource temporarily unavailable - Is another copy of Syncthing already running?
[monitor] 02:59:46 INFO: Syncthing exited: exit status 1
[monitor] 02:59:47 INFO: Starting syncthing
[7QCUL] 02:59:47 INFO: syncthing v0.11.11 (go1.4.2 linux-amd64 default) unknown-user@syncthing-builder 2015-06-28 19:10:57 UTC
[7QCUL] 02:59:47 INFO: My ID: 7QCULIP-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-GJC57AF
[7QCUL] 02:59:47 INFO: Database block cache capacity 8192 KiB
[7QCUL] 02:59:47 FATAL: Cannot open database: resource temporarily unavailable - Is another copy of Syncthing already running?
[monitor] 02:59:47 INFO: Syncthing exited: exit status 1
[monitor] 02:59:48 WARNING: 4 restarts in 6.851814844s; not retrying further
[monitor] 02:59:48 INFO: Starting syncthing
[7QCUL] 02:59:49 INFO: syncthing v0.11.11 (go1.4.2 linux-amd64 default) unknown-user@syncthing-builder 2015-06-28 19:10:57 UTC
[7QCUL] 02:59:49 INFO: My ID: 7QCULIP-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-GJC57AF
[7QCUL] 02:59:49 INFO: Database block cache capacity 8192 KiB
[7QCUL] 02:59:49 FATAL: Cannot open database: resource temporarily unavailable - Is another copy of Syncthing already running?
[monitor] 02:59:49 INFO: Syncthing exited: exit status 1
âŚand is another another copy of Syncthing running? What exactly does âGUI not respondingâ mean? Are http requests for the GUI timing out, or are they being rejected?
Also, is it actually running? Because the log just says it failed to start, it doesnât have any logs of running successfully.
yes itâs running and syncing and its only one instance that is running
chrome says: âDiese Webseite ist nicht verfĂźgbar.â which means itâs not available⌠chrome err code: ERR_CONNECTION_RESET if I watch the statusbar while trying to connect: âtrying to establish secure connectionâ and then it aborts without having a connection established I think its maybe a problem with the handshake or with the certificate itselfâŚ?
Well the log says otherwise, it does seem that you have to instances running, and the one which does seem to be running and causing connection issues doesnât have itâs log captured, so there is very little we can diagnose without the log.
now i see have actually 2 running instances - but dont know why thanks so far!!!
what do you think: is my script responsible for the second instance?
# /etc/init/syncthing.conf
start on (local-filesystems and net-device-up IFACE!=lo)
stop on runlevel [!2345]
env STNORESTART=yes
env USERID='syncusr'
env HOME=/home/$USERID
# setuid "syncusr"
# setgid "syncusr"
script
exec 1>>/var/log/syncthing.log 2>&1
su - $USERID -c '/usr/local/bin/syncthing'
end script
respawn
Itâs really very important that you answer correctly the first time. Otherwise you just waste everyoneâs time at best, and end up completely misleading us and not solving your problem at worst.
Thatâs not starting Syncthing with -no-restart
, which is likely causing your issues.
thanks guys! one final question: which is correct? su - $USERID -c '/usr/local/bin/syncthing -no-restartâ or su - $USERID -c â/usr/local/bin/syncthingâ -no-restart
@canton7 be sure, wasting someones time isnât my intent. sad to hear that. I checked if there was a second instance running - but overlooked it or just made a fault. anyway thanks much