Page 1 of 1

[Solved] YAMS not writing to SMB share

Posted: Fri Nov 29, 2024 4:52 pm
by jarik

Hi,

After lots of searching and trying, I'm a bit at a loss.

I'm trying to run YAMS in a Ubuntu VM in Proxmox. Before this, I've setup a samba share in a proxmox container and mounted this to the Ubuntu VM. I've added the following entry to /etc/fstab: //192.168.1.xxx/media /mnt/media cifs guest,utf8,noperm 0
I have verified that I'm able to read and write to this samba share, from both my Windows PC, as well as from the Ubuntu VM.
During YAMS installation, i've set the media directory to be '/mnt/media'.
After installation, I noticed that the SMB share on //192.168.1.xxx/media had the different folders (books, downloads, movies, music, tvshows) had been created. I thought "Perfect :)"
Later, during setup off the Arrs, i've added root folders /movies (for Radarr) as per the installation manual.
As a test run, I've tried downloading 'The Godfather' and checked the tree structure. This showed me that the movie was perfectly placed in /mnt/media/downloads/the Godfather
Unfortunately when accessing the SMB share via windows, the was nothing there. Als the free space for the /movies share in Radarr is only a few GB left (since it seems like its only looking at the installation allocated storage)

Why isn't the movie showing up in the SMB share via Windows?
Why isn't Radarr showing the allocated SMB available space?
Where might I have gone wrong in this?

Thanks in advance!


Re: YAMS not writing to SMB share

Posted: Fri Nov 29, 2024 5:35 pm
by rogs

Hey @jarik!

It looks like your mount didn’t work. Before installing YAMS, make sure SMB is functioning properly.

Let’s set YAMS aside for now. Check if you can access the files shared in your SMB share and let me know how it goes.

Cheers!

Roger.


Re: YAMS not writing to SMB share

Posted: Fri Nov 29, 2024 7:49 pm
by jarik

Thank you for your quick reply!

The SMB share is at least coming over to the Ubuntu VM. I can read and write from it to the share, from both windows, ubuntu and another LXC container in Proxmox.

What would be the best to check next, and how to check it?

Thanks!


Re: YAMS not writing to SMB share

Posted: Fri Nov 29, 2024 8:09 pm
by rogs

So you can write on /mnt/media in your Ubuntu machine, see it in Windows and vice versa?

If that is correct, the next step is to inspect your .env file. You can check it in /your/install/location/.env.

Verify that the MEDIA_DIRECTORY variable is indeed /mnt/media. If it is, you might have to do a yams restart. What could have happened is that you installed YAMS before the SMB was ready, so it kept pointing to the old location before the mount was there.

Cheers!

Roger.


Re: YAMS not writing to SMB share

Posted: Fri Nov 29, 2024 8:32 pm
by jarik

Yes, that is indeed correct!

I've checked the /.env file, which gives me the following output (VPN settings are also in the file, but not mentioned below):

PUID=1000
PGID=1000
MEDIA_DIRECTORY=/mnt/media
INSTALL_DIRECTORY=/opt/yams
MEDIA_SERVICE=plex

So it's indeed pointing at the right directory.

I've did the yams restart but this doesn't change anything unfortunately...

I don't know if it's noteworthy, but when trying to add a root folder to Radarr, I see that the /mnt folder is available to select, but empty (so no /mnt/media findable in Radarr root folder). Furthermore the /downloads folder in this menu, contains 'The Godfather.mkv' file.


Re: YAMS not writing to SMB share

Posted: Sat Nov 30, 2024 12:21 am
by rogs

Oh, so your problem is in Radarr/Sonarr itself!

You need to add your root folder just as the documentation tells you, /movies/ for Radarr and /tv/ for Sonarr. Those directories point to /mnt/media in your local OS, that's how Docker volumes work, you can see the setting here:

https://gitlab.com/rogs/yams/-/blob/mas ... =heads#L62


Re: YAMS not writing to SMB share

Posted: Sat Nov 30, 2024 12:39 pm
by jarik

Thanks for guiding me in this direction!

Those are the paths I've added to Radarr and Sonarr

Image

It seems to still be only seeing some space from the installation partition, but no free space from the (almost empty) mounted SMB share


Re: YAMS not writing to SMB share

Posted: Sat Nov 30, 2024 1:01 pm
by rogs

Hmmm... There's definitely something wrong on your mount point. I'm guessing you still can't see the movies in your SMB share, right?

I have the same exact setup (SMB share mounted in the OS, YAMS pointing to the SMB share mountpoint and had no issues).

If you can, join the Matrix Space or Discord Channel and we can discuss more with all the community. There might be something I'm missing.

Cheers!

Roger.


Re: YAMS not writing to SMB share

Posted: Mon Dec 02, 2024 7:25 pm
by jarik

Hi Roger,

thank you for pointing me in the right direction again!
After a bit of tinkering, I created a new VM and tried to set it up again. Taking extra notice in the mountpoint.
Now I'm able to see the content of this folder inside Radarr, so it seems to be going in the right direction!

Thank you so much!


Re: YAMS not writing to SMB share

Posted: Mon Dec 02, 2024 7:27 pm
by rogs

Ok, sounds good! I'll mark the issue as solved, who knows why it failed lol.

Thank you for coming back to update :D

Cheers!

Roger.