Re: [Zope] Zope 2.9.3/2.9.1 On Suse 10.1 box version

2006-09-06 Thread Ofer Weisglass
I recompiled python from source and later did the right steps with the
right promissions and now everything is working for me as well.

Thanks

ofer

 Howdy--

 I just ran into this same problem. After much poking around, it turned
 out that the source of the problem was that the zlib module for Python
 had not been compiled because I didn't have the zlib development stuff
 (in zlib-devel on RH and similar, not sure about Suse) installed.
 Installing zlib-devel, then recompiling Python from source solved the
 problem.

 Best,

 Jeremy.

 [EMAIL PROTECTED] wrote:

Date: Wed, 5 Jul 2006 20:51:28 +0200
From: [EMAIL PROTECTED]
Subject: Re: [Zope] Zope 2.9.3/2.9.1 On Suse 10.1 box version
To: [EMAIL PROTECTED]
Cc: zope@zope.org
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=us-ascii

Ofer Weisglass wrote at 2006-7-5 01:38 +0300:


 ...
I updated the python to the last version and this is what I get after
 the
zope installation was over with no errors (already created instance,
username and password)

Traceback (most recent call last):
 ...
setImplementation(C)
  File /usr/software/zope/lib/python/AccessControl/Implementation.py,
line 51, in setImplementation
from AccessControl import ImplC as impl
  File /usr/software/zope/lib/python/AccessControl/ImplC.py, line 30,
 in ?
from ImplPython import RestrictedDTML, SecurityManager,
ZopeSecurityPolicy
ImportError: No module named ImplPython



This looks like a missing installation step (generation of the
C-extensions did not happen).

Recheck the installation instructions and try again.



 -- Dieter



 ___
 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 )


___
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 )


Re: [Zope] Zope 2.9.3/2.9.1 On Suse 10.1 box version

2006-07-14 Thread Jeremy Smith

Howdy--

I just ran into this same problem. After much poking around, it turned
out that the source of the problem was that the zlib module for Python
had not been compiled because I didn't have the zlib development stuff
(in zlib-devel on RH and similar, not sure about Suse) installed.
Installing zlib-devel, then recompiling Python from source solved the
problem.

Best,

Jeremy.

[EMAIL PROTECTED] wrote:


Date: Wed, 5 Jul 2006 20:51:28 +0200
From: [EMAIL PROTECTED]
Subject: Re: [Zope] Zope 2.9.3/2.9.1 On Suse 10.1 box version
To: [EMAIL PROTECTED]
Cc: zope@zope.org
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=us-ascii

Ofer Weisglass wrote at 2006-7-5 01:38 +0300:
 


...
I updated the python to the last version and this is what I get after the
zope installation was over with no errors (already created instance,
username and password)

Traceback (most recent call last):
...
   setImplementation(C)
 File /usr/software/zope/lib/python/AccessControl/Implementation.py,
line 51, in setImplementation
   from AccessControl import ImplC as impl
 File /usr/software/zope/lib/python/AccessControl/ImplC.py, line 30, in ?
   from ImplPython import RestrictedDTML, SecurityManager,
ZopeSecurityPolicy
ImportError: No module named ImplPython
   



This looks like a missing installation step (generation of the
C-extensions did not happen).

Recheck the installation instructions and try again.



-- Dieter




___
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 )


Re: [Zope] Zope 2.9.3/2.9.1 On Suse 10.1 box version

2006-07-09 Thread Ofer Weisglass

you wrote
 The best way to run mkzopeinstance is to first su to another user (su
zope) and then run mkzopeinstance.py. The zope user must have write  
access to create the directory.

what you mean by su zope and what directory the user should have rights to?





 Ofer Weisglass wrote:

yes, it fixed the problem but now I have this error
it seems like user premission problem but I don't know how to solve it


/home/ofer/zope1/bin/runzope -X debug-mode=on
/home/usr/zopeplone/lib/python/ZServer/utils.py:33: DeprecationWarning:
The zLOG package is deprecated and will be removed in Zope 2.11. Use the
Python logging module instead.
  LOG('ZServer', severity[type], message)
2006-07-09 00:16:23 INFO ZServer HTTP server started at Sun Jul  9
00:16:23 2006
Hostname: 0.0.0.0
Port: 8080
2006-07-09 00:16:23 CRITICAL Zope A user was not specified to setuid to;
fix this to start as root (change the effective-user directive in
zope.conf)
Traceback (most recent call last):
  File /home/usr/zopeplone/lib/python/Zope2/Startup/run.py, line 56, in
 ?
run()
  File /home/usr/zopeplone/lib/python/Zope2/Startup/run.py, line 21, in
 run
starter.prepare()
  File /home/usr/zopeplone/lib/python/Zope2/Startup/__init__.py, line
94, in prepare
self.dropPrivileges()
  File /home/usr/zopeplone/lib/python/Zope2/Startup/__init__.py, line
213, in dropPrivileges
return dropPrivileges(self.cfg)
  File /home/usr/zopeplone/lib/python/Zope2/Startup/__init__.py, line
382, in dropPrivileges
raise ZConfig.ConfigurationError(msg)
ZConfig.ConfigurationError: A user was not specified to setuid to; fix
this to start as root (change the effective-user directive in zope.conf)




--On 24. Juni 2006 23:09:00 +0300 Ofer Weisglass [EMAIL PROTECTED]
wrote:



Hi

I am trying to install Zope 2.9.3 or 2.9.1 on Suse 10.1 and this is
 what
