Luctia / ezarr

Ezarr aims to make it as easy as possible to setup an entire Servarr/Jackett/BitTorrent/Usenet/PleX/Jellyfin mediacenter stack using Docker
MIT License
730 stars 81 forks source link

Sonarr can't find root folder #19

Closed cristiandiiorio closed 1 year ago

cristiandiiorio commented 1 year ago

I've followed the readme guide but I have encountered problems when it says :

Root folder: /data/media/ and then tv, movies or music depending on service

My sonarr can't find any folders inside /data/media so it doesn't let me use that as a root folder. (My issue is similar to #14)

Luctia commented 1 year ago

What did you do to set up your environment? Did you use the CLI or the manual method?

mccxiv commented 1 year ago

Having the same issue, Ubuntu 22.04 fresh install, used the CLI install

From the logs:

2023-01-15 00:23:41.8|Warn|SonarrErrorPipeline|Invalid request Validation failed: -- Path: Folder is not writable by user abc

ds45gt

cristiandiiorio commented 1 year ago

What did you do to set up your environment? Did you use the CLI or the manual method?

I had tried the manual install. Now I've tried the CLI install but I've encountered the same bug. Sorry if my answer is late.

Luctia commented 1 year ago

@cristiandiiorio can you verify that you ran the manual .sh script as superuser?

cristiandiiorio commented 1 year ago

@cristiandiiorio can you verify that you ran the manual .sh script as superuser?

Yes

Luctia commented 1 year ago

I've found the cause, I think.

The os.system function in Python uses shell instead of bash, which doesn't understand the {media,torrents} structure that bash understands. On top of that, using && makes it so the second part of the command will not be executed if the first part of the command errors out, which means the CLI doesn't work if you tried the manual version first (as useradd will exit with an error (code 9) if the user already exists). Working on a PR to fix that now.

Luctia commented 1 year ago

@cristiandiiorio and @mccxiv, can you try with the new version?

Luctia commented 1 year ago

Assuming this is fixed for now.