LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices


Reply
  Search this Thread
Old 06-16-2005, 08:17 PM   #1
nephish
Member
 
Registered: Jun 2005
Distribution: arch, ubuntu
Posts: 456

Rep: Reputation: 30
anyone use zope here ?


i just installed zope with pacman
i just dont know where or how to start it !

anyone have an idea for me ?
 
Old 06-17-2005, 03:32 AM   #2
dauphin
LQ Newbie
 
Registered: Nov 2003
Location: Scotland
Distribution: Arch
Posts: 14

Rep: Reputation: 0
I don't use zope, but you will find it is installed in /opt/zope. I got it going as an experiment by reading the /opt/zope/doc/INSTALL.txt I found it easiest to create a new "instance" using /opt/zope/bin/mkzopeinstance.py rather than adapting the skel instance provided. Then I had to change permission on the new instance directory. After that, zope was started with /opt/zope/[instance directory]/bin/runzope.
As to what it is or what it does, I'm still pretty much in the dark!
 
Old 06-17-2005, 07:46 AM   #3
nephish
Member
 
Registered: Jun 2005
Distribution: arch, ubuntu
Posts: 456

Original Poster
Rep: Reputation: 30
ok that part where you change permission on the new instance directory.
i think that is where i got messed up.
it had me create a user and password, does that create a new user on my system?
the usr dir, do i change permission for root, my user, a new user, or what ?

i may have to get rid of it all and reinstall, because i think i gakked up this set up pretty
bad
 
Old 06-17-2005, 07:59 AM   #4
dauphin
LQ Newbie
 
Registered: Nov 2003
Location: Scotland
Distribution: Arch
Posts: 14

Rep: Reputation: 0
I think the user name and password only creates a zope user, not a system user. I just gave myself (as a user on the system) ownership of the new instance directory:
chown -R [system_user] /opt/zope/[new_zope_user]
I can't be more specific, because I actually used my the same user name and password for zope as my user name and password on the system - but it seemed to work OK like this.
If you decide to reinstall, make sure after having pacman remove zope that you manually delete the /opt/zope directory, as pacman will not remove any files you created manually and you will want to make sure you start with a clean sheet.
 
Old 06-17-2005, 02:24 PM   #5
nephish
Member
 
Registered: Jun 2005
Distribution: arch, ubuntu
Posts: 456

Original Poster
Rep: Reputation: 30
ok, same user name and password as what i use now.
thats what i want to do.
it ask for a location to put the user zope directory. i chose /home
but still wondering if i should remove and reinstall . delete the /home/zopestuff and whatnot
i will try all this stuff later.
lemme know what you think. and thanks by the way.
shawn
 
Old 06-17-2005, 02:34 PM   #6
dauphin
LQ Newbie
 
Registered: Nov 2003
Location: Scotland
Distribution: Arch
Posts: 14

Rep: Reputation: 0
It's so easy to remove and reinstall using pacman (plus deletion of the zope user directory) that if there's a chance anything got messed up earlier I'd say it makes good sense to wipe it away and start again. Good luck with it.
 
Old 06-18-2005, 12:13 AM   #7
nephish
Member
 
Registered: Jun 2005
Distribution: arch, ubuntu
Posts: 456

Original Poster
Rep: Reputation: 30
ok i got rid of the user directory and pacman -R zope.
done

pacman -S zope
good

did an /opt/zope/bin/mkzopeinstance

created a user (myusername)
and password (mypassword)
and put the directory in /home/zope/

ok now when i try to run as root with /home/zope/bin/runzope it gives me this....

/usr/lib/python2.4/whrandom.py:38: DeprecationWarning: the whrandom module is de precated; please use the random module
DeprecationWarning)
------
2005-06-18T00:09:48 INFO(0) ZServer HTTP server started at Sat Jun 18 00:09:48 2 005
Hostname: localhost.Arch
Port: 8080
------
2005-06-18T00:09:48 INFO(0) ZServer FTP server started at Sat Jun 18 00:09:48 20 05
Hostname: Arch
Port: 8021
------
2005-06-18T00:09:48 PANIC(300) Zope A user was not specified to setuid to; fix t his to start as root (change the effective-user directive in zope.conf)
Traceback (most recent call last):
File "/opt/zope/lib/python/Zope/Startup/run.py", line 50, in ?
run()
File "/opt/zope/lib/python/Zope/Startup/run.py", line 19, in run
start_zope(opts.configroot)
File "/opt/zope/lib/python/Zope/Startup/__init__.py", line 48, in start_zope
starter.dropPrivileges()
File "/opt/zope/lib/python/Zope/Startup/__init__.py", line 203, in dropPrivile ges
return dropPrivileges(self.cfg)
File "/opt/zope/lib/python/Zope/Startup/__init__.py", line 313, in dropPrivile ges
raise ZConfig.ConfigurationError(msg)
ZConfig.ConfigurationError: A user was not specified to setuid to; fix this to s tart as root (change the effective-user directive in zope.conf)