I
get:

error: must supply either home or prefix/exec-prefix -- not both
make: *** [install] Error 1

Any ideas what to do?



Please try again with a Python source build. Usually we don't care much
about system Python installation that are often broken in different
 ways.

-aj


 Maybe this can help?

 This is from either Plope or Plone site (i think I snipped it long ago):
 
 If you are running everything as root, you will get an instance that
 cannot be started, because a different effective user id is required for
 it to change to. Even if you create an account after the fact, that user
 cannot start zope because it doesn't have access to any of the instance
 files.

 The best way to run mkzopeinstance is to first su to another user (su
 zope) and then run mkzopeinstance.py. The zope user must have write
 access to create the directory.

 EFFECTIVE-USER
 After the instance is created, edit effective-user zope into the
 etc/zope.conf, so if you start it as root later it should su itself to
 the non-root user.
  

 David



___
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 )


Re: [Zope] Zope 2.9.3/2.9.1 On Suse 10.1 box version

2006-07-09 Thread Ofer Weisglass
I added the user in the zope.conf file

but this is what I get - is it because of the folder rights?


 Traceback (most recent call last):
  File /home/usr/zopeplone/lib/python/zdaemon/zdrun.py, line 719, in ?
main()
  File /home/usr/zopeplone/lib/python/zdaemon/zdrun.py, line 716, in main
d.main(args)
  File /home/usr/zopeplone/lib/python/zdaemon/zdrun.py, line 243, in main
self.run()
  File /home/usr/zopeplone/lib/python/zdaemon/zdrun.py, line 256, in run
self.opensocket()
  File /home/usr/zopeplone/lib/python/zdaemon/zdrun.py, line 278, in
opensocke   t
sock.bind(tempname)
  File string, line 1, in bind
socket.error: (13, 'Permission denied')
. . . . . . . . . . . . . . . . . . . . . . . . ^C




 what david says is correct.
 furthermore you must (as the error suggests) add the user as which the
 zope process should run as to the zope config.
 open  the /yourInstance/etc/zope.conf in an editor and look for
 effective-user.
 this you set to the name of the user as which you start zope.

 if you allways start zope as this user, the variable can be left unset.
 however if you want to start zope as root
 (eg in the start up process of your computer) then it MUST be set.
 the reason for this is, that for security reason, zope is not allowed to
 run as user root.
 if started by user root, the zope.conf is consulted and the process
 handed over to the effective user.
 hence the need for this user to have rw permissions.
 robert

 David H wrote:
 Ofer Weisglass wrote:
 yes, it fixed the problem but now I have this error
 it seems like user premission problem but I don't know how to solve it


 /home/ofer/zope1/bin/runzope -X debug-mode=on
 /home/usr/zopeplone/lib/python/ZServer/utils.py:33: DeprecationWarning:
 The zLOG package is deprecated and will be removed in Zope 2.11. Use
 the
 Python logging module instead.
   LOG('ZServer', severity[type], message)
 2006-07-09 00:16:23 INFO ZServer HTTP server started at Sun Jul  9
 00:16:23 2006
 Hostname: 0.0.0.0
 Port: 8080
 2006-07-09 00:16:23 CRITICAL Zope A user was not specified to setuid
 to;
 fix this to start as root (change the effective-user directive in
 zope.conf)
 Traceback (most recent call last):
   File /home/usr/zopeplone/lib/python/Zope2/Startup/run.py, line 56,
 in ?
 run()
   File /home/usr/zopeplone/lib/python/Zope2/Startup/run.py, line 21,
 in run
 starter.prepare()
   File /home/usr/zopeplone/lib/python/Zope2/Startup/__init__.py, line
 94, in prepare
 self.dropPrivileges()
   File /home/usr/zopeplone/lib/python/Zope2/Startup/__init__.py, line
 213, in dropPrivileges
 return dropPrivileges(self.cfg)
   File /home/usr/zopeplone/lib/python/Zope2/Startup/__init__.py, line
 382, in dropPrivileges
 raise ZConfig.ConfigurationError(msg)
 ZConfig.ConfigurationError: A user was not specified to setuid to; fix
 this to start as root (change the effective-user directive in
 zope.conf)



 --On 24. Juni 2006 23:09:00 +0300 Ofer Weisglass [EMAIL PROTECTED]
 wrote:


 Hi

 I am trying to install Zope 2.9.3 or 2.9.1 on Suse 10.1 and this is
 what
 I
 get:

 error: must supply either home or prefix/exec-prefix -- not both
 make: *** [install] Error 1

 Any ideas what to do?


 Please try again with a Python source build. Usually we don't care
 much
 about system Python installation that are often broken in different
 ways.

 -aj

 Maybe this can help?

 This is from either Plope or Plone site (i think I snipped it long ago):
 
 If you are running everything as root, you will get an instance that
 cannot be started, because a different effective user id is required
 for it to change to. Even if you create an account after the fact,
 that user cannot start zope because it doesn't have access to any of
 the instance files.

 The best way to run mkzopeinstance is to first su to another user (su
 zope) and then run mkzopeinstance.py. The zope user must have write
 access to create the directory.

 EFFECTIVE-USER
 After the instance is created, edit effective-user zope into the
 etc/zope.conf, so if you start it as root later it should su itself to
 the non-root user.
 

 David

 

 ___
 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 )




___
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 )


Re: [Zope] Zope 2.9.3/2.9.1 On Suse 10.1 box version

2006-07-09 Thread robert rottermann

