Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Cherokee: users

Log Rotate issues....

 

 

Cherokee users RSS feed   Index | Next | Previous | View Threaded


pubcrawler.com at gmail

Aug 20, 2009, 9:08 AM

Post #1 of 5 (376 views)
Permalink
Log Rotate issues....

Running Cherokee under Ubuntu 9.04....

Using the docs in the Cherokee Cookbook on how to setup log rotation...

Running this:
cherokee-tweak -c logrotate -a https://127.0.0.1:81/logrotate/ -u
admin -p adminpass -l /var/log/cherokee.access.domain.com

Getting this error:
[20/07/2009 12:05:05.684] (error) plugin_loader.c:194 -
dlopen(/usr/lib/cherokee/libplugin_libssl.so):
/usr/lib/cherokee/libplugin_libssl.so: cannot open shared object file:
No such file or directory
[20/07/2009 12:05:05.684] (error) plugin_loader.c:363 - Can't open
"libssl" module

Anyone know how to resolve this error?
_______________________________________________
Cherokee mailing list
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee


alvaro at octality

Aug 20, 2009, 9:49 AM

Post #2 of 5 (356 views)
Permalink
Re: Log Rotate issues.... [In reply to]

On 20-ago-09, at 18:08, pub crawler wrote:

> [20/07/2009 12:05:05.684] (error) plugin_loader.c:363 - Can't open
> "libssl" module


It seems like Cherokee was compiled without SSL support. Try:

apt-get install libssl-dev

and recompile Cherokee. I guess that should be enough.

--
Octality
http://www.octality.com/

_______________________________________________
Cherokee mailing list
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee


pubcrawler.com at gmail

Aug 20, 2009, 10:13 AM

Post #3 of 5 (360 views)
Permalink
Re: Log Rotate issues.... [In reply to]

Thanks Alvaro.

Now when I run the log rotator I get a segmentation fault error.

Any ideas on that?

On Thu, Aug 20, 2009 at 12:49 PM, Alvaro Lopez
Ortega<alvaro [at] octality> wrote:
> On 20-ago-09, at 18:08, pub crawler wrote:
>
>> [20/07/2009 12:05:05.684] (error) plugin_loader.c:363 - Can't open
>> "libssl" module
>
>
> It seems like Cherokee was compiled without SSL support. Try:
>
>  apt-get install libssl-dev
>
> and recompile Cherokee. I guess that should be enough.
>
> --
> Octality
> http://www.octality.com/
>
>
_______________________________________________
Cherokee mailing list
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee


alvaro at alobbs

Aug 21, 2009, 1:46 AM

Post #4 of 5 (353 views)
Permalink
Re: Log Rotate issues.... [In reply to]

On 20-ago-09, at 19:13, pub crawler wrote:

> Thanks Alvaro.
> Now when I run the log rotator I get a segmentation fault error.
> Any ideas on that?

I've just did a test, and everything worked fine at my end:

==========
$ cherokee-tweak -c logrotate -a https://localhost/admin/ -u alo -p
password -l /var/log/test
Setting backup mode.. OK
Log file '/var/log/test' moved to '/var/log/test.1' successfully
Restoring production mode.. OK
==========

So, I guess you have hit some sort of bug. Try run the cherokee-tweak
application inside gdb, and get a backtrace:

$ gdb cherokee-tweak
(gdb) run -c logrotate -a https://127.0.0.1:81/logrotate/ -u admin -p
adminpass -l /var/log/cherokee.access.domain.com

<it crashes..>

(gdb) thread apply all bt full

<back-trace..>

--
Octality
http://www.octality.com/

_______________________________________________
Cherokee mailing list
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee


pubcrawler.com at gmail

Aug 21, 2009, 3:30 AM

Post #5 of 5 (355 views)
Permalink
Re: Log Rotate issues.... [In reply to]

I ran what you recommended below. To note, we didn't have the libssl
installed before (original message in thread)- did such and recompiled
latest trunk version of Cherokee yesterday. So this error is something
in our config or trunk version - we are running latest Ubuntu 9.04
Desktop 64-bit with Cherokee trunk version now with libssl installed.

Logfile we are attempting to rotate is around 3GB's in size.

> So, I guess you have hit some sort of bug. Try run the cherokee-tweak
> application inside gdb, and get a backtrace:
>
> $ gdb cherokee-tweak
> (gdb) run -c logrotate -a https://127.0.0.1:81/logrotate/ -u admin -p
> adminpass -l /var/log/cherokee.access.domain.com
>
> <it crashes..>
>
> (gdb) thread apply all bt full

Here's the output:

[Thread debugging using libthread_db enabled]
[New Thread 0x7f80b11156f0 (LWP 19340)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f80b11156f0 (LWP 19340)]
0x0000000000401e80 in main (argc=11, argv=0x7fffb91364c8) at main_tweak.c:375
375 ret = instance ((void **) cryptor);

(gdb) thread apply all bt full

Thread 1 (Thread 0x7f80b11156f0 (LWP 19340)):
#0 0x0000000000401e80 in main (argc=11, argv=0x7fffb91364c8)
at main_tweak.c:375
ret = <value optimized out>
c = <value optimized out>
command = {buf = 0x254c120 "logrotate", size = 26, len = 9}
url = {buf = 0x254c150 "https://localhost/logrotate/", size = 45,
len = 28}
trace = {buf = 0x0, size = 0, len = 0}
log = {buf = 0x254c1e0 "/var/log/cherokee.access.pubcrawler.com",
size = 56, len = 39}
user = {buf = 0x254c190 "admin", size = 22, len = 5}
password = {buf = 0x254c1b0 "adminpass", size = 26, len = 9}
cryptor = (cherokee_cryptor_t *) 0x0
long_options = {{name = 0x402e36 "help", has_arg = 0, flag = 0x0,
val = 104}, {name = 0x402e3b "version", has_arg = 0, flag = 0x0,
val = 86}, {name = 0x402e43 "command", has_arg = 1, flag = 0x0, val = 99},
{name = 0x402e4b "url", has_arg = 1, flag = 0x0, val = 97}, {
name = 0x402e4f "user", has_arg = 1, flag = 0x0, val = 117}, {
name = 0x402e54 "password", has_arg = 1, flag = 0x0, val = 112}, {
name = 0x402e5d "log", has_arg = 1, flag = 0x0, val = 108}, {
name = 0x402d04 "trace", has_arg = 1, flag = 0x0, val = 116}, {name = 0x0,
has_arg = 0, flag = 0x0, val = 0}}
_______________________________________________
Cherokee mailing list
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee

Cherokee users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.