Code Monkey home page Code Monkey logo

Comments (52)

TechPerplexed avatar TechPerplexed commented on May 14, 2024

The folder you need to add is /Media/etc - not your actual mount location. Is that what you tried?

from gooby.

pmscloudeu avatar pmscloudeu commented on May 14, 2024

Yes, the folder I am trying to add is /Media/TV.

from gooby.

TechPerplexed avatar TechPerplexed commented on May 14, 2024

What version of Gooby are you running? You might try to uninstall Sonarr (no need to delete user data), run a system clean from the menu (option E - C), then reinstall it again... hopefully that will sort your permission issue.

from gooby.

pmscloudeu avatar pmscloudeu commented on May 14, 2024

I followed all steps you mentioned above and still receive the same error :(

Also installed the latest version of Gooby, following the steps mentioned above with the same result.

sonarr

from gooby.

TechPerplexed avatar TechPerplexed commented on May 14, 2024

Hmm, very strange... is Radarr working all right for you? You could try this:

sudo chown -R $USER:$USER /media/Google

to see if that gives your user write permissions...

from gooby.

bdschuster avatar bdschuster commented on May 14, 2024

I can confirm the same issue. I imported my old config, and tried to change the root directory, same issue. Tried command above and the folders are still owned by root:root. Anyway to make Sonarr run as root?

from gooby.

TechPerplexed avatar TechPerplexed commented on May 14, 2024

No, containers can't run as root unfortunately and I can't reproduce the issue myself.

What do you mean by you imported your old config? What version of Sonarr are you using? Is Radarr working all right?

from gooby.

bdschuster avatar bdschuster commented on May 14, 2024

Sorry, imported my old DB (sonarr.db). I'm using Sonarr Beta Version 3.0.0.266. But it appears the user above (from the picture) is using Sonarr Stable, so it doesn't appear to be a version issue. Now mine doesn't appear as blatenly as his does, mine actually doesn't say anything, when I attempt to, add a new series, and I click "add a new path" under root folder, i browse to the Media folder, then TVShows, then hit ok, my root folder goes back to an old path, and it doesn't add the root folder. No indication of any errors, but when I go to the log file, i see:
18-11-10 14:49:17.4|Warn|SonarrErrorPipeline|Invalid request Validation failed:
-- Folder is not writable by user abc
I have not tried Radarr. I will install now and let you know. Thanks.

from gooby.

TechPerplexed avatar TechPerplexed commented on May 14, 2024

Thanks, I just tried it on a fresh installation and it's working fine... so I'm wondering if there is something left in the old database file of yours that still points to the old (non existing) location or something... Just for the heck of it could you try a fresh installation of Sonarr and see if the same happens?

from gooby.

bdschuster avatar bdschuster commented on May 14, 2024

Treid a fresh install, even did a system cleanup before reinstalling. Went to add a series, same thing.
Add series screen:
image
Browsed to the folder:
image
After Clicking OK, still blank:
image
Events:
image

Now I did attempt Radarr while I did this as well, and was able to add a Movie with no issues, and no errors in logs.

from gooby.

TechPerplexed avatar TechPerplexed commented on May 14, 2024

If you type id youruser, what are the values given?
E.g. uid=1000(youruser) gid=1000(youruser)

Then when you type nano /var/local/Gooby/Docker/.env

Can you confirm that those values match, e.g.

USERID=1000
GROUPID=1000

from gooby.

bdschuster avatar bdschuster commented on May 14, 2024

id schuster
uid=1000(schuster) gid=1000(schuster) groups=1000(schuster),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),108(lxd),999(docker)

###########################

Environment variables

for Gooby v2.0.3

###########################

HOME=/home/schuster
USERID=1000
GROUPID=1000
IP=
TIMEZONE=Etc/UTC
CONFIGS=/var/local/Gooby
DOWNLOADS=/home/schuster/Downloads
GOOGLE=/media/Google
MYDOMAIN=
MYEMAIL=
MEDIA=/media/Google
TV=/media/Google/TV << This is the only thing i see that "may" be an issue, my folder is "media/Google/TVShows"
MOVIES=/media/Google/Movies << This is correct
RCLONETARGET=Gdrive
ORGMENU=menu
PLEXCLAIM=-

Do you think that could be causing my issue?

I removed IP, domain, and email for security reasons.

from gooby.

TechPerplexed avatar TechPerplexed commented on May 14, 2024

It shouldn't make a difference (my setup is exactly the same)... in fact I don't see anything odd (I assume you edited out your private information such as IP, domain etc).

To rule out any permission issues, please run

sudo chown -R $USER:$USER /var/local/Gooby

Just to be sure :)

from gooby.

bdschuster avatar bdschuster commented on May 14, 2024

Ran command and rebooted to be safe...same thing.
image

If I were to just try and change the TV variable to "/media/Google/TVShows", would i just reboot for it to take effect? I don't know exactly what the variable does.

Any other ideas? I've used Gooby (well, Gooplex) for a while with no issues, but then i had to move my servers, so i decided to install Gooby, and this is the only issue i'm running into so far.

from gooby.

TechPerplexed avatar TechPerplexed commented on May 14, 2024

Of course you can try it - anything that resolves the issue is worth it!

Sorry you're running into this issue... the only information I can find about it is here: https://forums.sonarr.tv/t/folder-not-writeable-by-user-abc/14072/9
But we've already done all that - all the permissions are correct and "it should just work"... except it doesn't!

from gooby.

bdschuster avatar bdschuster commented on May 14, 2024

How would I make that variable active? Just reboot?

from gooby.

TechPerplexed avatar TechPerplexed commented on May 14, 2024

You don't need to reboot, try this instead:

cd /var/local/Gooby/Docker
docker stop sonarr
/usr/local/bin/docker-compose up -d --no-deps --build sonarr

That should rebuild your Sonarr... hopefully sort the problem...

EDIT: Removed one line - that one you should NOT run because you'd be rebuilding with the old values... duh :)

from gooby.

bdschuster avatar bdschuster commented on May 14, 2024