exactly!
I sugest the following:
- remove what you have done so far
- go to yast, create a user zope
- switch to this user
- install zope like this:
   wget http://www.zope.org/Products/Zope/2.9.3/Zope-2.9.3.tgz
   tar xvfz Zope-2.9.3.tgz
   mv Zope-2.9.3 Zope-2.9.3-src
   cd Zope-2.9.3-src
   ./configure --prefix=../Zope-2.9.3
   make
   make install
- cd to zopes user directory
- mkdir instances #will contain all zope instances
- ln -s Zope-2.9.3 Zope-2.9 # so you can update easily
- Zope-2.9/bin/makezopeinstance.py -d instances/MYFIRSTINSTANCE -u 
admin:admin
- edit the file ~/instances/MYFIRSTINSTANCE/etc/zope.conf to suite your 
whishes

- start zope with ~/instances/MYFIRSTINSTANCE/bin/zopectrl fg

HTH
robert

Ofer Weisglass wrote:

I added the user in the zope.conf file

but this is what I get - is it because of the folder rights?


 Traceback (most recent call last):
  File /home/usr/zopeplone/lib/python/zdaemon/zdrun.py, line 719, in ?
main()
  File /home/usr/zopeplone/lib/python/zdaemon/zdrun.py, line 716, in main
d.main(args)
  File /home/usr/zopeplone/lib/python/zdaemon/zdrun.py, line 243, in main
self.run()
  File /home/usr/zopeplone/lib/python/zdaemon/zdrun.py, line 256, in run
self.opensocket()
  File /home/usr/zopeplone/lib/python/zdaemon/zdrun.py, line 278, in
opensocke   t
sock.bind(tempname)
  File string, line 1, in bind
socket.error: (13, 'Permission denied')
. . . . . . . . . . . . . . . . . . . . . . . . ^C




  

what david says is correct.
furthermore you must (as the error suggests) add the user as which the
zope process should run as to the zope config.
open  the /yourInstance/etc/zope.conf in an editor and look for
effective-user.
this you set to the name of the user as which you start zope.

if you allways start zope as this user, the variable can be left unset.
however if you want to start zope as root
(eg in the start up process of your computer) then it MUST be set.
the reason for this is, that for security reason, zope is not allowed to
run as user root.
if started by user root, the zope.conf is consulted and the process
handed over to the effective user.
hence the need for this user to have rw permissions.
robert

David H wrote:


Ofer Weisglass wrote:
  

yes, it fixed the problem but now I have this error
it seems like user premission problem but I don't know how to solve it


/home/ofer/zope1/bin/runzope -X debug-mode=on
/home/usr/zopeplone/lib/python/ZServer/utils.py:33: DeprecationWarning:
The zLOG package is deprecated and will be removed in Zope 2.11. Use
the
Python logging module instead.
  LOG('ZServer', severity[type], message)
2006-07-09 00:16:23 INFO ZServer HTTP server started at Sun Jul  9
00:16:23 2006
Hostname: 0.0.0.0
Port: 8080
2006-07-09 00:16:23 CRITICAL Zope A user was not specified to setuid
to;
fix this to start as root (change the effective-user directive in
zope.conf)
Traceback (most recent call last):
  File /home/usr/zopeplone/lib/python/Zope2/Startup/run.py, line 56,
in ?
run()
  File /home/usr/zopeplone/lib/python/Zope2/Startup/run.py, line 21,
in run
starter.prepare()
  File /home/usr/zopeplone/lib/python/Zope2/Startup/__init__.py, line
94, in prepare
self.dropPrivileges()
  File /home/usr/zopeplone/lib/python/Zope2/Startup/__init__.py, line
213, in dropPrivileges
return dropPrivileges(self.cfg)
  File /home/usr/zopeplone/lib/python/Zope2/Startup/__init__.py, line
382, in dropPrivileges
raise ZConfig.ConfigurationError(msg)
ZConfig.ConfigurationError: A user was not specified to setuid to; fix
this to start as root (change the effective-user directive in
zope.conf)





--On 24. Juni 2006 23:09:00 +0300 Ofer Weisglass [EMAIL PROTECTED]
wrote:


  

Hi

I am trying to install Zope 2.9.3 or 2.9.1 on Suse 10.1 and this is
what
I
get:

error: must supply either home or prefix/exec-prefix -- not both
make: *** [install] Error 1

Any ideas what to do?




Please try again with a Python source build. Usually we don't care
much
about system Python installation that are often broken in different
ways.

-aj

  

Maybe this can help?

This is from either Plope or Plone site (i think I snipped it long ago):

If you are running everything as root, you will get an instance that
cannot be started, because a different effective user id is required
for it to change to. Even if you create an account after the fact,
that user cannot start zope because it doesn't have access to any of
the instance files.

The best way to run mkzopeinstance is to first su to another user (su
zope) and then run mkzopeinstance.py. The zope user must have write
access to create the directory.

EFFECTIVE-USER
After the instance is created, edit effective-user zope into the
etc/zope.conf, so if you start it as root later it should su itself to
the non-root user.
  
David



Re: [Zope] Zope 2.9.3/2.9.1 On Suse 10.1 box version

2006-07-09 Thread Ofer Weisglass
Thank you robert
first in the last line you wrote the command is zopectl fg

now I understand that you mean system user name zope
I want to install it on the user ofer and this is what I get now after
running zopectl fg

