February 25, 2019 at 3:21 pm #19614
InvoiceNinja : 4.5.9
Debian GNU/Linux 9.7 (stretch)
Nginx : 1.10.3
MariaDB : 10.1.37
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 ?
BRFebruary 25, 2019 at 3:36 pm #19615February 25, 2019 at 3:51 pm #19616
yesFebruary 25, 2019 at 3:54 pm #19617
Hmm, not sure…
The zip won’t contain a version.txt file but the version is here:
What’s the name of the downloaded file?February 25, 2019 at 4:02 pm #19618
ninja-v4.5.10.zipFebruary 25, 2019 at 4:05 pm #19619
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 #
February 25, 2019 at 4:52 pm #19624
- This reply was modified 3 weeks, 5 days ago by marcassin.
Any chance you have more than one install?February 25, 2019 at 4:53 pm #19625
no 😉February 25, 2019 at 5:01 pm #19627
I’m not sure, you may want to test with a clean install.February 25, 2019 at 5:04 pm #19628
I’m not sure, you may want to test with a clean install. <= what will happen to my current data?February 25, 2019 at 5:06 pm #19629
If you setup a new install it shouldn’t affect your current install, you’d just want to use a separate database to test.February 25, 2019 at 5:09 pm #19630
ok, just for testingFebruary 25, 2019 at 5:13 pm #19631
CorrectFebruary 25, 2019 at 5:13 pm #19632
If you have concerns you can backup your current database and .env file.February 25, 2019 at 5:45 pm #19636
Successfully completed update – See what’s new in v4.5.10
Fresh install & fresh db
Powered by Invoice Ninja – v4.5.10 | White label
February 25, 2019 at 6:04 pm #19638
- This reply was modified 3 weeks, 4 days ago by marcassin.
Great, so we know the zip is ok.
One option would be to transfer over your database and use the new install.February 25, 2019 at 6:10 pm #19639
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?February 25, 2019 at 6:12 pm #19640
I’d suggest using mysqldump to transfer the data so the old install isn’t affected.
The templates are stored in the database.February 25, 2019 at 7:03 pm #19641
everything is done and seems ok.
MarcFebruary 25, 2019 at 7:06 pm #19642
Glad to hear it but it would be good to understand why the upgrade didn’t work.February 25, 2019 at 10:51 pm #19643
The way they described it, it almost sounds like they didn’t have write permissions to
/var/www/ninjawhen 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?February 26, 2019 at 9:36 am #19671
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” ?February 26, 2019 at 8:28 pm #19677
TitanfailParticipantFebruary 27, 2019 at 5:45 am #19688
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”
February 27, 2019 at 9:23 am #19691
- This reply was modified 3 weeks, 3 days ago by Shaddow.
You must be logged in to reply to this topic.