Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 65375 - Plone won't install properly into Zope (zprod-manager problem?)
Summary: Plone won't install properly into Zope (zprod-manager problem?)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: net-zope (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-25 21:46 UTC by Jan Van Uytven
Modified: 2004-10-12 21:51 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
new archetypes ebuild for testing purposes. (archetypes-1.3.0_rc4.ebuild,818 bytes, text/x-ebuild)
2004-09-30 03:01 UTC, Radoslaw Stachowiak (RETIRED)
Details
archetypes-1.3.0_rc4.ebuild (archetypes-1.3.0_rc4.ebuild,761 bytes, application/octet-stream)
2004-09-30 13:49 UTC, Radoslaw Stachowiak (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Van Uytven 2004-09-25 21:46:21 UTC
I emerged zope-2.7.2-r2. I configured an instance of it (named zope-2.7.2) using zope-config. Started it up, runs fine.

I then installed plone-2.0.4. Note noting any messages at the end of the build, I started the zope instance but did not see plone (or CMF, or external editor icons for that matter). Thinking perhaps I had to use zprod-manager to 'install' them in the zope instance, I ran 'zprod-manager add' which according to the help is supposed to add products to the default instance. I selected all the products listed (plone included), and then tried to start zope. Zope's manager daemon dies right after starting. Tried starting it directly with zopectl, same effect with no error message. When I tried running the command in zopectl directly:

magi bin # ZOPE_HOME="/usr/lib/zope-2.7.2" INSTANCE_HOME="/var/lib/zope/zope-2.7.2" CONFIG_FILE="/var/lib/zope/zope-2.7.2/etc/zop
e.conf" SOFTWARE_HOME="/usr/lib/zope-2.7.2/lib/python" PYTHONPATH="$SOFTWARE_HOME" /usr/bin/python /usr/lib/zope-2.7.2/lib/python/Zope/Startup/zopectl.py -C /var/lib/zope/zope-2.7.2/etc/zope.conf start
Traceback (most recent call last):
  File "/usr/lib/zope-2.7.2/lib/python/Zope/Startup/zopectl.py", line 42, in ?
    import zdaemon
ImportError: No module named zdaemon


Reproducible: Always
Steps to Reproduce:
1. emerge zope, configure an instance
2. emerge plone, add plone using zprod-manager add
3. start zope

Actual Results:  
Zope fails to run properly. One of the daemons (manager daemon) dies right after
starting. 

Expected Results:  
Zope should start normally, and plone should be available in the object menu.

Portage 2.0.51_rc1 (default-x86-2004.0, gcc-3.4.2, glibc-2.3.4.20040808-r0,
2.6.8-gentoo i686)
=================================================================
System uname: 2.6.8-gentoo i686 Mobile AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.5.3
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux-headers-2.4.22
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-mtune=athlon-xp -O3 -ffast-math -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config
/usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mtune=athlon-xp -O3 -ffast-math -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aalib acpi aim alsa apache2 apm arts audiofile avi berkdb bidi
bitmap-fonts bzlib calendar canna cdb cdr cjk crypt cscope ctype cups curl
curlwrappers dbm dga dio directfb divx4linux dvd emacs encode esd ethereal evo
exif fbcon fftw flac flash foomaticdb freetds freewnn ftp gb gd gdbm gif gnome
gphoto2 gpm gstreamer gtk gtk2 icq imagemagick imap imlib innodb jabber java
jikes jpeg junit kde ldap lesstif libg++ libwww mad maildir mcal mhash mikmod
mime ming mmap mmx motif mozilla mpeg msn mssql mysql mysqli ncurses nls odbc
offensive oggvorbis opengl oss pam pcmcia pcntl pcre pda pdflib perl php
plotutils png pnp posix postgres python qt quicktime readline samba sasl sdl
session shared simplexml slang snmp soap sockets spell ssl svga sysvipc tcltk
tcpd tetex tiff truetype unicode usb wmf wxwindows x86 xine xml xml2 xmlrpc xmms
xpm xprint xv xvid zlib"
Comment 1 Radoslaw Stachowiak (RETIRED) gentoo-dev 2004-09-26 14:47:46 UTC
Hi, could You please provide info (please do it with the same order as below):

1) what are effect of:
ls -la /usr/lib/zope-2.7.2
ls -la /var/lib/zope/zope-2.7.2
ls -la /var/lib/zope/zope-2.7.2/Products

2) what is result ot:
cat /var/lib/zope/.default

3) if after installing zprod-manager 0.2 (its ~x86) now, and removing all products from instance and adding them, bug still occurs ?

4) genlop -l info with packages adjacent to zope/plone installation (emerge genlop before) ?
Comment 2 Jan Van Uytven 2004-09-27 15:04:02 UTC
1) what are effect of:
ls -la /usr/lib/zope-2.7.2
ls -la /var/lib/zope/zope-2.7.2
ls -la /var/lib/zope/zope-2.7.2/Products

