Re: [Zope] Permission Denied...New Build

2006-11-29 Thread Jonathan


- Original Message - 
From: "Dieter Maurer" <[EMAIL PROTECTED]>

To: "Nancy Donnelly" <[EMAIL PROTECTED]>
Cc: 
Sent: Wednesday, November 29, 2006 4:57 PM
Subject: Re: [Zope] Permission Denied...New Build



Nancy Donnelly wrote at 2006-11-29 08:17 -0800:

...
 File "/usr/local/src/Zope-2.9.6-final/lib/python/ZODB/lock_file.py", 
line 60, in __init__

   self._fp = open(path, 'w+')
IOError: [Errno 13] Permission denied: 
'/usr/local/zope/2012/var/Data.fs.lock'


Most Python/Zope error message are quite good.
So good, that it is worth to read them carefully ;-)

The error message above, for example, clearly tells you
that your operating system ("IOError") denied access ("Permission denied")
to the file "/usr/local/zope/2012/var/Data.fs.lock".


What do?


After careful reading of the error message, you use
means of your operating system to determine what
permissions are granted for "/usr/local/zope/2012/var/Data.fs.lock"
or (if that does not exist) for "/usr/local/zope/2012/var".

Dieter


I'm glad you caught that Dieter!  I read Nancy's post too quickly and 
responded by telling her to check Data.fs permissions (my bad).  Sorry about 
that Nancy!


Jonathan






___
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] Permission Denied...New Build

2006-11-29 Thread Dieter Maurer
Nancy Donnelly wrote at 2006-11-29 08:17 -0800:
> ...
>  File "/usr/local/src/Zope-2.9.6-final/lib/python/ZODB/lock_file.py", line 
> 60, in __init__
>self._fp = open(path, 'w+')
>IOError: [Errno 13] Permission denied: '/usr/local/zope/2012/var/Data.fs.lock'

Most Python/Zope error message are quite good.
So good, that it is worth to read them carefully ;-)

The error message above, for example, clearly tells you
that your operating system ("IOError") denied access ("Permission denied")
to the file "/usr/local/zope/2012/var/Data.fs.lock".

>What do?

After careful reading of the error message, you use
means of your operating system to determine what
permissions are granted for "/usr/local/zope/2012/var/Data.fs.lock"
or (if that does not exist) for "/usr/local/zope/2012/var".



-- 
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] Permission Denied...New Build

2006-11-29 Thread robert rottermann
this lock was maybe created by root.
(when zope started from /etc/init.d)

if so you have to delete it as root.

and of course your "efective user" defined (in 
/usr/local/zope/2012/etc/zope.conf)
must be set to somebody that has write permission in /usr/local/zope/2012/var

robert

Nancy Donnelly schrieb:
> 79797975
> Hi;
> After nuking my Zope instances by trying to copy my main HD over to my
> new one, I'm rebuilding with backups. But I'm having a problem. I built
> Z29 from source. I created an instance, specified the path, "nancy" as
> the user and a p/w. When I go to "runzope", as root or as nancy, I get
> this error:
> 
> [EMAIL PROTECTED]:local/zope/2012 (108) ./bin/runzope
> Traceback (most recent call last):
>   File
> "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/run.py", line
> 56, in ?
> run()
>   File
> "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/run.py", line
> 21, in run
> starter.prepare()
>   File
> "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/__init__.py",
> line 98, in prepare
> self.startZope()
>   File
> "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/__init__.py",
> line 257, in startZope
> Zope2.startup()
>   File "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/__init__.py",
> line 47, in startup
> _startup()
>   File
> "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/App/startup.py", line
> 60, in startup
> DB = dbtab.getDatabase('/', is_root=1)
>   File
> "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/datatypes.py",
> line 280, in getDatabase
> db = factory.open(name, self.databases)
>   File
> "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/datatypes.py",
> line 178, in open
> DB = self.createDB(database_name, databases)
>   File
> "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/datatypes.py",
> line 175, in createDB
> return ZODBDatabase.open(self, databases)
>   File "/usr/local/src/Zope-2.9.6-final/lib/python/ZODB/config.py", line
> 97, in open
> storage = section.storage.open()
>   File "/usr/local/src/Zope-2.9.6-final/lib/python/ZODB/config.py", line
> 135, in open
> quota=self.config.quota)
>   File
> "/usr/local/src/Zope-2.9.6-final/lib/python/ZODB/FileStorage/FileStorage.py",
> line 112, in __init__
> self._lock_file = LockFile(file_name + '.lock')
>   File "/usr/local/src/Zope-2.9.6-final/lib/python/ZODB/lock_file.py",
> line 60, in __init__
> self._fp = open(path, 'w+')
> IOError: [Errno 13] Permission denied:
> '/usr/local/zope/2012/var/Data.fs.lock'
> 
> What do?
> TIA,
> Nancy
> 
> 
> Cheap Talk? Check out
> 
> Yahoo! Messenger's low PC-to-Phone call rates.
> 
> 
> 
> 
> ___
> 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 )


[Zope] Permission Denied...New Build

2006-11-29 Thread Nancy Donnelly
79797975Hi;
After nuking my Zope instances by trying to copy my main HD over to my new one, 
I'm rebuilding with backups. But I'm having a problem. I built Z29 from source. 
I created an instance, specified the path, "nancy" as the user and a p/w. When 
I go to "runzope", as root or as nancy, I get this error:

[EMAIL PROTECTED]:local/zope/2012 (108) ./bin/runzope
Traceback (most recent call last):
  File "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/run.py", line 
56, in ?
run()
  File "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/run.py", line 
21, in run
starter.prepare()
  File "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/__init__.py", 
line 98, in prepare
self.startZope()
  File "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/__init__.py", 
line 257, in startZope
Zope2.startup()
  File "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/__init__.py", line 47, 
in startup
_startup()
  File "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/App/startup.py", line 
60, in startup
DB = dbtab.getDatabase('/', is_root=1)
  File "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/datatypes.py", 
line 280, in getDatabase
db = factory.open(name, self.databases)
  File "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/datatypes.py", 
line 178, in open
DB = self.createDB(database_name, databases)
  File "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/datatypes.py", 
line 175, in createDB
return ZODBDatabase.open(self, databases)
  File "/usr/local/src/Zope-2.9.6-final/lib/python/ZODB/config.py", line 97, in 
open
storage = section.storage.open()
  File "/usr/local/src/Zope-2.9.6-final/lib/python/ZODB/config.py", line 135, 
in open
quota=self.config.quota)
  File 
"/usr/local/src/Zope-2.9.6-final/lib/python/ZODB/FileStorage/FileStorage.py", 
line 112, in __init__
self._lock_file = LockFile(file_name + '.lock')
  File "/usr/local/src/Zope-2.9.6-final/lib/python/ZODB/lock_file.py", line 60, 
in __init__
self._fp = open(path, 'w+')
IOError: [Errno 13] Permission denied: '/usr/local/zope/2012/var/Data.fs.lock'

What do?
TIA,
Nancy




 

Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com___
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 )