Re: [Zope-dev] Error 11
Setting the variable did not help. I downloaded and built Python 2.1.2 yesterday. Products: zope-tinytable-0.8.2-2 zope-zmysqlda-2.0.7-5
"Chris McDonough" <chrism@zope.com> 01/24/02 12:22 PM >>> Sigh. Can you try to start Zope with the environment variable ZOPE_SECURITY_POLICY=PYTHON set to see if the problem continues?
Are you using any database adapters or other C extensions? Are you sure that Zope is using the Python 2.1.2 that you installed? ----- Original Message ----- From: "Ahsan Imam" <Ahsan.Imam@newtimes.com> To: <zope-dev@zope.org> Sent: Thursday, January 24, 2002 12:57 PM Subject: [Zope-dev] Error 11
Hey Chris,
1) Installed Python 2.1.2 (with threads and without pymalloc) 2) Got the latest cvs built of zope 2.4. 3) Then compiled zope wo pcgi. 4) Even tried with the Zope 2.5 beta.
Zope still keeps restarting every 10 to 15 minutes.
Excerpt from the stupid.log:
2002-01-24T16:53:01 ERROR(200) zdaemon zdaemon: Thu Jan 24 09:53:01 2002: Aiieee! 21993 exited with error code: 11 ------ 2002-01-24T16:53:02 INFO(0) zdaemon zdaemon: Thu Jan 24 09:53:02 2002: Houston, we have forked ------ 2002-01-24T16:53:02 INFO(0) zdaemon zdaemon: Thu Jan 24 09:53:02 2002: Houston, we have forked ------ 2002-01-24T16:53:02 INFO(0) zdaemon zdaemon: Thu Jan 24 09:53:02 2002: Hi, I just forked off a kid: 22007 ------ 2002-01-24T16:53:04 PROBLEM(100) OFS.Application Duplicate Product name After loading Product 'Customizations' from '/usr/local/zslave2/Products', I skipped the one in '/usr/local/zope/lib/python/Products'. ------ 2002-01-24T16:53:13 INFO(0) ZODB Opening database for mounting: '148382768_1011864262.427182' ------ 2002-01-24T16:53:13 INFO(0) ZODB Mounted database '148382768_1011864262.427182' at /temp_folder ------ 2002-01-24T16:53:13 INFO(0) Zope Default Object Creation /usr/local/zope/lib/python/../../import/Examples.zexp examples import file could not be found. ------ 2002-01-24T16:53:13 INFO(0) ZServer HTTP server started at Thu Jan 24 09:53:13 2002 Hostname: node1.newtimes.com Port: 8080 ------ 2002-01-24T16:53:13 INFO(0) ZServer FastCGI Server (V1.0) started at Thu Jan 24 09:53:13 2002 IP : zslave2.newtimes.com Port : 8889 Socket path : None
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
I'd suspect mysqlda. ----- Original Message ----- From: "Ahsan Imam" <Ahsan.Imam@newtimes.com> To: <zope-dev@zope.org> Sent: Thursday, January 24, 2002 3:40 PM Subject: Re: [Zope-dev] Error 11
Setting the variable did not help. I downloaded and built Python 2.1.2 yesterday.
Products: zope-tinytable-0.8.2-2 zope-zmysqlda-2.0.7-5
"Chris McDonough" <chrism@zope.com> 01/24/02 12:22 PM >>> Sigh. Can you try to start Zope with the environment variable ZOPE_SECURITY_POLICY=PYTHON set to see if the problem continues?
Are you using any database adapters or other C extensions?
Are you sure that Zope is using the Python 2.1.2 that you installed?
----- Original Message ----- From: "Ahsan Imam" <Ahsan.Imam@newtimes.com> To: <zope-dev@zope.org> Sent: Thursday, January 24, 2002 12:57 PM Subject: [Zope-dev] Error 11
Hey Chris,
1) Installed Python 2.1.2 (with threads and without pymalloc) 2) Got the latest cvs built of zope 2.4. 3) Then compiled zope wo pcgi. 4) Even tried with the Zope 2.5 beta.
Zope still keeps restarting every 10 to 15 minutes.
Excerpt from the stupid.log:
2002-01-24T16:53:01 ERROR(200) zdaemon zdaemon: Thu Jan 24 09:53:01 2002: Aiieee! 21993 exited with error code: 11 ------ 2002-01-24T16:53:02 INFO(0) zdaemon zdaemon: Thu Jan 24 09:53:02 2002: Houston, we have forked ------ 2002-01-24T16:53:02 INFO(0) zdaemon zdaemon: Thu Jan 24 09:53:02 2002: Houston, we have forked ------ 2002-01-24T16:53:02 INFO(0) zdaemon zdaemon: Thu Jan 24 09:53:02 2002: Hi, I just forked off a kid: 22007 ------ 2002-01-24T16:53:04 PROBLEM(100) OFS.Application Duplicate Product name After loading Product 'Customizations' from '/usr/local/zslave2/Products', I skipped the one in '/usr/local/zope/lib/python/Products'. ------ 2002-01-24T16:53:13 INFO(0) ZODB Opening database for mounting: '148382768_1011864262.427182' ------ 2002-01-24T16:53:13 INFO(0) ZODB Mounted database '148382768_1011864262.427182' at /temp_folder ------ 2002-01-24T16:53:13 INFO(0) Zope Default Object Creation /usr/local/zope/lib/python/../../import/Examples.zexp examples import file could not be found. ------ 2002-01-24T16:53:13 INFO(0) ZServer HTTP server started at Thu Jan 24 09:53:13 2002 Hostname: node1.newtimes.com Port: 8080 ------ 2002-01-24T16:53:13 INFO(0) ZServer FastCGI Server (V1.0) started at Thu Jan 24 09:53:13 2002 IP : zslave2.newtimes.com Port : 8889 Socket path : None
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Ahsan Imam wrote:
Setting the variable did not help. I downloaded and built Python 2.1.2 yesterday.
Products: zope-tinytable-0.8.2-2 zope-zmysqlda-2.0.7-5
"Chris McDonough" <chrism@zope.com> 01/24/02 12:22 PM >>>
Sigh. Can you try to start Zope with the environment variable ZOPE_SECURITY_POLICY=PYTHON set to see if the problem continues?
Are you using any database adapters or other C extensions?
Are you sure that Zope is using the Python 2.1.2 that you installed?
Try applying this patch to db.py in ZMySQLDA. It makes it so MySQLDA database connections reopen themselves when the DA object migrates between threads. --- ../ZMySQLDA-orig/db.py Thu Sep 6 23:45:35 2001 +++ db.py Tue Jan 8 14:24:52 2002 @@ -104,6 +104,7 @@ import string, sys from string import strip, split, find, upper, rfind from time import time +import thread hosed_connection = ( CR.SERVER_GONE_ERROR, @@ -180,11 +181,12 @@ self.connection=connection self.kwargs = kwargs = self._parse_connection_string(connection) self.db=apply(self.Database_Connection, (), kwargs) - self.transactions = self.db.server_capabilities & CLIENT.TRANSACTIONS + self.transactions = self.db.server_capabilities & CLIENT.TRANSACTIONS if self._try_transactions == '-': self.transactions = 0 elif not self.transactions and self._try_transactions == '+': raise NotSupportedError, "transactions not supported by this server" + self._v_tid = thread.get_ident() def _parse_connection_string(self, connection): kwargs = {'conv': self.conv} @@ -275,6 +277,10 @@ desc=None result=() db=self.db + # Because we might not be thread-safe across threads... + if not self._v_tid == thread.get_ident(): + db=self.db=apply(self.Database_Connection, (), self.kwargs) + self._v_tid = thread.get_ident() try: for qs in filter(None, map(strip,split(query_string, '\0'))): qtype = upper(split(qs, None, 1)[0]) @@ -297,7 +303,7 @@ except OperationalError, m: if m[0] not in hosed_connection: raise # Hm. maybe the db is hosed. Let's restart it. - db=self.db=apply(self.Database_Connection, (), self.kwargs) + db=self.db=apply(self.Database_Connection, (), self.kwargs) return self.query(query_string, max_rows) if desc is None: return (),()
participants (3)
-
Ahsan Imam -
Chris McDonough -
Matthew T. Kromer