I had to have root permissions to view the latter two. Is that normal?

wyvern@magi ~ $ ls -al /usr/lib/zope-2.7.2 
total 75
drwxr-xr-x    6 root root   144 Sep 25 18:37 .
drwxr-xr-x  117 root root 77240 Sep 25 22:27 ..
drwxr-xr-x    2 root root   464 Sep 25 18:45 bin
drwxr-xr-x    2 root root   128 Sep 25 18:37 import
drwxr-xr-x    3 root root    72 Sep 25 18:37 lib
drwxr-xr-x    9 root root   288 Sep 25 18:37 skel

wyvern@magi ~ $ sudo ls -al /var/lib/zope/zope-2.7.2
total 13
drwxr-x---   8 zope zope  320 Sep 25 20:37 .
drwxr-xr-x   3 root root   80 Sep 25 20:17 ..
-rw-r--r--   1 root root  271 Sep 25 20:37 .zproduct.lst
drwxr-x---   2 zope zope   80 Sep 25 20:17 Extensions
drwxr-x---  23 zope zope  776 Sep 25 20:37 Products
-rw-r-----   1 zope zope  410 Sep 25 20:17 README.txt
drwxr-x---   2 zope zope  160 Sep 25 20:17 bin
drwxr-x---   2 zope zope   80 Sep 25 20:17 etc
drwxr-x---   2 zope zope   80 Sep 25 20:17 import
lrwxrwxrwx   1 zope zope   24 Sep 25 20:17 log -> /var/log/zope/zope-2.7.2
drwxr-x---   2 zope zope  248 Sep 25 20:49 var
-rw-r-----   1 zope zope 1327 Sep 25 20:17 zope.initd

wyvern@magi ~ $ sudo ls -al /var/lib/zope/zope-2.7.2/Products
total 21
drwxr-x---  23 zope zope  776 Sep 25 20:37 .
drwxr-x---   8 zope zope  320 Sep 25 20:37 ..
drwxr-xr-x  13 zope zope 2424 Sep 25 20:41 Archetypes
drwxr-xr-x   6 zope zope  352 Sep 25 20:29 CMFActionIcons
drwxr-xr-x   8 zope zope  544 Sep 25 20:28 CMFCalendar
drwxr-xr-x   6 zope zope 3016 Sep 25 20:41 CMFCore
drwxr-xr-x  10 zope zope 1776 Sep 25 20:41 CMFDefault
drwx------   7 zope zope 1224 Sep 25 20:29 CMFFormController
drwxr-xr-x  12 zope zope 2304 Sep 25 20:41 CMFPlone
drwxr-xr-x   4 zope zope  480 Sep 25 20:28 CMFQuickInstallerTool
drwxr-xr-x   7 zope zope  904 Sep 25 20:41 CMFTopic
drwxr-xr-x   7 zope zope  672 Sep 25 20:28 DCWorkflow
drwxr-xr-t   4 zope zope  344 Sep 25 20:28 Epoz
drwxr-xr-x   5 zope zope  576 Sep 25 20:27 ExternalEditor
drwxr-xr-x   6 zope zope 1080 Sep 25 20:28 Formulator
drwxr-xr-x  10 zope zope 1048 Sep 25 20:28 GroupUserFolder
drwxr-xr-x   7 zope zope  888 Sep 25 20:41 MimetypesRegistry
drwxr-xr-x   6 zope zope  704 Sep 25 20:28 PlacelessTranslationService
drwxr-xr-x   7 zope zope  336 Sep 25 20:29 PloneErrorReporting
drwxr-xr-x   3 zope zope  280 Sep 25 20:28 PloneTranslations
drwxr-xr-x  10 zope zope 1208 Sep 25 20:41 PortalTransforms
-rw-r-----   1 zope zope  170 Sep 25 20:17 README.txt
drwxr-xr-x   3 zope zope  520 Sep 25 20:41 generator
drwxr-xr-x   6 zope zope  776 Sep 25 20:41 validation

2) what is result ot:
cat /var/lib/zope/.default

wyvern@magi ~ $ sudo cat /var/lib/zope/.default
cat: /var/lib/zope/.default: No such file or directory

3) if after installing zprod-manager 0.2 (its ~x86) now, and removing all products from instance and adding them, bug still occurs ?

Yes. Daemon still dies after start.

4) genlop -l info with packages adjacent to zope/plone installation (emerge genlop before) ?

