Skip to content

Don't use the state directory as the home directory. (fixes #464) - #976

Merged
bal-e merged 6 commits into
mainfrom
464-failed-to-set-up-special-execution-directory-in-varlib-no-such-file-or-directory
Aug 27, 2026
Merged

Don't use the state directory as the home directory. (fixes #464)#976
bal-e merged 6 commits into
mainfrom
464-failed-to-set-up-special-execution-directory-in-varlib-no-such-file-or-directory

Conversation

@ximon18

@ximon18 ximon18 commented Aug 26, 2026

Copy link
Copy Markdown
Member

This prevents the error "Failed to set up special execution directory in /var/lib: No such file or directory", reported in #464.

Tested by manually packaging in an Ubuntu Noble VM and installing the package with apt and seeing that the systemd service is able to start without any problems and interact with the cascade CLI command.

The packaging workflow doesn't yet succeed, I'll mark this PR as ready to review when it does.

…s. (fixes #464)

This prevents the error "Failed to set up special execution directory in
/var/lib: No such file or directory".
@ximon18

ximon18 commented Aug 26, 2026

Copy link
Copy Markdown
Member Author

Lintian complained but it seems its complaint should be disregarded (since Debian Bookworm at least, prior to that we maybe need --home /nonexistent).

The first Ubuntu version whose man page for adduser mentions /nonexistent is 24.04 (noble), the 22.04 (jammy) man page doesn't mention it.

@ximon18
ximon18 marked this pull request as draft August 26, 2026 11:13
It just sees that, irrespective of script logic, there is an "illegal"
invocation of adduser without --home. So instead always specify the home
directory explicitly using the modern default value.
@ximon18 ximon18 changed the title Don't request a home directory we don't need and which causes problems. (fixes #464) Don't use the state directory as the home directory. (fixes #464) Aug 26, 2026
@ximon18
ximon18 marked this pull request as ready for review August 26, 2026 11:53
@ximon18

ximon18 commented Aug 26, 2026

Copy link
Copy Markdown
Member Author

A passing packaging workflow run can be seen here: https://github.com/NLnetLabs/cascade/actions/runs/32963602004

@bal-e
bal-e merged commit 8761a02 into main Aug 27, 2026
23 checks passed
@bal-e
bal-e deleted the 464-failed-to-set-up-special-execution-directory-in-varlib-no-such-file-or-directory branch August 27, 2026 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failed to set up special execution directory in /var/lib: No such file or directory

2 participants