Couch Potato Permissions

Status
Not open for further replies.

Supa

Patron
Joined
Jan 10, 2014
Messages
204
fUu74g2.png
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949

Supa

Patron
Joined
Jan 10, 2014
Messages
204
It's most likely something on my end probably. I just don't know what.

Literally all I had to do for sickrage was

chown -R guest:guest /usr/pbi/sickrage-amd64/share/sickrage

although I think I did add the guest user to it as well.

Any idea how to revert the sysrc command? What's the default ?
 
Last edited:

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Worked for me, though you definitely need to delete the /var/run/couchpotato directory if you've started couchpotato before switching the user.
I'd try again in a new jail, maybe without starting anything until you've switched the user. Also make sure to chown the share/couchpotato/* directory so couchpotato can update itself.
 

Supa

Patron
Joined
Jan 10, 2014
Messages
204
I mean it's running now although not sure why I need "onestatus".
dSz5BEm.png



But I still have permission errors writing to the /media/downloads/Movies folder.

SgsZ0tC.png


Might need to get someone to remote login and look at it.. cuz i have no idea.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I mean it's running now although not sure why I need "onestatus".
dSz5BEm.png



But I still have permission errors writing to the /media/downloads/Movies folder.

SgsZ0tC.png


Might need to get someone to remote login and look at it.. cuz i have no idea.
you need one status if you didn't enable it from the plugins > installed tab, which would add 'couchpotato_enable=YES' to /etc/rc.conf

I'm perplexed why 'guest' can't write to a directory it owns. Does that "+" mean anything? I only know UNIX permissions so maybe it's related to windows stuff I know nothing about?
 

Supa

Patron
Joined
Jan 10, 2014
Messages
204
No idea about the "+".

All I know is someone must know what's up. Would you be willing to remote in a look at it? Everything else is fine.. it's mainly just this plugin. If only sickbeard supported Movies.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
continuing the conversation from reddit, what user&UID is transmission running as?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I think guest (1001) . Should I change that back to transmission (921)
depends on the ownership of the folder you are telling it to download to from couchpotato
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
can you show a screenshot of the error in transmission, I just want to verify what folder it's having issues with
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
This actually might be a problem. The permissions in the jail are different from when I just look from the general shell.

roZWTQj.png
I brought this issue up before. It looks like the user 'guest' isn't mapped to UID 1001 in the jail.
What UID is the 'guest' user mapped to in the couchpotato_1 jail?
ls -l /path/to/jail/var/db/couchpotato (run from the freenas host)
 

Supa

Patron
Joined
Jan 10, 2014
Messages
204
Yeah sorry I've reinstalled the plugin so many times. Everytime I do that I can't turn on the plugin. So I was seeing how it behaved without setting the user.

But yeah still getting the same issue.
 
Last edited:

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
hey Supa, this is a reply to your reddit comment..
"I mean I'm pretty sure it is. It starts downloading and then the log spams the "unable to write/Permission Denied" until it finishes and then folder ends up being empty."
If the error is showing in transmission, what you are saying isn't true, and my hypothesis that the file isn't even being started to be downloaded is correct.

Since you are telling transmission to write to /media/downloads/Movies, and it's owned by 1001/1001 with 775 permissions, then either...
  • that folder needs to be world writeable (777)
  • or, you need to change what user transmission runs as to a user with UID 1001
  • or, you need to add transmissions user to a group with GID 1001, and make sure the folder is at least group writable 775
 

Supa

Patron
Joined
Jan 10, 2014
Messages
204
hey Supa, this is a reply to your reddit comment..
"I mean I'm pretty sure it is. It starts downloading and then the log spams the "unable to write/Permission Denied" until it finishes and then folder ends up being empty."
If the error is showing in transmission, what you are saying isn't true, and my hypothesis that the file isn't even being started to be downloaded is correct.

Since you are telling transmission to write to /media/downloads/Movies, and it's owned by 1001/1001 with 775 permissions, then either...
  • that folder needs to be world writeable (777)
  • or, you need to change what user transmission runs as to a user with UID 1001
  • or, you need to add transmissions user to a group with GID 1001, and make sure the folder is at least group writable 775


So all the permission errors show up in Couchpotato.. not transmission.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
So all the permission errors show up in Couchpotato.. not transmission.
That's not what I heard earlier from reddit
"It's once the torrent gets sent to transmission and tries writing the file."​

You never showed me a screenshot of the error like I asked earlier so I can go only go off your descriptions.
 
Status
Not open for further replies.
Top