Sat Sep 25 12:51:35 2004 >>> net-im/gaim-1.0.0
     Sat Sep 25 12:53:44 2004 >>> x11-plugins/gaim-encryption-2.31
     Sat Sep 25 18:37:30 2004 >>> net-zope/zope-2.7.2-r2
     Sat Sep 25 18:40:14 2004 >>> dev-util/dialog-1.0.20040731
     Sat Sep 25 18:40:27 2004 >>> app-admin/zope-config-0.4-r3
     Sat Sep 25 20:27:20 2004 >>> app-admin/zprod-manager-0.1-r1
     Sat Sep 25 20:27:44 2004 >>> net-zope/externaleditor-0.8
     Sat Sep 25 20:28:11 2004 >>> net-zope/placelesstranslationservice-fork-1.0_rc7
     Sat Sep 25 20:28:18 2004 >>> net-zope/epoz-0.8.4
     Sat Sep 25 20:28:25 2004 >>> net-zope/groupuserfolder-2.0.1
     Sat Sep 25 20:28:32 2004 >>> net-zope/plonetranslations-0.5
     Sat Sep 25 20:28:41 2004 >>> net-zope/cmf-1.4.7
     Sat Sep 25 20:28:48 2004 >>> net-zope/cmfquickinstallertool-1.5.0
     Sat Sep 25 20:28:55 2004 >>> net-zope/formulator-1.6.2
     Sat Sep 25 20:29:03 2004 >>> net-zope/cmfformcontroller-1.0.3
     Sat Sep 25 20:29:11 2004 >>> net-zope/portaltransforms-1.0.4
     Sat Sep 25 20:29:20 2004 >>> net-zope/archetypes-1.3.0_rc2
     Sat Sep 25 20:29:29 2004 >>> net-zope/ploneerrorreporting-0.11
     Sat Sep 25 20:29:36 2004 >>> net-zope/cmfactionicons-0.9
     Sat Sep 25 20:29:45 2004 >>> net-zope/plone-2.0.4
     Sat Sep 25 22:02:45 2004 >>> dev-libs/expat-1.95.8
     Sat Sep 25 22:10:38 2004 >>> net-www/apache-2.0.51-r1
     Sat Sep 25 22:11:00 2004 >>> dev-java/ant-core-1.5.4-r2
     Sat Sep 25 22:11:13 2004 >>> dev-java/ant-1.5.4-r2
     Sat Sep 25 22:28:12 2004 >>> dev-db/mysql-4.0.20-r1
     Mon Sep 27 14:51:43 2004 >>> sys-apps/portage-2.0.51_rc6
     Mon Sep 27 14:52:55 2004 >>> app-admin/zprod-manager-0.2
     Mon Sep 27 14:58:28 2004 >>> dev-perl/DateManip-5.42a-r1
     Mon Sep 27 14:58:38 2004 >>> app-portage/genlop-0.30.2
Comment 3 Radoslaw Stachowiak (RETIRED) gentoo-dev 2004-09-27 15:23:00 UTC
first, thank you for detailed report.

1) you should have set default zope instance, to do so please execute "/usr/sbin/zope-config --zidef-set" - it should create /var/lib/zope/.default file with correct zope instance name inside.

2) your listings shows that zope-2.7.2 instance is being owned by "zope" user is this really user entered by you at zope-config prompt ? could You please shows us effective-user from /var/lib/zope/zope-2.7.2/etc/zope.conf ?

3) Could You please check by hand if all directories/files inside /usr/lib/zope-2.7.2/lib have reading permissions for all? (755/644) ?

4) please provide us also content of /var/lib/zope/zope-2.7.2/bin/zopectl

hope we can solve it at some moment :)
Comment 4 Jan Van Uytven 2004-09-28 10:29:36 UTC
Thanks for helping me with this :)

1) you should have set default zope instance, to do so please execute "/usr/sbin/zope-config --zidef-set" - it should create /var/lib/zope/.default file with correct zope instance name inside.

I have done this. No effect.

2) your listings shows that zope-2.7.2 instance is being owned by "zope" user is this really user entered by you at zope-config prompt ? could You please shows us effective-user from /var/lib/zope/zope-2.7.2/etc/zope.conf ?

Yes, these are the users I set:
magi ~ # grep zope /etc/passwd
zope:x:261:261:added by portage for zope://usr/lib/:/bin/bash
magi ~ # grep zope /etc/group
zope:x:261:zope

From /var/lib/zope/zope-2.7.2/etc/zope.conf:
# Directive: effective-user
#
# Description:
#     If you intend to run Zope as the "root" user, you must supply this
#     directive with an effective username or userid number to which Zope
#     will 'suid' after the server ports are bound. This directive only
#     has effect under UNIX and if Zope is started as the root user.
#
# Default: unset
#
# Example:
#
#    effective-user chrism
effective-user zope

3) Could You please check by hand if all directories/files inside /usr/lib/zope-2.7.2/lib have reading permissions for all? (755/644) ?

