Open Majoraslayer opened 1 month ago
i hava this issue too
Are you using a volume or a bind mount for the storage directory (or in other words, did you alter the command) ?
Are you using a volume or a bind mount for the storage directory (or in other words, did you alter the command) ?
I'm using volume mounting, but I did alter the command to replace $PWD with the absolute path to the mount point.
That's rather strange.
Can you check if the directory storage/framework/cache/data
inside the container exists ?
Could be a permission issue, but they usually don't appear using named volumes.
That's rather strange.
Can you check if the directory
storage/framework/cache/data
inside the container exists ?Could be a permission issue, but they usually don't appear using named volumes.
That directory indeed does not exist. The storage directory only contains database.sqlite and a logs directory.
Seems the container can't copy the data into the volume, yet somehow manage to copy some data.
You can try to stop the container and delete the volume with docker volume rm benotes_storage
and see if it works this time.
This fixed the problem for me. There was nothing in the /storage
directory other than the logs:
volumes:
- .env:/var/www/.env
- ./data/storage/app/public/thumbnails:/var/www/storage/app/public/thumbnails
- ./data/storage/backup:/var/www/storage/backup
- ./data/storage/logs:/var/www/storage/logs
# or instead one named volume to rule them all:
#- ./benotes_storage:/var/www/storage
# this is optional (either way):
#- ./data/nginx/logs/:/var/lib/nginx/logs/
I'm following the guide here for a Docker install --> https://benotes.org/docs/installation/docker
Note, I'm running on Debian Bullseye. When I reach the step to run "php artisan install --only-user" inside of the container, I get the following output: