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 5 months, 3 weeks 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 5 months, 3 weeks 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 #19677February 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 #19691April 1, 2019 at 10:33 pm #20285
- This reply was modified 5 months, 3 weeks ago by Shaddow.
I’ve been trying to update for a while now with no success.
Extracted the ZIp file to the installation folder and all I get is a directory listing when I look at the site ina browser.
I have tried extracting directly into the installation folder and get the same result.
I ahve tried using the command line but still nothing.
Any suggestions on exactly how I can update please?
I know I have done this before but now when I overwrite the files it just displays a directory listing for me.April 2, 2019 at 3:54 am #20290
Sorry, I’n not sure… you should just need to copy over the new files.
Maybe try using the automated script: https://pastebin.com/j657uv9AApril 2, 2019 at 5:50 am #20292
Than ks Hillel
I used to be able to simply copy over the files and extract and then run /update but that’s not working.
I created the script too but when I run it I simply get “invalid option”.April 2, 2019 at 8:33 am #20302
If you’re getting an “invalid option” error when you try to run the script, then it’s likely there are DOS-style line breaks in the file (an unfortunate side-effect of using pastebin).
You can check for sure with
cat -v name_of_script_file, and if you see any lines ending with
^M, that’s the problem. Simple fix, however. Just install dos2unix (
sudo apt install dos2unix), then run
dos2unix name_of_script_file. That will remove all the improper line breaks.
April 3, 2019 at 6:08 am #20308
- This reply was modified 4 months, 2 weeks ago by Titanfail.
I removed all the line breaks but still get the invalid option error.April 4, 2019 at 6:41 am #20320
That’s the only reason I’ve ever seen for that error, as it’s a very specific issue with bash.
Just to make sure we’re on the same page, you did use dos2unix on the script, correct? Most text utilities won’t show non-printing characters by default, hence the -v switch needed for them to even show up with
cat. If you can see them, you can delete them, but dos2unix makes it an instant task. Not trying to be rude or anything, just trying to figure out exactly what’s going on.April 8, 2019 at 1:53 am #20350
I had a similar problem when upgrading from 4.5.7 to 4.5.12: after performing the upgrade I get a blank page and nothing is happening.
When going to base URL I get the list of directories and files.
I tried to perform just an install and not upgrade (on a new database), but I get the error message ” SQLSTATE[HY000]  No such file or directory” on the Test Connection. I tried to revert to 4.5.7 but I get the same error message on installing 4.5.7.
I did get an error message (in an error log file) about running of memory, so I increase the PHP memory to 256Mb: I don’t get an error anymore … but I still have the other problems.
Any help would be appreciated as I am really stuck here and I wouldn’t like to have to migrate to another software.April 8, 2019 at 2:57 am #20351
First try restarting your SQL server. Should just be
sudo systemctl restart mysqld. Failing that, when you’re on the setup page, try using 127.0.0.1 instead of localhost for the DB Host field.April 8, 2019 at 1:34 pm #20352
Strangely, using 127.0.0.1 instead of localhost for the DB Host field, worked … but I get an error later.
And there’s an error log :
[08-Apr-2019 10:23:01 UTC] PHP Notice: Undefined index: argv in /home/polo/MC_IN/vendor/symfony/console/Input/ArgvInput.php on line 53
I am stuck on the install/update screen (with Application settings, Database connection, Emails settings etc): when I submit, I get the same page again.
I remembered that I first install InvoiceNinja from Softaculous (from my web host) … but it does not work either. I’ve tried to install a brand new version (new directory and new database) and to upgrade the existent … but still nothing works, and I can not use InvoiceNinja !April 9, 2019 at 5:53 am #20362
I’d like to try the ZIP file overwrite method but that appears to be not working either.
You must be logged in to reply to this topic.