Migration from v4.5.33

Whoops, looks like something went wrong.

The url is correct: https://v5.meinfamilienfreund.de (previously https://meinfamilienfreund.de/public/)

The username and password are correct and identical for both platforms.

There is no API key.

Where else can I look for the error?

Hi,

Please check the logs in storage/logs/laravel-error.log for more details about the error.

1 Like

If I knew what it meant.

[2021-03-04 17:00:03] production.ERROR: A non-numeric value encountered {"exception":"[object] (ErrorException(code: 0): A non-numeric value encountered at /www/htdocs/w01b8983/rechnungv5/vendor/turbo124/beacon/src/Jobs/System/MemMetric.php:36)

[stacktrace]

and more … https://familienfreun.de/index.php/s/9eDGAL3xFZ9PBCp (text file)

The Jobs table in the v5-database is empty.

@david do you have any ideas?

Most likely the queue isn’t running so the job is not executing

https://invoiceninja.github.io/docs/self-host-installation/#cron-configuration

This should be set up correctly.

https://v5.meinfamilienfreund.de/cronjob.php runs every minute

<?php $beginn = microtime(true); exec("/usr/bin/php74 /www/htdocs/w01b8983/rechnungv5/artisan schedule:run 2>&1", $out, $result); $dauer = microtime(true) - $beginn; echo "Verarbeitung des Skripts: $dauer Sek."; echo "Returncode: " .$result ."
"; if ($result != 0) { echo "Ausgabe des Scripts: " ."
"; echo "
"; print_r($out);
}
else
{
echo "done";
}
?>

Where can I test/check this?

@david / @hillel no ideas?

@thomas_kujawa

in your laravel.log file, do you see any entries such as this:

[2021-03-05 11:45:02] development.INFO: latest version = 5.1.14
[2021-03-05 11:50:04] development.INFO: latest version = 5.1.14
[2021-03-05 11:52:43] development.INFO: latest version = 5.1.14
[2021-03-05 11:55:05] development.INFO: latest version = 5.1.14

no, but (see Migration from v4.5.33 - #3 by thomas_kujawa)

[2021-03-04 16:56:01] production.INFO: latest version = 5.1.14 [2021-03-04 17:00:03] production.ERROR: A non-numeric value encountered {“exception”:"[object] (ErrorException(code: 0): A non-numeric value encountered at /www/htdocs/w01b8983/rechnungv5/vendor/turbo124/beacon/src/Jobs/System/MemMetric.php:36) [stacktrace] #0 /www/htdocs/w01b8983/rechnungv5/vendor/turbo124/beacon/src/Jobs/System/MemMetric.php(36): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, ‘A non-numeric v…’, ‘/www/htdocs/w01…’, 36, Array) #1

I have also extra looked again at v5 for the update and forced an update. But nothing changes in the error.

Does that help, @david & @hillel ?

that error isn’t specific to the migration,

I’m trying to open the other file you attached, but it isn’t opening for me - https://familienfreun.de/index.php/s/9eDGAL3xFZ9PBCp

Yes, my mistake. The log file is in our cloud.

see => https://v5.meinfamilienfreund.de/laravel.log.md @david

@david Should I install version 5 again or do you suspect the error in version 4?

So until we can see a migration file in V4, then the issue is in V4… Once we have the file, then we focus on V5.

It may help on V5, to change QUEUE_CONNECTION=database to QUEUE_CONNECTION=sync

and then try the migration again.

Thanks for helping! :pray:

no migration file in v4 :frowning:

Logfiles v4 - Cloud der familienfreund KG (Cloud is working again)

=> from /storage/logs

  • laravel-error.log [2021/03/08]
  • laravel-info.log [2019/12/13]
  • stacktrace.log [2021/03/08]
  • not-found.log [2018/10/17]
  • failed-logins.log [2020/07/19]

=> from /vendor/symfony/http-kernel/…

  • Compiler.log [2018/03/05]

from laravel-error.log - last line

[2021-03-08 14:09:44] production.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError [0] : /www/htdocs/w01b8983/rechnung/app/Services/Migration/AuthService.php [Line 54] => Class ‘Unirest\Request\Body’ not found {“context”:“PHP”,“user_id”:1,“account_id”:1,“user_name”:“Thomas Kujawa”,“method”:“POST”,“user_agent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.190 Safari/537.36”,“locale”:“de”,“ip”:“95.91.28.70”,“count”:1,“is_console”:“no”,“is_api”:“no”,“db_server”:“mysql”,“url”:“migration/auth”} []

What does it mean?

In one of your log files, it appears your V4 install hasn’t got the latest packages, can you run

composer install --no-dev

PHP Fatal error: Class UpdateHelper\ComposerPlugin contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (Composer\Plugin\PluginInterface::deactivate, Composer\Plugin\PluginInterface::uninstall) in /www/htdocs/w01b8983/rechnung/vendor/kylekatarnls/update-helper/src/UpdateHelper/ComposerPlugin.php on line 11

Fatal error: Class UpdateHelper\ComposerPlugin contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (Composer\Plugin\PluginInterface::deactivate, Composer\Plugin\PluginInterface::uninstall) in /www/htdocs/w01b8983/rechnung/vendor/kylekatarnls/update-helper/src/UpdateHelper/ComposerPlugin.php on line 11

Before installing V5, I did the update.

so it looks like you are using composer 2, you’ll need to use composer 1 for V4 as the other isn’t compatible.