/ofer/zope/Zope293/lib/python/ZServer/utils.py:33: DeprecationWarning: The
zLOG package is deprecated and will be removed in Zope 2.11. Use the
Python logging module instead.
  LOG('ZServer', severity[type], message)
2006-07-09 10:26:43 INFO ZServer HTTP server started at Sun Jul  9
10:26:43 2006
Hostname: 0.0.0.0
Port: 8080
2006-07-09 10:26:43 INFO Zope Set effective user to ofer
ICE default IO error handler doing an exit(), pid = 6520, errno = 0
ICE default IO error handler doing an exit(), pid = 6514, errno = 0
Traceback (most recent call last):
  File /ofer/zope/Zope293/lib/python/Zope2/Startup/run.py, line 56, in ?
run()
  File /ofer/zope/Zope293/lib/python/Zope2/Startup/run.py, line 21, in run
starter.prepare()
  File /ofer/zope/Zope293/lib/python/Zope2/Startup/__init__.py, line 98,
in prepare
self.startZope()
  File /ofer/zope/Zope293/lib/python/Zope2/Startup/__init__.py, line
257, in startZope
Zope2.startup()
  File /ofer/zope/Zope293/lib/python/Zope2/__init__.py, line 47, in startup
_startup()
  File /ofer/zope/Zope293/lib/python/Zope2/App/startup.py, line 60, in
startup
DB = dbtab.getDatabase('/', is_root=1)
  File /ofer/zope/Zope293/lib/python/Zope2/Startup/datatypes.py, line
280, in getDatabase
db = factory.open(name, self.databases)
  File /ofer/zope/Zope293/lib/python/Zope2/Startup/datatypes.py, line
178, in open
DB = self.createDB(database_name, databases)
  File /ofer/zope/Zope293/lib/python/Zope2/Startup/datatypes.py, line
175, in createDB
return ZODBDatabase.open(self, databases)
  File /ofer/zope/Zope293/lib/python/ZODB/config.py, line 97, in open
storage = section.storage.open()
  File /ofer/zope/Zope293/lib/python/ZODB/config.py, line 135, in open
quota=self.config.quota)
  File /ofer/zope/Zope293/lib/python/ZODB/FileStorage/FileStorage.py,
line 112, in __init__
self._lock_file = LockFile(file_name + '.lock')
  File /ofer/zope/Zope293/lib/python/ZODB/lock_file.py, line 60, in
__init__
self._fp = open(path, 'w+')
IOError: [Errno 13] Permission denied:
'/home/ofer/zope/instances/MYFIRSTINSTANCE/var/Data.fs.lock'

can you please summery what to do as user and what action to do as root?




 exactly!
 I sugest the following:
 - remove what you have done so far
 - go to yast, create a user zope
 - switch to this user
 - install zope like this:
 wget http://www.zope.org/Products/Zope/2.9.3/Zope-2.9.3.tgz
 tar xvfz Zope-2.9.3.tgz
 mv Zope-2.9.3 Zope-2.9.3-src
 cd Zope-2.9.3-src
 ./configure --prefix=../Zope-2.9.3
 make
 make install
 - cd to zopes user directory
 - mkdir instances #will contain all zope instances
 - ln -s Zope-2.9.3 Zope-2.9 # so you can update easily
 - Zope-2.9/bin/makezopeinstance.py -d instances/MYFIRSTINSTANCE -u
 admin:admin
 - edit the file ~/instances/MYFIRSTINSTANCE/etc/zope.conf to suite your
 whishes
 - start zope with ~/instances/MYFIRSTINSTANCE/bin/zopectrl fg

 HTH
 robert

 Ofer Weisglass wrote:
 I added the user in the zope.conf file

 but this is what I get - is it because of the folder rights?


  Traceback (most recent call last):
   File /home/usr/zopeplone/lib/python/zdaemon/zdrun.py, line 719, in ?
 main()
   File /home/usr/zopeplone/lib/python/zdaemon/zdrun.py, line 716, in
 main
 d.main(args)
   File /home/usr/zopeplone/lib/python/zdaemon/zdrun.py, line 243, in
 main
 self.run()
   File /home/usr/zopeplone/lib/python/zdaemon/zdrun.py, line 256, in
 run
 self.opensocket()
   File /home/usr/zopeplone/lib/python/zdaemon/zdrun.py, line 278, in
 opensocke   t
 sock.bind(tempname)
   File string, line 1, in bind
 socket.error: (13, 'Permission denied')
 . . . . . . . . . . . . . . . . . . . . . . . . ^C





 what david says is correct.
 furthermore you must (as the error suggests) add the user as which the
 zope process should run as to the zope config.
 open  the /yourInstance/etc/zope.conf in an editor and look for
 effective-user.
 this you set to the name of the user as which you start zope.

 if you allways start zope as this user, the variable can be left unset.
 however if you want to start zope as root
 (eg in the start up process of your computer) then it MUST be set.
 the reason for this is, that for security reason, zope is not allowed
 to
 run as user root.
 if started by user root, the zope.conf is consulted and the process
 handed over to the effective user.
 hence the need for this user to have rw permissions.
 robert

 David H wrote:

 Ofer Weisglass wrote:

 yes, it fixed the problem but now I have this error
 it seems like user premission problem but I don't know how to solve
 it


 /home/ofer/zope1/bin/runzope -X debug-mode=on
 

Re: [Zope] Zope 2.9.3/2.9.1 On Suse 10.1 box version

2006-07-09 Thread robert rottermann

