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
   


On Friday, August 23, 2019 at 1:18:18 AM UTC-7, Valdeck Rowe wrote:
>
> 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" 
> <https://vgr2.devassist.me/admin/default/edit/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:
>>
>>
>>
>> On Tuesday, August 20, 2019 at 8:13:16 PM UTC-7, Valdeck Rowe wrote:
>>>
>>> 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
>>>
>>
>> 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
>>
>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/eff16488-1ea3-4d4d-a753-6c911ddafed6%40googlegroups.com.

Reply via email to