admin disabled because unable to access password file

3,826 views
Skip to first unread message

annet

unread,
Dec 28, 2009, 4:04:03 AM12/28/09
to web2py-users
When I access my web2py application at: https://admin.domain.com/welcome/default/index
and navigate to the administrative interface, I get the following
error:

admin disabled because unable to access password file


This is how I started web2py:


[me@webxxx ~]$ cd webapps/apachewsgi/web2py
[me@webxxx web2py]$ python2.5 web2py.py
web2py Enterprise Web Framework
Created by Massimo Di Pierro, Copyright 2007-2010
Version 1.74.4 (2009-12-23 10:12:11)
Database drivers available: SQLite3, MySQL, PostgreSQL
Starting cron...
choose a password:xxxxxxxx
please visit:
http://127.0.0.1:8000
use "kill -SIGTERM xxxxx" to shutdown the web2py server


I then opened a second terminal appliaction and did:


[me@webxxx ~]$ cd webapps/apachewsgi/web2py
[me@webxxx web2py]$ kill -SIGTERM xxxxx


According to the instructions in this post:

http://forum.webfaction.com/viewtopic.php?pid=8844#p8844

The password is stored in the file: 'parameters_NNNN.py'


That file, indeed, resides in the web2py folder: parameters_8000.py.
Why is web2py unable to access it then. Permissions are set to: -rw-rw-
r--.


Kind regards,

Annet.

Thadeus Burgess

unread,
Dec 28, 2009, 4:21:10 AM12/28/09
to web...@googlegroups.com
https runs on port 443.

rename the file to

parameters_443.py

-Thadeus

> --
>
> You received this message because you are subscribed to the Google Groups "web2py-users" group.
> To post to this group, send email to web...@googlegroups.com.
> To unsubscribe from this group, send email to web2py+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/web2py?hl=en.
>
>
>

annet

unread,
Dec 28, 2009, 5:04:59 AM12/28/09
to web2py-users
Thadeus,

Thanks for your reply, it pointed me in the right direction. I had to
change the file name to parameters_80.py to solve the problem.

I find all the port stuff rather confusing. In the httpd.conf file:

Listen is set to: 32043

NameVirtualHost and VirtualHost are set to: 127.0.0.1:8000


.. and, when web2py start it creates a file called 'parameters_8000.py
which I have to rename 'parameters_80.py' to be able to use the web-
based administrative interface.

Why?


Kind regards,

Annet.

Thadeus Burgess

unread,
Dec 28, 2009, 5:15:06 AM12/28/09
to web...@googlegroups.com
The number in the parameters file maps to the port that web2py is listening on.

If you are using WSGI, you should never have to start web2py
manually... since apache executes it for you, but I have no experience
with webfaction.

-Thadeus

Reply all
Reply to author
Forward
0 new messages