Stat: permission denied, but user pi can use stat ?!?!

tried to sync a new folder today older folder running well :sunny:

Sending Node (Master) created, raspberry node is “client” Web-Gui informed about new folder, I put all informations into GUI, syncing started, but stopped with error

Jan 5 21:13:42 raspberrypi syncthing: [SKZFG] INFO: Skipping folder Bilder_2016 scan due to folder error: stat /media/usb1/Bilder/2016/: permission denied

Syncthing processes running with user pi

pi 25189 5676 32 20:53 ? 00:09:34 /usr/local/bin/syncthing/syncthing -logflags 0

If user pi use stat in ssh-terminal, all fine :worried:

pi@raspberrypi /media/usb1/Bilder $ stat 2016 Datei: „2016“ Größe: 48 Blöcke: 0 EA Block: 4096 Verzeichnis Gerät: 811h/2065d Inode: 1009 Verknüpfungen: 1 Zugriff: (0770/drwxrwx---) Uid: ( 0/ root) Gid: ( 25/ floppy) Zugriff : 2016-01-05 21:02:39.601461000 +0100 Modifiziert: 2016-01-05 21:04:38.801422000 +0100 Geändert : 2016-01-05 21:04:38.801422000 +0100 Geburt : -

pi@raspberrypi /media/usb1/Bilder $ ls -ld 2016

drwxrwx— 1 root floppy 0 Jan 5 21:04 2016

pi@raspberrypi /media/usb1/Bilder $ id

uid=1000(pi) gid=1000(pi) Gruppen=1000(pi),4(adm),20(dialout),24(cdrom),25(floppy),27(sudo),29(audio),44(video),46(plugdev),60(games),100(users),105(netdev),999(input),1001(indiecity),1002(spi),1003(gpio)

what is going wrong with this new folder?

Can’t see anything wrong, but suggest you compare with the working folder.

Can you please use touch to create a file in the directory just to make sure you can outside of Syncthing.

I play with these little SBCs a bit and they can start throwing errors at you for all sorts of reasons, not always what they say. I get this error sometimes when fuse is stuck or a write has failed to a mount and is holding a lock. usually a reboot is the easiest way to solve the problem in these cases.

I did test touch and everything fine

pi@raspberrypi ~ $ touch /media/usb1/Bilder/2016/foo
pi@raspberrypi ~ $ ls -l /media/usb1/Bilder/2016/foo

 -rwxrwx--- 1 root floppy 0 Jan  6 07:29 /media/usb1/Bilder/2016/foo

what are different to working folder?
The new, not working one, are using another partition with another filesystem.

working FS ext2
not working FS: ntfs

I am not sure how NTFS permissioms are dealt with in Linux. Plus the touch you seem to have done is as the wrong user.

1 Like

[SOLVED]

seems to be a problem with NTFS and Raspbian :unamused:

Changed partition to EXT4 and all works fine now :grinning:

thanks for your tips and support

1 Like

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