I'm having the same troubles after upgrading to python3 using Apache
with libapache2-mod-wsgi-py3 4.5.17-1 on Ubuntu.
I did delete all session files, and I am using fresh source code of web2py
(R-2.17.2).
I'm running several applications in web2py, and when i restart Apache they
work for a while. Then at some point later, and I haven't figured out what
initiates the problem, I am getting:
Traceback (most recent call last):
File "/home/ubuntu/mnt/web2py/gluon/main.py", line 445, in wsgibase
serve_controller(request, response, session)
File "/home/ubuntu/mnt/web2py/gluon/main.py", line 207, in
serve_controller
raise HTTP(response.status, page, **response.headers)
gluon.http.HTTP: 200 OK
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ubuntu/mnt/web2py/gluon/main.py", line 472, in wsgibase
BaseAdapter.close_all_instances('commit')
File "/home/ubuntu/mnt/web2py/gluon/packages/dal/pydal/connection.py",
line 121, in close_all_instances
db._adapter.close(action)
File "/home/ubuntu/mnt/web2py/gluon/packages/dal/pydal/connection.py",
line 98, in close
if len(pool) < self.pool_size:
TypeError: '<' not supported between instances of 'int' and 'str'
In my apache error log I see this:
[Thu Nov 15 04:02:26.546712 2018] [wsgi:error] [pid 9117] [client
XXX.XXX.XXX.AA:56599] Timeout when reading response headers from daemon
process 'web2pydefault': /home/ubuntu/mnt/web2py/wsgihandler.py
[Thu Nov 15 04:08:52.161152 2018] [wsgi:error] [pid 9111] [client
XXX.XXX.XXX.AB:40713] Timeout when reading response headers from daemon
process 'web2pydefault': /home/ubuntu/mnt/web2py/wsgihandler.py
[Thu Nov 15 04:26:51.746340 2018] [wsgi:error] [pid 8081] [client
XXX.XXX.XXX.AC:2960] Timeout when reading response headers from daemon
process 'web2pydefault': /home/ubuntu/mnt/web2py/wsgihandler.py
[Thu Nov 15 04:38:41.429260 2018] [wsgi:error] [pid 8081] [client
XXX.XXX.XXX.AD:48360] Timeout when reading response headers from daemon
process 'web2pydefault': /home/ubuntu/mnt/web2py/wsgihandler.py
[Thu Nov 15 04:44:56.502509 2018] [wsgi:error] [pid 7466] [remote
XXX.XXX.XXX.AE:7339] mod_wsgi (pid=7466): Exception occurred processing
WSGI script '/home/ubuntu/mnt/web2py/wsgihandler.py'.
[Thu Nov 15 04:44:56.502575 2018] [wsgi:error] [pid 7466] [remote
XXX.XXX.XXX.AE:7339] TypeError: sequence of byte string values expected,
value of type str found
[Thu Nov 15 04:50:20.030220 2018] [wsgi:error] [pid 8081] [client
XXX.XXX.XXX.AF:33766] Timeout when reading response headers from daemon
process 'web2pydefault': /home/ubuntu/mnt/web2py/wsgihandler.py
[Thu Nov 15 05:00:40.384970 2018] [ssl:warn] [pid 9665] AH01909:
XXX.XXX.XXX.AG:443:0 server certificate does NOT include an ID which
matches the server name
[Thu Nov 15 05:00:40.407686 2018] [ssl:warn] [pid 9667] AH01909:
XXX.XXX.XXX.AG:443:0 server certificate does NOT include an ID which
matches the server name
[Thu Nov 15 05:03:10.875058 2018] [wsgi:error] [pid 9668] [remote
XXX.XXX.XXX.AF:34126]
/home/ubuntu/mnt/web2py/gluon/contrib/pymysql/cursors.py:166: Warning:
(3090, "Changing sql mode 'NO_AUTO_CREATE_USER' is deprecated. It will be
removed in a future release.")
[Thu Nov 15 05:03:10.875093 2018] [wsgi:error] [pid 9668] [remote
XXX.XXX.XXX.AF:34126] result = self._query(query)
Is it possibly related to this?:
stackoverflow: TypeError: sequence of byte string values expected, value of
type str found
<https://stackoverflow.com/questions/34838443/typeerror-sequence-of-byte-string-values-expected-value-of-type-str-found>
On Saturday, 8 September 2018 12:22:49 UTC-7, Peter wrote:
>
> Try to remove all session files. I think that problem is in pickle which
> is different in python 2 and python 3 (data type is not same in python 2
> and python 3).
>
> Use fresh source code of web2py with your application. Don't start web2py
> with python 3 after use with python 2.
>
--
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.