[RESOLVED] Cherokee admin errors

Problems with packages? Post here, using [tags] of the package name.

[RESOLVED] Cherokee admin errors

Postby floydbloke » Tue Oct 11, 2011 6:55 am

I have installed Cherokee (as per the wiki) using
$this->bbcode_second_pass_code('', 'pacman -Sy cherokee rrdtool python')

(but not PHP)

I can successfully start a webserver but when I try to access the admin interface using:
$this->bbcode_second_pass_code('', 'cherokee-admin -b -x')
after entering the username (admin) and the temporary password my browser returns a 503 - Service Unavailable message and the console throws these errors:
$this->bbcode_second_pass_code('', ' File "/usr/share/cherokee/admin/server.py", line 65
print _("Server %(version)s running.. PID=%(pid)d Port=%(scgi_port)s") % (locals())
^
SyntaxError: invalid syntax
File "/usr/share/cherokee/admin/server.py", line 65
print _("Server %(version)s running.. PID=%(pid)d Port=%(scgi_port)s") % (locals())
^
SyntaxError: invalid syntax
File "/usr/share/cherokee/admin/server.py", line 65
print _("Server %(version)s running.. PID=%(pid)d Port=%(scgi_port)s") % (locals())
^
SyntaxError: invalid syntax
File "/usr/share/cherokee/admin/server.py", line 65
print _("Server %(version)s running.. PID=%(pid)d Port=%(scgi_port)s") % (locals())
^
SyntaxError: invalid syntax
File "/usr/share/cherokee/admin/server.py", line 65
print _("Server %(version)s running.. PID=%(pid)d Port=%(scgi_port)s") % (locals())
^
SyntaxError: invalid syntax')

Any suggestions on where I might be going wrong please?
floydbloke
 
Posts: 15
Joined: Fri Mar 04, 2011 12:25 am

Re: Cherokee admin errors

Postby pepedog » Tue Oct 11, 2011 9:01 am

Probably a python2/python3 problem.
Can you (just to try) create a link from /usr/bin/python to /usr/bin/python2
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Cherokee admin errors

Postby floydbloke » Tue Oct 11, 2011 10:14 pm

Thanks pepedog, will try that tonight.

Sorry, I'm a Linux noob, is this the correct syntax

$this->bbcode_second_pass_code('', 'ln -s /usr/bin/python2 /usr/bin/python')
floydbloke
 
Posts: 15
Joined: Fri Mar 04, 2011 12:25 am

Re: Cherokee admin errors

Postby pepedog » Tue Oct 11, 2011 10:33 pm

looks right,
man ln
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Cherokee admin errors

Postby floydbloke » Wed Oct 12, 2011 8:47 pm

Tried your suggestion, no joy, same errors.

Given I'm also suffering all sorts of issues with automount now is probably a good time to re-build it from scratch.
I suspect all my amateurish faffing about and guesswork could well have left all sorts of gremlins behind that are contributing to my problems.
floydbloke
 
Posts: 15
Joined: Fri Mar 04, 2011 12:25 am

Re: Cherokee admin errors

Postby floydbloke » Fri Oct 14, 2011 10:39 pm

SOLVED:
Rebuilt plug from scratch, installed Cherokee as above. Received error;Couldn't find python.
I had read that Cherokee relies on Python 2.x, which wasn't to be found anywhere in /usr/bin
Took a guess at installing Python2 by
$this->bbcode_second_pass_code('', 'pacman -S python2')
Seemed to download and install ok
Tried again with
$this->bbcode_second_pass_code('', 'cherokee-admin -b -x')
No errors this time and it loaded the config interface in the browsers after entering credentials. Have since managed to build and run a simple static webserver.
floydbloke
 
Posts: 15
Joined: Fri Mar 04, 2011 12:25 am


Return to Packages

Who is online

Users browsing this forum: No registered users and 10 guests