Internal Server Error after attempting to upgrade web2py to 2.18.5 via the Admin interface

51 views
Skip to first unread message

Valdeck Rowe

unread,
Aug 20, 2019, 11:13:16 PM8/20/19
to web2py-users
Hi,

This had been a working installation running a few separate apps under  a single web2py instance.

First I clicked the upgrade button from within the admin interface hoping it would go as smoothly as it usually does on my local PC and restarted the server.

Instantly started getting Internal Server Error whenever I try to access any application running on the web2py instance.

I then tried manually overwriting the web2py folder with files from the latest stable version. No change.

Then I tried renaming the  routes.py file and the apps become accessible. If I change the name back, even if the contents are fully commented out, the Internal Server Error remains.

The only issue with this is that the main app on that server is set as the default in the routes.py file and therefore does not run properly due to URL configuration used. 

Here are the contents of the routes.py file:
routers = dict(
    BASE  
= dict(
    default_application
='mainapp',
    domains
= {
        'mainapp.me': 'mainapp',
            'www.mainapp.me': 'mainapp',
            '45.45.45.45/other': 'other',
            '45.45.45.45/another': 'another',
    },
   
),
)

Any help is appreciated as its been a couple of days and I've made little progress.

Thanks in advance.

Valdeck

Dave S

unread,
Aug 21, 2019, 12:02:32 AM8/21/19
to web2py-users

Are there tickets (in mainapp/errors)?  Or log entries?  A stack trace from somewhere would be nice,  but if you're not using Rocket as the front end there might not be any console messages, and I know from personal experience that uwsgi doesn't log any details.

/dps

Valdeck Rowe

unread,
Aug 22, 2019, 3:47:26 PM8/22/19
to web2py-users
Only tickets from mainapp.are from months ago.

There are also no logs. 

I'm using uwsgi nginx as the front end.

Valdeck Rowe

unread,
Aug 23, 2019, 4:18:18 AM8/23/19
to web2py-users
Did however find a ticket in the admin app from when I tried the upgrade.

Traeback:
1.
2.
3.
4.
5.
6.
7.
Traceback (most recent call last):
File "/home/vgr2/myapp/gluon/restricted.py", line 227, in restricted
etype, evalue, tb = sys.exc_info()
File "/home/vgr2/myapp/applications/admin/controllers/default.py", line 18, in <module>
from gluon._compat import iteritems, PY2, pickle, xrange, urlopen, to_bytes, StringIO, to_native
ImportError: cannot import name urlopen


On Tuesday, August 20, 2019 at 11:02:32 PM UTC-5, Dave S wrote:

Ben Lawrence

unread,
Aug 23, 2019, 10:45:19 AM8/23/19
to web2py-users
Valdeck, I had a similar error.. could you try again?
    cd web2py
    git init
    git remote add origin https://github.com/web2py/web2py.git
    rm -rf gluon/packages/dal
    rm -rf gluon/packages/yatl
    git fetch --all
    git reset --hard origin/master
    git submodule update --init --recursive
    cp handlers/wsgihandler.py .
    reboot now
Reply all
Reply to author
Forward
0 new messages