3liz / lizmap-docker-compose

Run Lizmap stack with docker-compose
31 stars 42 forks source link

Error: ``Could not open input file: /scripts/script.php`` #13

Closed pcav closed 3 years ago

pcav commented 3 years ago

Upon firtst start:

git clone https://github.com/3liz/lizmap-docker-compose.git
make start

I get an error:

lizmap_1  | + su -c 'php /scripts/script.php jcommunity~user:create -v --no-error-if-exists --admin --reset   admin'
lizmap_1  | Could not open input file: /scripts/script.php
dmarteau commented 3 years ago

This was a regression in lizmap 3.4.1, the problem is described here: https://github.com/3liz/lizmap-docker-compose/issues/9

pcav commented 3 years ago

Thanks. However I'm puzzled: the PR have been merged, I checkoout master, so I should already have the fix. What am I missing?

dmarteau commented 3 years ago

You may have to pull-update the docker images.

pcav commented 3 years ago

git pull says it's already up to date. should I checkout a different origin? Thanks.

dmarteau commented 3 years ago

git pull says it's already up to date. should I checkout a different origin? Thanks.

It is not about git pull but docker pull 3liz/lizmap-web-client:<version>

pcav commented 3 years ago

docker pull 3liz/lizmap-web-client:3.4.0 and .1 give the same error as above.

dmarteau commented 3 years ago

@nboisteault @laurentj could you confirm that the fix for #9 has been released with the 3liz docker images ?

nboisteault commented 3 years ago

@dmarteau @pcav Fix will land with coming LWC 3.4.2. To use LWC master as a docker image you have to build it : https://github.com/3liz/lizmap-web-client/blob/master/docker/CONTRIBUTING.md

You can also start LWC 3.4.0 with make start LIZMAP_VERSION_TAG=3.4.0 if you don't need master version.

pcav commented 3 years ago

I confirm, it works with the last command.