Skip to content

Problems running web UI on startup #276

Open
@NathanBaulch

Description

I've been trying unsuccessfully to get qless-web to run automatically on startup in Ubuntu 16.04 using either systemd or supervisord. I've tried all kinds of config tweaks but they all ultimately end with the service disappearing from the systemctl list or switching to FATAL status in supervisorctl. It works just fine if I run it manually from CLI.

Here's my very simple systemd file:

[Unit]
Description=Qless Web UI
After=redis-server.service

[Service]
User=ubuntu
ExecStart=/usr/bin/ruby /usr/local/bin/qless-web

[Install]
WantedBy=multi-user.target

Doing a daemon-reload && restart yields the following uninteresting syslogs:

systemd[1]: Reloading.
systemd[1]: Started ACPI event daemon.
systemd[1]: Reloading.
systemd[1]: Started ACPI event daemon.
systemd[1]: Started Qless Web UI.
ruby[1588]: [2018-03-19 15:18:12 +1100] Starting 'qless-web'...
ruby[1588]: [2018-03-19 15:18:12 +1100] trying port 5678...
ruby[1588]: Couldn't get a file descriptor referring to the console

I see the same file descriptor message when running manually, so I doubt that's it.

I found another log file ~/.vegas/qless_web/qless_web.log which contains:

Running with Rack handler: Rack::Handler::Thin
Thin web server (v1.7.2 codename Bachmanity)
Maximum connections set to 1024
Listening on 0.0.0.0:5678, CTRL+C to stop
log writing failed. can't be called from trap context

Is something preventing the real underlying issue to be logged?

The only thing that might be different on this machine is it has Ruby 2.3.0 (via apt-get) installed. Could that be it?

How can I troubleshoot this further? Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions