Re: [mongrel2] in example arc_challenge, change tcp to ipc, cann't work
- From:
- Tang Daogang
- Date:
- 2011-01-10 @ 01:11
I have tested in normal user mode. It can work, and the pipe file are
generated. And the log is:
============================================================
legerobot@legerobot-office:~/tir-0.8-1/examples/arc_challenge$ m2sh start
-db conf/config.sqlite -every
[INFO] (src/handler.c:320) MAX limits.handler_stack=102400
[INFO] (src/config/config.c:92) Loaded handler 1 with
send_spec=ipc://run/t0_in send_ident=e884a439-31be-4f74-8050-a93565795b25
recv_spec=ipc://run/t0_out recv_ident=
[INFO] (src/host.c:62) MAX limits.url_path=256, limits.host_name=256
[INFO] (src/config/config.c:203) Created handler route 1:/arc ->
e884a439-31be-4f74-8050-a93565795b25:ipc://run/t0_in
[INFO] (src/config/config.c:260) Adding host 1:(.+) to server at pattern
(.+)
[INFO] (src/config/config.c:301) Loaded server
1:505417b8-1de4-454f-98b6-07eb9225cca1 on port 6767 with default host (.+)
[INFO] (src/mime.c:49) MAX limits.mime_ext_len=128
[INFO] (src/superpoll.c:249) Could not force NOFILE higher, you'll need to
run as root: Operation not permitted
[INFO] (src/superpoll.c:255) MAX open file descriptors is 1024 now.
[ERROR] (src/unixy.c:99: errno: No such file or directory) Failed to open
PID file .//run/mongrel2.pid for reading.
[INFO] (src/unixy.c:138) No previous Mongrel2 running, continuing on.
*[ERROR]* (src/unixy.c:55: errno: Operation not permitted) Can't chroot to
./, rerun as root if this is what you want.
*[ERROR]* (src/mongrel2.c:188: errno: None) Couldn't chroot too ./, assuming
running in test mode.
[INFO] (src/server.c:118) Starting 0MQ with 1 threads.
[INFO] (src/request.c:81) MAX limits.header_count=1280
[INFO] (src/connection.c:661) MAX limits.content_length=20480,
limits.buffer_size=4096, limits.connection_stack_size=32768,
limits.client_read_retries=5
[INFO] (src/connection.c:667) MAX limits.proxy_read_retries=100,
limits.proxy_read_retry_warn=10
[INFO] (src/mongrel2.c:300) Starting Mongrel2/1.4-561cb4b4a4. Copyright (C)
Zed A. Shaw. Licensed BSD.
[INFO] (src/server.c:136) Starting server on port 6767
[INFO] (src/task/fd.c:140) MAX limits.fdtask_stack=102400
[INFO] (src/superpoll.c:102) Allowing for 256 hot and 768 idle file
descriptors (dividend was 4)
[INFO] (src/control.rl:207) Setting up control socket in at
ipc://run/control
[INFO] (src/handler.c:202) MAX allowing limits.handler_targets=128
[INFO] (src/handler.c:275) Binding handler PUSH socket ipc://run/t0_in with
identity: e884a439-31be-4f74-8050-a93565795b25
[INFO] (src/handler.c:297) Binding listener SUB socket ipc://run/t0_out
subscribed to:
==============================================================
Why it can run when there are yet some ERRORs?
On Sun, Jan 9, 2011 at 9:27 AM, Tang Daogang <daogangtang@gmail.com> wrote:
> yes, I ran it as root. let me try another user to test.
>
> On 1/8/11, Zed A. Shaw <zedshaw@zedshaw.com> wrote:
> > On Sat, Jan 08, 2011 at 04:02:19PM +0800, Tang Daogang wrote:
> >> hi, Shaw,
> >>
> >> I change the mongrel2.conf's zeromq transport way from tcp to ipc, but
> it
> >> doesn't work - the web browser keep being loading the
> >> http://localhost:6767/arc, but no content displayed, until timeout.
> >
> > Are you running it as root? I actually think I ran into this under root
> > but didn't look at it much further. Try running it in normal mode and
> > see if they ipc files show up, then if they don't in when run as root
> > then I'll debug it further.
> >
> > --
> > Zed A. Shaw
> > http://zedshaw.com/
> >
>
Re: [mongrel2] in example arc_challenge, change tcp to ipc, cann't
work
- From:
- Zed A. Shaw
- Date:
- 2011-01-10 @ 18:11
On Mon, Jan 10, 2011 at 09:11:38AM +0800, Tang Daogang wrote:
> I have tested in normal user mode. It can work, and the pipe file are
> generated. And the log is:
Alright I'll try to find out why it fails when run as root.
> Why it can run when there are yet some ERRORs?
Some of those should be warnings really.
--
Zed A. Shaw
http://zedshaw.com/