magi ~ # cd /usr/lib/zope-2.7.2/lib 
magi lib # ls -al
total 2
drwxr-xr-x   3 root root   72 Sep 25 18:37 .
drwxr-xr-x   6 root root  144 Sep 25 18:37 ..
drwxr-xr-x  40 root root 1728 Sep 25 20:21 python
magi lib # cd python/
magi python # ls -al
total 326
drwxr-xr-x  40 root root  1728 Sep 25 20:21 .
drwxr-xr-x   3 root root    72 Sep 25 18:37 ..
drwxr-xr-x   6 root root  1688 Sep 25 20:21 AccessControl
-rwxr-xr-x   1 root root 31704 Sep 25 18:37 Acquisition.so
drwxr-xr-x   5 root root  1784 Sep 25 20:21 App
drwxr-xr-x   3 root root   456 Sep 25 18:37 BDBStorage
-rwxr-xr-x   1 root root 21860 Sep 25 18:37 BTree.so
drwxr-xr-x   3 root root   832 Sep 25 20:21 BTrees
-rwxr-xr-x   1 root root  5480 Sep 25 18:37 ComputedAttribute.so
drwxr-xr-x   2 root root   344 Sep 25 20:21 DBTab
drwxr-xr-x   3 root root   296 Sep 25 20:21 DateTime
drwxr-xr-x   4 root root  1432 Sep 25 20:21 DocumentTemplate
-rwxr-xr-x   1 root root 77568 Sep 25 18:37 ExtensionClass.so
-rw-r--r--   1 root root  1620 Sep 25 18:37 Globals.py
-rw-r--r--   1 root root  2074 Sep 25 20:21 Globals.pyc
drwxr-xr-x   4 root root   480 Sep 25 18:37 HelpSys
-rwxr-xr-x   1 root root 24820 Sep 25 18:37 IIBTree.so
-rwxr-xr-x   1 root root 23460 Sep 25 18:37 IOBTree.so
-rw-r--r--   1 root root   923 Sep 25 18:37 ImageFile.py
-rw-r--r--   1 root root   379 Sep 25 18:37 ImageFile.pyc
drwxr-xr-x   4 root root  1328 Sep 25 20:21 Interface
-rw-r--r--   1 root root  2953 Sep 25 18:37 Lifetime.py
-rw-r--r--   1 root root  2251 Sep 25 18:37 Lifetime.pyc
-rwxr-xr-x   1 root root  4812 Sep 25 18:37 MethodObject.so
-rwxr-xr-x   1 root root  6672 Sep 25 18:37 Missing.so
-rwxr-xr-x   1 root root  7460 Sep 25 18:37 MultiMapping.so
drwxr-xr-x   6 root root  2080 Sep 25 20:21 OFS
-rwxr-xr-x   1 root root 23460 Sep 25 18:37 OIBTree.so
drwxr-xr-x   2 root root   112 Sep 25 20:21 Persistence
drwxr-xr-x  22 root root   720 Sep 25 20:21 Products
-rwxr-xr-x   1 root root 12352 Sep 25 18:37 Record.so
drwxr-xr-x   3 root root   760 Sep 25 20:21 RestrictedPython
drwxr-xr-x   3 root root   880 Sep 25 18:37 SearchIndex
drwxr-xr-x   3 root root   136 Sep 25 20:21 Shared
drwxr-xr-x   2 root root   248 Sep 25 18:37 Signals
drwxr-xr-x   4 root root  1088 Sep 25 18:37 StructuredText
drwxr-xr-x   4 root root  1376 Sep 25 18:37 TAL
drwxr-xr-x   3 root root   488 Sep 25 18:37 Testing
-rwxr-xr-x   1 root root  7864 Sep 25 18:37 ThreadLock.so
drwxr-xr-x   2 root root   176 Sep 25 20:21 ThreadedAsync
drwxr-xr-x   3 root root   200 Sep 25 20:21 TreeDisplay
drwxr-xr-x   3 root root   624 Sep 25 18:37 ZClasses
drwxr-xr-x   4 root root   704 Sep 25 20:21 ZConfig
drwxr-xr-x   5 root root  1552 Sep 25 18:37 ZEO
drwxr-xr-x   3 root root  2400 Sep 25 20:21 ZODB
drwxr-xr-x   3 root root  1248 Sep 25 20:21 ZPublisher
drwxr-xr-x   5 root root  1152 Sep 25 20:21 ZServer
drwxr-xr-x   3 root root   480 Sep 25 18:37 ZTUtils
drwxr-xr-x   4 root root   224 Sep 25 20:21 Zope
drwxr-xr-x   3 root root   200 Sep 25 20:21 ZopeUndo
drwxr-xr-x   7 root root   712 Sep 25 18:37 docutils
-rwxr-xr-x   1 root root  3864 Sep 25 18:37 initgroups.so
-rwxr-xr-x   1 root root 11520 Sep 25 18:37 intSet.so
drwxr-xr-x   2 root root   176 Sep 25 18:37 nt_svcutils
drwxr-xr-x   2 root root   184 Sep 25 18:37 reStructuredText
drwxr-xr-x   3 root root   312 Sep 25 20:21 tempstorage
drwxr-xr-x   4 root root   944 Sep 25 20:21 webdav
drwxr-xr-x   3 root root   440 Sep 25 20:21 zExceptions
drwxr-xr-x   3 root root   488 Sep 25 20:21 zLOG
drwxr-xr-x   3 root root   408 Sep 25 20:21 zdaemon

