Home Forums Support Some problems after migration

This topic contains 2 replies, has 2 voices, and was last updated by  Titanfail 1 month, 2 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #23627

    PatricF
    Participant

    Hi, I’ve migrated my installation to a new server. I’ve done a database dump from my old installation, use Softaculous to install Ninja Invoice on the new server, imported the database with phpMyAdmin, configure Invoice Ninja and was able to login after a bit of trouble. The trouble that I still have is

    1. when I want to log in, I go to my address biling.mywebsite.com, I have the login page, put my credentials, but my browser stay on biling.mywebsite.com/login, I have to refresh the page, or manually remove /login to be able to go to biling.mywebsite.com/dashboard, after that it’s ok ’till next logout

    2. everything seems to be back in my Invoice Ninja, I have my products, clients, tasks that I can access, I have all the list of invoices, payments, but if I try to edit or see an invoice or payment, I have a “Whoops, looks like something went wrong.”

    3. Some of the folders in the installation are in 777 chmod, is it normal (like storage and his content) ?

    Any idea what I can do ? Thank you !

    here’s the latest errors :
    [2020-02-18 19:50:40] production.ERROR: ***Illuminate\Contracts\Encryption\DecryptException*** [0] : /home/atakaneq/ninja/vendor/laravel/framework/src/Illuminate/Encryption/Encrypter.php [Line 195] => The MAC is invalid. {“context”:”PHP”,”user_id”:1,”account_id”:1,”user_name”:”Patric Favreau”,”method”:”POST”,”user_agent”:”Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.106 Safari/537.36″,”locale”:”fr_CA”,”ip”:”45.44.224.215″,”count”:1,”is_console”:”no”,”is_api”:”no”,”db_server”:”mysql”,”url”:”login”} []
    [2020-02-18 19:50:55] production.ERROR: ***Illuminate\Contracts\Encryption\DecryptException*** [0] : /home/atakaneq/ninja/vendor/laravel/framework/src/Illuminate/Encryption/Encrypter.php [Line 195] => The MAC is invalid. {“context”:”PHP”,”user_id”:1,”account_id”:1,”user_name”:”Patric Favreau”,”method”:”POST”,”user_agent”:”Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.106 Safari/537.36″,”locale”:”fr_CA”,”ip”:”45.44.224.215″,”count”:1,”is_console”:”no”,”is_api”:”no”,”db_server”:”mysql”,”url”:”login”} []
    [2020-02-18 19:51:17] production.ERROR: ***ErrorException*** [0] : /home/atakaneq/ninja/vendor/laravel/framework/src/Illuminate/Encryption/Encrypter.php [Line 195] => The MAC is invalid. (View: /home/atakaneq/ninja/resources/views/partials/email_templates.blade.php) (View: /home/atakaneq/ninja/resources/views/partials/email_templates.blade.php) {“context”:”PHP”,”user_id”:1,”account_id”:1,”user_name”:”Patric Favreau”,”method”:”GET”,”user_agent”:”Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.106 Safari/537.36″,”locale”:”fr_CA”,”ip”:”45.44.224.215″,”count”:2,”is_console”:”no”,”is_api”:”no”,”db_server”:”mysql”,”url”:”invoices/21/edit”} []
    [2020-02-18 19:54:00] production.ERROR: ***ErrorException*** [0] : /home/atakaneq/ninja/vendor/laravel/framework/src/Illuminate/Encryption/Encrypter.php [Line 195] => The MAC is invalid. (View: /home/atakaneq/ninja/resources/views/partials/email_templates.blade.php) (View: /home/atakaneq/ninja/resources/views/partials/email_templates.blade.php) {“context”:”PHP”,”user_id”:1,”account_id”:1,”user_name”:”Patric Favreau”,”method”:”GET”,”user_agent”:”Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.106 Safari/537.36″,”locale”:”fr_CA”,”ip”:”45.44.224.215″,”count”:3,”is_console”:”no”,”is_api”:”no”,”db_server”:”mysql”,”url”:”invoices/32/edit”} []
    [2020-02-18 19:54:02] production.ERROR: ***ErrorException*** [0] : /home/atakaneq/ninja/vendor/laravel/framework/src/Illuminate/Encryption/Encrypter.php [Line 195] => The MAC is invalid. (View: /home/atakaneq/ninja/resources/views/partials/email_templates.blade.php) (View: /home/atakaneq/ninja/resources/views/partials/email_templates.blade.php) {“context”:”PHP”,”user_id”:1,”account_id”:1,”user_name”:”Patric Favreau”,”method”:”GET”,”user_agent”:”Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.106 Safari/537.36″,”locale”:”fr_CA”,”ip”:”45.44.224.215″,”count”:4,”is_console”:”no”,”is_api”:”no”,”db_server”:”mysql”,”url”:”invoices/32/edit”} []
    [2020-02-18 20:05:52] production.ERROR: ***Illuminate\Contracts\Encryption\DecryptException*** [0] : /home/atakaneq/ninja/vendor/laravel/framework/src/Illuminate/Encryption/Encrypter.php [Line 195] => The MAC is invalid. {“context”:”PHP”,”user_id”:1,”account_id”:1,”user_name”:”Patric Favreau”,”method”:”POST”,”user_agent”:”Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.106 Safari/537.36″,”locale”:”fr_CA”,”ip”:”45.44.224.215″,”count”:1,”is_console”:”no”,”is_api”:”no”,”db_server”:”mysql”,”url”:”login”} []
    [2020-02-18 20:09:07] production.ERROR: ***ErrorException*** [0] : /home/atakaneq/ninja/vendor/laravel/framework/src/Illuminate/Encryption/Encrypter.php [Line 195] => The MAC is invalid. (View: /home/atakaneq/ninja/resources/views/partials/email_templates.blade.php) (View: /home/atakaneq/ninja/resources/views/partials/email_templates.blade.php) {“context”:”PHP”,”user_id”:1,”account_id”:1,”user_name”:”Patric Favreau”,”method”:”GET”,”user_agent”:”Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.106 Safari/537.36″,”locale”:”fr_CA”,”ip”:”45.44.224.215″,”count”:2,”is_console”:”no”,”is_api”:”no”,”db_server”:”mysql”,”url”:”invoices/31/edit”} []

    —-
    self-hosting
    v4.5.17

    #23628

    PatricF
    Participant

    Well well well, I saw a post with a similar issue, that talk about the APP_KEY that changed, so I’ve put back my old APP_KEY and I can now login normally, and have access to my invoices and payments.

    So I guess the question left is

    3. Some of the folders in the installation are in 777 chmod, is it normal (like storage and his content) ?

    #23632

    Titanfail
    Participant

    Invoice Ninja does require the webserver account (usually www-data, but depends on your specific setup) to have full permissions on the /storage folder. 777 is basically full access for any user on the entire system. I normally use 775, which gives the user and group specified by chown full permission, but denies write access to any other user.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Posted in: