Skip to content

Cannot open config file - LMS only able to run in sudo #769

@DawnVespero

Description

@DawnVespero

First off, I'm running LMS using the AUR package on Manjaro Linux. After installation, I enabled and started LMS through systemctl. I immediately noticed that the server wasn't running, so I ran systemctl status lms:

× lms.service - Lightweight Music Server
     Loaded: loaded (/usr/lib/systemd/system/lms.service; enabled; preset: disabled)
     Active: failed (Result: exit-code) since Tue 2025-10-28 09:33:27 CET; 6min ago
   Duration: 6ms
 Invocation: 7403ac31cd4c46608cc4b5868447ba8e
    Process: 1218 ExecStart=/usr/bin/lms (code=exited, status=200/CHDIR)
   Main PID: 1218 (code=exited, status=200/CHDIR)

Okt 28 09:33:27 vesperoHomeBrick systemd[1]: lms.service: Scheduled restart job, restart counter is at 5.
Okt 28 09:33:27 vesperoHomeBrick systemd[1]: lms.service: Start request repeated too quickly.
Okt 28 09:33:27 vesperoHomeBrick systemd[1]: lms.service: Failed with result 'exit-code'.
Okt 28 09:33:27 vesperoHomeBrick systemd[1]: Failed to start Lightweight Music Server.

I then tried to manually start lms through the binary, which gave me the following error:

❯ /usr/bin/lms
Caught std::exception: Cannot open config file '/etc/lms.conf'

Since then, I've tried everything I could to fix this issue: The config file does exist, so I ran chown and chmod on it to give full access to the lms user (which does also appear to have been set up correctly), but nothing worked. I can still run LMS just fine by executing the binary as sudo, so I'm pretty sure this is a permissions issue, but I can't for the life of me get it to trigger through systemctl or as a regular user.

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