PrestaShop / PrestaShop/docker

PS_INSTALL_AUTO: 1 not working - PHP Fatal error: Uncaught Symfony\Component\Filesystem\Exception\IOException: Failed to create "/var/www/html/var/cache/prod/": mkdir(): Permission denied in /var/www/html/vendor/symfony/symfony/src/Symfony/Component/Filesystem/Filesystem.php:105

Open
#385 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Dockerfile
Stars
281
Forks
190
PR merge metrics
No merged PRs in 30d

Description

We are observing the issue using the following minimum docker-compose.yml based on https://devdocs.prestashop-project.org/8/basics/installation/environments/docker/#automatically-install-prestashop-with-test-data

The issue is observed with docker images versions 8.1.3-apache, 8.1.5-apache but seems to be resolved in latest.

Removing the volumes declaration from the presta ccontainer does not solve the issue.

docker-compose.yml:

version: '3'
services:
  mysql:
    container_name: some-mysql
    image: mysql:5.7.41
    environment:
      MYSQL_ROOT_PASSWORD: admin
      MYSQL_DATABASE: prestashop
    networks:
      - prestashop_network
    volumes:
      - dbdata:/var/lib/mysql
  prestashop:
    container_name: prestashop
    image: prestashop/prestashop:8.1.3-apache
    depends_on:
      - mysql
    ports:
      - 8080:80
    environment:
      DB_SERVER: some-mysql
      DB_NAME: prestashop
      DB_USER: root
      DB_PASSWD: admin
      PS_INSTALL_AUTO: '1'
      ADMIN_MAIL: dev@releva.ai
      ADMIN_PASSWD: prestarocks1
      PS_DOMAIN: localhost:8085
    networks:
      - prestashop_network
    volumes:
      - psdata:/var/www/html
networks:
  prestashop_network:
volumes:
  psdata:
  dbdata:

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with the provided docker-compose.yml using the 8.1.3-apache and 8.1.5-apache images, then compare with latest. Start with the mounted /var/www/html volume and the Symfony Filesystem.php:105 error; done means PS_INSTALL_AUTO completes and /var/www/html/var/cache/prod/ is created without a permission error.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, php
Domain
infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.