iwatched icon indicating copy to clipboard operation
iwatched copied to clipboard

failed to open stream: No such file or directory

Open calgara12 opened this issue 2 years ago • 7 comments

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

calgara12 avatar Mar 28 '22 07:03 calgara12

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

hakanersu avatar Mar 28 '22 13:03 hakanersu

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


      
      

calgara12 avatar Mar 28 '22 14:03 calgara12

Can you share logs on your storage/logs directory?

hakanersu avatar Mar 28 '22 16:03 hakanersu

The storage/logs directory is empty.

Screenshot_20220329-091443575_1.jpg

calgara12 avatar Mar 29 '22 07:03 calgara12

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 inside iwatched-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.

hakanersu avatar Mar 29 '22 19:03 hakanersu

Hi thanks, now the page loads but it gives me this error. image

i tried to chmod the storage directory to 775 recursively, but it did not help.

Thanks for your help btw :)

calgara12 avatar Mar 29 '22 20:03 calgara12

Temporarily (for development) you can give 777 to logs directory

hakanersu avatar Mar 30 '22 18:03 hakanersu