Re: board agenda websocket not working

2020-09-24 Thread Sam Ruby
On Thu, Sep 24, 2020 at 2:15 PM Matt Sicker wrote: > > Is this ordering problem a limitation of Puppet or the underlying > package manager? I haven't tried it myself, but Nix/NixOS seem to be > designed around making reproducible VMs/containers. IIRC, the VMs we > have are Ubuntu-based, so perhaps

Re: board agenda websocket not working

2020-09-24 Thread Matt Sicker
Is this ordering problem a limitation of Puppet or the underlying package manager? I haven't tried it myself, but Nix/NixOS seem to be designed around making reproducible VMs/containers. IIRC, the VMs we have are Ubuntu-based, so perhaps https://wiki.debian.org/ReproducibleBuilds is more relevant.

Re: board agenda websocket not working

2020-09-24 Thread Sam Ruby
On Thu, Sep 24, 2020 at 11:54 AM sebb wrote: > > On Thu, 24 Sep 2020 at 16:36, Sam Ruby wrote: > > > > On Thu, Sep 24, 2020 at 11:12 AM sebb wrote: > > > > > > On Thu, 24 Sep 2020 at 16:06, Sam Ruby wrote: > > > > > > > > On Thu, Sep 24, 2020 at 10:58 AM sebb wrote: > > > > > > > > > > I tried

Re: board agenda websocket not working

2020-09-24 Thread sebb
Seems to be OK now. Had to stop and start the service to get it going again. On Thu, 24 Sep 2020 at 17:16, sebb wrote: > > I've just discovered that the service also falls over on Whimsy vm5. > > It appeared to be OK because it was not being used, but curl killed it > the same as on vm6. > > I h

Re: board agenda websocket not working

2020-09-24 Thread sebb
I've just discovered that the service also falls over on Whimsy vm5. It appeared to be OK because it was not being used, but curl killed it the same as on vm6. I have just run the following on vm5 gem [un]install eventmachine and curl no longer kills the process, so it's looking good I'll do t

Re: board agenda websocket not working

2020-09-24 Thread sebb
On Thu, 24 Sep 2020 at 16:36, Sam Ruby wrote: > > On Thu, Sep 24, 2020 at 11:12 AM sebb wrote: > > > > On Thu, 24 Sep 2020 at 16:06, Sam Ruby wrote: > > > > > > On Thu, Sep 24, 2020 at 10:58 AM sebb wrote: > > > > > > > > I tried running the following as root: > > > > > > > > /usr/local/bin/rub

Re: board agenda websocket not working

2020-09-24 Thread Sam Ruby
On Thu, Sep 24, 2020 at 11:12 AM sebb wrote: > > On Thu, 24 Sep 2020 at 16:06, Sam Ruby wrote: > > > > On Thu, Sep 24, 2020 at 10:58 AM sebb wrote: > > > > > > I tried running the following as root: > > > > > > /usr/local/bin/ruby /srv/whimsy/www/board/agenda/daemon/wss.rb -p 34243 > > > > > > T

Re: board agenda websocket not working

2020-09-24 Thread sebb
On Thu, 24 Sep 2020 at 16:06, Sam Ruby wrote: > > On Thu, Sep 24, 2020 at 10:58 AM sebb wrote: > > > > I tried running the following as root: > > > > /usr/local/bin/ruby /srv/whimsy/www/board/agenda/daemon/wss.rb -p 34243 > > > > This falls over when contacted by: > > > > curl localhost:34243 > >

Re: board agenda websocket not working

2020-09-24 Thread Sam Ruby
On Thu, Sep 24, 2020 at 10:58 AM sebb wrote: > > I tried running the following as root: > > /usr/local/bin/ruby /srv/whimsy/www/board/agenda/daemon/wss.rb -p 34243 > > This falls over when contacted by: > > curl localhost:34243 > > However, curiously it does not fall over when run as myself or www

Re: board agenda websocket not working

2020-09-24 Thread sebb
I tried running the following as root: /usr/local/bin/ruby /srv/whimsy/www/board/agenda/daemon/wss.rb -p 34243 This falls over when contacted by: curl localhost:34243 However, curiously it does not fall over when run as myself or www-data One obvious difference is that only root has access to

Re: board agenda websocket not working

2020-09-24 Thread Sam Ruby
My read of the link I provided is that when the eventmachine gem is installed it configures itself based on what headers it can find on the system. If libssl-dev is present, it will configure encryption. If the puppet configuration doesn't specify an order, packages may be installed in any order.

Re: board agenda websocket not working

2020-09-24 Thread sebb
The login message said to reboot, so I have done this. However it does not appear to have helped. On Thu, 24 Sep 2020 at 14:28, sebb wrote: > > On Thu, 24 Sep 2020 at 14:14, Sam Ruby wrote: > > > > If you go into the board agenda tool and open the console, you will > > see messages that it can'

Re: board agenda websocket not working

2020-09-24 Thread sebb
On Thu, 24 Sep 2020 at 14:14, Sam Ruby wrote: > > If you go into the board agenda tool and open the console, you will > see messages that it can't connect to the websocket. Things appear > to mostly be set up correctly: > > $ grep websocket /etc/apache2/sites-available/10-whimsy-vm-443.conf > Pr