iwatched
iwatched copied to clipboard
failed to open stream: No such file or directory
Im getting this error when i open the app, any idea what im doing wrong?
Warning: require(/application/public/../vendor/autoload.php): failed to open stream: No such file or directory in /application/public/index.php on line 24
Fatal error: require(): Failed opening required '/application/public/../vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /application/public/index.php on line 24
Thanks for you help
If you have Composer (php dependency manager) in your computer you can install dependencies with composer install
If you using docker you can enter iwatched-server
container (docker exec -it <container-id> /bin/bash
) and run composer install
thanks for helping me, I am using the docker container. After i ran the composer install in my docker container, i now get a 500 internal server error when i open the app.
here are my logs from the iwatched-server docker container:
[28-Mar-2022 14:44:07] NOTICE: fpm is running, pid 1
[28-Mar-2022 14:44:07] NOTICE: ready to handle connections
172.19.0.8 - 28/Mar/2022:14:44:16 +0000 "GET /index.php" 200
[28-Mar-2022 14:44:56] ALERT: oops, unknown child (272) exited with code 0. Please open a bug report (https://bugs.php.net).
172.19.0.8 - 28/Mar/2022:14:45:08 +0000 "GET /index.php" 500
172.19.0.8 - 28/Mar/2022:14:45:13 +0000 "GET /index.php" 500
[28-Mar-2022 14:45:20] NOTICE: Finishing ...
[28-Mar-2022 14:45:20] NOTICE: exiting, bye-bye!
[28-Mar-2022 14:45:22] NOTICE: fpm is running, pid 1
[28-Mar-2022 14:45:22] NOTICE: ready to handle connections
172.19.0.7 - 28/Mar/2022:14:45:25 +0000 "GET /index.php" 500
172.19.0.7 - 28/Mar/2022:14:45:27 +0000 "GET /index.php" 500
172.19.0.7 - 28/Mar/2022:14:45:48 +0000 "GET /index.php" 500
172.19.0.7 - 28/Mar/2022:14:45:51 +0000 "GET /index.php" 500
Can you share logs on your storage/logs directory?
The storage/logs directory is empty.
Sorry about that, It seems i need to document installation steps.
Lets check some steps;
- did you copy .env.example to .env
- after .env copy run
php artisan migrate
insideiwatched-server
container - at this point you can able to reach localhost:8000
- if you have any errors in localhost:8000 share with me.
- now you can run
php artisan import:titles
to import titles.
Hi thanks, now the page loads but it gives me this error.
i tried to chmod the storage directory to 775 recursively, but it did not help.
Thanks for your help btw :)
Temporarily (for development) you can give 777 to logs directory