You are not logged in.
Pages: 1
Hey,
Has anybody had this issue with hass not starting with systemd?
I have hass set to not be a dynamic user and have created the respective hass user and group and the user being a member of the uucp group. When I run a sudo -u hass <cmd> the ExecStartPre= lines work without issue, but when starting the systemd unit for some reason I get this operation not permitted error. I have been searching google and haven't found any good reason it cannot do it, or any references barely at all for the operation not permitted thing. Maybe file not found or some permission issues but I don't see that happening here, the /var/lib/hass folder has the correct hass user/group, permissions and if the commands are ran manually as above with sudo it works just fine so I don't think it is that. This just happened after some recent update with no other changes. Anybody have any ideas?
Nov 11 15:55:06 d (python)[39540]: home-assistant.service: Failed at step EXEC spawning /usr/bin/python: Operation not permitted
Nov 11 15:55:06 d (python)[39540]: home-assistant.service: Failed to execute /usr/bin/python: Operation not permittedhass:x:969:969::/var/lib/hass:/usr/bin/nologin# /usr/lib/systemd/system/home-assistant.service
[Unit]
Description=Home assistant
After=network.target
[Service]
Restart=on-failure
User=hass
Group=hass
DynamicUser=true
LogsDirectory=hass
StateDirectory=hass
WorkingDirectory=/var/lib/hass
Environment=HOME=/var/lib/hass
ExecStartPre=/usr/bin/python -m venv --upgrade /var/lib/hass/.venv
ExecStartPre=/var/lib/hass/.venv/bin/python -m pip install wheel
ExecStartPre=/var/lib/hass/.venv/bin/python -m pip install /usr/share/home-assistant/homeassistant-2023.11.1-py3-none-any.whl
ExecStart=/var/lib/hass/.venv/bin/hass \
--config /var/lib/hass/ \
--log-file /var/log/hass/home-assistant.log \
--log-rotate-days 1
RestartForceExitStatus=100
AmbientCapabilities=
CapabilityBoundingSet=
LockPersonality=true
ProtectControlGroups=true
ProtectKernelModules=true
ProtectKernelTunables=true
[Install]
WantedBy=multi-user.target
# /etc/systemd/system/home-assistant.service.d/override.conf
[Unit]
Wants=network-online.target
After=network-online.target nss-lookup.target avahi-daemon.service
[Service]
SupplementaryGroups=uucp
DynamicUser=falseOffline
I just tried to install home assistant today and I seem to be running into these errors:
https://github.com/home-assistant/core/issues/95192
It looks like the package was flagged as out of date today.
https://archlinux.org/packages/extra/an … assistant/
Offline
Pages: 1