Data mgration flow issue

Hello to all.
I’m trying to migrate content from version 4.x to 5 (self hosted). After setting up migration, it creates zip file, containing json with data, but does not start migration.
Manual says that this operation is triggered by cron. What i see is that cron is just doing: cd /var/www/app/ && php artisan schedule:run
and when i do this from console, it returns: No scheduled commands are ready to run.
Im missing what should happen after zip is created, so no much idea how to find the issue. There are no errors in logs. Please help :wink:

Hey there, thanks for reporting this. We have a section in the docs related to this:

Hi @saddamus

Are you running the cron under the web user?

It sounds like the queue is not running… if you run

php artisan queue:work this should kick off the migration

I’m sorry for late response.
First my issue was that i was trying to migrate from 4.5.18 version and this version was trying to use api url that did not exist (404).
ext i have upgraded to latest 4.5.x version, but now the problem is that export does not start:

│ invoiceninja [15-Mar-2021 21:21:04] WARNING: [pool www] child 15 said into stderr: "[2021-03-15 21:21:04] production.ERROR: ErrorException [0 │
│ ] : /var/www/app/storage/framework/views/0195f2a7aeeac0242b2fbc2fcf09da720311de6a.php [Line 19] => Trying to get property ‘id’ of non-object (View: │
│ /var/www/app/resources/views/migration/companies.blade.php) {“context”:“PHP”,“user_id”:1,“account_id”:1,“user_name”:“Redacted”,“method”:"GET │
│ “,“user_agent”:“Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36”,“locale”:“en”,“i │
│ p”:“”,“count”:5,“is_console”:“no”,“is_api”:“no”,“db_server”:“mysql”,“url”:“migration/companies”} []” │
│ invoiceninja [15-Mar-2021 21:21:04] WARNING: [pool www] child 15 said into stderr: "[2021-03-15 21:21:04] production.ERROR: [stacktrace] 2021-03-15 │
│ 09:21:04 Trying to get property ‘id’ of non-object (View: /var/www/app/resources/views/migration/companies.blade.php): #0 /var/www/app/vendor/turb │
│ o124/framework/src/Illuminate/View/Engines/PhpEngine.php(45): Illuminate\View\Engines\CompilerEngine->handleViewException(Object(ErrorException), 0 │
│ ) #1 /var/www/app/vendor/turbo124/framework/src/Illuminate/View/Engines/CompilerEngine.php(59): Illuminate\View\Engines\PhpEngine->evaluatePath(’/v │
│ ar/www/app/st…’, Array) #2 /var/www/app/vendor/turbo124/framework/src/Illuminate/View/View.php(137): Illuminate\View\Engines\CompilerEngine->get( │
│ ‘/var/www/app/re…’, Array) #3 /var/www/app/vendor/turbo124/framework/src/Illuminate/View/View.php(120): Illuminate\View\View->getContents() #4 /v │
│ ar/www/app/vendor/turbo124/framework/src/Illuminate/View/View.php(85): Illuminate\View\View->renderContents() #5 /var/www/app/vendor/turbo124/frame │
│ work…