Skip to content

Hawser service starts in a crashed state when host is rebooted #48

@xenogenick

Description

@xenogenick

I am running Hawser in a fully up-to-date Alpine v3.32.3 LXC container on Proxmox that hosts a simple docker application, and it works great, does exactly what I want it to for using Dockhand across my environment.

The problem is that when I reboot the Alpine host (I have this on any I've attempted, and have given this container up to 1GB of memory and 2 cores to no avail), the Hawser service starts in a 'crashed' state and I have to manually restart it each time, which is not ideal. The service is enabled and in the 'default' runlevel.

My Hawser config file just contains DOCKER_SOCKET=/var/run/docker.sock and PORT=2376 settings (no token for now), and the service file is the default as per the installation script:

#!/sbin/openrc-run
name="hawser"
description="Hawser - Remote Docker Agent for Dockhand"
command="/usr/local/bin/hawser-wrapper"
command_background="yes"
pidfile="/run/${RC_SVCNAME}.pid"
start_stop_daemon_args="--stdout /var/log/hawser.log --stderr /var/log/hawser.log"
depend() {
    need net docker
    after docker
}

The log file says Error loading config: Docker socket not found at /var/run/docker.sock (sometimes more than once) even though the service file is depending on docker and is supposed to be starting after it.

In my /etc/rc.conf I have set rc_depend_strict=YES but it makes no difference.

I am fully expecting for this to be something stupid that I've done somewhere, but I've been trying to fix it for a while with no success so here I am!

Metadata

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