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 · 4 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

Yes, 2024-07-14 works fine again - after docker-compose down --remove-orphans and docker-compose up -d.

Hey @chris

This error reappears with the current 2024-07-02 image which I guess contains the 12.3 update with the important migrations bug fix? 2024-06-30 works fine.

Maybe the same fix will work? :)

Yes, 2024-07-14 works fine again - after docker-compose down --remove-orphans and docker-compose up -d. Hey @chris This error reappears with the current 2024-07-02 image which I guess contains the 12.3 update with the important migrations bug fix? 2024-06-30 works fine. Maybe the same fix will work? :)
Owner

👍 thanks for the notice and the update!

:+1: thanks for the notice and the update!
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
3 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.