[Zope] help with zodb server

2007-08-28 Thread P. Nagaraj


Hi,

I installed ZODB3-3.3.1. Problem is server says it starts, but is not 
there. I can understand what is happening. Please help!


[root]# /usr/bin/zdctl.py -C /etc/zeoctl.conf start
. . . . . . . . . . . daemon process started, pid=27100
[root]# /usr/bin/zdctl.py -C /etc/zeoctl.conf status
daemon manager running; daemon process not running

There is no activity in the log file

Here is the info with show
schemafile:   '/usr/lib/python2.4/site-packages/zdaemon/schema.xml'
configfile:   '/etc/zeoctl.conf'
interactive:  None
default_to_interactive: True
zdrun:'/usr/bin/zdrun.py'
python:   '/usr/bin/python'
program:  ['/usr/bin/runzeo.py', '-C', '/etc/zeo.config']
backofflimit: 10
daemon:   True
forever:  False
sockname: '/soft/zeohome/zdsock'
exitcodes:[0, 2]
user: None
umask:022
directory:'/soft/zeohome'
logfile:  None
hang_around:  False

Also, when I try another method, I get error
[EMAIL PROTECTED] tmp]# runzeo.py -a 127.0.0.1:9675 -f /soft/zeotmp/Data.fs
Error: invalid value for -f '/soft/zeotmp/Data.fs': bad marshal data
For help, use /usr/bin/runzeo.py -h

Question: Who should own the directories and the Data.fs?

Thank you very much!
Regards,
Nagaraj


--

+--+--+
Nagaraj Panyam | Office tel: +91-22-22782610
Dept of High Energy Physics| Office fax: +91-22-22804610
Tata Instt. of Fundamental Research| Home  tel : +91-22-22804936
Mumbai - 400 005, INDIA| **Email** : [EMAIL PROTECTED]
+--+--+
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] ZODB install time error

2006-08-16 Thread P. Nagaraj


Hi Diether,

On Tue, 15 Aug 2006, Dieter Maurer wrote:


P. Nagaraj wrote at 2006-8-14 22:56 +0530:

...
I executed the python setup.py build. And then when I execute the
python test.py, I get these kind of errors, many of them

//==
Error in test checkReconnectReadOnly
(ZEO.tests.testConnection.FileStorageReconnectionTests)
Traceback (most recent call last):
  File build/lib.linux-i686-2.3/ZEO/tests/ConnectionTests.py, line 122,
in tearDown
os.waitpid(pid, 0)
OSError: [Errno 10] No child processes
==//


The waitpid call should get rid of so called Zombie processes
(a died child process -- not yet acknowledged by the parent).

If for some reason the server could not be created in the first
place, then there will be no dead child to reap off.

Furthermore, some *nixes allow to call for automatic
child reaping *AND* may propagate this option automatically
to child processes. In those cases, waitpid may non deterministically
fail (if the OS was quicker to reap the child).

I would put a try: ... except OSError: pass around the waitpid.
If there is no child (that's the error you are told about), then
there is no Zombie and no need for waitpid.



Your suggestion worked. But one error came up.

[ZODB3-3.4.0]# python test.py
Running tests from build/lib.linux-i686-2.3
Running unit tests:


Error in test testUmask (zdaemon.tests.testzdrun.ZDaemonTests)
Traceback (most recent call last):
  File build/lib.linux-i686-2.3/zdaemon/tests/testzdrun.py, line 75, in 
tearDown

self.assertEqual(self.expect, output)
  File /var/tmp/python2.3-2.3.5-root/usr/lib/python2.3/unittest.py, line 
302, in failUnlessEqual

raise self.failureException, \
AssertionError: '' != '\n\nFailure in test testUmask 
(zdaemon.tests.testzdrun.ZDaemonTests)\nTraceback (most recent call 
last):\n  File build/lib.linux-i686-2.3/zdaemon/tests/testzdrun.py, line 
260, in testUmask\nself.assert_(not os.access(path, os.W_OK))\n  File 
/var/tmp/python2.3-2.3.5-root/usr/lib/python2.3/unittest.py, line 278, 
in failUnless\nif not expr: raise self.failureException, 
msg\nAssertionError\n\n'


  Ran 2173 tests with 1 failures and 1 errors in 160.065 seconds.
--//

In the error message there is reference to 
/var/tmp/python2.3-2.3.5-root/usr/lib/python2.3/unittest.py.

But I have this: /usr/lib/python2.3/unittest.py
Do I have to modify something to remove that error?

Thanks for help, again.
Regards,
Nagaraj



--

+--+--+
Nagaraj Panyam | Office tel: +91-22-22782610
Dept of High Energy Physics| Office fax: +91-22-22804610 
Tata Instt. of Fundamental Research| Home  tel : +91-22-22804936 
Mumbai - 400 005, INDIA| **Email** : [EMAIL PROTECTED] 
+--+--+

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] ZODB install time error

2006-08-14 Thread P. Nagaraj


Hi,

I hope this is the right forum for me to ask for help. If not, I 
apologize, but please do direct me to the right place.


I am trying to install ZODB 3.4. The OS is Scientific Linux 4.2 on i386 
box. Python version is 2.3.4. GCC version is 3.4.4. python and 
python-devel are installed as rpms.


I executed the python setup.py build. And then when I execute the 
python test.py, I get these kind of errors, many of them


//==
Error in test checkReconnectReadOnly 
(ZEO.tests.testConnection.FileStorageReconnectionTests)

Traceback (most recent call last):
  File build/lib.linux-i686-2.3/ZEO/tests/ConnectionTests.py, line 122, 
in tearDown

os.waitpid(pid, 0)
OSError: [Errno 10] No child processes
==//

I request for help on this.
Thanks a lot for any help or hints.

Regards,
Nagaraj

--

+--+--+
Nagaraj Panyam | Office tel: +91-22-22782610
Dept of High Energy Physics| Office fax: +91-22-22804610 
Tata Instt. of Fundamental Research| Home  tel : +91-22-22804936 
Mumbai - 400 005, INDIA| **Email** : [EMAIL PROTECTED] 
+--+--+

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )