Arch This Forum is for the discussion of Arch Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-16-2005, 09:17 PM
|
#1
|
Member
Registered: Jun 2005
Distribution: arch, ubuntu
Posts: 456
Rep:
|
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 ?
|
|
|
06-17-2005, 04:32 AM
|
#2
|
LQ Newbie
Registered: Nov 2003
Location: Scotland
Distribution: Arch
Posts: 14
Rep:
|
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!
|
|
|
06-17-2005, 08:46 AM
|
#3
|
Member
Registered: Jun 2005
Distribution: arch, ubuntu
Posts: 456
Original Poster
Rep:
|
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
|
|
|
06-17-2005, 08:59 AM
|
#4
|
LQ Newbie
Registered: Nov 2003
Location: Scotland
Distribution: Arch
Posts: 14
Rep:
|
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.
|
|
|
06-17-2005, 03:24 PM
|
#5
|
Member
Registered: Jun 2005
Distribution: arch, ubuntu
Posts: 456
Original Poster
Rep:
|
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
|
|
|
06-17-2005, 03:34 PM
|
#6
|
LQ Newbie
Registered: Nov 2003
Location: Scotland
Distribution: Arch
Posts: 14
Rep:
|
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.
|
|
|
06-18-2005, 01:13 AM
|
#7
|
Member
Registered: Jun 2005
Distribution: arch, ubuntu
Posts: 456
Original Poster
Rep:
|
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 01:14 AM.
|
|
|
06-18-2005, 03:43 AM
|
#8
|
LQ Newbie
Registered: Nov 2003
Location: Scotland
Distribution: Arch
Posts: 14
Rep:
|
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.
|
|
|
06-18-2005, 12:09 PM
|
#9
|
Member
Registered: Jun 2005
Distribution: arch, ubuntu
Posts: 456
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 12:22 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|