Skip to content

Systemd 218 issues

So, i updated to pacman 4.2 and to systemd 218 the other night, and suddenly my build server fell over. After a lot of digging, I found what appears to be the cause: systemd 218 (coming from it working under 217) Since upgrading, whenever arch-nspawn or even systemd-nspawn directly is called from a build script in jenkins, it has a return code of 1. I can't see why and it has no other output at all. Running the same commands from the build log as the jenkins user works exactly as intended and as it has for the past many systemd versions.

After eventually figuring out the problem was actually systemd-nspawn and not some logical-seeming change between versions, but a return code of 1 with no errors whatsoever, I've downgraded systemd to v217 and now it all works again swimmingly.

The script is here if anyone is interested, but it's pretty straightforward; just puts some locking around running multiple build agents on a single machine concurrently:https://github.com/justin8/puppet/blob/ … kg-jenkins

Does anyone have any ideas on what might cause this? or a way to show more debug info from systemd-nspawn? I obviously can't stick to systemd 217 forever, but since I can't find any other similar reports I doubt it will be fixed in 219.

19 points14 comments
Open on Reddit
About this post
Posted
Archived
Score
19 · 100% up
Kind
Text
ID
2qsplk

Author

4
posts
861
comments
1
media
View profile

14 comments

archlinux build server, I too like to live dangerously.

5 points

It's actually a pretty decent idea when doing new development. With arch, it's easy to keep all your dependencies on the bleeding edge, and most of the flaws of running arch are not that big of a deal for build servers. (It falls over? No data loss.)

Once in maintenance mode, Debian or CentOS are probably better ideas.

2 points

You generally don't want dependencies on the bleeding edge, in case of new unknown bugs or changes in behavior (e.g. deprecated features). The proper way to do it si to do all development, builds, testing, etc. in standardized virtual machines. (Vagrant + $AUTOMATION_TOOL is popular here).

1 points

Yep. I use arch for all of my personal stuff for that reason.

1 points

pacman-db-upgrade issues maybe? arch-nspawn calls pacman and if you haven't run pacman-db-upgrade you'll get errors.

1 points

That was the reason I did the upgrade in the first place; my build scripts do a pacman -Syu in the nspawn instance first, but never did pacman-db-upgrade. Updating to use the latest pacman on the host system and in the chroots fixed that. And I then later found the cause of this new issue to be systemd 218.

The errors from not running the pacman-db-upgrade were totally silent too. Using the debug mode in bash and then running the direct systemd nspawn command managed to show me the true error for that pacman error though.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.