Micrating V4.5.50 to V5 latest version fails with "1 clients with incorrect balance/activities"

Im trying to migrate from V4.5.50 to the latest V5 but the migration fails and when I check the V4.5.50 server using “php artisan ninja:check-data” I have one error “=== Company: 1 Account:1 Client:98 Balance:59.43 Actual Balance:827.72 ===”

Ive tried running “php artisan ninja:check-data --fix=true” (got this from another post) but still the error remains and I believe this error is making the migration to V5 fail.

Can anyone help fix the balance error?

Regards
Mick

Hi,

I don’t think this error would cause the migration to fail.

Are you seeing an error related to the migration failure?

When i start the migration from the V4 server to the V5 server should i be checking the laravel.log file on the V4 server or the v5 server as the v5 server does not have a “laravel.log” file created

I suggest checking both for any errors which appear after the migration has started.

1 Like

Hi Hillel

Looks like my problem was my PHP memory_limit on the V4 server, it was set to 128M, I changed it to 512M and the migration was successful and all my data has migrated :slight_smile:

Quick question: I used this guide to build the new V5 server on Debian12 (https://techviewleo.com/how-to-install-invoice-ninja-on-debian-12-bookworm/) and when I check the about link on the new V5 server it shows the version as v14.04.2024.1, is this correct?

The guide uses the below to download the latest invoiceninja.zip

VERSION=$(curl -s https://api.github.com/repos/invoiceninja/invoiceninja/releases/latest|grep tag_name|cut -d '"' -f 4|sed 's/v//')
wget https://github.com/invoiceninja/invoiceninja/releases/download/v${VERSION}/invoiceninja.zip

I thought the InvoiceNinja versions started with V5

Anyway, thank you for the heads up checking the laravel logs as the laravel-error.log shows me the PHP memory problem :slight_smile:

On checking the “VERSION” variable content contains 5.8.51 which I believe is the latest version?

5.8.51 is the backend version, v14.04.2024.1 is the web frontend version.

1 Like

That makes sense then, thank you