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.
About this post
- Posted
- Archived
- Score
- 19 · 100% up
- Kind
- Text
- ID
- 2qsplk
14 comments
I'd say report this bug to the systemd devs, its likely a simple fix for them and they will know all the tricks for getting debug info and what not.
Ya, I'd suggest this would get 10x more help on a systemd mailing list than an archlinux subreddit.
freedesktop/systemd bugzilla
systemd-devel ML
Cheers. I'll take a look in the morning.
archlinux build server, I too like to live dangerously.
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.
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).
Yep. I use arch for all of my personal stuff for that reason.
pacman-db-upgrade issues maybe? arch-nspawn calls pacman and if you haven't run pacman-db-upgrade you'll get errors.
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.
It's not just me then! I reported this bug to the systemd bug tracker last week, but have not gotten a response so far. I even tracked down which commit introduced the issue.
https://bugs.freedesktop.org/show_bug.cgi?id=87732
Ohh! I'm also glad that it's not just me. I'll make an account and comment on that bug too. Thanks!