Skip to content
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

build not successful failed to create bus connection #12

Closed
ayescas opened this issue Dec 20, 2021 · 8 comments
Closed

build not successful failed to create bus connection #12

ayescas opened this issue Dec 20, 2021 · 8 comments
Labels
help wanted Extra attention is needed

Comments

@ayescas
Copy link

ayescas commented Dec 20, 2021

Hello,
trying to install and I'm getting the following error:

timezone from host: America/Los_Angeles

Failed to create bus connection: No such file or directory
error while setting timezone
build not successful
stopping & removing build container ...
fmsinstall
fmsinstall

@sk-gara
Copy link

sk-gara commented Dec 20, 2021

Hello,
is it possible the error message says it can't create the d-bus connection?
Which OS are you using?

@ayescas
Copy link
Author

ayescas commented Dec 20, 2021 via email

@sk-gara
Copy link

sk-gara commented Dec 20, 2021

Alright, that rules out problems based on Big Sur and up. And the FMS version? Most recent on Ubuntu?
It looks like timedatectl can not be executed correctly inside the container. For that, elevated permissions and the /run directory are necessary, which should be provided by the install script that starts the container. Are there any other errors prior to this one by any chance?

@sk-gara
Copy link

sk-gara commented Dec 20, 2021

Okay, i get the same error. Something has changed with Ubuntu I suspect. I'm gonna look into it.

@ayescas
Copy link
Author

ayescas commented Dec 21, 2021 via email

@sk-gara
Copy link

sk-gara commented Dec 21, 2021

It seems to me that running a Docker container with a systemd environment inside is not possible any more, at least in the way we did that. I suspect one of the recent versions of Docker (Desktop). The root problem seems to be that the cgroup volume that is mounted into the container and that is needed by systemd does not work the way it did anymore. Systemd can't be started and so all services started by systemd itself. I'm not sure at this point if this can be fixed.

See also:
systemd/systemd#19245
https://serverfault.com/questions/1053187/systemd-fails-to-run-in-a-docker-container-when-using-cgroupv2-cgroupns-priva/1054414#1054414
moby/moby#42275

@sk-gara sk-gara added the help wanted Extra attention is needed label Dec 21, 2021
@sk-gara
Copy link

sk-gara commented Jan 5, 2022

I tested with Windows WSL and Linux (Debian 10) and these still work. I guess because they can provide /sys/fs/cgroup from the host and are still on cgroup v1.

@sk-gara
Copy link

sk-gara commented Apr 27, 2022

closed with bfec8bb

@sk-gara sk-gara closed this as completed Apr 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants