Mailing List Archive

Issue 1094 in cherokee: cherokee-admin does not work without '-t'
Status: New
Owner: ----

New issue 1094 by ggdasa: cherokee-admin does not work without '-t'
http://code.google.com/p/cherokee/issues/detail?id=1094

What steps will reproduce the problem?
1. launching cherokee-admin -T 1 -p port
2.
3.

What is the expected output? What do you see instead?

I get 503 error.
What version of the product are you using? On what operating system?

1.0.14.
Please provide any additional information below.
I was trying to launch cherokee-admin on my shared hosting and thought the
problem was limited number of threads I can use on the server (50).

E.g. trying with:

cherokee-admin --port=62840 -T 13

gives:
[22/12/2010 10:30:59.229] (error) rrd_tools.c:120 - Could not find the
rrdtool binary.
[22/12/2010 10:30:59.229] (error) thread.c:247 - Could not create a system
thread: 'Cannot allocate memory'
/home/gour/lib/libcherokee-base.so.0(cherokee_error_errno_log+0x52)
[0xf77bde42]
/home/gour/lib/libcherokee-server.so.0(cherokee_thread_new+0x2e8)
[0xf779be08]
/home/gour/lib/libcherokee-server.so.0(cherokee_server_initialize+0x79a)
[0xf77955aa]
cherokee-admin(main+0x80e) [0x8049b4e]
/lib/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xf748f455]
cherokee-admin [0x80492a1]
[22/12/2010 10:30:59.229] (critical) server.c:651 - Could not create an
internal server thread
/home/gour/lib/libcherokee-base.so.0(cherokee_error_log+0x52) [0xf77bdf12]
/home/gour/lib/libcherokee-server.so.0(cherokee_server_initialize+0x100f)
[0xf7795e1f]
cherokee-admin(main+0x80e) [0x8049b4e]
/lib/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xf748f455]
cherokee-admin [0x80492a1]


However, the problem was that running with '-T 1' didn't work as well which
means that the problem is not number of threads which is not reached.

Today, I tried to launch cherokee-admin with:

cherokee-admin --port=62840 -T 13 -t and it works, but I'm not sure why and
therefore report so that devs can take a look.


Sincerely,
Gour


_______________________________________________
Cherokee-dev mailing list
Cherokee-dev@lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev
Re: Issue 1094 in cherokee: cherokee-admin does not work without '-t' [ In reply to ]
Comment #1 on issue 1094 by alobbs: cherokee-admin does not work
without '-t'
http://code.google.com/p/cherokee/issues/detail?id=1094

Does it still happen?

BTW, you could safely use "-T 1" to launch the server in singles thread
more. If the thread number limit is actually the issue, it should make help
a little.

_______________________________________________
Cherokee-dev mailing list
Cherokee-dev@lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev
Re: Issue 1094 in cherokee: cherokee-admin does not work without '-t' [ In reply to ]
Comment #2 on issue 1094 by ggd...@gmail.com: cherokee-admin does not work
without '-t'
http://code.google.com/p/cherokee/issues/detail?id=1094

> Does it still happen?

Yes, it does with 1.0.20.

> BTW, you could safely use "-T 1" to launch the server in singles thread
> more. If the thread number limit is actually the issue, it should make
> help a little.

The point is that even launching with -T, I still get 503 error, but when
adding '-t' it works with '-T 1' and with e.g '-T 12'.



_______________________________________________
Cherokee-dev mailing list
Cherokee-dev@lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev
Re: Issue 1094 in cherokee: cherokee-admin does not work without '-t' [ In reply to ]
Comment #3 on issue 1094 by clayto...@gmail.com: cherokee-admin does not
work without '-t'
http://code.google.com/p/cherokee/issues/detail?id=1094

After updating to 1.0.20, I had the problem of cherokee-admin not at all
responding with my typical startup command...

cherokee-admin --port=8001 --bind=10.0.0.2

... After adding the -t, it started working again.

_______________________________________________
Cherokee-dev mailing list
Cherokee-dev@lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev
Re: Issue 1094 in cherokee: cherokee-admin does not work without '-t' [ In reply to ]
Comment #4 on issue 1094 by alobbs: cherokee-admin does not work
without '-t'
http://code.google.com/p/cherokee/issues/detail?id=1094

By some reason, python freezes in accept(). Even if there are connections
waiting to be accepted, it does not seem to return from the syscall:

=========
File "/home/gour/share/cherokee/admin/CTK/CTK/Server.py", line 265, in
serve_forever
self._scgi.handle_request()
File "/usr/lib/python2.5/SocketServer.py", line 217, in handle_request
request, client_address = self.get_request()
File "/usr/lib/python2.5/SocketServer.py", line 374, in get_request
return self.socket.accept()
File "/usr/lib/python2.5/socket.py", line 172, in accept
sock, addr = self._sock.accept()
=========

_______________________________________________
Cherokee-dev mailing list
Cherokee-dev@lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev
Re: Issue 1094 in cherokee: cherokee-admin does not work without '-t' [ In reply to ]
Comment #5 on issue 1094 by psaod8fz...@gmail.com: cherokee-admin does not
work without '-t'
http://code.google.com/p/cherokee/issues/detail?id=1094

Both works for me with todays version.

cherokee-admin -T 1 -p 8001
cherokee-admin --port=8001 --bind=10.0.0.2

_______________________________________________
Cherokee-dev mailing list
Cherokee-dev@lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev
Re: Issue 1094 in cherokee: cherokee-admin does not work without '-t' [ In reply to ]
Updates:
Status: Fixed

Comment #6 on issue 1094 by ste...@konink.de: cherokee-admin does not work
without '-t'
http://code.google.com/p/cherokee/issues/detail?id=1094

Thanks for mentioning it :)

_______________________________________________
Cherokee-dev mailing list
Cherokee-dev@lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev