You are not logged in.

#1 2016-09-13 16:28:50

PBS
Member
Registered: 2015-06-28
Posts: 52

[SOLVED] status=226/NAMESPACE: broken bluetooth and timesyncd

Recently I've started having bluetoothd, systemd-timesyncd and systemd-timedated failing with the same error,

Main process exited, code=exited, status=226/NAMESPACE

A search of the forums for "systemd 226/NAMESPACE" only turns up a thread called What does "status=226/NAMESPACE" mean?, where it turned out that /var/tmp was symlinked to /tmp. Needless to say, mine isn't, otherwise I wouldn't be asking here. Also systemd doesn't seem to document the meaning of its 'status' codes, so there basically isn't any information to go on. What's causing this error and how to fix it? [Bonus points for documentation of systemd's error codes]

Last edited by PBS (2016-10-01 16:38:12)

Offline

#2 2016-09-17 20:03:50

PBS
Member
Registered: 2015-06-28
Posts: 52

Re: [SOLVED] status=226/NAMESPACE: broken bluetooth and timesyncd

I hadn't noticed this previously:

systemd[476]: systemd-timesyncd.service: Failed at step NAMESPACE spawning /usr/lib/systemd/systemd-timesyncd: Too many levels of symbolic links
systemd[1]: systemd-timesyncd.service: Main process exited, code=exited, status=226/NAMESPACE

The "Failed at step NAMESPACE spawning" part is quite common, but the message printed after it is usually one of

  • Operation not permitted

  • No such file or directory

  • Permission denied

Whereas the message I've got is "Too many levels of symbolic links". What has too many symbolic links?

Offline

#3 2016-09-17 20:26:30

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [SOLVED] status=226/NAMESPACE: broken bluetooth and timesyncd

Do you have any other directories symlinked (e.g homedir)?


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#4 2016-09-18 12:44:20

PBS
Member
Registered: 2015-06-28
Posts: 52

Re: [SOLVED] status=226/NAMESPACE: broken bluetooth and timesyncd

/root is symlinked to /home/root, but no other home directories are. That shouldn't make a difference?

Offline

#5 2016-09-18 13:04:19

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [SOLVED] status=226/NAMESPACE: broken bluetooth and timesyncd

systemd-timesyncd.service has "ProtectHome=yes" which means it protects /root too.  I'm not sure if it handles symlinks though.


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#6 2016-09-18 14:13:59

PBS
Member
Registered: 2015-06-28
Posts: 52

Re: [SOLVED] status=226/NAMESPACE: broken bluetooth and timesyncd

I changed /root back to being a normal directory¹ and now everything works. Cheers!

Not sure why it worked until now, either systemd or some unit files must have changed.


_______________
¹ If you're wondering why /root was a link in the first place, it was to stop root's bash history leaking out of the encrypted /home partition.

Offline

Board footer

Powered by FluxBB