Silly mistake... I hit Restart on my Zope control panel while I still had something open in an external editor session. Now I cannot restart Zope, and it is not logging anything. Is there a lock I need to clear, where do I look and how can I tell what is stopping the service from restarting ? Thanx -- Les Ferguson Software developer Waitakere, NZ
Les Ferguson wrote at 2004-9-12 23:45 +1200:
Silly mistake... I hit Restart on my Zope control panel while I still had something open in an external editor session.
Now I cannot restart Zope, and it is not logging anything.
Start Zope in the foreground (on Unix: "bin/zopectl fg"). Zope should then log to the console. Usually, you see why it has startup problems. Be warned that Zope must run in development mode for this. -- Dieter
I haven't got into setting debug mode yet. Running under win2k. Was all working fine until I did a restart while external editor sessions were still active. It gives the following when I run C:\Zope-Instance\bin\runzope.bat ... C:\Zope-Instance\bin>runzope.bat C:\Zope-Instance\bin>"C:\usr\apps\Zope-2.7.2-0\bin\python.exe" "C:\usr\apps\Zope -2.7.2-0\lib\python\Zope\Startup\run.py" -C "C:\Zope-Instance\etc\zope.conf" Traceback (most recent call last): File "C:\usr\apps\Zope-2.7.2-0\lib\python\Zope\Startup\run.py", line 50, in ? run() File "C:\usr\apps\Zope-2.7.2-0\lib\python\Zope\Startup\run.py", line 18, in ru n opts = _setconfig() File "C:\usr\apps\Zope-2.7.2-0\lib\python\Zope\Startup\run.py", line 42, in _s etconfig opts.realize(doc="Sorry, no option docs yet.") File "C:\usr\apps\Zope-2.7.2-0\lib\python\zdaemon\zdoptions.py", line 271, in realize self.load_schema() File "C:\usr\apps\Zope-2.7.2-0\lib\python\zdaemon\zdoptions.py", line 312, in load_schema self.schema = ZConfig.loadSchema(self.schemafile) File "C:\usr\apps\Zope-2.7.2-0\lib\python\ZConfig\loader.py", line 37, in load Schema return SchemaLoader().loadURL(url) File "C:\usr\apps\Zope-2.7.2-0\lib\python\ZConfig\loader.py", line 71, in load URL return self.loadResource(r) File "C:\usr\apps\Zope-2.7.2-0\lib\python\ZConfig\loader.py", line 137, in loa dResource schema = ZConfig.schema.parseResource(resource, self) File "C:\usr\apps\Zope-2.7.2-0\lib\python\ZConfig\schema.py", line 43, in pars eResource xml.sax.parse(resource.file, parser) File "C:\usr\apps\Zope-2.7.2-0\bin\Lib\xml\sax\__init__.py", line 33, in parse parser.parse(source) File "C:\usr\apps\Zope-2.7.2-0\bin\Lib\xml\sax\expatreader.py", line 107, in p arse xmlreader.IncrementalParser.parse(self, source) File "C:\usr\apps\Zope-2.7.2-0\bin\Lib\xml\sax\xmlreader.py", line 123, in par se self.feed(buffer) File "C:\usr\apps\Zope-2.7.2-0\bin\Lib\xml\sax\expatreader.py", line 207, in f eed self._parser.Parse(data, isFinal) File "C:\usr\apps\Zope-2.7.2-0\bin\Lib\xml\sax\expatreader.py", line 300, in s tart_element self._cont_handler.startElement(name, AttributesImpl(attrs)) File "C:\usr\apps\Zope-2.7.2-0\lib\python\ZConfig\schema.py", line 115, in sta rtElement getattr(self, "start_" + name)(attrs) File "C:\usr\apps\Zope-2.7.2-0\lib\python\ZConfig\schema.py", line 469, in sta rt_schema keytype, valuetype, datatype = self.get_sect_typeinfo(attrs) File "C:\usr\apps\Zope-2.7.2-0\lib\python\ZConfig\schema.py", line 207, in get _sect_typeinfo datatype = self.get_datatype(attrs, "datatype", "null") File "C:\usr\apps\Zope-2.7.2-0\lib\python\ZConfig\schema.py", line 200, in get _datatype return self._registry.get(dtname) File "C:\usr\apps\Zope-2.7.2-0\lib\python\ZConfig\datatypes.py", line 298, in get t = self.search(name) File "C:\usr\apps\Zope-2.7.2-0\lib\python\ZConfig\datatypes.py", line 323, in search package = __import__(n, g, g, component) File "C:\usr\apps\Zope-2.7.2-0\lib\python\Zope\Startup\datatypes.py", line 18, in ? from ZODB.config import ZODBDatabase ImportError: No module named ZODB.config C:\Zope-Instance\bin>
Les Ferguson wrote at 2004-9-13 08:00 +1200:
I haven't got into setting debug mode yet. Running under win2k. Was all working fine until I did a restart while external editor sessions were still active. It gives the following when I run C:\Zope-Instance\bin\runzope.bat ... ... package = __import__(n, g, g, component) File "C:\usr\apps\Zope-2.7.2-0\lib\python\Zope\Startup\datatypes.py", line 18, in ? from ZODB.config import ZODBDatabase ImportError: No module named ZODB.config
Looks like your Zope installation has been corrupted: Usually "C:\usr\apps\Zope-2.7.2-0\lib\python\ZODB" should contain a "config.py". Apparently, this is no longer the case. It is very unlikely that "ExternalEditor" is responsible for this. Apparently, something bad happened on your file system. The easiest way would probably be to reinstall Zope (you know that from Windows, I expect). This would take care of this and potential other places where something may have been lost. Alternatively, you could just try to restore "config.py" (copying it from some Zope 2.7.2 installation). -- Dieter
participants (2)
-
Dieter Maurer -
Les Ferguson