Albert Lunde | 1 Oct 2011 05:20
Picon
Favicon

problem with rotatelogs time of day formatting

I'm trying to set up piped access and error logs, with "rotatelogs", as 
I'm porting the configuration from Solaris box to a small cluster of 
Linux VMs running RHEL 5.

We're trying to use file name patterns like:

error_log_chnuinfow3.%Y-%m-%d-%H_%M_%S.txt

The date substitutions are working, but the time of day characters come 
out as zeros. An example, and some system information, are quoted below.

I originally was trying to use rotatelogs from the Red Hat httpd RPMs.

But since they are a version of httpd 2.2.3 with back-ported patches,
I then tried building the newest httpd 2.2.21 from source, off to one 
side, with static support binaries.

That's the source of /usr/local/sbin/rotatelogs below. But both versions 
seem to have the same symptom.

I wrote a C program to test the system strftime, and that seemed to work 
as expected, but I suppose the APR library date/time library is what is 
being used, making that somewhat moot.

(I'm also aware of logrotate, and the legacy server just stops and 
starts the server in a nightly job that also rotates the logs in a shell 
script. Others wanted to do use piped log rotation,
I'm trying to make it work.)

Any ideas?
(Continue reading)

Wang, Mary Y | 1 Oct 2011 16:17
Picon
Favicon

mod_include.so: undefined symbol: ap_escape_html2 Error

After a system upgrade, I'm unable to start the Apache server anymore.
Using the following command to start Apache server 'httpd -f /opt/csvn/data/conf/httpd.conf -k start' , I got the following error:
httpd: Syntax error on line 20 of /opt/csvn/data/conf/httpd.conf: Cannot load /opt/csvn/lib/modules/mod_include.so into server: /opt/csvn/lib/modules/mod_include.so: undefined symbol: ap_escape_html2
 
I'm not sure what to do with the undefined symbol: ap_escape_html2
 
Running on FC5 and httpd-2.2.0-5.1.2.
 
Thanks in advance.  Any help is appreciated.
Mary Wang
 
Rainer Jung | 1 Oct 2011 16:58
Picon
Favicon

Re: mod_include.so: undefined symbol: ap_escape_html2 Error

On 01.10.2011 16:17, Wang, Mary Y wrote:
> After a system upgrade, I'm unable to start the Apache server anymore.
> Using the following command to start Apache server 'httpd -f
> /opt/csvn/data/conf/httpd.conf -k start' , I got the following error:
> httpd: Syntax error on line 20 of /opt/csvn/data/conf/httpd.conf: Cannot
> load /opt/csvn/lib/modules/mod_include.so into server:
> /opt/csvn/lib/modules/mod_include.so: undefined symbol: ap_escape_html2
>  
> I'm not sure what to do with the undefined symbol: ap_escape_html2
>  
> Running on FC5 and httpd-2.2.0-5.1.2.

The function was included in Apache 2.2.12. It is used by mod_include
and provided by the Apache core (the httpd binary). So it seems you
updated the module, but not the httpd binary itself.

Regards,

Rainer

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe <at> httpd.apache.org
   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org

Rainer Jung | 1 Oct 2011 17:06
Picon
Favicon

Re: problem with rotatelogs time of day formatting

On 01.10.2011 05:20, Albert Lunde wrote:
> The date substitutions are working, but the time of day characters come
> out as zeros. An example, and some system information, are quoted below.

> ErrorLog "|/usr/local/sbin/rotatelogs -f
> /var/log/httpd/error_log_chnuinfow3.%Y-%m-%d-%H_%M_%S.txt 86400"
> 
> [root <at> chnuinfow3 conf]# ls -1 /var/log/httpd
> access_log_chnuinfow3.2011-09-30-00_00_00.txt
> access_log_chnuinfow3.2011-10-01-00_00_00.txt
> access_log_skipped_chnuinfow3.2011-09-30-00_00_00.txt
> access_log_skipped_chnuinfow3.2011-10-01-00_00_00.txt
> error_log_chnuinfow3.2011-09-30-00_00_00.txt
> error_log_chnuinfow3.2011-10-01-00_00_00.txt

The timestamp used for the file names is always the previous point in
time where rotation would have happended. You configured a daily
rotation pattern (86400 seconds). By default it rotates at midnight in
GMT timeone, or using the local timezone if rotatelogs is used with the
flag "-l".

So I guess either your system runs on GMT, or you used "-l". With 86400
rotation always happens at midnight (GMT or localtimewith -l) and the
time 00:00:00 is correct. Note that even the new files created when you
start Apache will have the formatted timestamp for the "previous point
in time where rotation would have happended", so when using 86400 it
would be last midnight (relative to GMT or localtimewhen using -l).

Try using a very different interval, like e.g. "90" and observe, whether
the files rotate every 90 seconds and now produce more interesting
formatted timestamps.

Regards,

Rainer

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe <at> httpd.apache.org
   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org

Eric Covener | 1 Oct 2011 17:08
Picon
Gravatar

Re: problem with rotatelogs time of day formatting

When you rotate on time interval, rotatelogs names the file not after the time it logged the first msg but from a normalized start of an interval. 24 hour intervals start at midnight

On Sep 30, 2011 11:20 PM, "Albert Lunde" <atlunde <at> panix.com> wrote:
>
> I'm trying to set up piped access and error logs, with "rotatelogs", as I'm porting the configuration from Solaris box to a small cluster of Linux VMs running RHEL 5.
>
> We're trying to use file name patterns like:
>
> error_log_chnuinfow3.%Y-%m-%d-%H_%M_%S.txt
>
> The date substitutions are working, but the time of day characters come out as zeros. An example, and some system information, are quoted below.
>
> I originally was trying to use rotatelogs from the Red Hat httpd RPMs.
>
> But since they are a version of httpd 2.2.3 with back-ported patches,
> I then tried building the newest httpd 2.2.21 from source, off to one side, with static support binaries.
>
> That's the source of /usr/local/sbin/rotatelogs below. But both versions seem to have the same symptom.
>
> I wrote a C program to test the system strftime, and that seemed to work as expected, but I suppose the APR library date/time library is what is being used, making that somewhat moot.
>
> (I'm also aware of logrotate, and the legacy server just stops and starts the server in a nightly job that also rotates the logs in a shell script. Others wanted to do use piped log rotation,
> I'm trying to make it work.)
>
> Any ideas?
>
> ErrorLog "|/usr/local/sbin/rotatelogs -f /var/log/httpd/error_log_chnuinfow3.%Y-%m-%d-%H_%M_%S.txt 86400"
>
> [root <at> chnuinfow3 conf]# ls -1 /var/log/httpd
> access_log_chnuinfow3.2011-09-30-00_00_00.txt
> access_log_chnuinfow3.2011-10-01-00_00_00.txt
> access_log_skipped_chnuinfow3.2011-09-30-00_00_00.txt
> access_log_skipped_chnuinfow3.2011-10-01-00_00_00.txt
> error_log_chnuinfow3.2011-09-30-00_00_00.txt
> error_log_chnuinfow3.2011-10-01-00_00_00.txt
>
>> [lunde <at> chnuinfow3 ~]$ rpm -qa | grep httpd
>> httpd-devel-2.2.3-45.el5
>> httpd-manual-2.2.3-45.el5
>> system-config-httpd-1.3.3.3-1.el5
>> httpd-2.2.3-45.el5
>
>
>> [lunde <at> chnuinfow3 ~]$ uname -a
>> Linux chnuinfow3.it.northwestern.edu 2.6.18-238.9.1.el5 #1 SMP Fri Mar 18 12:42:39 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
>
>
>> [root <at> chnuinfow3 conf]# /usr/sbin/httpd -V
>> Server version: Apache/2.2.3
>> Server built:   Dec  7 2010 11:19:58
>> Server's Module Magic Number: 20051115:3
>> Server loaded:  APR 1.2.7, APR-Util 1.2.7
>> Compiled using: APR 1.2.7, APR-Util 1.2.7
>> Architecture:   64-bit
>> Server MPM:     Prefork
>>  threaded:     no
>>    forked:     yes (variable process count)
>> Server compiled with....
>>  -D APACHE_MPM_DIR="server/mpm/prefork"
>>  -D APR_HAS_SENDFILE
>>  -D APR_HAS_MMAP
>>  -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
>>  -D APR_USE_SYSVSEM_SERIALIZE
>>  -D APR_USE_PTHREAD_SERIALIZE
>>  -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
>>  -D APR_HAS_OTHER_CHILD
>>  -D AP_HAVE_RELIABLE_PIPED_LOGS
>>  -D DYNAMIC_MODULE_LIMIT=128
>>  -D HTTPD_ROOT="/etc/httpd"
>>  -D SUEXEC_BIN="/usr/sbin/suexec"
>>  -D DEFAULT_PIDLOG="run/httpd.pid"
>>  -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
>>  -D DEFAULT_LOCKFILE="logs/accept.lock"
>>  -D DEFAULT_ERRORLOG="logs/error_log"
>>  -D AP_TYPES_CONFIG_FILE="conf/mime.types"
>>  -D SERVER_CONFIG_FILE="conf/httpd.conf"
>
>
> Test of the system strftime on a similar pattern seems OK:
>
>> [lunde <at> chnuinfow3 ~]$ cat strftime_test.c
>> #include <stdio.h>
>> #include <time.h>
>> #include <stdlib.h>
>> #include <unistd.h>
>>
>> /* gcc -ansi -Wall strftime_test.c -o strftime_test */
>>
>> int main (int argc, char** argv)
>> {
>>
>> time_t rawtime;
>> struct tm * timeinfo;
>> char buffer [80];
>> if(argc<2){
>>    printf("# Usage: strftime_test <format-string>\n");
>>    exit(0);
>> }
>>
>> time ( &rawtime );
>> timeinfo = localtime ( &rawtime );
>>
>> strftime (buffer,80,argv[1],timeinfo);
>> puts (buffer);
>>
>> return 0;
>> }
>>
>>
>> [lunde <at> chnuinfow3 ~]$ ./strftime_test "%Y-%m-%d-%H_%M_%S"
>> 2011-09-30-22_02_12
>> [lunde <at> chnuinfow3 ~]$
>
>
>
>
> --
>    Albert Lunde  albert-lunde <at> northwestern.edu
>                  atlunde <at> panix.com  (address for personal mail)
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe <at> httpd.apache.org
>  "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
> For additional commands, e-mail: users-help <at> httpd.apache.org
>

Wang, Mary Y | 1 Oct 2011 20:33
Picon
Favicon

httpd Will Not Start ....

I'm confused.
I issued the following command to start httpd, but no error and informational message displayed.  Of course, there is no httpd process.
 
'/opt/csvn/bin/httpd -f /opt/csvn/data/conf/httpd.conf -k start'
 
When I looked at the error log file, the only thing that I saw was a warning message.
 
[Sat Oct 01 06:19:05 2011] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Sat Oct 01 06:20:55 2011] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Sat Oct 01 06:23:26 2011] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Sat Oct 01 06:23:33 2011] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Sat Oct 01 06:25:15 2011] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Sat Oct 01 06:26:20 2011] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Sat Oct 01 09:37:34 2011] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Sat Oct 01 09:39:24 2011] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Sat Oct 01 09:40:07 2011] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Sat Oct 01 09:45:35 2011] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Sat Oct 01 11:29:21 2011] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
 
