This repository was archived by the owner on Nov 2, 2024. It is now read-only.
systemd unit errors in nginx proxy manager #2986
Unanswered
githubsean
asked this question in
General
Replies: 1 comment 1 reply
-
Why are you connecting to the container this way? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
TLDR: It appears some systemd units are being started (and they fail) when they should not be started within a Linux container.
I connected to the NPM LXC
pct exec 101 /bin/bash
I then ran
systemctl status
, and notice there were some errors. The issue was with two units:Out of interest I created an Ubuntu 22.04 LXC using the built in template and noticed there were no startup issues - i.e.
systemctl status
showed "running". I then pulled up the status for these units in the Ubuntu LXC and it showed they were not started because a condition was not met.I then had a look at the systemd unit files for these two units in /lib/systemd/system and compared the unit files between the ubuntu LXC and the npm LXC. Each of these unit files had an additional line:
ConditionVirtualization=!container
ConditionVirtualization=!private-users
I added these conditions to these modules, this meant they didn't start, and therefore there is a clear run status.
I don't know which base of (Debian?) was used for NPM - maybe it does not have these extra virtualisation aware lines?
Rather than editing/adding these lines in the base OS config, it would also be possible to add overriding snippets to a directory named the same as the unit file to /etc/systemd/system.
Other than the errors that show in the running status, there I don't think there is any actual issue with these units failing to start, but I like to have a clean system so when/if something does throw an error, it is something to investigate.
Beta Was this translation helpful? Give feedback.
All reactions