Same thing :-(

from gooby.

TechPerplexed avatar TechPerplexed commented on May 14, 2024

Waaaaaaaaaaaa, I was afraid of that, but it was worth a try....

Oof I'm not sure what could be your problem... especially since Radarr is working just fine. What happens when you remove Sonarr including the user settings, then install the old version right from scratch? I know that the OP mentioned a problem with that one... but they haven't been back to report any changes so it might be worth a try...

from gooby.

TechPerplexed avatar TechPerplexed commented on May 14, 2024

There is one more thing for you to try - I'm in the final stages of testing a new version with MergerFS built in (this is to prevent Google API bans and streamlines the process more). I would recommend you only run this if your system is not absolutely vital to you.

I have run several tests and it seems stable to me... but... well, just a word of caution that's all.

Run the following:

sudo rm -r /opt/Gooby
sudo git clone -b param https://github.com/TechPerplexed/Gooby /opt/Gooby
sudo chmod +x -R /opt/Gooby/install
sudo chmod +x -R /opt/Gooby/menus
sudo chmod +x -R /opt/Gooby/scripts/cron
sudo rsync -a /opt/Gooby/install/gooby /bin
sudo chmod 755 /bin/gooby

Then uninstall Rclone and install it again (you'll get a few more options).

Please don't run a Gooby upgrade or system cleanup until this version goes live (hopefully early next week), as it would revert you back to the old version of Gooby... all other menu options are fine to use though.

That will rule out any permission issues with the mount itself too.

from gooby.

bdschuster avatar bdschuster commented on May 14, 2024

ok, before i try that, i'm going to try one thing that may (or may not) work. I'm going to mount the gdrive using the -uid and -gid arguments to have them mount as my user "schuster" and see if that works, as they are being mounted as root right now.

from gooby.

bdschuster avatar bdschuster commented on May 14, 2024

ok, so now this is driving me crazy. I added
--gid 1000 --uid 1000
--umask 0
To the rclone service, and it mounted as that user "schuster" and has 777 permissions, and bashed into the sonarr container after restarting it, and it as well, has user "abc" as the owner, and 777 permissions. Also went into the Media/TVShows directory and created a folder with no issues. I'm so confused on what's going on here.

from gooby.

bdschuster avatar bdschuster commented on May 14, 2024

So i did what you suggested and I get this (see errors in bold):
Confirm that this is what you named your mount: Gdrive

What is your media folder in Gdrive? (leave empty for root):

mkdir: missing operand
Try 'mkdir --help' for more information.
mv: missing destination file operand after '/home/schuster/Downloads'
Try 'mv --help' for more information.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 15 0 15 0 0 10 0 --:--:-- 0:00:01 --:--:-- 10
done
Created symlink /etc/systemd/system/multi-user.target.wants/gooby.service → /etc/systemd/system/gooby.service.
Created symlink /etc/systemd/system/gooby.service.wants/gooby-rclone.service → /etc/systemd/system/gooby-rclone.service.
Created symlink /etc/systemd/system/gooby.service.wants/gooby-find.service → /etc/systemd/system/gooby-find.service.
Created symlink /etc/systemd/system/gooby.service.wants/mnt-google.mount → /etc/systemd/system/mnt-google.mount.

Done!

from gooby.

bdschuster avatar bdschuster commented on May 14, 2024

FYI, this server is being setup from scratch, so it's not excacly live yet, so this server can be wiped if you need me to. Thanks for everything so far.

from gooby.

TechPerplexed avatar TechPerplexed commented on May 14, 2024

Ok, if you're setting up the server from scratch, install the "regular" Gooby first:

sudo wget http://bit.ly/GetGooby -O /tmp/install.sh && sudo bash /tmp/install.sh

Then, immediately afterwards (so even before you type "gooby") switch to the new branch by typing those commands as mentioned in the previous message.

Then go the menu by typing "gooby" and follow all the instructions...

And yes you just got promoted as a beta tester haha!

from gooby.

bdschuster avatar bdschuster commented on May 14, 2024

lol...thanks...and doing this now...won't take long at all...oh, and just an FYI, it doesn't appear your initialization script (on the old one, can't speak for the beta one yet) doesn't appear to install any unzip or 7z...so when installing rclone, or anything for that matter, it fails because it can't find an unzip program. I uinstalled unzip and everything worked as expected.

from gooby.

TechPerplexed avatar TechPerplexed commented on May 14, 2024

Unzip is installed when you start from scratch :) So yeah that is a vital step... we're bypassing the system right now heh.

Question: when you setup the system, do you have any "unique" settings such as a custom user path or do you create your user though Gooby from root?

from gooby.

bdschuster avatar bdschuster commented on May 14, 2024

it was from scratch on the currect version (non-beta), and it didn't install...hmmm...no custom user paths, but it's Ubuntu 18.04.1 and i created the user from the install of Ubuntu, not root since root is dsiabled by default in Ubuntu, so gooby didn't ask me for a user. I could create a password for root, after install, and then login as root, and create the user when it asks if you think that will help. I just reinstalled Ubuntu, so let me know how you would like me to proceed before installing gooby.

from gooby.

TechPerplexed avatar TechPerplexed commented on May 14, 2024

No it's fine, I just asked because Gooby takes care of the user creation process if someone runs it from root. If you are already logged in as a user, it won't ask you to create one.

What provider do you use? And you said it didn't install, what error do you get, still the same?

from gooby.

bdschuster avatar bdschuster commented on May 14, 2024

I didn't get any error during install (unless i wasn't paying attention), i just got an error when i went to install rclone, it said that it needed unzip or 7z installed. so that's what i did and it worked..lol

from gooby.

TechPerplexed avatar TechPerplexed commented on May 14, 2024

Gotcha :) Well if you don't mind, please wipe/rebuild your server and reinstall Gooby - then switch to the new branch - then install Rclone... very curious what you report back :) (hopefully victory)

from gooby.

bdschuster avatar bdschuster commented on May 14, 2024

already on it...will let you know shortly

from gooby.

bdschuster avatar bdschuster commented on May 14, 2024

sooo...First off, unzip didn't install again, so the first install of rclone failed. Installed unzip, reran, worked and installed. I'm assuming you are not mounting to /Media/Google any longer? Cause it's only mounted on /mnt/rclone now. And i tried both Sonarr and Sonarr beta, neither container has gdrive mounted anywhere, so my folders are not there. If you would like to login to my server, i could let you login.

from gooby.

TechPerplexed avatar TechPerplexed commented on May 14, 2024

Unzip: how weird - it's supposed to install! 😝

Mount location: you are correct, it didn't make sense the way it was setup in the past. Now all mounts are located in /mnt. The user should not notice this :) But technically, your mount to use is now /mnt/google (please verify that exists and that it has a folder Downloads in addition to what you have on your server). Just ls /mnt/google should do the trick but you know that of course :)

Location from within Sonarr/Radarr: this should still be /Media - provided your mount is working correctly you should see your content there!

from gooby.

bdschuster avatar bdschuster commented on May 14, 2024

so /mnt/google doesn't have anything in it, but /mnt/rclone has my files in it. So if the containers are looking back to /mnt/google for /Media, that explains why there is nothing in there.

from gooby.

TechPerplexed avatar TechPerplexed commented on May 14, 2024

Right, so what mounts do you see in /mnt?

And what do you see when you type
sudo systemctl status mnt-google.mount

(you can escape that with Ctrl-Z)

from gooby.

bdschuster avatar bdschuster commented on May 14, 2024

ls -ls /mnt/
total 8
4 drwxr-xr-x 2 schuster schuster 4096 Nov 10 13:37 google
0 drwxr-xr-x 1 schuster schuster 0 Nov 10 13:42 rclone
4 drwxr-xr-x 3 schuster schuster 4096 Nov 10 14:15 uploads

sudo systemctl status mnt-google.mount
● mnt-google.mount - Overlay writable storage on Google mount
Loaded: loaded (/etc/systemd/system/mnt-google.mount; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2018-11-10 13:42:18 CST; 43min ago
Where: /mnt/google
What: ${UPLOADS}:${RCLONEMOUNT}
Process: 30977 ExecMount=/bin/mount ${UPLOADS}:${RCLONEMOUNT} /mnt/google -t fuse.mergerfs -o use_ino,hard_remove,auto_cache,sync_read,allow_other,category.action=all,category.create=ff (code=exited, status=127)

Nov 10 13:42:18 admin systemd[1]: Mounting Overlay writable storage on Google mount...
Nov 10 13:42:18 admin mount[30977]: /bin/sh: 1: mergerfs: not found
Nov 10 13:42:18 admin systemd[1]: mnt-google.mount: Mount process exited, code=exited status=127
Nov 10 13:42:18 admin systemd[1]: mnt-google.mount: Failed with result 'exit-code'.
Nov 10 13:42:18 admin systemd[1]: Failed to mount Overlay writable storage on Google mount.

Looks like mergerfs is not installed?

from gooby.

bdschuster avatar bdschuster commented on May 14, 2024

so, looking at your script to install-rclone, if 18.04 (i have 18.04.1 don't know if that matters), then do "sudo apt-get -y install mergerfs"....when i run that i get:
sudo apt-get -y install mergerfs
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package mergerfs

from gooby.

TechPerplexed avatar TechPerplexed commented on May 14, 2024

Ahhh ok, now THAT should be installed automatically as well - can you install it this way?

Ok, try this:

sudo wget https://github.com/trapexit/mergerfs/releases/download/2.24.2/mergerfs_2.24.2.ubuntu-xenial_amd64.deb -O /tmp/mergerfs.deb
sudo dpkg -i /tmp/mergerfs.deb

Then follow by:

sudo systemctl enable gooby.service gooby-rclone.service gooby-find.service mnt-google.mount
sudo systemctl daemon-reload
sudo systemctl start gooby.service

Thanks for your patience - this is good for me to know too :)

from gooby.

bdschuster avatar bdschuster commented on May 14, 2024

ok, that works, and files are now in /mnt/google....now another piece of information, going back to unzip not installing, i looked at your install script for gooby, if i run manually i get:
schuster@admin:/opt/Gooby/install$ sudo apt-get -y install \

    git \
    fail2ban \
    nano \
    unzip \
    wget \
    curl \
    ufw \
    socat \
    fuse \
    apt-transport-https \
    acl \
    ca-certificates \

Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'apt' instead of 'apt-transport-https'
E: Unable to locate package fail2ban

So the script stops on fail2ban....so it never gets to anything after. Did Ubuntu take a bunch out out of their repository recently?

from gooby.

TechPerplexed avatar TechPerplexed commented on May 14, 2024

Wow that is indeed very strange. I tested this new setup on a Hetzner cheap server - both with 16.04 and 18.04 and neither reported any difficulties.

But yeah this might explain why you are running into so many issues!

from gooby.

bdschuster avatar bdschuster commented on May 14, 2024

also back to Sonarr (stable version)
image

from gooby.

TechPerplexed avatar TechPerplexed commented on May 14, 2024

GAHHHH after all that!!! I'm sorry, I am out of options... for now. It should work yet it doesn't, grr!! Let me do some more research on this!

from gooby.

bdschuster avatar bdschuster commented on May 14, 2024

tell you what. Let me install 16.04.3 and see what happens here. I'll BRB.

from gooby.

TechPerplexed avatar TechPerplexed commented on May 14, 2024

Thanks :) I'm also working on a version that won't halt with missing packages... just saved (but obviously not tested) - let me know if it proceeds!

