[Erp5-dev] Moved Data.fs/parts of it - problems with site

Łukasz Nowak lukasz.nowak at ventis.com.pl
Thu Nov 29 11:55:10 CET 2007


Hello,

On 2007-11-28, 10:01:30
Jérome Perrin <jerome at nexedi.com> wrote:
> 
> > But this instance, when site is created by hand is working
> > correctly, without any problems. There is not trail in logs or
> > zopectl fg about any problems.
> 
> Hello,
> 
> Do you have local documents in $INSTANCE_HOME/Documents that you
> might have forgot to copy ? (anyway this might at least log something
> like 'ZODB could not import class')

None missing files in Documents. I've attached my start log.

 
> > Sometimes few restarts of Zope helps, but problem is re-appearing.
> 
> Then, this might be related to TimerService. RPM for mandriva is
> quite old, we suspect svn version to be buggy. Can you try with
> r11930 of timerserver ? (this requires installing the python package
> with setup.py install)
> 
> https://svn.erp5.org/repos/public/erp5/trunk/products/TimerService/timerserver/

Ok. I loaded this from revision 11930, I'll check if it helps. This is
diff of what I had (from packages from deb4erp5 project, prepared by
me):

--- timerserver-MINE/TimerServer.py     2007-10-11 13:30:05.000000000
+0200 +++ timerserver/TimerServer.py  2007-11-29 11:50:56.000000000
+0100 @@ -6,7 +6,7 @@
 import traceback

 import thread
-import sys, os, errno, time, socket
+import sys, os, errno, time, socket, urllib
 from StringIO import StringIO
 from zLOG import LOG, INFO

@@ -55,15 +55,12 @@
         # To be very sure, try to connect to the HTTPServer
         # and only start after we are able to connect
         while 1:
-            s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
-            s.settimeout(5)
+            time.sleep(5)
             try:
-                s.connect((ip, port))
-            except (socket.error, socket.timeout):
-                s.close()
+                urllib.urlopen('http://%s:%s' %(ip, port))
+            except IOError:
                 continue
             break
-        s.close()

         module = self.module
         interval = self.interval


Regards,
Luke

-- 
Łukasz Nowak R&D Ventis http://www.ventis.com.pl/
tel: +48 32 768 16 85 fax: +48 32 392 10 61
``Use the Source, Luke...'' I am only craftsman.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: start_log.txt
URL: <http://mail.tiolive.com/pipermail/erp5-dev/attachments/20071129/a33d9fcb/attachment.txt>


More information about the Erp5-dev mailing list