how solve it without edit pickle.HIGHEST_PROTOCOL ? вторник, 7 июля 2015 г., 8:42:50 UTC+3 пользователь Dmitry Ermolaev написал: > > This error in sessions and then raise in pickle > > пятница, 3 июля 2015 г., 23:50:25 UTC+3 пользователь Dmitry Ermolaev > написал: >> >> I continue tests... >> >> Any request with some PORT (for example http://mydom:PORT) after >> restarting Apache will take this PORT as success but all others PORTS as >> error >> >> for example >> if first request is http://my_domain:90 >> than app request wirt PORT != 90 - raise error! >> >> пятница, 3 июля 2015 г., 22:29:43 UTC+3 пользователь Dmitry Ermolaev >> написал: >>> >>> in 2.11 error: >>> >>> Traceback (most recent call last): >>> File "C:\web2py-m\gluon\main.py", line 436, in wsgibase >>> session.connect(request, response) >>> File "C:\web2py-m\gluon\globals.py", line 960, in connect >>> session_pickled = pickle.dumps(self, pickle.HIGHEST_PROTOCOL) >>> File "C:\web2py-m\gluon\storage.py", line 56, in <lambda> >>> __getnewargs__ = lambda self: getattr(dict,self).__getnewargs__(self) >>> TypeError: getattr(): attribute name must be string >>> >>> >>> I identified this error: >>> If server has HTTP and HTTPS requests.When Apache was restarted or >>> reloaded then: First request will be successful and its schema will be >>> successful but another schema will raise this error >>> >>> for examle: 1. After restarting Apache if first request to server was >>> a http://mydomain/... then all request with HTTP schema will be >>> successful but all request with HTTPS will be raise this error 2. After >>> restarting Apache if first request to server was a https://mydomain/... >>> then all request with HTTPS schema will be successful but all request with >>> HTTP will be raise this error >>> >>> Apache config: >>> ##################################################### >>> <VirtualHost *:80> >>> >>> RewriteEngine On >>> RewriteCond %{HTTPS} off >>> RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} >>> >>> </VirtualHost> >>> ################################################ >>> <VirtualHost *:443> >>> >>> ServerName 7pay.in >>> ServerAlias www.7pay.in >>> DocumentRoot "C:/web2py-m" >>> SSLEngine on >>> <Directory "C:/web2py-m"> >>> AllowOverride All >>> Order allow,deny >>> allow from all >>> </Directory> >>> <Location "/"> >>> Order deny,allow >>> Allow from all >>> </Location> >>> WSGIScriptAlias / "C:/web2py-m/wsgihandler.py" >>> >>> >>> SSLCertificateFile conf/NameCheap.com/7pay_in.crt >>> SSLCertificateKeyFile conf/NameCheap.com/7pay-server.key >>> SSLCertificateChainFile conf/NameCheap.com/7pay_in.ca-bundle >>> >>> LogFormat "%h %l %u %t \"%r\" %>s %b" common >>> ErrorLog "logs/spay.log" >>> CustomLog "logs/spay-access.log" common >>> </VirtualHost> >>> >>> ########################################### >>> <VirtualHost *:80> >>> >>> ServerName erm.cash >>> ServerAlias www.erm.cash >>> ServerAlias ipo-polza.ru >>> ServerAlias www.ipo-polza.ru >>> ServerAlias XN--80AAXIDK7E.XN--80ASEHDB >>> ServerAlias www.XN--80AAXIDK7E.XN--80ASEHDB >>> >>> DocumentRoot "C:/web2py-m" >>> <Directory "C:/web2py-m"> >>> AllowOverride All >>> Order allow,deny >>> allow from all >>> </Directory> >>> <Location "/"> >>> Order deny,allow >>> Allow from all >>> </Location> >>> WSGIScriptAlias / "C:/web2py-m/wsgihandler.py" >>> >>> LogFormat "%h %l %u %t \"%r\" %>s %b" common >>> ErrorLog "logs/web2py.log" >>> CustomLog "logs/web2py-access.log" common >>> >>> </VirtualHost> >>> >>> >>> HELP ! >>> >>> >>>
-- 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.

