Hi, my site have an "internal server error" after upgrade to 1.96.2
Webfaction support say:
Your app is trying to wrote to /dev/urandom which it will never be able to
do:
[pepearaya@web136 apache2]$ tail
/home/pepearaya/logs/user/error_crewcatalyst.log
[Sat Jun 04 01:34:25 2011] [error] [client 127.0.0.1] from globals import
current
[Sat Jun 04 01:34:25 2011] [error] [client 127.0.0.1] File
"/home/pepearaya/webapps/crewcatalyst/web2py/gluon/globals.py", line 21, in
<module>
[Sat Jun 04 01:34:25 2011] [error] [client 127.0.0.1] from html import
xmlescape, TABLE, TR, PRE
[Sat Jun 04 01:34:25 2011] [error] [client 127.0.0.1] File
"/home/pepearaya/webapps/crewcatalyst/web2py/gluon/html.py", line 29, in
<module>
[Sat Jun 04 01:34:25 2011] [error] [client 127.0.0.1] from utils import
web2py_uuid, hmac_hash
[Sat Jun 04 01:34:25 2011] [error] [client 127.0.0.1] File
"/home/pepearaya/webapps/crewcatalyst/web2py/gluon/utils.py", line 98, in
<module>
[Sat Jun 04 01:34:25 2011] [error] [client 127.0.0.1] ctokens =
initialize_urandom()
[Sat Jun 04 01:34:25 2011] [error] [client 127.0.0.1] File
"/home/pepearaya/webapps/crewcatalyst/web2py/gluon/utils.py", line 90, in
initialize_urandom
[Sat Jun 04 01:34:25 2011] [error] [client 127.0.0.1]
open('/dev/urandom','wb').write(''.join(chr(t) for t in ctokens))
[Sat Jun 04 01:34:25 2011] [error] [client 127.0.0.1] IOError: [Errno 13]
Permission denied: '/dev/urandom'
*So, you need to change that line to:
"open('/dev/urandom','r').write(''.join(chr(t) for t in ctokens))"*
*
*
after that change I get this error:
open('/dev/urandom','r').write(''.join(chr(t) for t in ctokens))
[Sat Jun 04 02:12:33 2011] [error] [client 127.0.0.1] IOError: [Errno 9] Bad
file descriptor
any idea of what i can to do?
thanks!