I recently installed invoiceninja on my ubuntu VPS using apache, I havent used the docker version. I can navigate to /setup fine and run the setup but it just reloads the 1st page after ive completed it. If i go to billing.domain.co.uk i get error 500. Attached is my laravel.log, if any other logs are needed comment and ill send them as im not sure what else may be needed!
Laravel Log: https://pastebin.com/2gF89W3G
Hey there, thanks for reporting this. I’ll need you to be more explicit.
After you complete the setup, you should be redirected to login page.
Maybe you can turn on debugging mode & see what’s wrong:
- Edit .env file (in Invoice Ninja folder)
- Edit APP_DEBUG=true
- Run: php artisan optimize
Now you should be able to see the erorr. Don’t forget to set it to false & optimize again, as this debug mode can expose some private info to public. Thanks
Dont it and it says “SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘ninja.accounts’ doesn’t exist (SQL: select * from
accounts limit 1)”
But im not sure why its doing this? its just a blank database, shouldnt the setup add all the tables etc? That errors from going to the domain itself. I also dont get a login page, the setup just repeats, if i forcibly go to https://billing.domain.co.uk i get error 500
I have exactly the same issue on a Debian10 install. Seems like I get every error possible for my v5 adventure.
I dont understand why tho. any website ive installed before sets up the database tables itself. this one by the sounds of it hasnt
I try to migrate/install v5 since yesterday and have some weird issues. v4 was easy to install, but I have no idea what is going on here. But, I am here to help as good as possible, as I really like invoiceninja.
(sorry I couldn’t reproduce the 500 error from yesterday, as I wasn’t able to post more as a new member here)
In first my problem seemed to align with the topic starter, later found out that the error output was different so I started my own topic.
Can you please check the errors in the logs storage/logs/laravel.log
The errors are the same as linked in the first post.
What happens if you run
php artisan migrate:fresh --seed
from the command line?
This fixed mine, just had to sort an issue with it redirecting but now it all works!
This happened to me - I ran “php artisan migrate” from a terminal to sort it out.
Thanks a lot! That worked. I am able to login now.
Up next: Error 403 when inside PDF templates. But there is another thread for that.