The issue is due to a conflict with turnkey server and the git.py module. 
 This needs to be disabled once the upgrade has been done, you may have a 
script called upgrade-web2py in the root users home folder which should fix 
this, but if not I have included the contents of the script below.


#!/bin/sh -ex


dl() {

    [ "$FAB_HTTP_PROXY" ] && PROXY="--proxy $FAB_HTTP_PROXY"

    cd $2; curl -L -f -O $PROXY $1; cd -

}


SRC=/usr/local/src

W2PPASS=turnkey

W2PROOT=/var/www/web2py


# download and unpack web2py

dl http://www.web2py.com/examples/static/web2py_src.zip $SRC

unzip $SRC/web2py_src.zip -d $(dirname $W2PROOT)

rm $SRC/web2py_src.zip

chown -R www-data:www-data $W2PROOT


# copy wsgihandler to web2py root

cp $W2PROOT/handlers/wsgihandler.py $W2PROOT/wsgihandler.py


# workaround turnkey-pylib git.py conflict

CONF=$W2PROOT/applications/admin/controllers/default.py

ERR="disabled git import due to turnkey-pylib conflict"

sed -i "s|import git|# import git\n    raise ImportError('$ERR')|" $CONF


# create web2py admin interface password

/usr/lib/inithooks/bin/web2py.py --pass=$W2PPASS


# configure apache

a2dissite 000-default

a2ensite web2py

a2enmod rewrite

On Thursday, February 4, 2016 at 1:19:58 PM UTC-7, xmarx wrote:
>
> i install web2py on hub.turnkeylinux.org. web2py version is 2.12.3. when 
> i upgrade web2py application admin gives an error but i can't see error 
> page. from then, i can't do anything with web2py admin interface. i message 
> to turnkeylinux support center but they haven't reply yet. so i have few 
> questions. some of them are not about web2py, but if you help, i will be 
> glad you.
>
> 1. how can access server via ftp. so able to install up to date web2py by 
> hand.
> 2. how can i display turnkey servers on my amazon aws account.
>
>
>

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to