I do not know, could be you have no read access?
Anyway in admin/controllers/default.py there is this code:
try:
_config={}
port=int(request.env.server_port)
restricted(open(apath('../parameters_
%i.py'%port),'r').read(),_config)
if not _config.has_key('password') or not _config['password']:
raise HTTP(200,T('admin disabled because no admin password'))
except Exception: raise HTTP(200,T('admin disabled because unable to
access password file'))
Perhaps you can remove the try:.. except and figure out from the
ticket which line fails. Let me know and we will fix it.
Massimo
On Nov 6, 5:46 pm, pigmej <[EMAIL PROTECTED]> wrote:
> Ok, I set env variable remote_port= 5555, now its always 5555 port.
>
> But still doesn't works ;/ Still the same error
>
> On Nov 7, 12:38 am, pigmej <[EMAIL PROTECTED]> wrote:
>
> > Its changing on every request...
>
> > On Nov 7, 12:27 am, mdipierro <[EMAIL PROTECTED]> wrote:
>
> > > Then your password file needs to be
>
> > > parameters_30379.py
>
> > > Make sure that number does not change every time you start. There must
> > > a cherokee configuration parameter that sets it.
>
> > > On Nov 6, 5:25 pm, pigmej <[EMAIL PROTECTED]> wrote:
>
> > > > remote_addr
> > > > :
> > > > 87.205.37.42
> > > > remote_port
> > > > :
> > > > 30379
>
> > > > On Nov 7, 12:06 am, mdipierro <[EMAIL PROTECTED]> wrote:
>
> > > > > This is the second problem reported about cherokee+fcgi. The other
> > > > > problem was related to problem in getting the remote_addr right.
> > > > > Could you try this url (on your site)
>
> > > > >http://mdp.cti.depaul.edu/examples/simple_examples/status
>
> > > > > and tell us what you get? I am interested in remote_addr and
> > > > > server_port
>
> > > > > Massimo
>
> > > > > On Nov 6, 4:59 pm, pigmej <[EMAIL PROTECTED]> wrote:
>
> > > > > > Hi,
>
> > > > > > I use cherokee for production, and web2py from svn with fcgi.
>
> > > > > > Almost everything works, but admin not ;/
>
> > > > > > it returns error "admin disabled because unable to access password
> > > > > > file", I've created parameters_80.py file, in web2py/ directory.
>
> > > > > > How to fix it?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---