Mounting my WD mycloud NAS

Hey,

I need some help! I have a raspberry pi 3 running the latest OS. I have couchpotato, sickrage and transmission configured and working with an external HDD. Recently i purchased a WD mycloud 3 TB storage since I wanted more space and being able to remotely access the network.

I followed a tutorial to mount the drive which seemed to work, however I noticed that when Couchpotato is reading or writing to the NAS i get errors in the logs. When you check the download folder you will see the file that is being downloaded in transmission, however when the file completes and the post processing starts, you literally watch the file in the download folder vanish as if it was moved.

When you navigate to the completed folder it’s empty which means the movies wasn’t moved. When you check the logs it points to a permission issue. I do believe I may have mounted the NAS properly I need some who can help me figure this out because it’s been a pain!

Since you mention looking at the logs, it may be helpful to post them!

https://osmc.tv/wiki/general/how-to-submit-a-useful-support-request/

Hey bmillham,

Thanks again for the suggestion see below and tell me what you think.

05-18 07:39:14 ERROR [hpotato.core.plugins.base] Unable to write file “/home/osmc/wdmycloud/Vol1/Movie Temp/War.on.Everyone.2016.1080p.BluRay.H264.AAC-RARBG/War.on.Everyone.2016.1080p.BluRay.H264.AAC-RARBG.downloading.ignore”: Traceback (most recent call last):
File “/opt/CouchPotatoServer/couchpotato/core/plugins/base.py”, line 108, in createFile
f = open(path, write_type)
IOError: [Errno 13] Permission denied: ‘/home/osmc/wdmycloud/Vol1/Movie Temp/War.on.Everyone.2016.1080p.BluRay.H264.AAC-RARBG/War.on.Everyone.2016.1080p.BluRay.H264.AAC-RARBG.downloading.ignore’

This is one of the errors that points to a permission issue writing to the NAS.

05-18 07:40:15 ERROR [tato.core.plugins.renamer] Couldn’t move file “/home/osmc/wdmycloud/Vol1/Movie Temp/War.on.Everyone.2016.1080p.BluRay.H264.AAC-RARBG/War.on.Everyone.2016.1080p.BluRay.H264.AAC-RARBG.mp4” to “/home/osmc/wdmycloud/Moviez/War on Everyone.mp4”: Traceback (most recent call last):
File “/opt/CouchPotatoServer/couchpotato/core/plugins/renamer.py”, line 868, in moveFile
shutil.copy(old, dest)
File “/usr/lib/python2.7/shutil.py”, line 119, in copy
copyfile(src, dst)
File “/usr/lib/python2.7/shutil.py”, line 83, in copyfile
with open(dst, ‘wb’) as fdst:
IOError: [Errno 13] Permission denied: ‘/home/osmc/wdmycloud/Moviez/War on Everyone.mp4’

This error shows the renamer process that resulted in the file not being able to move
05-18 07:40:15 ERROR [tato.core.plugins.renamer] Failed renaming the file “War.on.Everyone.2016.1080p.BluRay.H264.AAC-RARBG.mp4” : Traceback (most recent call last):
File “/opt/CouchPotatoServer/couchpotato/core/plugins/renamer.py”, line 641, in scan
self.moveFile(src, dst, use_default = not is_torrent or self.fileIsAdded(src, group))
File “/opt/CouchPotatoServer/couchpotato/core/plugins/renamer.py”, line 868, in moveFile
shutil.copy(old, dest)
File “/usr/lib/python2.7/shutil.py”, line 119, in copy
copyfile(src, dst)
File “/usr/lib/python2.7/shutil.py”, line 83, in copyfile
with open(dst, ‘wb’) as fdst:
IOError: [Errno 13] Permission denied: ‘/home/osmc/wdmycloud/Moviez/War on Everyone.mp4’

And this error shows that error renaming file.

Hi,

Are you mounting these via fstab, if so could you please post your fstab.

Thanks Tom.

Oh and after all the processes failed I watch the downloaded files vanish! I have wasted tons of bandwidth the past couple of days! This is quiet frustrating.

Hey Tom,

I am i have this path;

//192.168.11.80/cloud /home/osmc/wdmycloud cifs username=cloud,password=boss1,noauto,x-systemd.automount,uid=1000,gid=1000,iocharset=utf8 0 0

Followed another tutorial how to mount the WD mycloud and this enabled me to see the folders, however I noticed the permissions when I SSH in OSMC the permissions on folders created have 775, when I SSH into NAS the permissions for the folders are 777 which gives full write and read permissions to these folders.

Another thing is the NAS the NFS is enabled therefore read and write access to drive that i’m sharing should be good. Maybe if i can mount the drive path //192.168.11.80/nfs/cloud , would solve this issue rather than using the above with the CIFS? I don’t know just clutching at straws here…

Hi,

If you do a

df

Does the share show?

Thanks Tom.

Hey,

Just did it, and yes it shows.

Hi,

Could you post full output of df here and full logs, may help us resolve this issue?

Thanks Tom.

Hey Tom,

See below;

osmc@OSMCmedia:~$ df
Filesystem 1K-blocks Used Available Use% Mounted on
devtmpfs 370520 0 370520 0% /dev
tmpfs 375512 5172 370340 2% /run
/dev/mmcblk0p2 7282056 1146204 5742892 17% /
tmpfs 375512 0 375512 0% /dev/shm
tmpfs 5120 0 5120 0% /run/lock
tmpfs 375512 0 375512 0% /sys/fs/cgroup
//192.168.11.80/cloud 2875890344 29237448 2846652896 2% /home/osmc/wdmy cloud
/dev/mmcblk0p1 244988 21006 223982 9% /boot
/dev/sda1 976759804 891321872 85437932 92% /media/KODI MED IA
tmpfs 75104 0 75104 0% /run/user/1000

is it mounted as “wdmy cloud” or is that a copy paste error and is in fact mounted as “wdmycloud”?

Thanks Tom.

It was a copy paste error.

//192.168.11.80/cloud 2875890344 29237448 2846652896 2% /home/osmc/wdmycloud

Hi,

Out of ideas at the moment, full debugging logs may help.

Thanks Tom.

I been out of ideas myself going over a WEEK!

Well first let’s check the permissions
ls -lah /home/osmc/wdmycloud

Hey! See below;

osmc@OSMCmedia:~$ ls -lah /home/osmc/wdmycloud
total 8.0K
drwxr-xr-x 2 osmc osmc 4.0K May 18 01:26 .
drwxr-xr-x 10 osmc osmc 4.0K May 18 01:14 …

That looks quite odd as you would have no folders on your NFS?

Post output of
mount

and then try to run

mkdir /home/osmc/wdmycloud/test_folder

and then once more

ls -lah /home/osmc/wdmycloud

Ok,

osmc@OSMCmedia:~$ mount
devtmpfs on /dev type devtmpfs (rw,relatime,size=370520k,nr_inodes=92630,mode=755)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
tmpfs on /run type tmpfs (rw,relatime)
/dev/mmcblk0p2 on / type ext4 (rw,relatime,stripe=1024,data=ordered)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=21,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
systemd-1 on /boot type autofs (rw,relatime,fd=33,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
/dev/sda1 on /media/KODI MEDIA type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks)
/dev/mmcblk0p1 on /boot type vfat (rw,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=75104k,mode=700,uid=1000,gid=1000)

So if I am not blind your NFS folder is not mounted!