Issue with httpd Webserver Service - Centos-7.5 Sandbox: "Running in chroot, ignoring request"

1,194 views
Skip to first unread message

san

unread,
Aug 21, 2018, 3:22:33 PM8/21/18
to singularity
Hello

I have installed "httpd" apache Webserver from the source, inside a Centos-7.5 sandbox container (singularity v2.5-0). When trying to start the service , from inside the container(shell) I get the below error:

../apache-2.4.34/conf> systemctl start httpd.service
Running in chroot, ignoring request

when I run the same command from outside the container(exec), without "sudo" privileges, I get the below error:

"Failed to get D-Bus Connection: Operation not permitted"

Can someone help?

-San

David Trudgian

unread,
Aug 24, 2018, 12:16:55 PM8/24/18
to singularity
Hi San,

The first command you tried 'systemctl start httpd.service' is trying to run httpd under the control of systemd, which is the init system used to manage services on a full Linux install. In a container you (almost always) don't have this available, and will need to run httpd directly, calling the `httpd` binary itself or using some other kind of script or supervisor application.

When you tried to run `systemctl start httpd.service` outside of the container the `systemctl` command was trying to talk to systemd on your host. You didn't have permission to do this - only root can talk to systemd.

DT
Reply all
Reply to author
Forward
0 new messages