[solved] 2.1.6 > 2.2.5 upgrade failing, Phar problems?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

[solved] 2.1.6 > 2.2.5 upgrade failing, Phar problems?

Post by paulbaker »

Attempting to do a customer upgrade 2.1.6 > 2.2.5.

Phar install was giving errors:

Code: Select all

[Thu Jan 11 10:59:48.405689 2018] [fcgid:warn] [pid 16216] [client 188.28.139.216:49350] mod_fcgid: stderr: PHP Fatal error:  Uncaught exception 'PharException' with message 'phar "/home/linweb22/k/king....com-1085056276/user/htdocs/cmsms-2.2.5-install.php" SHA1 signature could not be verified: broken signature' in /home/linweb22/k/king....com-1085056276/user/htdocs/cmsms-2.2.5-install.php:8
[Thu Jan 11 10:59:48.412073 2018] [fcgid:warn] [pid 16216] [client 188.28.139.216:49350] mod_fcgid: stderr: Stack trace:
[Thu Jan 11 10:59:48.412099 2018] [fcgid:warn] [pid 16216] [client 188.28.139.216:49350] mod_fcgid: stderr: #0 /home/linweb22/k/king....com-1085056276/user/htdocs/cmsms-2.2.5-install.php(8): Phar::webPhar(NULL, 'index.php')
[Thu Jan 11 10:59:48.412105 2018] [fcgid:warn] [pid 16216] [client 188.28.139.216:49350] mod_fcgid: stderr: #1 {main}
[Thu Jan 11 10:59:48.412117 2018] [fcgid:warn] [pid 16216] [client 188.28.139.216:49350] mod_fcgid: stderr:   thrown in /home/linweb22/k/king....com-1085056276/user/htdocs/cmsms-2.2.5-install.php on line 8
So I used the expanded installer but got this error:

Code: Select all

[Thu Jan 11 11:13:12.996421 2018] [fcgid:warn] [pid 12246] [client 188.28.139.216:58022] mod_fcgid: stderr: PHP Fatal error:  Class '__appbase\\nls.ph_nls' not found in /home/linweb22/k/king....com-1085056276/user/htdocs/lib/classes/class.nlstools.php on line 44
Phar details from phpinfo:
phar.jpg
Could use some pointers here....?

Thanks
To copy System Information to the forum:
https://docs.cmsmadesimple.org/troubles ... nformation

CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: 2.1.6 > 2.2.5 upgrade failing, Phar problems?

Post by Rolf »

Mod Security at this server?
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

Re: 2.1.6 > 2.2.5 upgrade failing, Phar problems?

Post by paulbaker »

Thanks Rolf, no mention of mod security on phpinfo and existing installation works without any problems that I can see.
To copy System Information to the forum:
https://docs.cmsmadesimple.org/troubles ... nformation

CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1968
Joined: Mon Jan 29, 2007 4:47 pm

Re: 2.1.6 > 2.2.5 upgrade failing, Phar problems?

Post by Jo Morg »

How did you upload the installer to the server?
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: 2.1.6 > 2.2.5 upgrade failing, Phar problems?

Post by calguy1000 »

SHA1 signature could not be verified: broken signature'
I'll bet you uploaded the installer using FTP... and in ASCII or auto mode.
FTP is evil and should not be used.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

Re: 2.1.6 > 2.2.5 upgrade failing, Phar problems?

Post by paulbaker »

Thank you Rolf, Jo and Calguy.
calguy1000 wrote:I'll bet you uploaded the installer using FTP... and in ASCII or auto mode.
You got it. I was uploading the installer using the (crappy) browser based file manager that the client's host provides. It uploaded in ASCII without me being able to spot and change it.

Once I re-uploaded the installer using FTP set to binary mode, the upgrade went without a hitch.

Thanks again!

Is it time for a beer yet? :P
To copy System Information to the forum:
https://docs.cmsmadesimple.org/troubles ... nformation

CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: [solved] 2.1.6 > 2.2.5 upgrade failing, Phar problems?

Post by calguy1000 »

<cough>ssh/scp/sftp</cough>

learning those tools and basic shell commands is gonna save you a crapload of time.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Post Reply

Return to “CMSMS Core”