[Zope] Log Files Not Logging

2006-08-15 Thread zope

Hi;
I just took over managing my own server. The Z2.log files were enormous, 
so as a quick fix (before creating a rotation cron job) I created a new 
file and moved it to Z2.log Everything was the same except the owner was 
root, so I chowned it over and made it the same as before I cleared off 
the old one. But when I go to hit sites the hits aren't logged. (Note: 
It's not an error I'm looking for at first in the log, just a regular 
hit.) Here's a partial printout of ls -al:


-rw-r--r--  1 tick  wheel0 Aug 15 14:15 Z2.log
-rw-r--r--  1 tick  wheel0 Aug 15 13:36 event.log

Same as before I touched it. Did I do something wrong? Or am I just 
being impatient?

TIA,
beno
___
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] Log Files Not Logging

2006-08-15 Thread Andreas Jung



--On 15. August 2006 10:23:18 -0400 [EMAIL PROTECTED] wrote:




-rw-r--r--  1 tick  wheel0 Aug 15 14:15 Z2.log
-rw-r--r--  1 tick  wheel0 Aug 15 13:36 event.log

Same as before I touched it. Did I do something wrong? Or am I just being
impatient?


No impatient but you should do your homework and read doc/SIGNALS.txt

-aj

pgpEJXMtTn46O.pgp
Description: PGP signature
___
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] Log Files Not Logging

2006-08-15 Thread Jens Vagelpohl

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On 15 Aug 2006, at 10:23, [EMAIL PROTECTED] wrote:


Hi;
I just took over managing my own server. The Z2.log files were  
enormous, so as a quick fix (before creating a rotation cron job) I  
created a new file and moved it to Z2.log Everything was the same  
except the owner was root, so I chowned it over and made it the  
same as before I cleared off the old one. But when I go to hit  
sites the hits aren't logged. (Note: It's not an error I'm looking  
for at first in the log, just a regular hit.) Here's a partial  
printout of ls -al:


You cannot just move a log file to the side, create a new one and  
expect that the still-running process now uses the new file. You must  
tell the running application that the file has been moved. zopectl  
logreopen will do that, or a restart.


jens


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFE4eMkRAx5nvEhZLIRAtz5AKCtMaj07SNF12tAnO5iEkusAiAxhwCfSeEp
UAeW5C93Ul8Wwc594dpj76I=
=zBSU
-END PGP SIGNATURE-
___
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] Log Files Not Logging

2006-08-15 Thread Dennis Allison

The log rotation process is simple.  Rename the logs to whatever 
name you want to use for archival purposes.  Then (assuming you are 
using the usual setup and zopectl:

# zopectl logreopen

which will close and reopen the logs.  

The behavior you observed is exactly the Unix behavior that would be 
expected, since the log files were open.  When you overwrote the log 
file, you created a new file (Z2.log) but the old file (once called 
Z2.log) remained open.  Normally it would have been deleted, but since 
Zope had it open, it remains open and won't be deleted until it is 
closed.  I hope you made a copy of the old Z2.log if it is important;
absent some significant recovery hacking, it's most likely going to 
disappear when you execute logreopen from zopectl or restart zope.

On Tue, 15 Aug 2006 [EMAIL PROTECTED] wrote:

 Hi;
 I just took over managing my own server. The Z2.log files were enormous, 
 so as a quick fix (before creating a rotation cron job) I created a new 
 file and moved it to Z2.log Everything was the same except the owner was 
 root, so I chowned it over and made it the same as before I cleared off 
 the old one. But when I go to hit sites the hits aren't logged. (Note: 
 It's not an error I'm looking for at first in the log, just a regular 
 hit.) Here's a partial printout of ls -al:
 
 -rw-r--r--  1 tick  wheel0 Aug 15 14:15 Z2.log
 -rw-r--r--  1 tick  wheel0 Aug 15 13:36 event.log
 
 Same as before I touched it. Did I do something wrong? Or am I just 
 being impatient?
 TIA,
 beno
 ___
 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 )


Re: [Zope] Log Files Not Logging

2006-08-15 Thread zope

Jens Vagelpohl wrote:
You cannot just move a log file to the side, create a new one and 
expect that the still-running process now uses the new file. You must 
tell the running application that the file has been moved. zopectl 
logreopen will do that, or a restart.

Thanks to both who responded.
beno
___
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 )