garethr-docker icon indicating copy to clipboard operation
garethr-docker copied to clipboard

systemd files exceeding MAX_LINE

Open Thorndike opened this issue 8 years ago • 2 comments
trafficstars

─┬ garethr-docker (v5.3.0) Puppet 4.8.1

Due to the concatenation of the environment variables the max line length supported by systemd is exceeded when multiple environment variables are used. This causes strange errors in executing the puppet file that give no hint to the root cause. To prevent that every environment variable should be in a single line.

Thorndike avatar Apr 03 '17 09:04 Thorndike

systemd bug upstream https://github.com/systemd/systemd/issues/3302 as well as discussion on coreos fleet on hitting the issue https://github.com/coreos/fleet/issues/992.

I believe the problem is not limited to env variables, but because all docker_run_flags are concatenated.

If this is impacting you with env vars, the workaround is to place them into an file and use envfile => <filename> as a way of avoiding building the really long line.

Still all docker_run_flags should probably be parsed to be on separate lines.

electrofelix avatar Jun 09 '17 09:06 electrofelix

I suspect this can be closed.

electrofelix avatar May 30 '21 13:05 electrofelix