Skip to content
This repository was archived by the owner on Jul 3, 2020. It is now read-only.
This repository was archived by the owner on Jul 3, 2020. It is now read-only.

Cannot write cache #45

@RobTranquillo

Description

@RobTranquillo

After make a fresh install* of this repo, start and init the server/Shopware I don't get a response from the system:

curl -I http://localhost:8083/backend
HTTP/1.1 500 Internal Server Error
Date: Fri, 16 Aug 2019 08:46:38 GMT
Server: Apache/2.4.25 (Debian)
X-Frame-Options: SAMEORIGIN
Connection: close
Content-Type: text/html; charset=UTF-8

checking the logs $ sudo docker logs -f docker-rob-shopware_app_server_1 brings up:

[16-Aug-2019 09:01:26] WARNING: [pool www] child 169 said into stderr: "NOTICE: PHP message: PHP Fatal error: Uncaught RuntimeException: Unable to create the store directory (/var/www/shopware/shopware/var/cache/production_201908091314/html). in /var/www/shopware/shopware/vendor/symfony/http-kernel/HttpCache/Store.php:40"

Giving it 777 make it work:

shopware/var/cache $ sudo chmod -R 777 production_201908091314

I think the install scripts should be modified to do this or something similar.

Addendum:
I'am sorry, i've forgot something. The command above is not enough, the files folder have to be set also:

sudo chmod 777 -R shopware/files

(*) standard install do not work for me, because PHP Version was outdated -> #44

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions