Home Forums Support Updating fron 4.5.9 => 4.5.10

This topic contains 24 replies, has 4 voices, and was last updated by  marcassin 3 weeks, 3 days ago.

Viewing 25 posts - 1 through 25 (of 25 total)
  • Author
    Posts
  • #19614

    marcassin
    Participant

    InvoiceNinja : 4.5.9
    Debian GNU/Linux 9.7 (stretch)
    Nginx : 1.10.3
    MariaDB : 10.1.37
    White labeled

    Hi !

    I try to upgrade to last version, but no way : each time I try I stay in 4.5.9 : Successfully completed update – See what’s new in v4.5.9

    I follow the manual without success ;-(

    The file version.txt still contains 4.5.9. I cannot find a version.txt file on the new download 4.5.10 : is it ok ?

    What I did :
    – download, extract
    – copy all dirs ans files on prod location (in my case : /var/www/ninja)
    – restart nginx
    – connecting to app
    – add /update to the url, wait a moment

    and get the message saying migration complete in 4.5.9 ;-(

    On a second step, I try to launch manually the update :
    – composer update
    – composer dump-autoload –optimize
    – php artisan optimize –force
    – php artisan migrate
    – php artisan db:seed –class=UpdateSeeder

    but no change…

    What did I do wrong ?

    BR

    #19615

    Hillel Coren
    Keymaster

    Did you download the file from here:

    https://download.invoiceninja.com/

    #19616

    marcassin
    Participant

    yes

    #19617

    Hillel Coren
    Keymaster

    Hmm, not sure…

    The zip won’t contain a version.txt file but the version is here:

    https://github.com/invoiceninja/invoiceninja/blob/master/app/Constants.php#L364

    What’s the name of the downloaded file?

    #19618

    marcassin
    Participant

    ninja-v4.5.10.zip

    #19619

    marcassin
    Participant

    I check the value in Constant.php in my production install :

    define(‘NINJA_VERSION’, ‘4.5.10’ . env(‘NINJA_VERSION_SUFFIX’));

    The download seams to present the correct version #

    • This reply was modified 3 weeks, 5 days ago by  marcassin.
    #19624

    Hillel Coren
    Keymaster

    Any chance you have more than one install?

    #19625

    marcassin
    Participant

    no šŸ˜‰

    #19627

    Hillel Coren
    Keymaster

    I’m not sure, you may want to test with a clean install.

    #19628

    marcassin
    Participant

    Iā€™m not sure, you may want to test with a clean install. <= what will happen to my current data?

    #19629

    Hillel Coren
    Keymaster

    If you setup a new install it shouldn’t affect your current install, you’d just want to use a separate database to test.

    #19630

    marcassin
    Participant

    ok, just for testing

    #19631

    Hillel Coren
    Keymaster

    Correct

    #19632

    Hillel Coren
    Keymaster

    If you have concerns you can backup your current database and .env file.

    #19636

    marcassin
    Participant

    Successfully completed update – See what’s new in v4.5.10

    Fresh install & fresh db

    Powered by Invoice Ninja – v4.5.10 | White label

    • This reply was modified 3 weeks, 4 days ago by  marcassin.
    #19638

    Hillel Coren
    Keymaster

    Great, so we know the zip is ok.

    One option would be to transfer over your database and use the new install.

    #19639

    marcassin
    Participant

    One option would be to transfer over your database and use the new install. <= no change on DB model ?

    And where the templates are saved?

    #19640

    Hillel Coren
    Keymaster

    I’d suggest using mysqldump to transfer the data so the old install isn’t affected.

    The templates are stored in the database.

    #19641

    marcassin
    Participant

    everything is done and seems ok.

    Thanks,
    Marc

    #19642

    Hillel Coren
    Keymaster

    Glad to hear it but it would be good to understand why the upgrade didn’t work.

    #19643

    Titanfail
    Participant

    The way they described it, it almost sounds like they didn’t have write permissions to /var/www/ninja when copying the new files over. But in a CLI that would have ended with a long list of “Permission Denied” for every file, and in X, it would have simply refused to try.

    @marcassin, how exactly did you go about copying the new files to the Invoice Ninja directory?

    #19671

    marcassin
    Participant

    It’s not the case. I manage many VPS and use only CLI to do that.

    @titanfail : Copying with sudo and changing ownership and rights after that.

    I think I did miss some steps to achieve the update process, following what I understand when reading the manual. The main concern, after copying the files is : “how to really start the update process” ?

    #19677

    Titanfail
    Participant

    You could try my update script and see if that works for you (just be mindful of the prerequisites in the readme). It works on VMs and bare metal, so no reason it shouldn’t work in a VPS.

    #19688

    Shaddow
    Participant

    I did the update, Downloaded direct from the website then extracted the zip file over the top of the old version, my only problem was .htaccess
    I had a custom one (ErrorDocument…, GeoIP, and the biggest was the public Rewrite enabled) I kept a copy so I had to fix the file but all worked for me.

    Edited “I also saw a huge speed increase on page loading and server loads was down”

    • This reply was modified 3 weeks, 3 days ago by  Shaddow.
    #19691

    marcassin
    Participant

    @titanfail I’ll give a look next time I need to update šŸ˜‰

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

You must be logged in to reply to this topic.

Posted in: