Docker Symlink need help

#1

hi iam running a docker container with syncthing. there is a sync folder with activated file versioning. i created a symlink from …/Recycle/Test to Test/.stversions now the versionirer is broken. if the files will delete or changed its just nothing hapening. the files will restore if i click to scan the folder. there are no errors in the logfiles.

root@odroidxu4:/sharedfolders/Syncthing/Test# ls -l -a
-rw-r–r-- 1 user1 911 22413 Feb 4 14:35 Test.pdf
drwxr-xr-x 2 user1 911 4096 Feb 3 13:14 .stfolder
-rw------- 1 user1 911 0 Feb 3 13:15 .stignore
lrwxrwxrwx 1 user1 911 37 Feb 4 13:59 .stversions -> /sharedfolders/Syncthing/Recycle/Test

root@odroidxu4:/sharedfolders/Syncthing/Recycle# ls -l -a
drwxrwxr-x 3 user1 users 4096 Feb 4 14:33 .
drwx------ 6 user1 911 4096 Feb 5 05:17 …
d----w–w- 2 user1 911 4096 Feb 4 14:33 Test

0 Likes

(Audrius Butkevicius) #2

It should work, check the logs.

0 Likes

(Jakob Borg) #3

If this is inside a docker container, the symlink will probably be interpreted in that context. Inside the container there is probably no /sharedfolders?

0 Likes

#4

no there are no /sharedfolders. now i see the problem too.:sweat_smile: my volume is bind in /sharedfolders/Syncthing:/data/Syncthing

0 Likes

#5

/sharedfolders/Syncthing:/sharedfolders/Syncthing this works but not 100% if i delete files or change they folow to /Recycle/Test folder but the versionirer has no acess to there if i click on the button there is no data

0 Likes

(Audrius Butkevicius) #6

Not sure what button you are talking about but if you have versions not in stversions, restoration ui will not work.

0 Likes

#7

i mean the Versions in the syncthing gui for restaration of the files.

root@odroidxu4:/# docker exec syncthing ls -l -a /sharedfolders/Syncthing/Test/
total 16 drwxrwxrwx 3 abc abc 4096 Feb 5 09:10 . drwx------ 7 abc abc 4096 Feb 5 11:35 … drwxr-xr-x 2 abc abc 4096 Feb 5 08:56 .stfolder -rw------- 1 abc abc 0 Feb 5 09:02 .stignore lrwxrwxrwx 1 root root 38 Feb 5 09:10 .stversions -> /sharedfolders/Syncthing/Recycle/Test/ -rw-r–r-- 1 abc abc 31 Feb 5 09:10 Test2.txt root@odroidxu4:/# docker exec syncthing ls -l -a /sharedfolders/Syncthing/Test/.stversions
lrwxrwxrwx 1 root root 38 Feb 5 09:10 /sharedfolders/Syncthing/Test/.stversions -> /sharedfolders/Syncthing/Recycle/Test/ root@odroidxu4:/#

whats wrong ? i dont understand it. the deleted/changed files are in the linked folder root@odroidxu4:/# docker exec syncthing ls -l -a /sharedfolders/Syncthing/Recycle/Test
total 12 drwxrwxrwx 2 abc abc 4096 Feb 5 10:02 . drwxrwxr-x 3 abc 100 4096 Feb 4 14:33 … -rw-r–r-- 1 abc abc 20 Feb 5 09:05 Test2~20190205-091058.txt -rw-rw-r-- 1 abc 100 0 Feb 5 09:02 Test~20190205-090316.txt root@odroidxu4:/#

0 Likes

(Audrius Butkevicius) #8

It’s one of two things, either you have the start end dates bug that sets the filtering dates to some strange values preventing items from showing in the UI, or version restoration ui does not follow symlinks.

Also, please use triple backticks ""` to format your console output as otherwise it’s unreadable on mobiles.

0 Likes

#9

i didnt know how to format it sry

root@odroidxu4:/# docker exec syncthing ls -l -a /sharedfolders/Syncthing/Test/
total 16 
drwxrwxrwx 3 abc abc 4096 Feb 5 09:10 . 
drwx------ 7 abc abc 4096 Feb 5 11:35 … 
drwxr-xr-x 2 abc abc 4096 Feb 5 08:56 .stfolder 
-rw------- 1 abc abc 0 Feb 5 09:02 .stignore 
lrwxrwxrwx 1 root root 38 Feb 5 09:10 .stversions -> /sharedfolders/Syncthing/Recycle/Test/ 
-rw-r–r-- 1 abc abc 31 Feb 5 09:10 Test2.txt 

root@odroidxu4:/# docker exec syncthing ls -l -a /sharedfolders/Syncthing/Test/.stversions
lrwxrwxrwx 1 root root 38 Feb 5 09:10 /sharedfolders/Syncthing/Test/.stversions -> /sharedfolders/Syncthing/Recycle/Test/
root@odroidxu4:/#

root@odroidxu4:/# docker exec syncthing ls -l -a /sharedfolders/Syncthing/Recycle/Test
total 12 
drwxrwxrwx 2 abc abc 4096 Feb 5 10:02 . 
drwxrwxr-x 3 abc 100 4096 Feb 4 14:33 … 
-rw-r–r-- 1 abc abc 20 Feb 5 09:05 Test2~20190205-091058.txt 
-rw-rw-r-- 1 abc 100 0 Feb 5 09:02 Test~20190205-090316.txt root@odroidxu4:/#

what can i do to find out whats wrong ?

0 Likes

(Audrius Butkevicius) #10

Check the dates set in the ui and try without a symlink (or a symlink at a lower level).

0 Likes

#11
root@odroidxu4:/sharedfolders# cd Test2/
root@odroidxu4:/sharedfolders/Test2# ls -l -a
total 8
drwxr-xr-x 1 user1   911  76 Feb  5 21:07 .
drwxr-xr-x 1 user1 users 134 Feb  5 21:03 ..
drwxr-xr-x 1 user1   911   0 Feb  5 21:02 .stfolder
-rw------- 1 user1   911   0 Feb  5 21:07 .stignore
lrwxrwxrwx 1 root  root   16 Feb  5 21:06 .stversions -> /sharedfolders/r
-rw-r--r-- 1 user1   911  51 Feb  5 21:07 Test2.txt
root@odroidxu4:/sharedfolders/Test2# cd .stversions
root@odroidxu4:/sharedfolders/Test2/.stversions# ls -l -a                                                                                                                                     
total 4
drwxr-xr-x 1 user1 users  50 Feb  5 21:07 .
drwxr-xr-x 1 user1 users 134 Feb  5 21:03 ..
-rw-r--r-- 1 user1   911  44 Feb  5 21:06 Test2~20190205-210737.txt
root@odroidxu4:/sharedfolders/Test2/.stversions# 

ok it works on a lower level. i think the versioner is broken. there is no way to select a date. and a manual input in the textbox make a 1970/… - 1970/…

0 Likes

(Audrius Butkevicius) #12

Yeah, there is a bug about that. Nobody ever looked at it.

0 Likes

#13

thanks for the help and hoping for a fix in future.

0 Likes

(system) closed #14

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

0 Likes