you did NOT create the zope instance as user ofer! did you?
there is nothing to do as user root except creating a user account.
as you do it in your own account (i assume) then ther is nothing
to be done for root.

robert

Ofer Weisglass wrote:

Thank you robert
first in the last line you wrote the command is zopectl fg

now I understand that you mean system user name zope
I want to install it on the user ofer and this is what I get now after
running zopectl fg

/ofer/zope/Zope293/lib/python/ZServer/utils.py:33: DeprecationWarning: The
zLOG package is deprecated and will be removed in Zope 2.11. Use the
Python logging module instead.
  LOG('ZServer', severity[type], message)
2006-07-09 10:26:43 INFO ZServer HTTP server started at Sun Jul  9
10:26:43 2006
Hostname: 0.0.0.0
Port: 8080
2006-07-09 10:26:43 INFO Zope Set effective user to ofer
ICE default IO error handler doing an exit(), pid = 6520, errno = 0
ICE default IO error handler doing an exit(), pid = 6514, errno = 0
Traceback (most recent call last):
  File /ofer/zope/Zope293/lib/python/Zope2/Startup/run.py, line 56, in ?
run()
  File /ofer/zope/Zope293/lib/python/Zope2/Startup/run.py, line 21, in run
starter.prepare()
  File /ofer/zope/Zope293/lib/python/Zope2/Startup/__init__.py, line 98,
in prepare
self.startZope()
  File /ofer/zope/Zope293/lib/python/Zope2/Startup/__init__.py, line
257, in startZope
Zope2.startup()
  File /ofer/zope/Zope293/lib/python/Zope2/__init__.py, line 47, in startup
_startup()
  File /ofer/zope/Zope293/lib/python/Zope2/App/startup.py, line 60, in
startup
DB = dbtab.getDatabase('/', is_root=1)
  File /ofer/zope/Zope293/lib/python/Zope2/Startup/datatypes.py, line
280, in getDatabase
db = factory.open(name, self.databases)
  File /ofer/zope/Zope293/lib/python/Zope2/Startup/datatypes.py, line
178, in open
DB = self.createDB(database_name, databases)
  File /ofer/zope/Zope293/lib/python/Zope2/Startup/datatypes.py, line
175, in createDB
return ZODBDatabase.open(self, databases)
  File /ofer/zope/Zope293/lib/python/ZODB/config.py, line 97, in open
storage = section.storage.open()
  File /ofer/zope/Zope293/lib/python/ZODB/config.py, line 135, in open
quota=self.config.quota)
  File /ofer/zope/Zope293/lib/python/ZODB/FileStorage/FileStorage.py,
line 112, in __init__
self._lock_file = LockFile(file_name + '.lock')
  File /ofer/zope/Zope293/lib/python/ZODB/lock_file.py, line 60, in
__init__
self._fp = open(path, 'w+')
IOError: [Errno 13] Permission denied:
'/home/ofer/zope/instances/MYFIRSTINSTANCE/var/Data.fs.lock'

can you please summery what to do as user and what action to do as root?




  

exactly!
I sugest the following:
- remove what you have done so far
- go to yast, create a user zope
- switch to this user
- install zope like this:
wget http://www.zope.org/Products/Zope/2.9.3/Zope-2.9.3.tgz
tar xvfz Zope-2.9.3.tgz
mv Zope-2.9.3 Zope-2.9.3-src
cd Zope-2.9.3-src
./configure --prefix=../Zope-2.9.3
make
make install
- cd to zopes user directory
- mkdir instances #will contain all zope instances
- ln -s Zope-2.9.3 Zope-2.9 # so you can update easily
- Zope-2.9/bin/makezopeinstance.py -d instances/MYFIRSTINSTANCE -u
admin:admin
- edit the file ~/instances/MYFIRSTINSTANCE/etc/zope.conf to suite your
whishes
- start zope with ~/instances/MYFIRSTINSTANCE/bin/zopectrl fg

HTH
robert

Ofer Weisglass wrote:


I added the user in the zope.conf file

but this is what I get - is it because of the folder rights?


 Traceback (most recent call last):
  File /home/usr/zopeplone/lib/python/zdaemon/zdrun.py, line 719, in ?
main()
  File /home/usr/zopeplone/lib/python/zdaemon/zdrun.py, line 716, in
main
d.main(args)
  File /home/usr/zopeplone/lib/python/zdaemon/zdrun.py, line 243, in
main
self.run()
  File /home/usr/zopeplone/lib/python/zdaemon/zdrun.py, line 256, in
run
self.opensocket()
  File /home/usr/zopeplone/lib/python/zdaemon/zdrun.py, line 278, in
opensocke   t
sock.bind(tempname)
  File string, line 1, in bind
socket.error: (13, 'Permission denied')
. . . . . . . . . . . . . . . . . . . . . . . . ^C





  

what david says is correct.
furthermore you must (as the error suggests) add the user as which the
zope process should run as to the zope config.
open  the /yourInstance/etc/zope.conf in an editor and look for
effective-user.
this you set to the name of the user as which you start zope.

if you allways start zope as this user, the variable can be left unset.
however if you want to start zope as root
(eg in the start up process of your computer) then it MUST be set.
the reason for this is, that for security reason, zope is not allowed
to
run as user root.
if started by user root, the zope.conf is consulted and the process
handed over to the effective user.
hence the need for this user to have rw permissions.
robert

David H wrote:



Ofer Weisglass wrote:


Re: [Zope] Zope 2.9.3/2.9.1 On Suse 10.1 box version

