crater icon indicating copy to clipboard operation
crater copied to clipboard

Unable to Install application on my localhost, any manual installation guide??

Open starpunjabi opened this issue 2 years ago • 4 comments

For installation, i downloaded latest release i.e. https://github.com/crater-invoice/crater/archive/refs/tags/6.0.6.zip

Unzipped and Tried to run it by using php artisan serve

It shows installation wizard in browser, but i got stuck in database setup slide, as it is showing errors like image

Is there any way to skip installation wizard steps and install application manually?? As i tried on three machines, macbook air, macbook pro and windows 11. On all machines i got stuck at this stage, so there must be some issue in application (might be in latest release).

======= In order to solve this, Steps I tried are:

I imported db tables by using php artisan migrate

and see database too by using php artisan db:seed

Created a file under storage/app directory image

and was able to skip installation steps, now it is showing login screen, but when i am trying to login I am getting error like image

As per console error is with http request /api/v1/bootstrap image

Getting response like {"message":"Unauthenticated."} image

Can someone please let me know what is wrong with application. How to get it resolved.

Very many thanks!!

starpunjabi avatar May 15 '22 20:05 starpunjabi

Please check this video for installation steps: https://www.youtube.com/watch?v=waheY7LHBdc

starpunjabi avatar May 21 '22 01:05 starpunjabi

I guess you didn't modified theses variables : SANCTUM_STATEFUL_DOMAINS=127.0.0.1:8000 SESSION_DOMAIN=127.0.0.1 Because it work on my localhost and when I empty theses two variables like this : SANCTUM_STATEFUL_DOMAINS= SESSION_DOMAIN= I get the same error as you image

Madgique avatar May 21 '22 20:05 Madgique

Hi @lMagickl, you shouldn't primarily rely on the browser console to solve the issue. You need to check PHP logs and the logs of the engine you are using, Apache or Nginx. Also, check laravel logs and post them here. Go through the basics, check the file permission, start a new and seed the DB. Also, SESSION_DOMAIN is needed if you want to have any login functionality.

Also not sure if that is still the case, but you may want to try to download the crater invoice from the official site instead of GitHub. I remember I had some issues with the Github version.

rihards-simanovics avatar May 21 '22 21:05 rihards-simanovics

My bad I didn't notice that @starpunjabi answered to himself x) I tried to help him

Madgique avatar May 21 '22 21:05 Madgique

Yes it works for me, Your video is really awesome. Thanks a lot @starpunjabi

89itworld avatar Jun 02 '22 10:06 89itworld