when i try the same from my regular user
i get this

/usr/lib/python2.4/whrandom.py:38: DeprecationWarning: the whrandom module is deprecated; please use the random module
DeprecationWarning)
------
2005-06-18T00:13:54 INFO(0) ZServer HTTP server started at Sat Jun 18 00:13:54 2005
Hostname: localhost.Arch
Port: 8080
------
2005-06-18T00:13:54 INFO(0) ZServer FTP server started at Sat Jun 18 00:13:54 2005
Hostname: Arch
Port: 8021
Traceback (most recent call last):
File "/opt/zope/lib/python/Zope/Startup/run.py", line 50, in ?
run()
File "/opt/zope/lib/python/Zope/Startup/run.py", line 19, in run
start_zope(opts.configroot)
File "/opt/zope/lib/python/Zope/Startup/__init__.py", line 51, in start_zope
starter.startZope()
File "/opt/zope/lib/python/Zope/Startup/__init__.py", line 230, in startZope
Zope.startup()
File "/opt/zope/lib/python/Zope/__init__.py", line 47, in startup
_startup()
File "/opt/zope/lib/python/Zope/App/startup.py", line 57, in startup
DB = configuration.dbtab.getDatabase('/', is_root=1)
File "/opt/zope/lib/python/DBTab/DBTab.py", line 96, in getDatabase
db = self._createDatabase(name, is_root)
File "/opt/zope/lib/python/DBTab/DBTab.py", line 113, in _createDatabase
db = factory.open()
File "/opt/zope/lib/python/Zope/Startup/datatypes.py", line 172, in open
DB = self.createDB()
File "/opt/zope/lib/python/Zope/Startup/datatypes.py", line 169, in createDB
return ZODBDatabase.open(self)
File "/opt/zope/lib/python/ZODB/config.py", line 97, in open
return ZODB.DB(section.storage.open(),
File "/opt/zope/lib/python/ZODB/config.py", line 128, in open
quota=self.config.quota)
File "/opt/zope/lib/python/ZODB/FileStorage.py", line 232, in __init__
self._lock_file = LockFile(file_name + '.lock')
File "/opt/zope/lib/python/ZODB/lock_file.py", line 60, in __init__
self._fp = open(path, 'w+')
IOError: [Errno 13] Permission denied: '/home/zope/var/Data.fs.lock'


any ideas ?
thanks

Last edited by nephish; 06-18-2005 at 12:14 AM.
 
Old 06-18-2005, 02:43 AM   #8
dauphin
LQ Newbie
 
Registered: Nov 2003
Location: Scotland
Distribution: Arch
Posts: 14

Rep: Reputation: 0
As far as running zope as root is concerned, see the hint at the end of the output you quoted:

Quote:
(change the effective-user directive in zope.conf)
If you look through zope.conf, towards the end you will find a line you have to change so that you can run as root in the guise of an "effective-user".

With your problems running as user, that looks like a permission problem. If you created that user directory as root, even though it is in the user's home directory you would need to change the permissions on it to make it accessible by the user.
 
Old 06-18-2005, 11:09 AM   #9
nephish
Member
 
Registered: Jun 2005
Distribution: arch, ubuntu
Posts: 456

Original Poster
Rep: Reputation: 30
GEE WHIZ, Finally,

thanks dauphin,
i did a chown me /home/zope/

then a /home/zope/bin/runzope/

and im off !

much appreciate your help

youre awesome
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Redirects in Zope (ZMS) nyk Programming 0 09-06-2005 05:08 AM
Zope and Mambo Questions... Stiltz Linux - Software 3 03-15-2005 01:54 PM
Learning Zope (and Python) coolman0stress Programming 3 05-10-2004 04:01 PM
Starting Zope Arot Linux - Newbie 1 11-16-2003 05:22 AM
Zope ?? linuxlastslonge Programming 0 07-21-2002 07:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch

All times are GMT -5. The time now is 10:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration