Upgrade Script - Speed Tips?


(James) #1

Hi 

 

I'm upgrading following these instructions http://manuals.matrix.squizsuite.net/server-administrator/chapters/automatic-updates

 

I'm going from 4.8.2 to the latest version 4-18-0-rc1, so quite a few version jumps.

 

So as Root I entered: php matrix_upgrade.php --verbose /var/www/matrix mysource_4-18-0-rc1

 

Seems to be going OK so far, up to 4.14.0 after an hour.

 

Anything I should worry about when jumping through so many versions in one go?

 

Also is there a way to avoid having to say no 'N' to backing up each time a version starts and 'ENTER' when starting each version upgrade?  I must have done these two things at the command prompt at least 5 times now and it's only go as far as 4.14.0

 

I'm currently doing it on a test copy so could do with speeding it up on the live to reduce down time.

 

One final thing, the test is all on 1 server (matrix + database + squid).  On the live set up it's spread out on 3 servers, one for each.  Will the upgrade script cope with that OK?

 

Any thoughts appreciated.  


(Nic Hubbard) #2

Looks like you want the following:

php matrix_upgrade.php --verbose --backup=skip --autostep /var/www/matrix mysource_4-18-0-rc1

(James) #3

Many thanks I'll try that next time, it will save me sitting in front of the PC for an hour and a half just to press a couple of keys every few minutes. 

 

In the end it got to 4.16.1 but then it fell over whilst trying to download it?

 

Either the CVS user for 4.16.1 is no longer 'anonymous' as the error was 'no such user anonymous' or CVS went down?  Anyone else had that issue.  So my test system is currently on 4.16.0.

 

Another thing I'm not sure about is this message...any idea what this javascript file does?  I let it overwrite it.

 

Checking for differences between 4.14.4 and existing code   [ 1 modified ]

 

The following files are locally modified:

- ./core/lib/js/matrix.min.js

 

CVS Packages in skip list will be preserved, while all

other changes will be overridden.


(Nic Hubbard) #4

I have seen a few errors about "no such user", but I just tried the script again and it worked.

 

As for overwriting the modified files. If you didn't modify them yourself, I wouldn't worry about the warnings.


(James) #5

I re-ran it and it completed to mysource_4-18-0-rc1 this time.

 

When logging into admin tree however the scroll bar along the bottom places the ‘Commit’ button for changes a long way to the right. Could the matrix.min.js effect it's position?  Any idea how to fix that?


(Nic Hubbard) #6

I re-ran it and it completed to mysource_4-18-0-rc1 this time.

 

When logging into admin tree however the scroll bar along the bottom places the ‘Commit’ button for changes a long way to the right. Could the matrix.min.js effect it's position?  Any idea how to fix that?

 

Can you show me a screenshot? That Commit button is always on the far right.

 

That script shouldn't do anything like that. You can view it here: http://www.zedsaid.com/__lib/js/matrix.min.js


(Ian Hirst) #7

Hi - I work with Froddy and reported this error. It was to do with compatibility view settings that we had applied for an earlier version - perhaps due to a bug that has been fixed in our new release - turning off compatibility view settings for local sites has resolved this problem.


(James) #8

Excellent, glad we got to the bottom of that one.  Thanks Nic and IDH for your help.  Sounds like we are ready to update the live site, fingers crossed it will be just as simple.


(James) #9

A quick update.  The live upgrade went fine.  Just the same warning as test...I still don't know what it does, but it didn't seem to make a difference.

 

The following files are locally modified:

- ./core/lib/js/matrix.min.js

 

CVS Packages in skip list will be preserved, while all

other changes will be overridden.

 

Not sure about the new JavaScript asset map.  Shame it's not client specific, some editors preferred the Java based map.


(Nic Hubbard) #10

A quick update.  The live upgrade went fine.  Just the same warning as test...I still don't know what it does, but it didn't seem to make a difference.

 

The following files are locally modified:

- ./core/lib/js/matrix.min.js

 

CVS Packages in skip list will be preserved, while all

other changes will be overridden.

 

Not sure about the new JavaScript asset map.  Shame it's not client specific, some editors preferred the Java based map.

 

That file might be modified locally because it is minified by Matrix when running step_02.php.

 

Can you let me know what your editors liked better about the Java based map? I can't personally think of any advantages!