| View previous topic :: View next topic |
| Author |
Message |
requiem n00b


Joined: 07 Sep 2003 Posts: 23
|
Posted: Fri Jul 30, 2004 4:03 am Post subject: Zope 2.6.4 Issues |
|
|
Could someone please give me advice. I have just emerged Zope, and am trying to get it configured. From the documentation I have read, it should be a matter of starting it, and going to http://localhost:8080/. I have some issues however. I emerge zope, and then start it. It logs the following in /var/log/zope/zope-2_6_4:
| Code: |
------
2004-07-30T23:55:13 INFO(0) zdaemon Started subprocess: pid 5488
------
2004-07-30T23:55:18 INFO(0) ZODB Opening database for mounting: '143615440_1091027484.326830'
------
2004-07-30T23:55:18 INFO(0) ZODB Mounted database '143615440_1091027484.326830' at /temp_folder
------
2004-07-30T23:55:20 INFO(0) ZServer HTTP server started at Fri Jul 30 23:55:20 2004
Hostname: dino
Port: 8080
------
2004-07-30T23:55:20 INFO(0) ZServer FTP server started at Fri Jul 30 23:55:20 2004
Hostname: dino
Port: 8021
|
This appears to be working fine and the FTP server appears to be working correctly. The problems start when I attempt to go to the default website (http://localhost:8080/). I get the following error:
| Code: |
Zope Error
Zope has encountered an error while publishing this resource.
Error Type: IOError
Error Value: [Errno 13] Permission denied: '//usr/share/zope//zope-2.6.4-r1/lib/python/App/dtml/zope_quick_start.dtml'
|
I then attempt to go to the management page (http://localhost:8080/manage). I get the following (similar) error:
| Code: |
Zope Error
Zope has encountered an error while publishing this resource.
Error Type: IOError
Error Value: [Errno 13] Permission denied: '//usr/share/zope//zope-2.6.4-r1/lib/python/App/dtml/manage.dtml'
|
Can anyone please suggest a fix? I have tried changing the permissions, the owner and the group to no avail. I have no idea where to look. Could anyone please suggest even a place to start looking for the error or a fix.
Cheers,
req.
Last edited by requiem on Wed Aug 18, 2004 5:54 am; edited 2 times in total |
|
| Back to top |
|
 |
requiem n00b


Joined: 07 Sep 2003 Posts: 23
|
Posted: Sun Aug 01, 2004 12:07 pm Post subject: Still no luck. |
|
|
Anyone with information? The only thing I have found which is remotely like the situation is that in some install scripts the group for zope is not added correctly. I have had a look, and in this case the group appears to be added correctly.
Cheers,
req. |
|
| Back to top |
|
 |
river Tux's lil' helper


Joined: 05 Dec 2003 Posts: 122 Location: Cape Town
|
Posted: Wed Aug 04, 2004 4:00 pm Post subject: |
|
|
I'm getting the exact same error. I take it that you haven't found a solution yet?
EDIT: one quick, hack and slash solution, is to change the ownership of everything in /usr/share/zope/zope-2.6.4-r1 to user zope.
I'm not sure how well that's fixed the problem, or if it's introduced any more problems (esp. security concerns). I can imagine having to update the permissions for:
| Code: |
INSTANCE_HOME=//var/lib/zope//zope-2_6_4
SOFTWARE_HOME=//usr/share/zope//zope-2.6.4-r1//lib/python
ZOPE_HOME=//usr/share/zope//zope-2.6.4-r1/
|
in /etc/conf.d/zope-2_6_4 as well.
I've done a very quick check of bugs.gentoo, and don't seem to find any bug mentioning this -- I'm completely new to zope, but I'm pretty sure this is a bug. Does anyone have an opinion on whether I should file a bug report about this, or am I just missing something obvious?
Edit: Our problem does sound related to this one:
https://bugs.gentoo.org/show_bug.cgi?id=59217 |
|
| Back to top |
|
 |
requiem n00b


Joined: 07 Sep 2003 Posts: 23
|
Posted: Thu Aug 05, 2004 7:55 am Post subject: Update |
|
|
| river wrote: | | I'm getting the exact same error. I take it that you haven't found a solution yet? |
Nope, I have found no more on the matter. I really think this is a bug... I have searched through bugzilla and could not find anything either. I did find something on the zope page which kind of describes our issues, and also mentions the Gentoo build (not our version however):
http://zope.org/Members/hathawsh/News_Item.2003-08-18.3258/talkback/1063849521.
I am at a loss. I am guessing that this is definately a bug. Do you think we should post on bugzilla?
Cheers,
req. |
|
| Back to top |
|
 |
river Tux's lil' helper


Joined: 05 Dec 2003 Posts: 122 Location: Cape Town
|
Posted: Thu Aug 05, 2004 6:43 pm Post subject: |
|
|
Yeah, I think we should. I'll post one when I get back to my work machine tomorrow. I'll stick a link up to it here.
It'll be my first bug report, so hopefully I don't screw it up
By the way, did you try changing the ownership of the directory, and did it solve your problems? |
|
| Back to top |
|
 |
requiem n00b


Joined: 07 Sep 2003 Posts: 23
|
Posted: Fri Aug 06, 2004 1:39 am Post subject: |
|
|
Hehe I was a bit nervous to post a bug report also . I have never done one before. I did try changing the permissions specifically on the file:
| Code: | | //usr/share/zope//zope-2.6.4-r1/lib/python/App/dtml/zope_quick_start.dtml |
and the entire directory:
| Code: | | //usr/share/zope//zope-2.6.4-r1/lib/python/App/dtml/ |
This did nothing, so it must be using a file in the zope directory as you stated... I will try to change the permissions on the entire directory today. I think our problems lie with the fact that zope runs as setuid zope, but as with you, I still feel a little unsafe changing the permissions on the entire zope directory.
Cheers,
req. |
|
| Back to top |
|
 |
river Tux's lil' helper


Joined: 05 Dec 2003 Posts: 122 Location: Cape Town
|
Posted: Fri Aug 06, 2004 8:32 am Post subject: |
|
|
I've been trying to reproduce the problem, but haven't been able to.
If I re-emerge zope, then everything still works. If I unmerge zope, it seems to leave behind some of the zope directories: this includes those I've changed permissions on.
Any thoughts? |
|
| Back to top |
|
 |
requiem n00b


Joined: 07 Sep 2003 Posts: 23
|
Posted: Fri Aug 06, 2004 1:33 pm Post subject: Re-emerged Zope |
|
|
I have just emerged Zope on a new machine, and it has gets the same error. I then change the permissions on the Zope directory as you suggested and it fixes the error. Have you posted a bug report as yet? If not, I shall post one.
Cheers,
req. |
|
| Back to top |
|
 |
river Tux's lil' helper


Joined: 05 Dec 2003 Posts: 122 Location: Cape Town
|
|
| Back to top |
|
 |
river Tux's lil' helper


Joined: 05 Dec 2003 Posts: 122 Location: Cape Town
|
Posted: Fri Aug 06, 2004 2:07 pm Post subject: |
|
|
| hmmm ... do you think that bug report was clear? |
|
| Back to top |
|
 |
requiem n00b


Joined: 07 Sep 2003 Posts: 23
|
Posted: Wed Aug 11, 2004 6:55 am Post subject: Bug Report |
|
|
I think it was good. Maybe you could have include the specific error messages, but other than that it was spot on You covered everything.
Now let us just wait and see what the response is
Cheers,
req. |
|
| Back to top |
|
 |
requiem n00b


Joined: 07 Sep 2003 Posts: 23
|
Posted: Tue Aug 17, 2004 4:20 am Post subject: A Possible Resolution |
|
|
I have not resolved this 2.6.4 issue to my liking, so I attempted using the newest version of Zope. This is version 2.7.2, and it is currently in portage. It is sadly a bit broken (see the bugzilla references here and here), but is easily fixed. Here is how I installed it successfully:
I created a portage overlay directory as follows:
| Code: |
# mkdir /usr/local/portage
# chown portage:portage /usr/local/portage/
|
I then added this line to /etc/make.conf:
| Code: |
# For custom ebuilds.
PORTDIR_OVERLAY="/usr/local/portage"
|
This has configured portage to use custom Ebuilds of our creation. We now need to patch the Ebuild. This is done by downloading the diff file from the bugzilla attachment, located here. To do this, I simply did as follows:
| Code: |
# mkdir /usr/local/portage/net-zope/
# cp -R /usr/portage/net-zope/zope /usr/local/portage/net-zope/
# cd /usr/local/portage/net-zope/zope/
# wget "http://bugs.gentoo.org/attachment.cgi?id=37193" -O zope-2.7.2.ebuild.patch
# patch zope-2.7.2.ebuild zope-2.7.2.ebuild.patch
|
We now want to add zope to the unstable package list. This is done as follows:
| Code: |
# echo "net-zope/zope ~x86" >> /etc/portage/package.keywords
# echo "app-admin/zope-config ~x86" >> /etc/portage/package.keywords
|
We are now ready to emerge Zope . This is done as follows:
| Code: |
# emerge -pv zope
# emerge zope
|
Hope this helps. I am sure that they will update the Ebuild in portage soon, and this guide will then become redundant. But until then, I hope that this helps.
Cheers,
req. |
|
| Back to top |
|
 |
river Tux's lil' helper


Joined: 05 Dec 2003 Posts: 122 Location: Cape Town
|
Posted: Tue Aug 17, 2004 6:35 am Post subject: |
|
|
| Good stuff. For interests sake, do you know if this works on a clean install of zope (i.e. without having installed zope before?) |
|
| Back to top |
|
 |
requiem n00b


Joined: 07 Sep 2003 Posts: 23
|
Posted: Tue Aug 17, 2004 6:47 am Post subject: Clean Install |
|
|
This was on a clean install. I am just installing the ~x86 version of Plone as we speak. Hopefully I can get it all together.
Edit: As a side note, what are you interested in using Zope for?
Cheers,
req. |
|
| Back to top |
|
 |
dashnu l33t

Joined: 21 Jul 2004 Posts: 703 Location: Casco Maine
|
Posted: Thu Aug 19, 2004 12:20 am Post subject: |
|
|
Any update? I want to install plone. I would like to know if you were successfull before I pull the masked zope. thx _________________ write quit bang |
|
| Back to top |
|
 |
requiem n00b


Joined: 07 Sep 2003 Posts: 23
|
Posted: Thu Aug 19, 2004 12:51 am Post subject: Latest Plone Update |
|
|
After attempting to get the latest Plone working I have had to give up
Following this bugzilla report, I was able to populate my portage overlay directory with all the packages that are needed. I then created digests for all of the new packages.
After emerging plone, everything appears to be installed correctly. I don't get any compile errors, and all of the required objects appear to be in the correct locations.
I then attempt to start Zope. Zope starts without any issues at all after the patch has been applied. I can get into the management interface and do all of the usual things. I then attempt to add the Plone objects, and this is where the whole thing falls over on its knees. I use the zprod-manager to add all of the objects to the Zope Products list. This seems to work okay, but then I try to restart Zope and it dies a painful death. I am not too sure what is wrong at the moment. I am still working on it.
Cheers,
req. |
|
| Back to top |
|
 |
dashnu l33t

Joined: 21 Jul 2004 Posts: 703 Location: Casco Maine
|
Posted: Thu Aug 19, 2004 3:01 am Post subject: |
|
|
That sucks, I may tackel It anyways..... Im not sure why but I really like the zope/plone interface. It would be great to store all my local docs on it instead of a bunch of vim text files
I am running Snip-snap at work and I dont like that to much. It would be nice to have a different interface at home. _________________ write quit bang |
|
| Back to top |
|
 |
requiem n00b


Joined: 07 Sep 2003 Posts: 23
|
Posted: Thu Aug 19, 2004 5:46 am Post subject: Plone and Zope |
|
|
Yes, I completely agree with you. I love the Zope and Plone interface. I have scaled back to Zope 2.6.4 and Plone 1.0.3 and it works extremely well (other than the permissions issue listed above).
At the moment we have all our documentation in text files as well . We are using it for a documentation management system and site manual at work, and it is proving to be excellent.
I wish I could get the latest version working, but I don't have time at the moment to configure it. I might try to get it working on a machine at home when Zope 2.7.2 hits the portage tree.
If you resolve the bug where Plone causes Zope not to start please let me know.
Cheers,
req. |
|
| Back to top |
|
 |
dashnu l33t

Joined: 21 Jul 2004 Posts: 703 Location: Casco Maine
|
Posted: Sun Aug 22, 2004 3:35 pm Post subject: |
|
|
I just emerge'd zope and It installed fine. I can access http://localhost:8080/manage
I than tried to emerge plone And I am not sure how to get CMFPlone DCWorkflow to work. They are "broken" under the products page.
CMFPlone error
| Code: | Traceback (most recent call last):
File "//usr/share/zope//zope-2.6.4-r1/lib/python/OFS/Application.py", line 523, in import_product
product=__import__(pname, global_dict, global_dict, silly)
File "//var/lib/zope/zope-2_6_4/Products/CMFPlone/__init__.py", line 3, in ?
import migrations
File "//var/lib/zope/zope-2_6_4/Products/CMFPlone/migrations/__init__.py", line 1, in ?
from Products.CMFPlone import MigrationTool
File "//var/lib/zope/zope-2_6_4/Products/CMFPlone/MigrationTool.py", line 5, in ?
from Products.CMFCore.utils import UniqueObject, getToolByName
ImportError: No module named CMFCore.utils |
DCWorkflow error
| Code: | Traceback (most recent call last):
File "//usr/share/zope//zope-2.6.4-r1/lib/python/OFS/Application.py", line 523, in import_product
product=__import__(pname, global_dict, global_dict, silly)
File "//var/lib/zope/zope-2_6_4/Products/DCWorkflow/__init__.py", line 18, in ?
from Products.CMFCore.utils import registerIcon
ImportError: No module named CMFCore.utils |
CMFCore.utils is the issue how do I set this up ? _________________ write quit bang |
|
| Back to top |
|
 |
dashnu l33t

Joined: 21 Jul 2004 Posts: 703 Location: Casco Maine
|
Posted: Sun Aug 22, 2004 3:39 pm Post subject: |
|
|
re-emerge'd cmf now just plone is broke,
| Code: | Traceback (most recent call last):
File "//usr/share/zope//zope-2.6.4-r1/lib/python/OFS/Application.py", line 523, in import_product
product=__import__(pname, global_dict, global_dict, silly)
File "//var/lib/zope/zope-2_6_4/Products/CMFPlone/__init__.py", line 7, in ?
import NavigationTool, FactoryTool, FormTool, PropertiesTool, MigrationTool
File "//var/lib/zope/zope-2_6_4/Products/CMFPlone/FormTool.py", line 5, in ?
from Products.Formulator.Form import FormValidationError, BasicForm
ImportError: No module named Formulator.Form
|
_________________ write quit bang |
|
| Back to top |
|
 |
CapnKirk n00b


Joined: 17 Aug 2004 Posts: 74 Location: Philadelphia, PA
|
Posted: Sun Aug 22, 2004 3:50 pm Post subject: |
|
|
I'm new at gentoo, but I run Plone and friends on my production server (Debian Sarge).
Those error messages (ImportError: No module named Formulator.Form and ImportError: No module named CMFCore.utils) says zope cannot find those modules.
Question: are Forumulator and CMF installed? It could be that the plone ebuild file is lacking dependencies? ... No, I just checked. The dependencies are there. Check to make sure they are in the zope Products directory...if so, then grep to see if those modules are there in the python code...if so, then zope is looking in the wrong place.
HTH.
Kirk |
|
| Back to top |
|
 |
dashnu l33t

Joined: 21 Jul 2004 Posts: 703 Location: Casco Maine
|
Posted: Sun Aug 22, 2004 4:02 pm Post subject: |
|
|
I am brandy new to plone and zope so bare with me. I do have CMF installed and Forumulator I am assuming is part of plone or cmf. In my products dir "/var/lib/zope/zope-2_6_4/Products/CMFPlone"
I have these files
| Code: | CREDITS.txt MigrationTool.py StatelessTreeNav.py
ChangeLog MigrationTool.pyc StatelessTreeNav.pyc
CustomizationPolicy.py NavigationTool.py WorkflowTool.py
CustomizationPolicy.pyc NavigationTool.pyc WorkflowTool.pyc
Extensions PloneBatch.py __init__.py
FactoryTool.py PloneFolder.py __init__.pyc
FactoryTool.pyc PloneFolder.pyc data
FolderWorkflow.py PloneInitialize.py docs
FormTool.py PloneTool.py interfaces
FormTool.pyc PloneTool.pyc migrations
FormulatorTool.py PloneUtilities.py refresh.txt
FormulatorTool.pyc PloneUtilities.pyc skins
HISTORY.txt PloneWorkflow.py tests
INSTALL.txt Portal.py tool.gif
LICENSE.GPL Portal.pyc version.txt
LICENSE.txt PrivateSitePolicy.py www
MembershipTool.py PropertiesTool.py
MembershipTool.pyc README.txt
|
I do have the forumulator.py so I am not sure were to go.
| Quote: | | if so, then grep to see if those modules are there in the python code...if so, then zope is looking in the wrong place. |
not to sure what you mean grep what file and look for what .. I do not know much about phython or what to look for in my grep. _________________ write quit bang |
|
| Back to top |
|
 |
dashnu l33t

Joined: 21 Jul 2004 Posts: 703 Location: Casco Maine
|
Posted: Sun Aug 22, 2004 4:20 pm Post subject: |
|
|
the ebuild does not copy /usr/share/zproduct/formulator-1.3.1/Forumulator to the Products dir works ok now. _________________ write quit bang |
|
| Back to top |
|
 |
CapnKirk n00b


Joined: 17 Aug 2004 Posts: 74 Location: Philadelphia, PA
|
Posted: Sun Aug 22, 2004 4:32 pm Post subject: |
|
|
| Quote: | | not to sure what you mean grep what file and look for what .. I do not know much about phython or what to look for in my grep |
Sorry. Here is what I meant:
| Code: | # cd /var/lib/zope/zope-2_6_4/Products/
# ls |
You should find directories like:
CMFPlone
CMFCore
CMFDefault
Formulator
among many others. I just realized that your error message is saying that it cannot find a file by the name of "Form.py" in the directory "Formulator". So:
| Code: | # cd Formulator/
# ls -la Form.py
|
It ought to be there. Do the same for the directory CMFCore. Look for a file "utils.py". For both, there ought to be companion files: Form.pyc and utils.pyc. "c" stands for "compiled" and means that zope has found the files and executed them to bytecode. If there are no .pyc files, then we know what our problem is: zope is looking for things in the wrong place. So then we go to the configuration of zope. I'm unfamiliar with how gentoo does this; I have yet to install zope on my gentoo box myself. But if this turns out to be the case, then I'll go ahead and do this. I need to figure out this stuff myself, anyway.
Kirk |
|
| Back to top |
|
 |
CapnKirk n00b


Joined: 17 Aug 2004 Posts: 74 Location: Philadelphia, PA
|
Posted: Sun Aug 22, 2004 4:36 pm Post subject: |
|
|
| init-zero wrote: | | the ebuild does not copy /usr/share/zproduct/formulator-1.3.1/Forumulator to the Products dir works ok now. |
So plone is working now? Excellent. You should file a bug.
Kirk |
|
| Back to top |
|
 |
|