Page 1 of 1

Permission Denied IO error running on OSMC saving to USBHDD

Posted: Sun Apr 03, 2016 6:32 pm
by ekimyar
I posted this to the bugtracker, but I'm not positive it's actually a bug.

I have had problems for several days downloading new files to my Rpi2 running OSMC. When I first installed OSMC via apt-get, it saved files with no problem to my usb hdd, but then just stopped working, I think after a power outage.

At first it appeared that it was a 'dirty bit' issue on my usb hdd, but I cleared the dirty bit and even re-formatted the hard drive from fat32 to ext3. Somehow, I still cannot download files to the usb hdd. After the reformat, I ran chmod 777 -R the drive as the OSMC user, the user that I (I think) run qbittorrent as.

Here's the error I get:
An I/O error occurred, 'torrent' paused.
02/04/2016 22:10:06 - Reason: error: Permission denied

Sorry, here's my qBittorrent version and OS version.
qBittorrent v3.1.10
Linux 4.4.3-3-osmc #1 SMP PREEMPT Tue Mar 1 15:51:08 UTC 2016 armv7l GNU/Linux

I also purged, deleted the qbittorrent folders, and reinstalled everything, still with no luck. Also, from the shell with the OSMC user, I can create files on the USB HDD. (I created a test file using nano on it.) AND, I can download torrents to my home folder, just not to the USB HDD. I run qBittorrent headless, and just start it via SSH, download what I'm looking for, and then ctrl-c and shut down the SSH session.

Re: Permission Denied IO error running on OSMC saving to USBHDD

Posted: Sun Apr 03, 2016 10:20 pm
by ciaobaby
qBittorrent v3.1.10
You need to update, current supported version is 3.3.4.

Re: Permission Denied IO error running on OSMC saving to USBHDD

Posted: Mon Apr 04, 2016 12:15 am
by ekimyar
I updated to v3.3.1 (via the testing repository on Debian), and I'm still having the same problem. I can download to my home directory, and then move files to my usb hdd, but I can't download directly to the usb hdd. The path I've entered into the settings is /media/'Pecan pi'/completed

Thanks!

Re: Permission Denied IO error running on OSMC saving to USBHDD

Posted: Mon Apr 04, 2016 12:50 am
by ciaobaby
Prediction: Your external HD is formatted as  NTFS and mounted as read only.

This has been a  long(ish) standing problem (c2009/2010) with many Linux distributions and is caused by some 'issue' in the NTFS-3G driver.

Do a Internet search for "Linux HD read only" or something like that you will find many, many 'solutions', 'fixes' or 'patches' to get around the problem,

Tor now, the best fix is .... .... Use EXT4 :)

Re: Permission Denied IO error running on OSMC saving to USBHDD

Posted: Mon Apr 04, 2016 12:55 am
by ekimyar
It used to be formatted as FAT32, but as part of my efforts to fix this I actually reformatted it as EXT4. Thanks for the help!

Re: Permission Denied IO error running on OSMC saving to USBHDD

Posted: Mon Apr 04, 2016 9:28 am
by ciaobaby
It used to be formatted as FAT32
FAT32 has a file size limit of 4GB, so if the payload had a file or files larger than that it would also cause I/O errors

Re: Permission Denied IO error running on OSMC saving to USBHDD

Posted: Sat Apr 16, 2016 5:31 pm
by zjoasan
try to make a link in your homefolder to the folder on external drive

ln -s /media/'Pecan pi'/completed /home/osmc/download

works for me