-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generated systemd service contains line that is too long #3403
Comments
cstrahan on the #nixos IRC channel showed me a workaround, create an environment with all the required packages and use that instead:
|
edolstra
added a commit
that referenced
this issue
Jul 30, 2014
Issue #3403. For the case of $PATH being too long, we could call buildEnv automatically.
10 tasks
olorin
added a commit
to olorin/nixpkgs
that referenced
this issue
Feb 10, 2019
The length check was introduced[0] to match systemd's max line length. This limit has been increased[1][2] to 1MiB, starting with systemd v235. [0] NixOS#3403 [1] systemd/systemd@e6dde45 (relevant systemd commit) [2] systemd/systemd#3302 (more context on systemd change)
adrianpk
added a commit
to adrianpk/nixpkgs
that referenced
this issue
May 31, 2024
Issue NixOS#3403. For the case of $PATH being too long, we could call buildEnv automatically. (cherry picked from commit 9956b97)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm setting up a Jenkins instance on a nixos server, which works with default settings. However, if I add more package dependencies to the configuration, the generated systemd service file contains a line that is too long, and systemd cannot parse it any more.
The configuration is:
This is the generated service file:
If I try to start this service, I get the error:
The logs contain:
The line with the PATH environment is 2080 characters. According to someone from the #systemd IRC channel, the systemd parser only handles lines up to LINE_MAX which POSIX sets to 2048 by default. It is possible to break up the line by using the regular '', but since the service file is generated and cannot be changed, the generator needs to break up lines.
On a side note, the path also contains each entry twice, taking up even more space.
The text was updated successfully, but these errors were encountered: