These are chat archives for fanout/pushpin

21st
Feb 2019
Daniel Baskaran
@danielpradeep
Feb 21 19:49

Hi @jkarneges, hope you are doing great! Recently, I’ve setup Pushpin in MacOS Mojave using Homebrew to reverse proxy all sites in my dev environment. A few days ago. Before this setup, I had Pushpin in a Ubuntu:14.04 in a Docker instance.

Here’s what is happening now in this setup. After pushpin is started, it automatically stop and exits with errors for unknown reason (atleast for me). Does it seem familiar to you?

When pushpin starts… on the port 80

INFO] 2019-02-21 10:54:09.904 starting...                                                                                                                       
[INFO] 2019-02-21 10:54:09.905 using config: /usr/local/etc/pushpin/pushpin.conf                                                                                 
[INFO] 2019-02-21 10:54:09.923 starting m2 http:80                                                                                                               
[INFO] 2019-02-21 10:54:09.924 starting m2a                                                                                                                      
[INFO] 2019-02-21 10:54:09.925 starting zurl                                                                                                                     
[INFO] 2019-02-21 10:54:09.926 starting proxy                                                                                                                    
[INFO] 2019-02-21 10:54:09.926 starting handler                                                                                                                  
[INFO] 2019-02-21 10:54:09.928 started
Thu, 21 Feb 2019 18:54:09 GMT [INFO] (src/server.c:365) Starting 0MQ with 1 threads.
Thu, 21 Feb 2019 18:54:09 GMT [INFO] (src/request.c:60) MAX limits.header_count=1280
Thu, 21 Feb 2019 18:54:09 GMT [INFO] (src/connection.c:1312) MAX limits.content_length=20480, limits.buffer_size=8192, limits.connection_stack_size=32768, limits.client_read_retries=5
Thu, 21 Feb 2019 18:54:09 GMT [INFO] (src/connection.c:1318) MAX limits.proxy_read_retries=100, limits.proxy_read_retry_warn=10
Thu, 21 Feb 2019 18:54:09 GMT [INFO] (src/task/fd.c:153) MAX limits.fdtask_stack=102400
Thu, 21 Feb 2019 18:54:09 GMT [INFO] (src/handler.c:323) MAX allowing limits.handler_targets=128
Thu, 21 Feb 2019 18:54:09 GMT [INFO] (src/handler.c:409) Binding handler PUSH socket ipc:///usr/local/var/run/pushpin/pushpin-m2-out-80 with identity: pushpin-m2-80
Thu, 21 Feb 2019 18:54:09 GMT [INFO] (src/handler.c:435) Binding listener SUB socket ipc:///usr/local/var/run/pushpin/pushpin-m2-in-80 subscribed to: pushpin-m2-80 
Thu, 21 Feb 2019 18:54:09 GMT [INFO] (src/control.c:437) Setting up control socket in at ipc:///usr/local/var/run/pushpin/pushpin-m2-control-80
Thu, 21 Feb 2019 18:54:10 GMT [INFO] (src/mongrel2.c:301) -- Mongrel2/1.11.0 Running. Copyright (C) Zed A. Shaw. Licensed BSD.

When it stops abruptly…

[ERR] 2019-02-21 11:39:10.417 zurl: Exited unexpectedly                                                                                                          
[INFO] 2019-02-21 11:39:10.417 stopping m2 http:80                                                                                                               
[INFO] 2019-02-21 11:39:10.417 stopping m2a                                                                                                                      
[INFO] 2019-02-21 11:39:10.417 stopping proxy                                                                                                                    
[INFO] 2019-02-21 11:39:10.417 stopping handler                                                                                                                  
[ERR] 2019-02-21 11:39:10.422 m2 http:80: Exited uncleanly                                                                                                       
[INFO] 2019-02-21 11:39:10.429 stopped
Thu, 21 Feb 2019 19:39:10 GMT [INFO] (src/mongrel2.c:96) SHUTDOWN REQUESTED: MURDER
Thu, 21 Feb 2019 19:39:10 GMT [ERROR] (src/task/net.c:231: errno: Bad file descriptor) Failed to accept after doing a poll on the socket.
Thu, 21 Feb 2019 19:39:10 GMT [ERROR] (src/server.c:382: errno: None) Failed to accept on listening socket.
Thu, 21 Feb 2019 19:39:10 GMT [INFO] (src/mongrel2.c:442) Server run exited, goodbye.
Thu, 21 Feb 2019 19:39:10 GMT [ERROR] (src/handler.c:294: errno: None) Receive on handler socket failed.
Thu, 21 Feb 2019 19:39:10 GMT [WARN] (src/handler.c:336: errno: None) Handler task signaled, exiting.
Thu, 21 Feb 2019 19:39:10 GMT [ERROR] (src/control.c:92: errno: None) Receive on control failed.
Thu, 21 Feb 2019 19:39:10 GMT [ERROR] (src/control.c:449: errno: None) Failed to read message: Undefined error: 0.
Thu, 21 Feb 2019 19:39:10 GMT [INFO] (src/control.c:474) Control port exiting with error.
Thu, 21 Feb 2019 19:39:10 GMT [ERROR] (src/task/task.c:345: errno: None) Task is already added, refusing to do it again: 0x0, 0x0, 0x7fbd5100ac00=0x7fbd5100ac00
Thu, 21 Feb 2019 19:39:10 GMT [INFO] (src/mongrel2.c:386) Shutdown requested, goodbye.
Thu, 21 Feb 2019 19:39:10 GMT [ERROR] (src/task/fd.c:231: errno: Resource temporarily unavailable) Error adding fd: -1 or socket: 0x7fbd4d803200 to task wait list.
Thu, 21 Feb 2019 19:39:10 GMT [ERROR] (src/handler.c:391: errno: None) Failed to deliver 0mq message to handler.
Thu, 21 Feb 2019 19:39:10 GMT [ERROR] (src/handler.c:91: errno: None) Can't tell handler 1 died.
Thu, 21 Feb 2019 19:39:10 GMT [INFO] (src/mongrel2.c:336) Shutting down all running tasks as gracefully as possible.
Thu, 21 Feb 2019 19:39:10 GMT [INFO] (src/mongrel2.c:344) Tasks now running (including main task): 2
Thu, 21 Feb 2019 19:39:10 GMT [INFO] (src/mongrel2.c:354) Removing pid file /usr/local/var/run/pushpin/mongrel2_80.pid