Skip to content

Unit rest-server.socket not found on Ubuntu Server 22.04 vs 24.04 #350

@kalleyne

Description

@kalleyne

Output of rest-server --version

rest-server version rest-server 0.14.0 compiled with go1.24.3 on linux/amd64

Problem description / Steps to reproduce

I'm using a very basic rest-server.service to enable rest-server via systemd.
The file located at /etc/systemd/system/rest-server.service is identical on both Ubuntu 22.04 and 24.04.
I used the following commands:

sudo systemctl enable rest-server
sudo systemctl start rest-server

On both Ubuntu 22.04 and 24.04 I see the following error message:

Failed to start rest-server.service: Unit rest-server.socket not found.

I reboot both systems. When the systems are up I run the following command on both systems:

sudo systemctl status rest-server

Rest-server on Ubuntu 22.04 works and responds with:

● rest-server.service - Rest Server
     Loaded: loaded (/etc/systemd/system/rest-server.service; enabled; vendor preset: enabled)
     Active: active (running) since Fri 2025-06-13 19:55:40 CDT; 24min ago
   Main PID: 959 (rest-server)
      Tasks: 7 (limit: 4558)
     Memory: 9.6M
        CPU: 22ms
     CGroup: /system.slice/rest-server.service
             └─959 /home/user1/IMG/restserver/rest-server --path /tank0/backup --no-auth

Jun 13 19:55:40 ub22svr-restserver-t1 systemd[1]: Started Rest Server.
Jun 13 19:55:40 ub22svr-restserver-t1 rest-server[959]: Data directory: /tank0/backup
Jun 13 19:55:40 ub22svr-restserver-t1 rest-server[959]: Authentication disabled
Jun 13 19:55:40 ub22svr-restserver-t1 rest-server[959]: Append only mode disabled
Jun 13 19:55:40 ub22svr-restserver-t1 rest-server[959]: Private repositories disabled
Jun 13 19:55:40 ub22svr-restserver-t1 rest-server[959]: Group accessible repos disabled
Jun 13 19:55:40 ub22svr-restserver-t1 rest-server[959]: start server on [::]:8000

But rest-server fails on Ubuntu 24.04 with:

○ rest-server.service - Rest Server
     Loaded: loaded (/etc/systemd/system/rest-server.service; enabled; preset: enabled)
     Active: inactive (dead)

Is there something different on how systemd is implemented or how rest-server.service functions on Ubuntu 22.04 vs 24.04? I can provide a copy of the rest-server.service file if required. Thanks.

Expected behavior

Actual behavior

Do you have any idea what may have caused this?

I'm not sure what is causing this.

Did rest-server help you today? Did it make you happy in any way?

I use rest-server all the time. Been in use for a number of years.

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