Skip to content

Service can't start along with the machine's reboot #266

@victor10292

Description

@victor10292

Before You Submit

  • I've already checked this bug hasn't been raised in issues

Description

The service fails to start when my server restarts. The error message in log is

Sep 28 00:08:35 armbian ezbookkeeping[1621]: 2025-09-28 00:08:35 [WARNING] [default_request_id_generator.getServerUniqId] failed to get local ipv4 address, because failed to get local address
Sep 28 00:08:35 armbian ezbookkeeping[1621]: 2025-09-28 00:08:35 [ERROR] [webserver.startWebServer] initializes requestid generator failed, because failed to get local address
Sep 28 00:08:35 armbian ezbookkeeping[1621]: 2025/09/28 00:08:35 Failed to run ezBookkeeping with [/opt/ezbookkeeping/ezbookkeeping server run]: failed to get local address

The system unit file looks like:

[Unit]
Description=ezBookkeeping, a lightweight, self-hosted personal finance app with a sleek, user-friendly interface and powerful bookkeeping features.
After=network.target

[Service]
Type=simple
User=victor
Group=victor
WorkingDirectory=/opt/ezbookkeeping/
ExecStart=/opt/ezbookkeeping/ezbookkeeping server run 
Restart=on-failure

[Install]
WantedBy=multi-user.target

Steps to reproduce

See Description section

ezBookkeeping Version

ezBookkeeping version 1.0.1 (commit 2b90ced)

Server Operating System

No response

Database

No response

Can you reproduce this bug on the ezBookkeeping demo site?

No

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions