CouchPotato not starting

Status
Not open for further replies.

MtK

Patron
Joined
Jun 22, 2013
Messages
471
oh, I created it in FN land...

but then, why doesn't the plugin create it in its own jail if it needs it?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
oh, I created it in FN land...

but then, why doesn't the plugin create it in its own jail if it needs it?

it should.. unless the UID is already taken somehow but I doubt it. Do any other plugins work?
 

MtK

Patron
Joined
Jun 22, 2013
Messages
471
your plugin just created its own jail, so the chances that the UID is taken are slim to none.


and yes, I have 2-3 other plugins working just fine...
 

MtK

Patron
Joined
Jun 22, 2013
Messages
471
and when I tried to adduser:
Code:
pw: group name `media' already exists
adduser: ERROR: There was an error adding user (media).
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
and when I tried to adduser:
Code:
pw: group name `media' already exists
adduser: ERROR: There was an error adding user (media).

hmm, so your jail does have the 'media' group? I wonder if my plugin was able to create the group but not the user. I'm confused why though.

Maybe try creating a plugins jail (with no plugins), then install a plugin on to that jail
 

MtK

Patron
Joined
Jun 22, 2013
Messages
471
the only thing I can think of is the fact that I have a 'media' group in FNLand.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
the only thing I can think of is the fact that I have a 'media' group in FNLand.

I don't see how that would affect the user's in the jail though. Did you try my last suggestion?
 

MtK

Patron
Joined
Jun 22, 2013
Messages
471
well, I changed the 'media' group in FNLand to 'media2' and reinstalled your plugin - it starts.
reinstalled the FN plugin and it doesn't start... :)
 

MtK

Patron
Joined
Jun 22, 2013
Messages
471
Code:
# jexec 9 csh
root@customplugin_1:/ # cat /etc/group | grep media
media2:*:921:mtk
media:*:816:


the groups are shared between the JLand the FNLand...
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Code:
# jexec 9 csh
root@customplugin_1:/ # cat /etc/group | grep media
media2:*:921:mtk
media:*:816:


the groups are shared between the JLand the FNLand...

good to know, thanks for the debugging.
 

MtK

Patron
Joined
Jun 22, 2013
Messages
471
I'll create a bug report when I have the final findings, which will include you plugin's case as well.

deleted both plugins and jails.
reinstalled the FN plugin:
Code:
# jexec 11 csh
root@couchpotato_1:/ # service couchpotato start
Starting couchpotato.
Traceback (most recent call last):
  File "/usr/pbi/couchpotato-amd64/CouchPotato/CouchPotato.py", line 127, in <module>
    l = Loader()
  File "/usr/pbi/couchpotato-amd64/CouchPotato/CouchPotato.py", line 52, in __init__
    os.mkdir(self.log_dir)
OSError: [Errno 13] Permission denied: '/usr/pbi/couchpotato-amd64/data/logs'
 
Traceback (most recent call last):
  File "/usr/pbi/couchpotato-amd64/CouchPotato/CouchPotato.py", line 127, in <module>
    l = Loader()
  File "/usr/pbi/couchpotato-amd64/CouchPotato/CouchPotato.py", line 52, in __init__
    os.mkdir(self.log_dir)
OSError: [Errno 13] Permission denied: '/usr/pbi/couchpotato-amd64/data/logs'
/usr/local/etc/rc.d/couchpotato: WARNING: failed to start couchpotato


/usr/pbi/couchpotato-amd64/data is empty :/
 

MtK

Patron
Joined
Jun 22, 2013
Messages
471
this was solved too.
it was caused because I manually created the 'media' user.
 
Status
Not open for further replies.
Top