All files readable by all. Just to be safe, I chmod -R 755 ../python 

4) please provide us also content of /var/lib/zope/zope-2.7.2/bin/zopectl

#! /bin/sh

PYTHON="/usr/bin/python"
ZOPE_HOME="/usr/lib/zope-2.7.2"
INSTANCE_HOME="/var/lib/zope/zope-2.7.2"
CONFIG_FILE="/var/lib/zope/zope-2.7.2/etc/zope.conf"
SOFTWARE_HOME="/usr/lib/zope-2.7.2/lib/python"
PYTHONPATH="$SOFTWARE_HOME"
export PYTHONPATH INSTANCE_HOME SOFTWARE_HOME

ZDCTL="$SOFTWARE_HOME/Zope/Startup/zopectl.py"

exec "$PYTHON" "$ZDCTL" -C "$CONFIG_FILE" "$@"

Comment 5 Jan Van Uytven 2004-09-28 10:36:58 UTC
Sorry, didn't mention... still doesn't work. Got the same problem as before when run manually:

magi bin # exec "$PYTHON" "$ZDCTL" -C "$CONFIG_FILE" "$@"
Traceback (most recent call last):
  File "/usr/lib/zope-2.7.2/lib/python/Zope/Startup/zopectl.py", line 42, in ?
    import zdaemon
ImportError: No module named zdaemon
Comment 6 Radoslaw Stachowiak (RETIRED) gentoo-dev 2004-09-28 14:53:35 UTC
this is very strange. it looks like a bug around bash/python/permissions not the zope itself. as i can see youre running portage 51_rc1, so evth should be up to date. neverthless it does not work :(

ok, another bunch of questions:

1) "ls -l /usr/bin/python /usr/lib/zope-2.7.2/bin/python"

2) "find /usr/lib/zope-2.7.2/ -perm 0600 -o -perm 0700"

3) what version of bash do You use, and if /bin/sh points to current one?

4) Could you please shows us transcript of this session:
---
cd /usr/lib/zope-2.7.2/lib/python
python
import zdaemon
---

please paste it all.

5) qpkg -v -I net-zope/zope

6) qpkg -v -I dev-lang/python

7) ok, it will sound silly :) but could You please try to add new new zope instance, and try to run it _without_ any new added products. please assign it NEW uid and NEW gid.
Comment 7 Jan Van Uytven 2004-09-28 15:32:32 UTC
It may seem strange but it's happening on both my main server and my laptop :( Thanks again for helping me out. 

If it's worth anything, zope was running fine before I used zprod-manager to install any products. It was only after I installed products that zope stopped working. 

Hmmm... removed all products - zope works
Added just external-editor - zope works, can see the external editor icons
Added formulator and groupuserfolders - Zope works, can add formulator forms
Added archetypes, epoz - zope does not work
Removed archetypes - zope works

So the problem seems to be with archetypes. Is it required for plone?
Kept archetypes out, Added all the CMF stuff - zope works, CMF products available
Add everything except for archetypes - zope doesn't work :(
Removed portal transforms - zope does not work
Removed plone elements, leaving placelesstranslationservice-fork - zope works

I will get the rest of the requested info in a bit :)
Comment 8 Jan Van Uytven 2004-09-28 15:40:26 UTC
1) "ls -l /usr/bin/python /usr/lib/zope-2.7.2/bin/python"

magi ~ # ls -l /usr/bin/python /usr/lib/zope-2.7.2/bin/python
lrwxrwxrwx  1 root root  9 Aug  9 09:50 /usr/bin/python -> python2.3
lrwxrwxrwx  1 root root 15 Sep 25 18:37 /usr/lib/zope-2.7.2/bin/python -> /usr/bin/python

2) "find /usr/lib/zope-2.7.2/ -perm 0600 -o -perm 0700"

magi ~ # find /usr/lib/zope-2.7.2/ -perm 0600 -o -perm 0700
magi ~ #

3) what version of bash do You use, and if /bin/sh points to current one?

magi ~ # bash --version
bash --version
GNU bash, version 3.00.0(1)-release (i686-pc-linux-gnu)
Copyright (C) 2004 Free Software Foundation, Inc.
magi ~ # ls -al `which bash`
ls -al `which bash`
which bash
-rwxr-xr-x  1 root root 714500 Aug 20 11:36 /bin/bash
magi ~ # ls -al `which sh`
ls -al `which sh`
which sh
lrwxrwxrwx  1 root root 4 Aug 20 11:36 /bin/sh -> bash
magi ~ #