Does anyone knows what is going on?  What can I do to investigate this problem?
 
Thanks for any help.
 
Mary Wang
 
William A. Rowe Jr. | 1 Oct 2011 20:55

Re: httpd Will Not Start ....

On 10/1/2011 1:33 PM, Wang, Mary Y wrote:
> I'm confused.
> I issued the following command to start httpd, but no error and informational message
> displayed.  Of course, there is no httpd process.
>  
> '/opt/csvn/bin/httpd -f /opt/csvn/data/conf/httpd.conf -k start'
>  
> When I looked at the error log file, the only thing that I saw was a warning message.
>  
[...]
> [Sat Oct 01 11:29:21 2011] [warn] Init: Session Cache is not configured [hint:
> SSLSessionCache]
>  
> Does anyone knows what is going on?  What can I do to investigate this problem?

http://lmgtfy.com/?q=Init%3A+Session+Cache+is+not+configured+%5Bhint%3A+SSLSessionCache%5D

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe <at> httpd.apache.org
   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org

Stormy | 1 Oct 2011 22:52
Picon
Favicon

Re: httpd Will Not Start ....

At 01:55 PM 10/1/2011 -0500, William A. Rowe Jr. wrote:
[snip]
> > Does anyone knows what is going on?  What can I do to investigate this 
> problem?
>
>http://lmgtfy.com/?q=Init%3A+Session+Cache+is+not+configured+%5Bhint%3A+SSLSessionCache%5D

OT maybe ... but what is lmgtfy.com - seems to be a cloaked proxy via 
godaddy to google cookies.

tnx - paul

Paul
Tired old sys-admin 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe <at> httpd.apache.org
   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org

Marcin 'Rambo' Roguski | 1 Oct 2011 22:57
Picon
Favicon

Re: httpd Will Not Start ....

> OT maybe ... but what is lmgtfy.com - seems to be a cloaked proxy via 
> godaddy to google cookies.

No, it's a polite way to send asker to flipping google the question.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe <at> httpd.apache.org
   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org

Rajeev Prasad | 1 Oct 2011 23:25
Picon
Favicon

has anyone ever used jQuery.validationEngine. ?

sorry this is not apache question, but it seems help is too difficult to get on this jquery plugin.

i need some advice, so just shouting, is there anyone who has used this ever? can we talk? thx!

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe <at> httpd.apache.org
   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org


Gmane