[Zope] LocalFS problem while booting server

Reinoud van Leeuwen reinoud.v@n.leeuwen.net
Fri, 1 Mar 2002 17:45:43 +0100


Hi,

I have installed Zope 2.5.0 (with Python 2.1.2) on a FreeBSD 4.2 server 
behind Apache 1.3.20 with PCGI.

Zope is started at boot time from /etc/rc.local with the command 
/usr/local/zope/bin/zopectl start

After booting, LocalFS does not work. ErrorMessage is:
Traceback (most recent call last):
  File "/usr/local/zope/2.5.0/lib/python/OFS/Application.py", line 531, in 
import_product
    product=__import__(pname, global_dict, global_dict, silly)
  File "/usr/local/WWW/zopetest.domain.com/Products/LocalFS/__init__.py", 
line 65, in ?
    traceback.print_exc()
  File "/usr/lib/python2.1/traceback.py", line 210, in print_exc
    print_exception(etype, value, tb, limit, file)
  File "/usr/lib/python2.1/traceback.py", line 122, in print_exception
    _print(file, 'Traceback (most recent call last):')
  File "/usr/lib/python2.1/traceback.py", line 13, in _print
    file.write(str+terminator)
IOError: [Errno 5] Input/output error

(As you can see, the LocalFS product is installed in the Products 
directory of one site only)

But when I log in as root and issue the command 
/usr/local/zope/bin/zopectl restart manually it works (only with a 
warning:

/usr/local/zope/zope/lib/python/ts_regex.py:15: DeprecationWarning: the 
regex module is deprecated; please use the re module
  import regex, regsub #, Sync
/usr/lib/python2.1/regsub.py:15: DeprecationWarning: the regsub module is 
deprecated; please use re.sub()
  DeprecationWarning)


But then it *does* work. Can anybody give me a clue what is different in 
starting it from rc.local and by hand?

TIA,
Reinoud

-- 
__________________________________________________
"Nothing is as subjective as reality"
Reinoud van Leeuwen    reinoud.v@n.leeuwen.net
http://www.xs4all.nl/~reinoud
__________________________________________________