4) Could you please shows us transcript of this session:
---
cd /usr/lib/zope-2.7.2/lib/python
python
import zdaemon
---
magi ~ # cd /usr/lib/zope-2.7.2/lib/python
cd /usr/lib/zope-2.7.2/lib/python
magi python # python
python
Python 2.3.4 (#1, Aug  9 2004, 16:49:20) 
[GCC 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import zdaemon
>>>

5) qpkg -v -I net-zope/zope

magi python # qpkg -v -I net-zope/zope
net-zope/zope-2.7.2-r2 *

6) qpkg -v -I dev-lang/python

magi python # qpkg -v -I dev-lang/python
dev-lang/python-2.3.4 *

7) ok, it will sound silly :) but could You please try to add new new zope instance, and try to run it _without_ any new added products. please assign it NEW uid and NEW gid.

Doesn't sound silly to me, but see my previous comment - zope runs fine if you leave archetypes out
Comment 9 aurelboiss 2004-09-30 00:18:44 UTC
i have an another bug with this version of plone. I can launch a zope instance and i can to connect it http://localhost:8080 and it work fine :) but in ZMI i can't add a "plonesite" :( 
Comment 10 Radoslaw Stachowiak (RETIRED) gentoo-dev 2004-09-30 03:00:14 UTC
Jan, 

1) is there any possibility that /var filesystem is full or running out of inodes?
2) do You use any non standard kernel patches (grsec) ?
3) Could You please run "find /var/lib/zope -not -uid 1015"  (put your zope user uid as 1015)
4) Could You please check zope with different version of archetypes? Please check with 1.3.0_beta (in portage) and with 1.3.0-rc4 (attached ebuild for you)
5) Please set log level to debug (eventlog in zope.conf) and try to observe errors on event.log and paste results if you find them somehow related.

aurelboiss  (comment #9) - probably your problems are not related to this bug, and you should file a separate bug report on bugzilla, but lets wait with it until this bug is resolved.
Comment 11 Radoslaw Stachowiak (RETIRED) gentoo-dev 2004-09-30 03:01:04 UTC
Created attachment 40761 [details]
new archetypes ebuild for testing purposes.

for Jan.
Comment 12 Jan Van Uytven 2004-09-30 12:46:35 UTC
1) is there any possibility that /var filesystem is full or running out of inodes?

No, there's space on /var. As for inodes, I don't know... I use reiserfs, how do I check with that?

2) do You use any non standard kernel patches (grsec) ?

No, I'm using the gentoo-dev-sources kernel (2.6.8-gentoo). 

3) Could You please run "find /var/lib/zope -not -uid 1015"  (put your zope user uid as 1015)

magi ~ # find /var/lib/zope -not -uid 261
/var/lib/zope
/var/lib/zope/zope-2.7.2/.zproduct.lst

4) Could You please check zope with different version of archetypes? Please check with 1.3.0_beta (in portage) and with 1.3.0-rc4 (attached ebuild for you)

Removed archetypes from zope using zprod-manager del, then emerge 1.3.0_beta3, then tried to add using zprod-manager add, got this after exiting zprod-manager:
cp: cannot stat `/usr/share/zproduct//archetypes-1.3.0_beta3/ArchExample': No such file or directory
cp: cannot stat `/usr/share/zproduct//archetypes-1.3.0_beta3/ArchGenXML': No such file or directory
chown: cannot access `/var/lib/zope/zope-2.7.2/Products/ArchExample': No such file or directory
chmod: cannot access `/var/lib/zope/zope-2.7.2/Products/ArchExample': No such file or directory
chown: cannot access `/var/lib/zope/zope-2.7.2/Products/ArchGenXML': No such file or directory
chmod: cannot access `/var/lib/zope/zope-2.7.2/Products/ArchGenXML': No such file or directory

Tried zope - no joy

after removing archetypes using zprod-manager del, downloaded attachment and copied to /usr/portage/net-zope/archetypes and tried
emerge =net-zope/archetypes-1.3.0_rc4:
>>>
These are the packages that I would merge, in order:

Calculating dependencies  /usr/portage/net-zope/archetypes/archetypes-1.3.0_rc4.: command not found
.eclass: No such file or directoryne 1301: /usr/portage/eclass/zproduct

!!! ERROR: net-zope/archetypes-1.3.0_rc4 failed.
!!! Function inherit, Line 1302, Exitcode 1
.eclass in inherit()sr/portage/eclass/zproduct
!!! If you need support, post the topmost build error, NOT this status message.
aux_get(): (0) Error in net-zope/archetypes-1.3.0_rc4 ebuild. (1)
               Check for syntax error or corruption in the ebuild. (--debug)

 