2006-07-08 Thread Ofer Weisglass
yes, it fixed the problem but now I have this error
it seems like user premission problem but I don't know how to solve it


/home/ofer/zope1/bin/runzope -X debug-mode=on
/home/usr/zopeplone/lib/python/ZServer/utils.py:33: DeprecationWarning:
The zLOG package is deprecated and will be removed in Zope 2.11. Use the
Python logging module instead.
  LOG('ZServer', severity[type], message)
2006-07-09 00:16:23 INFO ZServer HTTP server started at Sun Jul  9
00:16:23 2006
Hostname: 0.0.0.0
Port: 8080
2006-07-09 00:16:23 CRITICAL Zope A user was not specified to setuid to;
fix this to start as root (change the effective-user directive in
zope.conf)
Traceback (most recent call last):
  File /home/usr/zopeplone/lib/python/Zope2/Startup/run.py, line 56, in ?
run()
  File /home/usr/zopeplone/lib/python/Zope2/Startup/run.py, line 21, in run
starter.prepare()
  File /home/usr/zopeplone/lib/python/Zope2/Startup/__init__.py, line
94, in prepare
self.dropPrivileges()
  File /home/usr/zopeplone/lib/python/Zope2/Startup/__init__.py, line
213, in dropPrivileges
return dropPrivileges(self.cfg)
  File /home/usr/zopeplone/lib/python/Zope2/Startup/__init__.py, line
382, in dropPrivileges
raise ZConfig.ConfigurationError(msg)
ZConfig.ConfigurationError: A user was not specified to setuid to; fix
this to start as root (change the effective-user directive in zope.conf)




 --On 24. Juni 2006 23:09:00 +0300 Ofer Weisglass [EMAIL PROTECTED]
 wrote:

 Hi

 I am trying to install Zope 2.9.3 or 2.9.1 on Suse 10.1 and this is what
 I
 get:

 error: must supply either home or prefix/exec-prefix -- not both
 make: *** [install] Error 1

 Any ideas what to do?


 Please try again with a Python source build. Usually we don't care much
 about system Python installation that are often broken in different ways.

 -aj

___
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 )


Re: [Zope] Zope 2.9.3/2.9.1 On Suse 10.1 box version

2006-07-08 Thread David H




Ofer Weisglass wrote:

  yes, it fixed the problem but now I have this error
it seems like user premission problem but I don't know how to solve it


/home/ofer/zope1/bin/runzope -X debug-mode=on
/home/usr/zopeplone/lib/python/ZServer/utils.py:33: DeprecationWarning:
The zLOG package is deprecated and will be removed in Zope 2.11. Use the
Python logging module instead.
  LOG('ZServer', severity[type], message)
2006-07-09 00:16:23 INFO ZServer HTTP server started at Sun Jul  9
00:16:23 2006
Hostname: 0.0.0.0
Port: 8080
2006-07-09 00:16:23 CRITICAL Zope A user was not specified to setuid to;
fix this to start as root (change the effective-user directive in
zope.conf)
Traceback (most recent call last):
  File "/home/usr/zopeplone/lib/python/Zope2/Startup/run.py", line 56, in ?
run()
  File "/home/usr/zopeplone/lib/python/Zope2/Startup/run.py", line 21, in run
starter.prepare()
  File "/home/usr/zopeplone/lib/python/Zope2/Startup/__init__.py", line
94, in prepare
self.dropPrivileges()
  File "/home/usr/zopeplone/lib/python/Zope2/Startup/__init__.py", line
213, in dropPrivileges
return dropPrivileges(self.cfg)
  File "/home/usr/zopeplone/lib/python/Zope2/Startup/__init__.py", line
382, in dropPrivileges
raise ZConfig.ConfigurationError(msg)
ZConfig.ConfigurationError: A user was not specified to setuid to; fix
this to start as root (change the effective-user directive in zope.conf)


  
  

--On 24. Juni 2006 23:09:00 +0300 Ofer Weisglass [EMAIL PROTECTED]
wrote:



  Hi

I am trying to install Zope 2.9.3 or 2.9.1 on Suse 10.1 and this is what
I
get:

error: must supply either home or prefix/exec-prefix -- not both
make: *** [install] Error 1

Any ideas what to do?

  

Please try again with a Python source build. Usually we don't care much
about system Python installation that are often broken in different ways.

-aj

  
  

Maybe this can help?

This is from either Plope or Plone site (i think I snipped it long ago):

If you are running everything as root, you will get an instance that
cannot be started, because a different effective user id is required
for it to change to. Even if you create an account after the fact, that
user cannot start zope because it doesn't have access to any of the
instance files.

The best way to run mkzopeinstance is to first su to another user (su
zope) and then run mkzopeinstance.py. The zope user must have write
access to create the directory. 

EFFECTIVE-USER
After the instance is created, edit "effective-user zope" into the
etc/zope.conf, so if you start it as root later it should su itself to
the non-root user.


David



___
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 )


Re: [Zope] Zope 2.9.3/2.9.1 On Suse 10.1 box version

2006-07-08 Thread robert rottermann

what david says is correct.
furthermore you must (as the error suggests) add the user as which the 
zope process should run as to the zope config.
open  the /yourInstance/etc/zope.conf in an editor and look for 
effective-user.

this you set to the name of the user as which you start zope.

if you allways start zope as this user, the variable can be left unset.
however if you want to start zope as root
(eg in the start up process of your computer) then it MUST be set.
the reason for this is, that for security reason, zope is not allowed to 
run as user root.
if started by user root, the zope.conf is consulted and the process 
handed over to the effective user.

