Docker 503 Error

Hello,

I’m trying to get up and running using docker. I can get through the installation, but when I go to localhost:8000, I get a 503 error. Any ideas?

Thanks

It only returns the error when I try to access php files. For example, localhost:8000/favicon.ico works. If I create an html file at localhost:8000/test.html that also works. But any php files I create return the 503 error.

This shows up in the logs whenever I try to access a PHP file:

[Tue May 28 13:24:02.426930 2019] [proxy:error] [pid 10330:tid 139800397223680] (111)Connection refused: AH00957: FCGI: attempt to connect to 127.0.0.1:9000 (127.0.0.1) failed
[Tue May 28 13:24:02.426967 2019] [proxy_fcgi:error] [pid 10330:tid 139800397223680] [client 172.18.0.1:52424] AH01079: failed to make connection to backend: 127.0.0.1
 

I also get this error every second:

[28-May-2019 13:48:30] ERROR: [pool www] please specify user and group other than root
[28-May-2019 13:48:30] ERROR: [pool www] please specify user and group other than root
[28-May-2019 13:48:30] ERROR: FPM initialization failed
[28-May-2019 13:48:30] ERROR: FPM initialization failed
 

Sounds like a typical permission / execute error. What OS are you using? Are you following the exact instructions here -> https://docs.shopware.com/en/shopware-platform-dev-en/getting-started/installation-guide ?

 

 

1 „Gefällt mir“

I am having the same issue, i have to say i am using Docker for the first time.

In my case, i executed all commands with my non-root sudo user. But i am getting a 503 server error. I am running it on a remote Ubuntu 16 server.

I installed docker on my machine like described here: https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-16-04

Just create a user and don’t use root!. 

1 „Gefällt mir“

@Shyim schrieb:

Just create a user and don’t use root!. 

If i just create a user without adding this user to the sudoers group i am getting the following error: 

Building app_mysql
Couldn’t connect to Docker daemon at http+docker://localunixsocket - is it running?

So i have to use sudo ./psh.phar docker:start. Or did i a mistake within the default Docker installation?

 

Okay, i solved it: I killed all containers ( docker kill $(docker ps -q) ), then I had to add the user to the docker group:  sudo usermod -aG docker user

And then  sudo service docker start && docker-compose up -d

After this i re-run all docker commands like  ./psh.phar docker:start … 

Now it’s working.

1 „Gefällt mir“

@Misengo schrieb:

Sounds like a typical permission / execute error. What OS are you using? Are you following the exact instructions here -> https://docs.shopware.com/en/shopware-platform-dev-en/getting-started/installation-guide ?

Yes, I followed those instructions but at the time they didn’t make it clear that I was supposed to run the install command inside the container…probably obvious to someone with experience using docker but this was my first time using it. I see now that the page has been updated to make this clear :slight_smile:

I also added my user to the docker group so I didn’t have to use sudo. Everything seems to be working flawlessly now!