[Zope] SOLVED: LocalFS problem while booting server
Reinoud van Leeuwen
reinoud.v@n.leeuwen.net
Mon, 4 Mar 2002 13:43:58 +0100
On Fri, Mar 01, 2002 at 05:45:43PM +0100, Reinoud van Leeuwen wrote:
> 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
After some debugging I found the solution:
during the start process, the product tries to write a warning to
sys.stderr. For some reason STDERR is not writable from /etc/rc.local. So
the warning cannot be written, and this results in an exception,
preventing the product from starting up at all. I solved this by changing
the line in /etc/rc.local to:
echo -n " Zope "; /usr/local/zope/bin/zopectl start 2>> /var/log/zopeboot
Now the warning can be written somewhere and Zope boots complete.
Thanks for your help.
--
__________________________________________________
"Nothing is as subjective as reality"
Reinoud van Leeuwen reinoud.v@n.leeuwen.net
http://www.xs4all.nl/~reinoud
__________________________________________________