Hey, after four years, I've finally found the time to go back & look at Zope again. Unfortunately, after installing the RPM (zope-2.7.2-0.1.2.el4.rf, I ran: [root@midir tmp]# zopectl adduser the_power password Traceback (most recent call last): File "<string>", line 1, in ? File "/usr/lib/zope/lib/python/Zope/__init__.py", line 51, in app startup() File "/usr/lib/zope/lib/python/Zope/__init__.py", line 47, in startup _startup() File "/usr/lib/zope/lib/python/Zope/App/startup.py", line 57, in startup DB = configuration.dbtab.getDatabase('/', is_root=1) File "/usr/lib/zope/lib/python/DBTab/DBTab.py", line 96, in getDatabase db = self._createDatabase(name, is_root) File "/usr/lib/zope/lib/python/DBTab/DBTab.py", line 113, in _createDatabase db = factory.open() File "/usr/lib/zope/lib/python/Zope/Startup/datatypes.py", line 172, in open DB = self.createDB() File "/usr/lib/zope/lib/python/Zope/Startup/datatypes.py", line 169, in createDB return ZODBDatabase.open(self) File "/usr/lib/zope/lib/python/ZODB/config.py", line 97, in open return ZODB.DB(section.storage.open(), File "/usr/lib/zope/lib/python/ZODB/config.py", line 128, in open quota=self.config.quota) File "/usr/lib/zope/lib/python/ZODB/FileStorage.py", line 232, in __init__ self._lock_file = LockFile(file_name + '.lock') File "/usr/lib/zope/lib/python/ZODB/lock_file.py", line 64, in __init__ lock_file(self._fp) File "/usr/lib/zope/lib/python/ZODB/lock_file.py", line 44, in lock_file fcntl.flock(file.fileno(), _flags) IOError: [Errno 11] Resource temporarily unavailable Anyone know what's going on ? Is it trying to read a file called '<string>' ? john
Hi John
File "/usr/lib/zope/lib/python/ZODB/FileStorage.py", line 232, in __init__ self._lock_file = LockFile(file_name + '.lock') [...] IOError: [Errno 11] Resource temporarily unavailable
Anyone know what's going on ? Is it trying to read a file called '<string>' ?
No, it's failing to write a lockfile. Check the filesystem permissions in your zope instance. Zope doesn't run as root, but as the user configured in etc/zope.conf, if you start it up as root .. that user needs write permission. -- jean
It's also possible that the error message is signifying that Zope is already started and you're trying to start it again. - C On Aug 3, 2006, at 10:32 AM, Jean Jordaan wrote:
Hi John
File "/usr/lib/zope/lib/python/ZODB/FileStorage.py", line 232, in __init__ self._lock_file = LockFile(file_name + '.lock') [...] IOError: [Errno 11] Resource temporarily unavailable
Anyone know what's going on ? Is it trying to read a file called '<string>' ?
No, it's failing to write a lockfile. Check the filesystem permissions in your zope instance. Zope doesn't run as root, but as the user configured in etc/zope.conf, if you start it up as root .. that user needs write permission.
-- jean _______________________________________________ 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 )
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 3 Aug 2006, at 10:25, John P. Looney wrote:
Hey, after four years, I've finally found the time to go back & look at Zope again.
Unfortunately, after installing the RPM (zope-2.7.2-0.1.2.el4.rf, I ran:
For your own sanity, ditch that unsupported and really really ancient third-party RPM and install a current version from source. jens -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) iD8DBQFE0gu3RAx5nvEhZLIRAvheAJ4xoVjMXTs8hTsoqnmB9bql/A4lEACcCjIO 8+fC/1HPegjIAJUW/AIdqsY= =Ecdv -----END PGP SIGNATURE-----
Oh. There aren't any more recent RPMS then ? I really really hate installing stuff from source anymore, esp. when other admins on the same system have a tendancy to upgrade packages like python and everything else without checking does everything still run.... For the record; it was both that zope didn't have write access to the data directory and that zope was already running. John On 8/3/06, Jens Vagelpohl <jens@dataflake.org> wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 3 Aug 2006, at 10:25, John P. Looney wrote:
Hey, after four years, I've finally found the time to go back & look at Zope again.
Unfortunately, after installing the RPM (zope-2.7.2-0.1.2.el4.rf, I ran:
For your own sanity, ditch that unsupported and really really ancient third-party RPM and install a current version from source.
jens
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin)
iD8DBQFE0gu3RAx5nvEhZLIRAvheAJ4xoVjMXTs8hTsoqnmB9bql/A4lEACcCjIO 8+fC/1HPegjIAJUW/AIdqsY= =Ecdv -----END PGP SIGNATURE----- _______________________________________________ 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 )
On 3 Aug 2006, at 10:46, John P. Looney wrote:
Oh. There aren't any more recent RPMS then ? I really really hate installing stuff from source anymore, esp. when other admins on the same system have a tendancy to upgrade packages like python and everything else without checking does everything still run....
There are no supported RPMs. Those that are out there have been created by third parties and are really old and not supported. If you're running in a production environment and want to ensure your Zope setup is not affected by system updates it is recommended to install both Python and Zope from recent sources. jens
On 8/3/06, Jens Vagelpohl <jens@dataflake.org> wrote:
There are no supported RPMs. Those that are out there have been created by third parties and are really old and not supported.
If you're running in a production environment and want to ensure your Zope setup is not affected by system updates it is recommended to install both Python and Zope from recent sources.
Huh. How very 1980s. OK, I'll give that a go. Thanks. John
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 3 Aug 2006, at 11:33, John P. Looney wrote:
On 8/3/06, Jens Vagelpohl <jens@dataflake.org> wrote: There are no supported RPMs. Those that are out there have been created by third parties and are really old and not supported.
If you're running in a production environment and want to ensure your Zope setup is not affected by system updates it is recommended to install both Python and Zope from recent sources.
Huh. How very 1980s.
This has nothing to do with "1980s", just with sanity. Or do you think it's OK to use some distribution-installed Python where you have no idea how it has been built and which maybe upgraded without your knowledge and cause breakage in your Zope setup? jens -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) iD8DBQFE0hs9RAx5nvEhZLIRAslkAJ99f3paD6s35XLAa7qWeGyhCpgm5ACgr1lM 9mbbUkS2MeyUE6gzd/7RoMo= =x735 -----END PGP SIGNATURE-----
On 8/3/06, Jens Vagelpohl <jens@dataflake.org> wrote:
This has nothing to do with "1980s", just with sanity. Or do you think it's OK to use some distribution-installed Python where you have no idea how it has been built and which maybe upgraded without your knowledge and cause breakage in your Zope setup?
Yeah. It's worked great for me. In fact, it was one of the big reasons I moved away from slackware to distributions like redhat & debian. Python is nice, in that it lives happily with older versions, so I should be able to upgrade the 2.3 rpm to 2.4, and let Zope use that. John
The Python distros are generally quite OK and stable now, and useful even for production systems, even though I fully understand that people prefer to compile their own, if for no other reason to have one specific for Zope, so that no package version suddenly gets upgraded to something incompatible. But the Zope RPMs have bever been particularily stable, supported or released in a timely manner. Use Python RPMs if you want. I do. But don't use the Zope RPMs. It's more trouble than using the source version. Sure, it would be nice if it wasn't so, but that's how it is. :)
Hey, I've made my first page, though it's not working as I'd like. This is the contents of the page: <html> <title> testing</title> Going ! <b>asdasda </b> <br> <dtml-var date fmt=Date><br> </html> But, the error logs show that it's not happy... Traceback (most recent call last): File "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/publisher/publish.py", line 138, in publish result = publication.callObject(request, object) File "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/app/publication/zopepublication.py", line 161, in callObject return mapply(ob, request.getPositionalArguments(), request) File "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/publisher/publish.py", line 113, in mapply return debug_call(object, args) File "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/publisher/publish.py", line 119, in debug_call return object(*args) File "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/app/dtmlpage/browser.py", line 26, in index return template.render(REQUEST, **kw) File "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/app/dtmlpage/dtmlpage.py", line 49, in render return self.template(self.__parent__, request, REQUEST=request, **kw) File "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/documenttemplate/untrusted/untrusted.py", line 66, in __call__ ProxyFactory(mapping), File "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/documenttemplate/dt_string.py", line 484, in __call__ result = render_blocks(self._v_blocks, md) File "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/documenttemplate/pdocumenttemplate.py", line 322, in render_blocks section = section(md) File "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/documenttemplate/dt_var.py", line 207, in render raise KeyError(name) KeyError: u'date' Any idea what I could be doing wrong ? No dtml tag I use seems to work - all throw an error. John
John P. Looney wrote:
Hey, I've made my first page, though it's not working as I'd like. This is the contents of the page:
<html> <title> testing</title> Going ! <b>asdasda </b> <br> <dtml-var date fmt=Date><br> </html>
But, the error logs show that it's not happy...
Traceback (most recent call last): File "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/publisher/publish.py", line 138, in publish result = publication.callObject(request, object) File "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/app/publication/zopepublication.py", line 161, in callObject return mapply(ob, request.getPositionalArguments (), request) File "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/publisher/publish.py", line 113, in mapply return debug_call(object, args) File "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/publisher/publish.py", line 119, in debug_call return object(*args) File "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/app/dtmlpage/browser.py", line 26, in index return template.render(REQUEST, **kw) File "/tmp/Zope-3.2.1/build/lib.linux- i686-2.4/zope/app/dtmlpage/dtmlpage.py", line 49, in render return self.template(self.__parent__, request, REQUEST=request, **kw) File "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/documenttemplate/untrusted/untrusted.py", line 66, in __call__ ProxyFactory(mapping), File "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/documenttemplate/dt_string.py", line 484, in __call__ result = render_blocks(self._v_blocks, md) File "/tmp/Zope- 3.2.1/build/lib.linux-i686-2.4/zope/documenttemplate/pdocumenttemplate.py", line 322, in render_blocks section = section(md) File "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/documenttemplate/dt_var.py", line 207, in render raise KeyError(name) KeyError: u'date'
Any idea what I could be doing wrong ? No dtml tag I use seems to work - all throw an error.
John
Where is "date" defined? If the answer is "nowhere" you really need to read the zope book. If its "somewhere" then include that code as well (pertinent parts). Best luck, David
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 John P. Looney wrote:
On 8/3/06, Jens Vagelpohl <jens@dataflake.org> wrote:
There are no supported RPMs. Those that are out there have been created by third parties and are really old and not supported.
If you're running in a production environment and want to ensure your Zope setup is not affected by system updates it is recommended to install both Python and Zope from recent sources.
Huh. How very 1980s.
The problem is that the distribution-supplied Python has been configured for a different set of tradeoffs (driving GUI sysadmin applets, mostly, across multiple languages / character sets) than those appropriate for powering long-running appserver. In this, if nothing else, Zope resembles a Java appserver: they are typically supported only when running a *specific* version of a *specific* JVM, which is highly unlikely to be the JVM / version shipped by a given distro. Tres. - -- =================================================================== Tres Seaver +1 202-558-7113 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFE0iBV+gerLs4ltQ4RAoWoAJ9Uk1ztzlykPER+hkHpW0g3GrJC8QCgwNnK 6cpysyG6X1gSeQXK231BBu8= =tr8T -----END PGP SIGNATURE-----
participants (7)
-
Chris McDonough -
David H -
Jean Jordaan -
Jens Vagelpohl -
John P. Looney -
Lennart Regebro -
Tres Seaver