!!! All ebuilds that could satisfy "=net-zope/archetypes-1.3.0_rc4" have been masked.
!!! One of the following masked packages is required to complete your request:
: command not foundpe/archetypes/archetypes-1.3.0_rc4.ebuild: line 4: 
.eclass: No such file or directoryne 1301: /usr/portage/eclass/zproduct

!!! ERROR: net-zope/archetypes-1.3.0_rc4 failed.
!!! Function inherit, Line 1302, Exitcode 1
.eclass in inherit()sr/portage/eclass/zproduct
!!! If you need support, post the topmost build error, NOT this status message.


aux_get(): (0) Error in net-zope/archetypes-1.3.0_rc4 ebuild. (1)
               Check for syntax error or corruption in the ebuild. (--debug

!!! Problem in =net-zope/archetypes-1.3.0_rc4 dependencies.
!!!  exceptions
>>>

Tried to install the ebuild directly but got an intimidating message about people coming after me. o_0

5) Please set log level to debug (eventlog in zope.conf) and try to observe errors on event.log and paste results if you find them somehow related.

Set the log level to debug. Remerged archetypes to rd2 - started Zope... and...
it works! ????????? o_0

Tried adding plone components using zprod-manager, restart zope - damn, still doesn't work - zope again refuses to start. Nothing in the event log (since the previous successful start).

Removed plone components, left archetypes - still doesn't work. Removed archetypes - works again. 

So for a moment there it worked. Just for kicks, emerged archetypes-1.2.5_rc5 - same problem. I'll gladly try the attachment you posted - can I emerge it directly, or will that cause b0rkn3ss?
Comment 13 Radoslaw Stachowiak (RETIRED) gentoo-dev 2004-09-30 13:49:19 UTC
Created attachment 40804 [details]
archetypes-1.3.0_rc4.ebuild

this is corrected archetypes ebuild rc4.
you can emerge it:

emerge =net-zope/archatypes-1.3.0_rc4

or by specifing path, in this way you can safely ignore warning message.
Comment 14 Radoslaw Stachowiak (RETIRED) gentoo-dev 2004-09-30 14:17:24 UTC
Jan, after analysis i think there are propably three or four separate problems :) which lead us to the present situation. Some are solved, some not, but during tests you should be aware of them and pay atention to them:

1. zprod-manager in version < 0.2 has bug in interactive mode which leads to uncomplete products being copied into instance on add command. This is fixed in 0.2 so please use only this version.

2. /usr/portage/eclass/zproduct.eclass should be at version 1.14 (you can check it in line number three). Version 1.13 can be problematic when dealing with some products. 

3. zprod-manager-0.2 connected with emerge and zproduct.eclass 1.14 can in specific situation lead to broken instance-copy-of-products creation. This can happen especially after upgrading (emerge) products from previous versions.

4. unnknown thing which caused your _rc2 (and maybe other products too) being wrongly installed at start. Still dont know if its a separate problem, or all previous three connected.