hence the need for this user to have rw permissions.
robert

David H wrote:

Ofer Weisglass wrote:

yes, it fixed the problem but now I have this error
it seems like user premission problem but I don't know how to solve it


/home/ofer/zope1/bin/runzope -X debug-mode=on
/home/usr/zopeplone/lib/python/ZServer/utils.py:33: DeprecationWarning:
The zLOG package is deprecated and will be removed in Zope 2.11. Use the
Python logging module instead.
  LOG('ZServer', severity[type], message)
2006-07-09 00:16:23 INFO ZServer HTTP server started at Sun Jul  9
00:16:23 2006
Hostname: 0.0.0.0
Port: 8080
2006-07-09 00:16:23 CRITICAL Zope A user was not specified to setuid to;
fix this to start as root (change the effective-user directive in
zope.conf)
Traceback (most recent call last):
  File /home/usr/zopeplone/lib/python/Zope2/Startup/run.py, line 56, in ?
run()
  File /home/usr/zopeplone/lib/python/Zope2/Startup/run.py, line 21, in run
starter.prepare()
  File /home/usr/zopeplone/lib/python/Zope2/Startup/__init__.py, line
94, in prepare
self.dropPrivileges()
  File /home/usr/zopeplone/lib/python/Zope2/Startup/__init__.py, line
213, in dropPrivileges
return dropPrivileges(self.cfg)
  File /home/usr/zopeplone/lib/python/Zope2/Startup/__init__.py, line
382, in dropPrivileges
raise ZConfig.ConfigurationError(msg)
ZConfig.ConfigurationError: A user was not specified to setuid to; fix
this to start as root (change the effective-user directive in zope.conf)


  

--On 24. Juni 2006 23:09:00 +0300 Ofer Weisglass [EMAIL PROTECTED]
wrote:



Hi

I am trying to install Zope 2.9.3 or 2.9.1 on Suse 10.1 and this is what
I
get:

error: must supply either home or prefix/exec-prefix -- not both
make: *** [install] Error 1

Any ideas what to do?

  

Please try again with a Python source build. Usually we don't care much
about system Python installation that are often broken in different ways.

-aj


Maybe this can help?

This is from either Plope or Plone site (i think I snipped it long ago):

If you are running everything as root, you will get an instance that 
cannot be started, because a different effective user id is required 
for it to change to. Even if you create an account after the fact, 
that user cannot start zope because it doesn't have access to any of 
the instance files.


The best way to run mkzopeinstance is to first su to another user (su 
zope) and then run mkzopeinstance.py. The zope user must have write 
access to create the directory.


EFFECTIVE-USER
After the instance is created, edit effective-user zope into the 
etc/zope.conf, so if you start it as root later it should su itself to 
the non-root user.



David



___
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:vcard
fn:robert  rottermann
n:rottermann;robert 
email;internet:[EMAIL PROTECTED]
tel;work:031 333 10 20
tel;fax:031 333 10 23
tel;home:031 333 36 03
x-mozilla-html:FALSE
version:2.1
end:vcard

___
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 )


Re: [Zope] Zope 2.9.3/2.9.1 On Suse 10.1 box version

2006-07-05 Thread dieter
Ofer Weisglass wrote at 2006-7-5 01:38 +0300:
 ...
I updated the python to the last version and this is what I get after the
zope installation was over with no errors (already created instance,
username and password)

Traceback (most recent call last):
 ...
setImplementation(C)
  File /usr/software/zope/lib/python/AccessControl/Implementation.py,
line 51, in setImplementation
from AccessControl import ImplC as impl
  File /usr/software/zope/lib/python/AccessControl/ImplC.py, line 30, in ?
from ImplPython import RestrictedDTML, SecurityManager,
ZopeSecurityPolicy
ImportError: No module named ImplPython

This looks like a missing installation step (generation of the
C-extensions did not happen).

Recheck the installation instructions and try again.



-- 
Dieter
___
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 )


Re: [Zope] Zope 2.9.3/2.9.1 On Suse 10.1 box version

2006-07-04 Thread Ofer Weisglass
HI

I updated the python to the last version and this is what I get after the
zope installation was over with no errors (already created instance,
username and password)

Traceback (most recent call last):
  File /usr/software/zope/lib/python/Zope2/Startup/zopectl.py, line 316,
in ?
main()
  File /usr/software/zope/lib/python/Zope2/Startup/zopectl.py, line 274,
in main
options.realize(args)
  File /usr/software/zope/lib/python/Zope2/Startup/zopectl.py, line 91,
in realize
ZDOptions.realize(self, *args, **kw)
  File /usr/software/zope/lib/python/zdaemon/zdoptions.py, line 273, in
realize
self.load_schema()
  File /usr/software/zope/lib/python/zdaemon/zdoptions.py, line 321, in
load_schema
self.schema = ZConfig.loadSchema(self.schemafile)
  File /usr/software/zope/lib/python/ZConfig/loader.py, line 31, in
loadSchema
return SchemaLoader().loadURL(url)
  File /usr/software/zope/lib/python/ZConfig/loader.py, line 65, in loadURL
return self.loadResource(r)
  File /usr/software/zope/lib/python/ZConfig/loader.py, line 159, in
loadResource
schema = ZConfig.schema.parseResource(resource, self)
  File /usr/software/zope/lib/python/ZConfig/schema.py, line 27, in
