Hi, Iam running Zope 2.5.1 on RH7.2 (note: I havethe ftp server and PCGI disabled). I just installed Xron 0.0.10 and restarted. There were no errors during the restart. It also faitfully created the Schedule object but it was broken on clicking on the Scehdule object I get: (I am logged in as manager) Error Type: IOError Error Value: [Errno 13] Permission denied: '/var/local/zope/leonardo/lib/python/Products/Xron/scheduleView.dtml' Traceback (innermost last): File /var/local/zope/leonardo/lib/python/ZPublisher/Publish.py, line 150, in publish_module File /var/local/zope/leonardo/lib/python/ZPublisher/Publish.py, line 114, in publish File /var/local/zope/leonardo/lib/python/Zope/__init__.py, line 159, in zpublisher_exception_hook (Object: Schedule) File /var/local/zope/leonardo/lib/python/ZPublisher/Publish.py, line 98, in publish File /var/local/zope/leonardo/lib/python/ZPublisher/mapply.py, line 88, in mapply (Object: manage_catalogView) File /var/local/zope/leonardo/lib/python/ZPublisher/Publish.py, line 39, in call_object (Object: manage_catalogView) File /var/local/zope/leonardo/lib/python/App/special_dtml.py, line 59, in __call__ (Object: manage_catalogView) File /var/local/zope/leonardo/lib/python/App/special_dtml.py, line 46, in _cook_check (Object: manage_catalogView) (Info: /var/local/zope/leonardo/lib/python/Products/Xron/scheduleView.dtml) File /var/local/zope/leonardo/lib/python/DocumentTemplate/DT_String.py, line 340, in cook (Object: manage_catalogView) File /var/local/zope/leonardo/lib/python/DocumentTemplate/DT_String.py, line 332, in read (Object: manage_catalogView) File /var/local/zope/leonardo/lib/python/DocumentTemplate/DT_String.py, line 518, in read_raw (Object: manage_catalogView) IOError: (see above) In the products folder the Xron product is fine not broken. So what else do I need to do to get it to work. TIA AM -- ================================================================== Aseem Mohanty Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231 ================================================================== "I saw `cout' being shifted "Hello world" times to the left and stopped right there!!" -- Steve Gonedes ==================================================================
I have a Java/Swing application. From this application I need to store and get some Text files from Zope. How to do it. Are there some HTTP Java APIs available from ZOPE? 1. Could someone proivide code to do "Store"/Submit a document to Zope and to "Retreive"/Get the document. However I could get the document using HttpURLConnection class of Java. 2. Does ZOPE server provide some JAVA APIs so that complete document directory structure with files could be retieved so that Java application could show them to user for selection. 3. How to submit a document with Zope user authentication done. 4. Note I don't want to use Python/Jython -- Thanks
zope does not provide any java APIs. zope does not run java. you will have to use the supported internet protocols like HTTP, XML-RPC, WebDAV or FTP for your processing. jens On Friday, Oct 4, 2002, at 07:31 US/Eastern, D Bamud wrote:
I have a Java/Swing application. From this application I need to store and get some Text files from Zope. How to do it. Are there some HTTP Java APIs available from ZOPE?
1. Could someone proivide code to do "Store"/Submit a document to Zope and to "Retreive"/Get the document. However I could get the document using HttpURLConnection class of Java.
2. Does ZOPE server provide some JAVA APIs so that complete document directory structure with files could be retieved so that Java application could show them to user for selection.
3. How to submit a document with Zope user authentication done.
4. Note I don't want to use Python/Jython -- Thanks
AM wrote:
Error Type: IOError Error Value: [Errno 13] Permission denied: '/var/local/zope/leonardo/lib/python/Products/Xron/scheduleView.dtml'
Come on. This is pretty explicit. The user Zope is running as doesn't have rights to read this file. Fix that. Chris
As I mentioned in the email.... I am logged in as Manager. How do I go higer than that. AM Chris Withers wrote:
AM wrote:
Error Type: IOError Error Value: [Errno 13] Permission denied: '/var/local/zope/leonardo/lib/python/Products/Xron/scheduleView.dtml'
Come on. This is pretty explicit.
The user Zope is running as doesn't have rights to read this file.
Fix that.
Chris
.
-- ================================================================== Aseem Mohanty Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231 ================================================================== "I saw `cout' being shifted "Hello world" times to the left and stopped right there!!" -- Steve Gonedes ==================================================================
Something strange: Although I was logged into my box as zope when I unzipped the file, half the files in the Products/Xron files still have root ownership. Should I leave it as it is or change it. Also the file SheduleView.dtml for which I get the permission denied is owned by user zope... So I still have no idea whats going on.. TIA AM AM wrote:
As I mentioned in the email.... I am logged in as Manager. How do I go higer than that. AM
Chris Withers wrote:
AM wrote:
Error Type: IOError Error Value: [Errno 13] Permission denied: '/var/local/zope/leonardo/lib/python/Products/Xron/scheduleView.dtml'
Come on. This is pretty explicit.
The user Zope is running as doesn't have rights to read this file.
Fix that.
Chris
.
-- ================================================================== Aseem Mohanty Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231 ================================================================== "I saw `cout' being shifted "Hello world" times to the left and stopped right there!!" -- Steve Gonedes ==================================================================
The Solution: for RH7.2 Zope 2.5.1 Unzip Xron. Change ownership of all files to whatever user you run zope as. Change ownership of INSTANCE_HOME/var/Z2.pid to nobody Stop Zope Start Zope as user:nobody Stop Zope Change ownership of INSTANCE_HOME/var/Z2.pid to user you run zope as. Start it again as the user you run zope as. Creates the Schedule object normally not broken as in the previous cases. Solution kind of listed on : http://www.zope.org/Members/lstaffor/Xron/CHANGES.txt for version 0.08 (when upgrading) whereas I am using ver 0.10 ( a clean new install ) oh well..... Thanks for your help -AM -- ================================================================== Aseem Mohanty Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231 ================================================================== "I saw `cout' being shifted "Hello world" times to the left and stopped right there!!" -- Steve Gonedes ==================================================================
Well ite seems that the approach I listed in the previous email succeeds in creating an unbroken Schedule object in the root folder. However it suffers from a severe drawback: Still have the same error. Possibly because Z2.pid is no longer owned by nobody. I think I will trash Xron and see what I can come up with. AM -- ================================================================== Aseem Mohanty Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231 ================================================================== "I saw `cout' being shifted "Hello world" times to the left and stopped right there!!" -- Steve Gonedes ==================================================================
The final solution: The whole approach seems to work, unfortunately only as long as you start zope as nobody. What the **** is going on.?? I cant create a unbroken Schedule object if I start zope as zope. If I start zope as nobody I can create and edit the Schedule object. But the moment I start as zope all that is gone. AM AM wrote:
Well ite seems that the approach I listed in the previous email succeeds in creating an unbroken Schedule object in the root folder. However it suffers from a severe drawback:
Still have the same error. Possibly because Z2.pid is no longer owned by nobody. I think I will trash Xron and see what I can come up with. AM
-- ================================================================== Aseem Mohanty Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231 ================================================================== "I saw `cout' being shifted "Hello world" times to the left and stopped right there!!" -- Steve Gonedes ==================================================================
AM wrote:
The final solution: The whole approach seems to work, unfortunately only as long as you start zope as nobody. What the **** is going on.?? I cant create a unbroken Schedule object if I start zope as zope. If I start zope as nobody I can create and edit the Schedule object. But the moment I start as zope all that is gone.
Sounds like your file permissions are still b0rked. I'd go an fidn a friendly Linux sysadmin... cheers, Chris
participants (4)
-
AM -
Chris Withers -
D Bamud -
Jens Vagelpohl