[web2py] Re: Problem Pickling Session
I used to have this error when I used Apache, my solution was simply to stop using apache, just use nginx and uwsgi and the problem just goes away. Alternatively you can clear your cookies or use a private browser window to access the app via https. -- 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.
[web2py] Re: Problem Pickling Session
Hello! I am facing the same issue. Has anyone come up with a solution to this problem? Thanks sexta-feira, 16 de Março de 2018 às 04:20:32 UTC, Massimo Di Pierro escreveu: > > do you have session in cookie or db? Do you have a line in your code like > session.connect()? > > On Wednesday, 7 March 2018 16:11:29 UTC-6, Mark Erbaugh wrote: >> >> Web2Py is 2.16.1-stable+timestamp.2017.11.14.05.54.25 >> >> I tried deleting all the files in the application (both my application >> and admin) sessions folders, but still have the same error. >> >> -- 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.
[web2py] Re: Problem Pickling Session
do you have session in cookie or db? Do you have a line in your code like session.connect()? On Wednesday, 7 March 2018 16:11:29 UTC-6, Mark Erbaugh wrote: > > Web2Py is 2.16.1-stable+timestamp.2017.11.14.05.54.25 > > I tried deleting all the files in the application (both my application and > admin) sessions folders, but still have the same error. > > -- 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.
[web2py] Re: Problem Pickling Session
I'm not sure this is the right way to answer Massimo's question as there appears to be no way to reply to his reply. Web2Py is 2.16.1-stable+timestamp.2017.11.14.05.54.25 I tried deleting all the files in the application (both my application and admin) sessions folders, but still have the same error. -- 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.
[web2py] Re: Problem Pickling Session
Hello Mark, which web2py version? usually this error happens when you have a session created with a different version of web2py. Try clear everything in your apps sessions folder. Does it solve the problem? On Tuesday, 6 March 2018 17:40:28 UTC-6, Mark Erbaugh wrote: > > I installed Web2py and Apache on a Raspberry Pi using the Ubuntu > installation script. That script generated a self-signed SSL certificate. > > If I access the app using HTTP on port 80 and HTTPS on port 443, all is > fine. > > This app is replacing a legacy app that needs to run HTTP on port 8080. I > reconfigured Apache's ports.conf to listen on 8080 and default.conf to have > a virtualhost on 8080. > > The app works fine if I access it only via HTTP on port 8080 or HTTPS on > port 443, but if you try to access it from the other port (443 if the first > access after an Apache restart was on 8080 or 8080 if the first access was > on 443), I get an error ticket. Clicking on the error ticket just leads to > another ticket. > > I copied the error file to another Web2py server and here's the traceback: > > Traceback (most recent call last): > File "/home/www-data/web2py/gluon/main.py", line 434, in wsgibase > session.connect(request, response) > File "/home/www-data/web2py/gluon/globals.py", line 1000, in connect > session_pickled = pickle.dumps(self, pickle.HIGHEST_PROTOCOL) > File "/home/www-data/web2py/gluon/storage.py", line 52, in > __getnewargs__ = lambda self: getattr(dict,self).__getnewargs__(self) > TypeError: getattr(): attribute name must be string > > I think Web2py is having problems pickling the Session object. I added a > diagnostic printout and when the pickle is failing the Session object > prints as Storage({}), which I assume is an empty object. However, working > with the diagnostic printout, I also see cases where an empty object > pickles just fine, just not ones generated when I switched ports. -- 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.