Incorrect error message when failing to write to disk

Ask for help and report issues not specific to either the Mac OS X or GTK+ versions of Transmission
Backwaren
Posts: 2
Joined: Wed Aug 20, 2014 10:04 pm

Re: Incorrect error message when failing to write to disk

Post by Backwaren »

boise wrote:I'm no Linux expert, but I'm guessing that /media/gh2425/data0 is the mount point for the device and "transm" is a directory in the root of that device?
Exactly. It's a Lubuntu 14.04 box and the automounter does this to the data0 device.
boise wrote:From the ls -l listing you included, the device is obviously mounted, and the permissions allow anyone to write there.
So I thought.
boise wrote:
  1. The device has been mounted after that you got the error from Transmission.
I deleted the torrent, ran sudo service transmission-daemon stop, ran sudo service transmission-daemon start and loaded the file openSUSE-13.1-DVD-i586.iso.torrent again. Same result.
boise wrote:[*]The creation of the file fails, not because of the permissions on the specific directory (.../incomplete), but because lack of permissions on another directory in the path to it. For example on /media/gh2425/data0/transm[/list]
That's it. Specifically

Code: Select all

:~$ ls -ld /media/gh2425/
drwxr-x-w-+ 3 root root 4096 Sep 20 16:30 /media/gh2425/


turns out it doesn't help if debian-transmission can create files in the directory, if it can not go there in the first place.
I changed this to

Code: Select all

:~$ sudo chmod -v o+x /media/gh2425/
der Modus von »/media/gh2425/“ wurde von 0752 (rwxr-x-w-) in 0753 (rwxr-x-wx) geändert
:~$ ls -ld /media/gh2425
drwxr-x-wx+ 3 root root 4096 Sep 20 16:30 /media/gh2425
and now everything works just fine.

I was misled, because I was able to create files in /media/gh2425/data0/transm/incomplete, as is suggested by creating an deleting a testfile like this

Code: Select all

cd /media/gh2425/data0/transm/incomplete/
:/media/gh2425/data0/transm/incomplete$ sudo su -m debian-transmission 
:/media/gh2425/data0/transm/incomplete$ whoami
debian-transmission
:/media/gh2425/data0/transm/incomplete$ ls -alF
insgesamt 8
drwxrwxrwx 2 debian-transmission debian-transmission 4096 Jul 22 08:56 ./
drwxrwxrwx 5 debian-transmission debian-transmission 4096 Sep 19 16:43 ../
:/media/gh2425/data0/transm/incomplete$ touch atestfile
:/media/gh2425/data0/transm/incomplete$ ls -alF
insgesamt 8
drwxrwxrwx 2 debian-transmission debian-transmission 4096 Sep 20 16:49 ./
drwxrwxrwx 5 debian-transmission debian-transmission 4096 Sep 19 16:43 ../
-rw-rw-r-- 1 debian-transmission debian-transmission    0 Sep 20 16:49 atestfile
:/media/gh2425/data0/transm/incomplete$ rm atestfile 
:/media/gh2425/data0/transm/incomplete$ ls -alF
insgesamt 8
drwxrwxrwx 2 debian-transmission debian-transmission 4096 Sep 20 16:49 ./
drwxrwxrwx 5 debian-transmission debian-transmission 4096 Sep 19 16:43 ../
However this seems not to be a valid testcase, maybe because i went to the directory as a different user before su-ing over into debian-transmission.

Thanks a bundle :)
boise
Posts: 11
Joined: Tue Sep 09, 2014 2:48 am

Re: Incorrect error message when failing to write to disk

Post by boise »

Backwaren wrote:However this seems not to be a valid testcase, maybe because i went to the directory as a different user before su-ing over into debian-transmission.
Maybe, yes. I suppose it would be better with "touch /media/gh2425/data0/transm/incomplete/another_test_file", but I'm far from sure that would be a "perfect" test either...
Backwaren wrote:Thanks a bundle
Always happy to help.
Post Reply