So as for now, please try to create new clean zope instance, and populate it by hand (cp would be ok, or using midnight commander) from /usr/share/zproducts. Please pay attention to:
a. correct permissions on /var/lib/zope/ZOPEINST/Products/*
b. one product (for example /usr/share/zproduct/archetypes-1.3.0_rc2) can contain few directories. You have to copy them all.
c. You should copy to /var/lib/zope/ZOPEINST/Products not directly /usr/share/zproduct/PRODUCT but /usr/share/zproducts/PRODUCT/*

Please let me know if it helped.
Comment 15 Radoslaw Stachowiak (RETIRED) gentoo-dev 2004-10-01 03:05:42 UTC
ok, i finally managed to discover this unknown problem nr 4) which is crucial part of this maze :)

PortalTransforms-1.0.4.ebuild is overwritten by archetypes. You can check that archetypes ebuild also provide portal transforms zope product (/usr/share/zproduct). Due to previous bugs, uninstalling portaltransforms-1.0.4 also removes from Your instance part of  archetypes (portal transforms). the same for opposite.

So to achieve working instance, you should apply all my suggestions from comment #14 AND add to instance archetypes as a last product (probably removing before it, portaltransforms).

This should result in your problem solved :)

All this will be fixed by zprod-manager-0.3, and archetypes-1.3.0 ebuild which I plan to commit into portage today/tomorrow after net-zope team internal discussion (waiting for Your reponse guys :)

Jan, please do not wait to official fix into portage, but please do tests based on information provided by me, and comment here. Its very important for us to properly resolve this bug.
Comment 16 Jan Van Uytven 2004-10-01 15:53:59 UTC
Radoslaw,

Thanks for your help. Tonight I will follow all your suggestions, and report back (sorry, been away for two days)

Jan
Comment 17 Jan Van Uytven 2004-10-01 23:35:02 UTC
Okay, so here is what I did.

I created a new instance zope-test-2.7.2. I started it up and verified that is was working, then I started using cp -r to copy products from /usr/share/zproduct/<PRODUCT>/* to /var/lib/zope/zope-test-2.7.2/Products

I copied...
externaleditor-0.8/*

restarted zope - works

formulator-1.6.2/*
epoz-0.8.4/*

restarted zope - works

groupuserfolder-2.0.1/*
cmf-1.4.7/*
cmfactionicons-0.9/*
cmfformcontroller-1.0.3/*
cmfquickinstallertool-1.5.0/*

restarted zope - works

Now...copied over
plone-2.0.4/*
ploneerrorreporting-0.11/*
plonetranslations-0.5/*
portaltransforms-1.0.4/*

restarted zope - dies

rm -rf PortalTransforms
copied 
archetypes-1.3.0_rc2/* 

restarted zope - dies

rm -rf PortalTransforms
copied 
portaltransforms-1.0.4/*

restarted zope - no joy

So that's where I am right now. I'll wait until the changes to portage, and then I'm going to blow the whole sorry mess away and start over from scratch.
Comment 18 Jan Van Uytven 2004-10-01 23:40:09 UTC
I should mention that each time before restarting zope, I did a chown -R zope:zope * in the Products directory.

If you want to keep trying to debug this, I'm game. I wish I had the expertise to dig deeper. 
Comment 19 Jan Van Uytven 2004-10-06 21:26:31 UTC
So... what's happening? I notice zprod-manager is still 2.0 in portage.
Comment 20 Jan Van Uytven 2004-10-06 21:34:05 UTC
Tried to emerge the revised archetypes-1.3.0_rc4, still no luck:

magi archetypes # emerge =net-zope/archetypes-1.3.0_rc4.ebuild

!!! Warning: emerge /path/to/ebuild is broken and considered dangerous.
!!! Don't use it. I'm serious, we're coming after you if you use it.

>>> Waiting 10 seconds before starting...
>>> (Control-C to abort)...
Continuing with emerge /path/to/ebuild in: 10 9 8 7 6 5 4 3 2 1 
Calculating dependencies   archetypes/archetypes-1.3.0_rc4                     -!!! aux_get(): ebuild path for 'archetypes/archetypes-1.3.0_rc4' not specified:
!!!            None
Traceback (most recent call last):
  File "/usr/bin/emerge", line 2809, in ?
    retval,favorites=mydepgraph.select_files(myfiles)
  File "/usr/bin/emerge", line 1000, in select_files
    if not self.create(["ebuild",portage.root,mykey],None,"--onlydeps" not in myopts):
  File "/usr/bin/emerge", line 915, in create
    self.pkgsettings.setinst(mykey,portage.db[myroot]["porttree"].dbapi)
  File "/usr/lib/portage/pym/portage.py", line 1210, in setinst
    provides = mydbapi.aux_get(mycpv, ["PROVIDE"])[0]
  File "/usr/lib/portage/pym/portage.py", line 4837, in aux_get
    raise KeyError, "'%(cpv)s' at %(path)s" % {"cpv":mycpv,"path":myebuild}
KeyError: "'archetypes/archetypes-1.3.0_rc4' at None"
Comment 21 Radoslaw Stachowiak (RETIRED) gentoo-dev 2004-10-08 03:16:44 UTC
it took me a little longer, sorry for that.
Now all fixes are in portage, please check them, doing:
1. emerge sync (its important to get newest version)
2. emerge -v =zprod-manager-0.3
3. emerge -C =archetypes-1.3* =net-zope/generator-1.3* =net-zope/validation-1.3* =net-zope/portaltransforms-1.3* =net-zope/mimetypesregistry-1.3* (uninstall all archetypes 1.3* and dependant products - they are not needed to plone-2.0 and test will be simpler on 1.2)
4. emerge -v =archetypes-1.2.5_rc5
5. emerge -v =portaltransforms-1.0.4
6. create NEW instance using zope-config
7. run 'zprod-manager add' and add all needed products, probably(!) you can safely add them all, but only if you do not have installed some ~x86 keyworded products (for example all archetypes family slotted to 1.3
8. then try to run your NEW (!) zope isntance
9. if it wont start (hope not), please provide:
9.a. qpkg -v -I net-zope
9.b. try to run: /var/lib/zope/ZOPENEWINSTANCE/bin/runzope and attach output here, it should have error messages.

By the way, if You remove all net-zope products and upgrade to zprod-manager-0.3 and zope-config-0.5, then plone installation from scratch on new system should proceeed fine without any problems. above steps are needed only to help You to not lose zope instance data.
Comment 22 Jan Van Uytven 2004-10-12 21:51:40 UTC
Yes!!! After completely blowing away my zope +plone and re-emerging with the new packages in portage, I was able to install plone easily and import my archived plone site with little trouble.

Thanks Radoslaw for all your hard work! Myself and other future users of Plone are in your debt.