My scenario: I have a kubernetes cluster and I’m using okteto which has syncthing installed. I run okteto up and it starts a pod in the cluster. Syncthing seems to be working fine at this point as I can see my directory and all the folders. When I run a job, all the files are created if I look at the pod within the cluster itself. However, if I look at the file directly on the server running syncthing, I have alot of .tmp files that dont appear in the pod.
3 12:31 file.txt-714
3 12:31 file.txt-723
3 12:31 file.txt-750
3 12:31 file.txt-794
3 12:31 file.txt-80
3 12:31 file.txt-94
3 12:31 .syncthing.file.txt-10.tmp
3 12:31 .syncthing.file.txt-115.tmp
3 12:31 .syncthing.file.txt-134.tmp
3 12:31 .syncthing.file.txt-158.tmp
3 12:31 .syncthing.file.txt-192.tmp
3 12:31 .syncthing.file.txt-232.tmp
At this point, my okteto into the pod has frozen and I’ve lost access: While looking at the okteto logs it says syncthing has failed:
events=FolderSummary&limit=1&since=0&timeout=0": context deadline exceeded (Client.Timeout exceeded while awaiting headers)" action=1ea7e90c-f1a0-49a1-b8a0-d20ba5c81258 version=1.15.8
time=“2023-05-03T12:41:44-06:00” level=info msg=“retrying syncthing call[rest/events] local=false: failed to call syncthing [rest/events]: Get "http://localhost:33220/rest/events?events=FolderSummary&limit=1&since=0&timeout=0\”: net/http: request canceled (Client.Timeout exceeded while awaiting headers)" action=1ea7e90c-f1a0-49a1-b8a0-d20ba5c81258 version=1.15.8
time=“2023-05-03T12:41:49-06:00” level=info msg=“error getting events: failed to call syncthing [rest/events]: Get "http://localhost:33220/rest/events?events=FolderSummary&limit=1&since=0&timeout=0\”: net/http: request canceled (Client.Timeout exceeded while awaiting headers)" action=1ea7e90c-f1a0-49a1-b8a0-d20ba5c81258 version=1.15.8
time=“2023-05-03T12:42:29-06:00” level=info msg=“syncthing pull error local=true: syncing: no connected device has the required version of this file\n” action=1ea7e90c-f1a0-49a1-b8a0-d20ba5c81258 version=1.15.8
time=“2023-05-03T12:42:29-06:00” level=info msg=“syncthing error local=true retry 4: test-output/file.txt-1: syncing: no connected device has the required version of this file\n” action=1ea7e90c-f1a0-49a1-b8a0-d20ba5c81258 version=1.15.8
time=“2023-05-03T12:42:29-06:00” level=info msg=“syncthing monitor error, sending disconnect signal: test-output/file.txt-1: syncing: no connected device has the required version of this file\n” action=1ea7e90c-f1a0-49a1-b8a0-d20ba5c81258 version=1.15.8
time=“2023-05-03T12:42:29-06:00” level=info msg=“starting shutdown sequence” action=1ea7e90c-f1a0-49a1-b8a0-d20ba5c81258 version=1.15.8
time=“2023-05-03T12:42:29-06:00” level=info msg=“sent cancellation signal” action=1ea7e90c-f1a0-49a1-b8a0-d20ba5c81258 version=1.15.8
time=“2023-05-03T12:42:29-06:00” level=info msg=“stopping syncthing” action=1ea7e90c-f1a0-49a1-b8a0-d20ba5c81258 version=1.15.8
time=“2023-05-03T12:42:29-06:00” level=debug msg=“call to up.applyToApp cancelled: {}” action=1ea7e90c-f1a0-49a1-b8a0-d20ba5c81258 version=1.15.8
time=“2023-05-03T12:42:29-06:00” level=info msg=“ssh client for exec closed” action=1ea7e90c-f1a0-49a1-b8a0-d20ba5c81258 version=1.15.8
time=“2023-05-03T12:42:29-06:00” level=info msg=“command failed: wait: remote command exited without exit status or exit signal” action=1ea7e90c-f1a0-49a1-b8a0-d20ba5c81258 version=1.15.8
time=“2023-05-03T12:42:29-06:00” level=info msg=“terminal restored” action=1ea7e90c-f1a0-49a1-b8a0-d20ba5c81258 version=1.15.8
time=“2023-05-03T12:42:29-06:00” level=info msg=“ssh forward localhost:33220->0.0.0.0:8384 → done” action=1ea7e90c-f1a0-49a1-b8a0-d20ba5c81258 version=1.15.8
time=“2023-05-03T12:42:29-06:00” level=info msg=“ssh forward localhost:40654->0.0.0.0:22000 → done” action=1ea7e90c-f1a0-49a1-b8a0-d20ba5c81258 version=1.15.8
time=“2023-05-03T12:42:29-06:00” level=info msg=“syncthing ping error 0” action=1ea7e90c-f1a0-49a1-b8a0-d20ba5c81258 version=1.15.8
time=“2023-05-03T12:42:29-06:00” level=info msg=“terminating syncthing 167130 without wait” action=1ea7e90c-f1a0-49a1-b8a0-d20ba5c81258 version=1.15.8
time=“2023-05-03T12:42:29-06:00” level=info msg=“terminated syncthing 167130 without wait” action=1ea7e90c-f1a0-49a1-b8a0-d20ba5c81258 version=1.15.8
time=“2023-05-03T12:42:29-06:00” level=info msg=“stopping forwarders” action=1ea7e90c-f1a0-49a1-b8a0-d20ba5c81258 version=1.15.8
time=“2023-05-03T12:42:29-06:00” level=info msg=“stopped k8s forwarder” action=1ea7e90c-f1a0-49a1-b8a0-d20ba5c81258 version=1.15.8
time=“2023-05-03T12:42:29-06:00” level=info msg=“stopped SSH forward manager” action=1ea7e90c-f1a0-49a1-b8a0-d20ba5c81258 version=1.15.8
time=“2023-05-03T12:42:29-06:00” level=info msg=“completed shutdown sequence” action=1ea7e90c-f1a0-49a1-b8a0-d20ba5c81258 version=1.15.8
time=“2023-05-03T12:42:29-06:00” level=info msg=“activate failed with: test-output/file.txt-1: syncing: no connected device has the required version of this file\n” action=1ea7e90c-f1a0-49a1-b8a0-d20ba5c81258 ve
My syncthing log shows errors which seem to be indicating they cant find the files because of the .tmp
[ABKAV] 12:40:20 INFO: Listen (BEP/quic): listen udp 0.0.0.0:22000: bind: address already in use
[ABKAV] 12:40:20 INFO: listenerSupervisor@quic://0.0.0.0:22000: service quic://0.0.0.0:22000 failed: listen udp 0.0.0.0:22000: bind: address already in use
[ABKAV] 12:40:32 INFO: Puller (folder “1” (okteto-1), item “test-output/file.txt-573”): syncing: no connected device has the required version of this file
[ABKAV] 12:40:32 INFO: Puller (folder “1” (okteto-1), item “test-output/file.txt-118”): syncing: no connected device has the required version of this file
[ABKAV] 12:40:32 INFO: Puller (folder “1” (okteto-1), item “test-output/file.txt-815”): syncing: no connected device has the required version of this file
[ABKAV] 12:40:32 INFO: Puller (folder “1” (okteto-1), item “test-output/file.txt-737”): syncing: no connected device has the required version of this file
[ABKAV] 12:40:32 INFO: Puller (folder “1” (okteto-1), item “test-output/file.txt-387”): syncing: no connected device has the required version of this file
[ABKAV] 12:40:32 INFO: Puller (folder “1” (okteto-1), item “test-output/file.txt-350”): syncing: no connected device has the required version of this file
[ABKAV] 12:40:32 INFO: Puller (folder “1” (okteto-1), item “test-output/file.txt-352”): syncing: no connected device has the required version of this file
My container eventually dies saying it cant find a specific file which is in the container, but not on the server file it is synced to but it is in the container itself.
o-57b7g7slz:~$ x Test-output/file.txt-1: syncing: no connected device has the required version of this file