And another thing...    This fails on the server with the rocket webserver 
as well as with the nginx/uwsgi server.

-Jim

On Thursday, December 6, 2018 at 11:42:18 AM UTC-6, Jim S wrote:
>
> Also
>
> I have another desktop linux machine here running Ubuntu 18.10 and this 
> all works just fine.  The web2py version there is:
>
> web2py™ Version 2.17.2-stable+timestamp.2018.10.06.18.54.02
>
> so I tried that on the failing server and it too fails with the same 
> traceback.  Same python version, same redis-server version.
>
> -Jim
>
> On Thursday, December 6, 2018 at 11:06:33 AM UTC-6, Jim S wrote:
>>
>> I've narrowed this down a little bit:
>>
>> Here is the code at the top of my db.py:
>>
>> from gluon.contrib.redis_utils import RConn
>> from gluon.contrib.redis_session import RedisSession
>> rconn = RConn(ccfg.redis.server, ccfg.redis.port)
>> sessiondb = RedisSession(redis_conn=rconn, session_expiry=False)
>> session.connect(request, response, db=sessiondb)
>>
>> If I comment out the last line everything works.  But then my sessions 
>> aren't handled by redis.
>>
>> Here are my versions in use:
>> web2py™ Version 2.17.2-stable+timestamp.2018.10.06.11.34.06
>> Python Python 2.7.15rc1: /usr/bin/python (prefix: /usr)
>> Redis server v=4.0.9 sha=00000000:0 malloc=jemalloc-3.6.0 bits=64 
>> build=1bc80a08306a3efd
>>
>> Any ideas?
>>
>> -Jim
>>
>>
>>
>> On Tuesday, December 4, 2018 at 4:56:22 PM UTC-6, Jim S wrote:
>>>
>>> I'm getting this on every request
>>>
>>> 1.
>>>
>>> 2.
>>> 3.
>>> 4.
>>> 5.
>>> 6.
>>> 7.
>>> 8.
>>> 9.
>>> 10.
>>> 11.
>>> 12.
>>> 13.
>>> 14.
>>> 15.
>>> 16.
>>> 17.
>>> 18.
>>> 19.
>>>
>>> Traceback (most recent call last):
>>>
>>>   File "/home/www-data/web2py/gluon/main.py", line 461, in wsgibase
>>>     session._try_store_in_db(request, response)
>>>   File "/home/www-data/web2py/gluon/globals.py", line 1239, in 
>>> _try_store_in_db
>>>     record_id = table.insert(**dd)
>>>   File "/home/www-data/web2py/gluon/contrib/redis_session.py", line 150, in 
>>> insert
>>>     pipe.execute()
>>>   File "/usr/local/lib/python2.7/dist-packages/redis/client.py", line 3443, 
>>> in execute
>>>     return execute(conn, stack, raise_on_error)
>>>   File "/usr/local/lib/python2.7/dist-packages/redis/client.py", line 3309, 
>>> in _execute_transaction
>>>     if EMPTY_RESPONSE not in options])
>>>   File "/usr/local/lib/python2.7/dist-packages/redis/connection.py", line 
>>> 683, in pack_commands
>>>     for chunk in self.pack_command(*cmd):
>>>   File "/usr/local/lib/python2.7/dist-packages/redis/connection.py", line 
>>> 659, in pack_command
>>>     for arg in imap(self.encoder.encode, args):
>>>   File "/usr/local/lib/python2.7/dist-packages/redis/connection.py", line 
>>> 113, in encode
>>>     raise DataError("Invalid input of type: 'bool'. Convert to a "
>>> DataError: Invalid input of type: 'bool'. Convert to a byte, string or 
>>> number first.
>>>
>>>
>>> I'm not sure what I'm missing.  This is a fresh install on an Ubuntu 
>>> 18.04 box after running the setup-web2py-nginx-uwsgi-ubuntu.sh script 
>>> (which by the way, needs some updating).
>>>
>>> Anyone have any ideas off the top of their head or is this going to 
>>> require some digging on my part?
>>>
>>> -Jim
>>>
>>>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to