parseResource
xml.sax.parse(resource.file, parser)
  File /usr/local/lib/python2.4/xml/sax/__init__.py, line 33, in parse
parser.parse(source)
  File /usr/local/lib/python2.4/xml/sax/expatreader.py, line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
  File /usr/local/lib/python2.4/xml/sax/xmlreader.py, line 123, in parse
self.feed(buffer)
  File /usr/local/lib/python2.4/xml/sax/expatreader.py, line 207, in feed
self._parser.Parse(data, isFinal)
  File /usr/local/lib/python2.4/xml/sax/expatreader.py, line 300, in
start_element
self._cont_handler.startElement(name, AttributesImpl(attrs))
  File /usr/software/zope/lib/python/ZConfig/schema.py, line 99, in
startElement
getattr(self, start_ + name)(attrs)
  File /usr/software/zope/lib/python/ZConfig/schema.py, line 475, in
start_schema
keytype, valuetype, datatype = self.get_sect_typeinfo(attrs)
  File /usr/software/zope/lib/python/ZConfig/schema.py, line 201, in
get_sect_typeinfo
datatype = self.get_datatype(attrs, datatype, null, base)
  File /usr/software/zope/lib/python/ZConfig/schema.py, line 194, in
get_datatype
return self._registry.get(dtname)
  File /usr/software/zope/lib/python/ZConfig/datatypes.py, line 398, in get
t = self.search(name)
  File /usr/software/zope/lib/python/ZConfig/datatypes.py, line 423, in
search
package = __import__(n, g, g, component)
  File /usr/software/zope/lib/python/Zope2/Startup/datatypes.py, line
21, in ?
import OFS.Uninstalled
  File /usr/software/zope/lib/python/OFS/Uninstalled.py, line 16, in ?
import  SimpleItem, Globals, Acquisition
  File /usr/software/zope/lib/python/OFS/SimpleItem.py, line 26, in ?
import AccessControl.Role, AccessControl.Owned, App.Common
  File /usr/software/zope/lib/python/AccessControl/__init__.py, line 17,
in ?
from Implementation import setImplementation
  File /usr/software/zope/lib/python/AccessControl/Implementation.py,
line 98, in ?
setImplementation(C)
  File /usr/software/zope/lib/python/AccessControl/Implementation.py,
line 51, in setImplementation
from AccessControl import ImplC as impl
  File /usr/software/zope/lib/python/AccessControl/ImplC.py, line 30, in ?
from ImplPython import RestrictedDTML, SecurityManager,
ZopeSecurityPolicy
ImportError: No module named ImplPython



 --On 24. Juni 2006 23:09:00 +0300 Ofer Weisglass [EMAIL PROTECTED]
 wrote:

 Hi

 I am trying to install Zope 2.9.3 or 2.9.1 on Suse 10.1 and this is what
 I
 get:

 error: must supply either home or prefix/exec-prefix -- not both
 make: *** [install] Error 1

 Any ideas what to do?


 Please try again with a Python source build. Usually we don't care much
 about system Python installation that are often broken in different ways.

 -aj

___
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 )


Re: [Zope] Zope 2.9.3/2.9.1 On Suse 10.1 box version

2006-06-25 Thread Andreas Jung



--On 24. Juni 2006 23:09:00 +0300 Ofer Weisglass [EMAIL PROTECTED] 
wrote:



Hi

I am trying to install Zope 2.9.3 or 2.9.1 on Suse 10.1 and this is what I
get:

error: must supply either home or prefix/exec-prefix -- not both
make: *** [install] Error 1

Any ideas what to do?



Please try again with a Python source build. Usually we don't care much 
about system Python installation that are often broken in different ways.


-aj

pgpvLGZZSRLBb.pgp
Description: 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 )


[Zope] Zope 2.9.3/2.9.1 On Suse 10.1 box version

2006-06-24 Thread Ofer Weisglass
Hi

I am trying to install Zope 2.9.3 or 2.9.1 on Suse 10.1 and this is what I
get:

error: must supply either home or prefix/exec-prefix -- not both
make: *** [install] Error 1

Any ideas what to do?

Thanks


linux-6310:/usr/local/src # md5sum Zope-2.9.3.tgz
4e8b4e076cadd6eb62dd4513748cb9f9  Zope-2.9.3.tgz
linux-6310:/usr/local/src # tar xzf Zope-2.9.3.tgz
linux-6310:/usr/local/src # cd Zope-2.9.3/
linux-6310:/usr/local/src/Zope-2.9.3 # ./configure

Configuring Zope installation

Testing for an acceptable Python interpreter...

Python version 2.4.2 found at /usr/bin/python
Python version 2.4.2 found at /usr/bin/python2.4

!! WARNING !!
An acceptable, but non-optimal Python version (2.4.2)
was found at '/usr/bin/python'.
But consider installing version '2.4.3' before running
'make'. If this isn't the Python version or interpreter
instance you wish to use, you may specify a Python interpreter
manually by rerunning the ./configure script with the
'--with-python' option.

linux-6310:/usr/local/src/Zope-2.9.3 # make
/usr/bin/python install.py -q build
linux-6310:/usr/local/src/Zope-2.9.3 # make install
/usr/bin/python install.py -q build
/usr/bin/python install.py -q install --skip-build --home
/usr/local/Zope-2.9.3
error: must supply either home or prefix/exec-prefix -- not both
make: *** [install] Error 1
linux-6310:/usr/local/src/Zope-2.9.3 #
___
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 )