These are chat archives for fanout/pushpin

5th
May 2016
Johnny Van Dyke
@JohnnyVanDyke_twitter
May 05 2016 15:38
Hi Everyone im having problems starting pushpin as a service in debian 8
This message was deleted
Johnny Van Dyke
@JohnnyVanDyke_twitter
May 05 2016 15:44
All that I get is this output
'''
~$ sudo systemctl status pushpin
‚óŹ pushpin.service - LSB: HTTP reverse proxy server for streaming and long-polling services
Loaded: loaded (/etc/init.d/pushpin)
Active: active (exited) since Thu 2016-05-05 11:33:59 EDT; 55s ago
Process: 6081 ExecStop=/etc/init.d/pushpin stop (code=exited, status=0/SUCCESS)
Process: 6089 ExecStart=/etc/init.d/pushpin start (code=exited, status=0/SUCCESS)
You have new mail in /var/mail/
'''
Justin Karneges
@jkarneges
May 05 2016 16:51
Hi @JohnnyVanDyke_twitter , I think you may need to edit /etc/default/pushpin first to enable the service
Johnny Van Dyke
@JohnnyVanDyke_twitter
May 05 2016 16:58

Hi !!

This is what that looks like

Defaults for pushpin initscript

sourced by /etc/init.d/pushpin

installed at /etc/default/pushpin by the maintainer scripts

#

This is a POSIX shell fragment

#

Additional options that are passed to the Daemon.

DAEMON_ARGS=""

Set to 'yes' if pushpin should be started automatically.

RUN=yes

Also does this support a " Dual Nic configuration " ?
Justin Karneges
@jkarneges
May 05 2016 17:03
that looks right to me. and yes dual nic should be fine since by default, pushpin binds to all addresses
Johnny Van Dyke
@JohnnyVanDyke_twitter
May 05 2016 17:17
Thanks @jkarneges I was able to get both nic's working ( Firewall issue ) any ideas why i cant start the service
Justin Karneges
@jkarneges
May 05 2016 17:19
what version are you using, and are you using an official debian package or one from our apt repo?
Johnny Van Dyke
@JohnnyVanDyke_twitter
May 05 2016 17:21
Im running Debian 8, I just installed it from your repo
Justin Karneges
@jkarneges
May 05 2016 17:22
Ok. @jannic knows this best so hopefully he can chime in
what happens if you run "sudo service pushpin start" ?
Johnny Van Dyke
@JohnnyVanDyke_twitter
May 05 2016 17:27
Im sorry its working now !!!
Justin Karneges
@jkarneges
May 05 2016 17:27
ah, I think I know what may have happened. if you try to start it before it's enabled in /etc/default/pushpin, then you have to stop and start again
does that sound like it?
Johnny Van Dyke
@JohnnyVanDyke_twitter
May 05 2016 17:42
I rebooted :smile:
Jan Niehusmann
@jannic
May 05 2016 17:51
Hi! systemctl status pushpin doesn't tell the reason why pushpin isn't running. One easy way to get the same output as you did is having another process which already listens on port 7999 (or whatever you have configured). A reboot of course helps if that other process isn't automatically restarted.
In that case, /var/log/pushpin/mongrel2_7999.log should contain some entries like:
Thu, 05 May 2016 17:48:23 GMT [ERROR] (src/task/net.c:63: errno: Address already in use) Failed to bind to address.
Thu, 05 May 2016 17:48:23 GMT [ERROR] (src/mongrel2.c:152: errno: None) Can't announce on TCP port 7999
Thu, 05 May 2016 17:48:23 GMT [ERROR] (src/mongrel2.c:415: errno: None) Aborting since can't load server.
Thu, 05 May 2016 17:48:23 GMT [ERROR] (src/mongrel2.c:446: errno: None) Exiting due to error.
Johnny Van Dyke
@JohnnyVanDyke_twitter
May 05 2016 18:17
Jan thank you !!