How to Update v4 to v5 on selfhosting

There is only “invoiceninja.log” with:
production.INFO: migrations/…-2021-04-01-invoiceninja.zip
But there is no Input in v5 (no clients, no invoices, …).

php artisan ninja:check-data
2021-04-02 11:00:19 2021-04-02 11:00:19 Running CheckData...
2021-04-02 11:00:19 0 clients with incorrect balances
2021-04-02 11:00:19 0 clients with incorrect invoice balances
2021-04-02 11:00:19 0 clients with incorrect paid to dates
2021-04-02 11:00:19 0 clients with incorrect client balances
2021-04-02 11:00:19 0 contacts without a contact_key
2021-04-02 11:00:19 0 clients without any contacts
2021-04-02 11:00:19 0 clients without a single primary contact
2021-04-02 11:00:19 0 users with duplicate oauth ids
2021-04-02 11:00:19 9 failed jobs
2021-04-02 11:00:19 Done: SUCCESS

and:

php artisan ninja:send-test-emails
In SendTestEmails.php line 148:                                                      
  Class 'App\Jobs\Invoice\CreateEntityPdf' not found

The steps I took:

  • Update current install to the latest version.
  • Take a backup and install it on another domain, eg invoicingv4.mydomain.com
  • Install V5 where the old install used to be and go through the normal setup process to get a fresh install.
  • Go to settings in the V4 install and use the migrate option to connect to the V5 install and migrate the content.
  • make sure everything is ok

After the import, you may have 2 companies in the list so if you see no data then you might be looking at the wrong company and need to disable/delete the one you set it up with.

If you don’t get an email about the migration completing then something went wrong and should be shown in the logs.

You can’t install v5 over the top of v4.

1 Like