[Zope] Re: zopectl debug, 2.8.0 local zeo, Data.fs.lock file locking error

2005-07-05 Thread Jeff Kowalczyk
Malcolm Cleaton wrote:
> The only thing I can think of which matches your symptoms is this. Is it
> possible you have misconfigured this new Zope 2.8 instance, and it's
> trying to use direct access to the Data.fs via FileStorage, instead of
> contacting zeo?

I feel like a guy who brought the lawn mower in for repair, and they tell
you 'its got no gas in it'. That was it of course, thanks for the catch.

I normally diff-merge my zope.conf with each successive version, to pick
up any new directives, comments, etc. I guess I forgot the zodb section at
the tail end when moving from 2.7 to 2.8.

It might be helpful to have the list of mounted databases (and thus ZEO
vs. FS distinction) in the control panel summary, that seems like useful
configuration summary information.

Thanks again, and sorry to take up list traffic with a simple
configuration mistake.

___
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] Re: zopectl debug, 2.8.0 local zeo, Data.fs.lock file locking error

2005-07-04 Thread Chris McDonough
If you dont think it's file permissions, one thing this could also be...
is your data.fs on an NFS partition?  flock doesn't work well on NFS.

On Mon, 2005-07-04 at 21:38 +, Jeff Kowalczyk wrote:
> Chris McDonough wrote:
> > File permissions.  The user who is the effective user does not have
> > permission to overwrite the Data.fs.lock file.
> >
> >> effective-user zope
> >> # /var/lib/zope/zope-2.8.0/var $ ls -al
> >> drwxr-xr-x  3 zope zope 336 Jul  4 14:59 .
> >> drwxr-xr-x  9 root root 280 Jun 25 03:08 ..
> >> -rw-r--r--  1 zope zope 4849715 Jul  4 14:59 Data.fs
> >> -rw-r--r--  1 zope zope   55987 Jul  3 18:05 Data.fs.index
> >> -rw-r--r--  1 zope zope   6 Jul  4 14:59 Data.fs.lock
> >> -rw-r--r--  1 zope zope 4874585 Jul  3 18:04 Data.fs.old
> >> -rw-r--r--  1 zope zope  154247 Jul  4 14:59 Data.fs.tmp
> >> -rw-rw-r--  1 zope zope 299 Jun 25 03:08 README.txt
> >> -rw-r--r--  1 zope zope   5 Jul  4 14:59 Z2.lock
> >> -rw-r--r--  1 zope zope   5 Jul  4 14:59 Z2.pid
> >> drwxr-xr-x  2 zope zope   14648 Jul  4 14:08 pts
> >> srwx--  1 root root   0 Jul  4 14:59 zopectlsock
> 
> I get a little fuzzy on when the changeover from user root to user zope
> happens, but this is the confusing point, and why I originally excerpted
> the directory listing: doesn't (effective) user zope already have
> read-write on the Data.fs.lock file?
> 
> Should I add user root to group zope, or would that defeat the security
> purpose of the effective-user? Or can you recommend the correct chmod
> setting for this setup, I don't want to 755 the thing into wide-open
> access without knowing what I'm doing. Thanks.
> 
> 
> 
> 
> ___
> 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 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] Re: zopectl debug, 2.8.0 local zeo, Data.fs.lock file locking error

2005-07-04 Thread Jeff Kowalczyk
Chris McDonough wrote:
> File permissions.  The user who is the effective user does not have
> permission to overwrite the Data.fs.lock file.
>
>> effective-user zope
>> # /var/lib/zope/zope-2.8.0/var $ ls -al
>> drwxr-xr-x  3 zope zope 336 Jul  4 14:59 .
>> drwxr-xr-x  9 root root 280 Jun 25 03:08 ..
>> -rw-r--r--  1 zope zope 4849715 Jul  4 14:59 Data.fs
>> -rw-r--r--  1 zope zope   55987 Jul  3 18:05 Data.fs.index
>> -rw-r--r--  1 zope zope   6 Jul  4 14:59 Data.fs.lock
>> -rw-r--r--  1 zope zope 4874585 Jul  3 18:04 Data.fs.old
>> -rw-r--r--  1 zope zope  154247 Jul  4 14:59 Data.fs.tmp
>> -rw-rw-r--  1 zope zope 299 Jun 25 03:08 README.txt
>> -rw-r--r--  1 zope zope   5 Jul  4 14:59 Z2.lock
>> -rw-r--r--  1 zope zope   5 Jul  4 14:59 Z2.pid
>> drwxr-xr-x  2 zope zope   14648 Jul  4 14:08 pts
>> srwx--  1 root root   0 Jul  4 14:59 zopectlsock

I get a little fuzzy on when the changeover from user root to user zope
happens, but this is the confusing point, and why I originally excerpted
the directory listing: doesn't (effective) user zope already have
read-write on the Data.fs.lock file?

Should I add user root to group zope, or would that defeat the security
purpose of the effective-user? Or can you recommend the correct chmod
setting for this setup, I don't want to 755 the thing into wide-open
access without knowing what I'm doing. Thanks.




___
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 )