PHP Warning: require(/var/www/vendor/autoload.php): Failed to open stream: #16

Closed
opened 2024-04-12 09:06:02 +00:00 by daedric · 2 comments

After a docker compose update, i'm getting the following error:

pixelfed-app-1     | Database is up
pixelfed-app-1     | + [[ ! -e storage/.docker.init ]]
pixelfed-app-1     | + gosu www-data php artisan migrate:status
pixelfed-app-1     | + grep No
pixelfed-app-1     | PHP Warning:  require(/var/www/vendor/autoload.php): Failed to open stream: No such file or directory in /var/www/artisan on line 18
pixelfed-app-1     | PHP Fatal error:  Uncaught Error: Failed opening required '/var/www/vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /var/www/artisan:18
pixelfed-app-1     | Stack trace:
pixelfed-app-1     | #0 {main}
pixelfed-app-1     |   thrown in /var/www/artisan on line 18
pixelfed-app-1     | + migrations=no
pixelfed-app-1     | + '[' no = yes ']'
pixelfed-app-1     | + gosu www-data php artisan horizon
pixelfed-app-1     | PHP Warning:  require(/var/www/vendor/autoload.php): Failed to open stream: No such file or directory in /var/www/artisan on line 18
pixelfed-app-1     | PHP Fatal error:  Uncaught Error: Failed opening required '/var/www/vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /var/www/artisan:18
pixelfed-app-1     | Stack trace:
pixelfed-app-1     | #0 {main}
pixelfed-app-1     |   thrown in /var/www/artisan on line 18

Everything online say to run composer install but i really don't see how to do it with docker compose.

How can i fix this ?

After a docker compose update, i'm getting the following error: ``` pixelfed-app-1 | Database is up pixelfed-app-1 | + [[ ! -e storage/.docker.init ]] pixelfed-app-1 | + gosu www-data php artisan migrate:status pixelfed-app-1 | + grep No pixelfed-app-1 | PHP Warning: require(/var/www/vendor/autoload.php): Failed to open stream: No such file or directory in /var/www/artisan on line 18 pixelfed-app-1 | PHP Fatal error: Uncaught Error: Failed opening required '/var/www/vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /var/www/artisan:18 pixelfed-app-1 | Stack trace: pixelfed-app-1 | #0 {main} pixelfed-app-1 | thrown in /var/www/artisan on line 18 pixelfed-app-1 | + migrations=no pixelfed-app-1 | + '[' no = yes ']' pixelfed-app-1 | + gosu www-data php artisan horizon pixelfed-app-1 | PHP Warning: require(/var/www/vendor/autoload.php): Failed to open stream: No such file or directory in /var/www/artisan on line 18 pixelfed-app-1 | PHP Fatal error: Uncaught Error: Failed opening required '/var/www/vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /var/www/artisan:18 pixelfed-app-1 | Stack trace: pixelfed-app-1 | #0 {main} pixelfed-app-1 | thrown in /var/www/artisan on line 18 ``` Everything online say to run `composer install` but i really don't see how to do it with docker compose. How can i fix this ?
Owner

You can't, sorry. It's a bug in the image, I hope to get around to fix it later today!

You can't, sorry. It's a bug in the image, I hope to get around to fix it later today!
Owner

Hey, it's fixed in the newest image. Please pull and recreate your containers :)

Hey, it's fixed in the newest image. Please pull and recreate your containers :)
chris closed this issue 2024-04-13 20:25:14 +00:00
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: dockers/pixelfed#16
No description provided.