Navigation to /appadmin returns "invalid function (default/index)"

32 views
Skip to first unread message

E T Bear

unread,
Jun 25, 2020, 11:53:53 PM6/25/20
to web2py-users
Running on an Ubuntu 16.04 LTS system, under Nginx server with WSGI handler wsgihandler.py.  Web2py updated to 2.20.4-stable.  Using a PostgreSQL database.

Suddenly, I can't navigate to /appadmin nor to /admin/..., get errors like  "invalid function (default/index)" remotely over SSL, nor locally.  My own application continues to run well.

Had no such problem before, running for several years.  Not sure when the problem started since I don't visit /admin that often.  On my desktop (running under Rocket) there's no such problem.  I have copied the whole directory structure down from the server for comparison, and it is identical to the version that lets me visit /appadmin on my desktop.

It seems like a routing problem, admin/index never seems to get hit, but my routes.py has not changed (my application is 'myapp' here):

routers = dict(
    BASE = dict(
        default_application='myapp',
    )
)

Any clue or hint for where to look will be greatly appreciated.

Massimo Di Pierro

unread,
Jul 1, 2020, 5:16:55 AM7/1/20
to web2py-users

Massimo Di Pierro

unread,
Jul 1, 2020, 5:19:04 AM7/1/20
to web2py-users
Did you get it from github?
There was a recent change that maybe could have caused this:


Could you please revert it and see if it fixes your problem?

On Thursday, 25 June 2020 16:53:53 UTC-7, E T Bear wrote:

E T Bear

unread,
Jul 5, 2020, 3:52:28 AM7/5/20
to web2py-users
Thanks, but, I didn't get 2.20.4-stable from github, I installed it via the web2py administrative interface (which I can no longer access).  My version of those three files matches the pre-commit version.

The problem persists.  I can access my application, and the Welcome application, but not any admin pages.
Reply all
Reply to author
Forward
0 new messages