Is v4 still be working once migrated?

Hello.
We have one invoiceninja on v4.5.34 running on shared web hosting installed via softaculous and have setup the latest v5 running on separate server, a fresh vps from vultr installed using cloudron on different domain of the v4.

If want to try migrating from v4 to v5, is the v4 still be working after doing the migration?
In case the migration failed.

Thank you.

Hi,

The migration doesn’t affect the v4 app.

Note: to migrate you’ll need to first upgrade to v4.5.50.

Thank you @hillel .

as it’s installed via softaculous and impossible to update from v4.5.34 to v4.5.50 (specific version) but with manual update, is there setup to be changed or php extention to be added/remove or I simply just overwrite the whole file with files from v4.5.50 in order to update?

Thank you

I suggest setting up a new v4.5.50 install and then copying over the .env file and database. This approach won’t affect your current v4 app.

Thank you for your suggestion @hillel

I will try this way, setting up this version (v4.5.50) in different subdomain, I will then migrated to the new v5 and wont effect to the current version (v4.5.34) at all

Thank you.

Good luck! Note: I believe v4.5.50 requires PHP 7.4.

Thank you @hillel

Just a quick update.

Yes, it is, but I made it, installed a fresh v.4.5.50 copy database and the .env
Login successfully to the new v4.5.50 and all the data in v4.5.34 is there.

Then do the migrate to the v5 and now it says…

Migration has started. We'll update you with status, on your company e-mail.

I guess I will just need to wait for the email, and I will update this post soon

Waiting for over 30 minutes and no email, and then I checked via terminal and I got this

6f527a0c71d8:/app/code# php artisan ninja:check-data
2024-03-08 05:01:13 2024-03-08 05:01:13 Running CheckData... on Connected to Default DB Fix Status = Just checking issues 
2024-03-08 05:01:15 # 3 PT. Syimen Beken - 0001 - Balance Failure - Invoice Balances = 140000.000000 Client Balance = 2640000.000000 Ledger Balance = 0
2024-03-08 05:01:15 1 clients with incorrect balances
2024-03-08 05:01:16 # 2 # Bapaknya xxx 2500000.000000 is invalid should be 0
2024-03-08 05:01:17 # 5 # PT. xxx 3325000.000000 is invalid should be 0
2024-03-08 05:01:17 # 17 # xxx Bali 2000000.000000 is invalid should be 0
2024-03-08 05:01:18 # 26 # Universitas xxx 23755000.000000 is invalid should be 0
2024-03-08 05:01:18 # 43 # Studio xxx 2 6000000.000000 is invalid should be 0
2024-03-08 05:01:19 # 49 # xxx Denpasar 420000.000000 is invalid should be 0
2024-03-08 05:01:20 # 62 # KOPERASI xxx 2000000.000000 is invalid should be 0
2024-03-08 05:01:21 # 93 # PT. xxxI 2800000.000000 is invalid should be 0
2024-03-08 05:01:21 # 101 # xxal Bali 7500000.000000 is invalid should be 0
2024-03-08 05:01:22 # 123 # xxx Badung 20400000.000000 is invalid should be 0
2024-03-08 05:01:22 # 139 # xxx print 45000000.000000 is invalid should be 0
2024-03-08 05:01:22 # 148 # Bali xxx 260000.000000 is invalid should be 0
2024-03-08 05:01:23 # 161 # La xxx 4000000.000000 is invalid should be 0
2024-03-08 05:01:23 # 170 # Bali xxket 4550000.000000 is invalid should be 0
2024-03-08 05:01:23 # 204 # xxura 41475000.000000 is invalid should be 0
2024-03-08 05:01:24 # 205 # PT xxxtama 4200000.000000 is invalid should be 0
2024-03-08 05:01:24 # 218 # Hamid 10700000.000000 is invalid should be 0
2024-03-08 05:01:25 # 238 # xxx Garmen 1700000.000000 is invalid should be 0
2024-03-08 05:01:25 # 249 # xx BALI 1800000.000000 is invalid should be 0
2024-03-08 05:01:26 # 253 # xx Bali 13000000.000000 is invalid should be 0
2024-03-08 05:01:26 # 260 # xx Restaurant 2825000.000000 is invalid should be 0
2024-03-08 05:01:27 # 274 # xxx Center 35200000.000000 is invalid should be 0
2024-03-08 05:01:27 # 301 #  1125000.000000 is invalid should be 0
2024-03-08 05:01:28 # 312 # CV. xxITIES 1500000.000000 is invalid should be 0
2024-03-08 05:01:28 # 322 # xxBali 10000000.000000 is invalid should be 0
2024-03-08 05:01:28 # 352 #  33561000.000000 is invalid should be 0
2024-03-08 05:01:29 # 359 # Check xxt 25 5500000.000000 is invalid should be 0
2024-03-08 05:01:29 # 378 # PT. BPR xxayu 24200000.000000 is invalid should be 0
2024-03-08 05:01:30 # 386 # Piercing xxx 5650000.000000 is invalid should be 0
2024-03-08 05:01:30 # 391 # Puri xxpasar 2900.000000 is invalid should be 0
2024-03-08 05:01:31 # 399 # Medi xxx 3000000.000000 is invalid should be 0
2024-03-08 05:01:31 # 402 # Bank xxx 40188000.000000 is invalid should be 0
2024-03-08 05:01:41 0 clients with incorrect paid to dates
2024-03-08 05:01:41 0 contacts without a contact_key
2024-03-08 05:01:41 0 clients without any contacts
2024-03-08 05:01:42 0 contacts without a contact_key
2024-03-08 05:01:42 0 vendors without any contacts
2024-03-08 05:01:46 0 wrong invoices with bad balance state
2024-03-08 05:01:48 0 Contacts with Send Email = true but no email address
2024-03-08 05:01:48 0 Payments with No currency set
2024-03-08 05:01:48 0 users with duplicate oauth ids
2024-03-08 05:01:48 Done: FAILURE
2024-03-08 05:01:48 Total execution time in seconds: 34.758634090424

I replace the client name to xxx for privacy

Please advice @hillel
Thank you.

I tried a few times to migrate but the luck, and I check this…

6f527a0c71d8:/app/code/storage/logs# tail -f laravel.log 
[2024-03-09 07:40:21] production.INFO: Importing tax_rates  
[2024-03-09 07:40:21] production.INFO: Importing clients  
[2024-03-09 07:43:43] production.INFO: Importing company_gateways  
[2024-03-09 07:43:43] production.INFO: Importing client_gateway_tokens  
[2024-03-09 07:43:43] production.INFO: Importing vendors  
[2024-03-09 07:43:43] production.INFO: Importing projects  
[2024-03-09 07:43:43] production.INFO: Importing products  
[2024-03-09 07:43:49] production.INFO: Importing credits  
[2024-03-09 07:43:49] production.INFO: Importing recurring_invoices  
[2024-03-09 07:43:49] production.INFO: Importing invoices  

Please help @david @hillel

Thank you

I just want to give and an update with a confusion.

After trying to migrate few times, today I tried to switched to react web version and surprisingly dashboard shows nothing at all but clients, products, Invoices data are all there.

Payments and Quotes are empty.

Please tell me what is happening or how do I migrated everything correctly @hillel @david

Thank you.