from gooby.

bdschuster avatar bdschuster commented on May 14, 2024

Soooo....I can tell you that the install went MUCH smoother....all packages installed no issues at all...mounts are all good...everything.....EXCEPT, still getting the folder not writable by abc again :-(
I can confirm from the sonarr container that i can create a file in TVShows as root, but I can't switch to user "abc" in a container to test.

from gooby.

TechPerplexed avatar TechPerplexed commented on May 14, 2024

First of all: thank you so much for being a willing victim here :) I appreciate your patience and extensive testing - when this update goes live, it should benefit everyone.

That said, I'm so sorry you are still having this pesky permission issue! I'll do some research and hoping to come up with an answer - can't let a little abc get us down right? 😆

from gooby.

bdschuster avatar bdschuster commented on May 14, 2024

lol..no worries...it's driving me crazy as well...I am a IT Service Manager fror a Cloud company, so this is going to continue to drive me crazy. Are you seriously not having the same problem at all? Are you using a team drive?

from gooby.

TechPerplexed avatar TechPerplexed commented on May 14, 2024

Oh it's driving me crazy too! No I don't have the problem, and I know several people who run the server on the "new Gooby" (not the new new as you have been testing) without any issues whatsoever. I just have a regular Gsuite account, no team drive.

What is even weirder: your Radarr works fine. Those two packages are basically clones of each other! You'd expect if one fails, the other would too.

I also tested with a free Google account and a few movies/series because I don't run my libraries on the root of Gdrive, I use a folder /Media that contains my movies, tv shows etc. But no matter what I try to break, I'm unable to.

There isn't much information available on the Internet either, only thing I could find was this: https://forums.sonarr.tv/t/folder-not-writeable-by-user-abc/14072/9 - yeah, not altogether helpful and just confirms all your settings/permissions are fine.

Let's race each other in trying to find a solution 🤣

Have a great weekend, cheers, Sophia

from gooby.

bdschuster avatar bdschuster commented on May 14, 2024

OMFG! I just figured it out, and it wasn't the scripts at all! I'm so angry it was so stupid, and it's all Sonarr's fault! lol
Soooo...Sonarr and Radarr send a text file called "sonarr_write_test.txt"/"radarr_write_test.txt" to verify write, then removes the file. At one point. not sure when, the file wasn't removed after it was created, and the permissions on it were for an old API email i used when testing out Plexguide. (I love yours a lot better, not a fan of PGBlitz, it caused a lot of bandwidth on Sonarr/Radarr scans because it had to download the file then re-upload it). Anwyays, I deleted the file using drive WebGUI, and like magic, I can add the path to Sonarr again! I'm so angry and happy at the same time.

from gooby.

bdschuster avatar bdschuster commented on May 14, 2024

I had this happen one time years ago on physical disks...like 3-4 years ago...and i don't know why i thought of it...but i'm glad i did.

from gooby.

TechPerplexed avatar TechPerplexed commented on May 14, 2024

Hahahaha I'm so happy you found the culprit!!! Normally I would have given you 3 slaps with a wet noodle, but since you have been SO helpful in testing my new setup, I'll give you some virtual flowers instead 🌹 🌷 🌹

I'll close this thread now - thanks for reporting back!

from gooby.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.