PrestaShop / docker

🐳
https://hub.docker.com/r/prestashop/prestashop/
MIT License
259 stars 177 forks source link

Timeout reaching the Homepage after Prestashop installation #293

Open SimonasB88 opened 2 years ago

SimonasB88 commented 2 years ago

Using Mac with M1 chip, and Docker Desktop.

Running the commands to create PS1783 for example: docker network create prestashop-net docker run -ti --name some-mysql --network prestashop-net -e MYSQL_ROOT_PASSWORD=admin -e MYSQL_DATABASE=prestashop -p 3307:3306 -d mysql:5.7 docker run -ti -v $PWD:/var/www/html/modules/themodule --name some-prestashop --network prestashop-net -e DB_SERVER=some-mysql -e PS_INSTALL_AUTO=1 -e DB_NAME=prestashop -e PS_FOLDER_ADMIN=admin1 -e PS_DEV_MODE=1 -e PS_ENABLE_SSL=1 -p 8080:80 -d prestashop/prestashop:1.7.8.3-apache

Then the script of the image tells:

* Checking if some-mysql is available...

* DB server some-mysql is available, let's continue !

* Setting up install lock file...

* Reapplying PrestaShop files for enabled volumes ...

* No pre-install script found, let's continue...

* Renaming admin folder as admin1 ...

* Installing PrestaShop, this may take a while ...

* Launching the installer script...
-- Installation successful! --

* Removing install folder...

* No post-install script found, let's continue...

* Setup completed, removing lock file...

* Almost ! Starting web server now

* No init script found, let's continue...
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.19.0.3. Set the 'ServerName' directive globally to suppress this message
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.19.0.3. Set the 'ServerName' directive globally to suppress this message
[Fri Feb 11 10:07:38.005956 2022] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.51 (Debian) configured -- resuming normal operations
[Fri Feb 11 10:07:38.007513 2022] [core:notice] [pid 1] AH00094: Command line: '/usr/sbin/apache2 -D FOREGROUND'

And when I want to hit the localhost:8080 the last log is: 172.19.0.1 - - [11/Feb/2022:10:07:46 +0000] "GET / HTTP/1.1" 302 199 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:97.0) Gecko/20100101 Firefox/97.0" and connection timeouts: image

I have increased the PHP response limit and memory limit in the container php.ini, but no luck...

Maybe anyone experienced that...

caupetit commented 2 years ago

Same here on wsl2 with the latest docker image 1.7.8.5, with install auto and no dev mode

tomablan commented 1 year ago

Hi,

I got this problem too with prestashop/prestashop:8.0.4-apache using Docker Desktop on Mac Silicon M1, with PS_INSTALL_AUTO=1 and no dev mode.