Automatic Upgrade Script failing when updating to 5.0.1.1

We are working on doing an upgrade to 5.0.1.1 so I am working on our test server at the moment which is on 4.18.2.

 

I am using the following:

php MatrixUpgrades/matrix_upgrade.php --verbose /opt/matrix/ 5-0-1-1

After it says "Cloning Matrix" for a while I get the error:

Cloning into '/opt/MatrixUpgrades/tmp/matrix.clone'...
error: Failed connect to xxxxx.xxxxx.net:443; Connection timed out while accessing https://xxxxx.xxxxxx.net/xxxx/Matrix.git/info/refs
fatal: HTTP request failed
*ERROR* Could not check out code (failed cmd: "/usr/bin/git clone 'https://xxxxx.xxxxxx.net/xxxx/Matrix.git' '/opt/MatrixUpgrades/tmp/matrix.clone' 2>&1")

(I added the xxxxx, wasn't sure what was public info...)

 

Git is install on the server.

 

Do I need to somehow authenticate with the git server?

That's strange, I have updated from Git with no issues, just needed to enter my git password. Are you accessing a github URL or a Gitlab URL? I'll see if I can get one of the devs to help. 

That's strange, I have updated from Git with no issues, just needed to enter my git password. Are you accessing a github URL or a Gitlab URL? I'll see if I can get one of the devs to help. 

 

I didn't touch the git stuff in the .conf file. It is a gitlab URL.

Can you try again Nic? To me it looks like the network dropped out while checking out the repo.

Do you know if you are given access to gitlab or github?

The default Git repo URL of upgrade script points to gitlab. As far as i know it's a Squiz Internal access URL.

 

If you can access github, you should change the main.conf file and change the Git repo URL to github URL:

https://github.com/squizlabs/Matrix.git

Do you know if you are given access to gitlab or github?

The default Git repo URL of upgrade script points to gitlab. As far as i know it's a Squiz Internal access URL.

 

If you can access github, you should change the main.conf file and change the Git repo URL to github URL:

https://github.com/squizlabs/Matrix.git

 

Yes, I have access on github. Will change the URL and report back.

Looks like it is working after using the github URL. I love that we are on git now, the upgrade scripts are SO much faster now!

 

Thanks guys.

Hi,

 

I have tried the upgrade script and getting the following error:

Cloning into '/home/MatrixUpgrades/tmp/matrix.clone'...
error: The requested URL returned error: 403 while accessing https://github.com/squizlabs/Matrix.git/info/refs
fatal: HTTP request failed
                                                            [ Cloned Matrix ]
*ERROR* Could not check out code (failed cmd: "/usr/bin/git clone 'https://github.com/squizlabs/Matrix.git' '/home/MatrixUpgrades/tmp/matrix.clone' 2>&1")

Am I missing something here? Do you need permission to the Matrix Git repo?

Yes you need to be granted access to upgrade via Github as mentioned in the Squiz Labs blog http://www.squizlabs.com/squiz-matrix/squiz-matrix-newsletter-472.

 

You should however be able to change the config in the upgrade script to point to CVS if you are upgrading to a Matrix 4 specific version which is still publicly accessible. 

 

If you are a Squiz Client and require access to the Matrix code on Git for Matrix 5, please talk to your Account Manager and we can organise it that way.