Page 1 of 1
5.5.1 Upgrade Failed
Posted: Mon Jul 16, 2018 12:36 pm
by hillhealthcenter
I attempted to upgrade from 5.5.0 to 5.5.1 and got this message:
Code: Select all
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
wkhtmltox i686 1:0.12.1.3-1~centos6 /wkhtmltox-0.12.1.3.el6.i386 107 M
Transaction Summary
================================================================================
Install 1 Package(s)
Total size: 107 M
Installed size: 107 M
Downloading Packages:
Running rpm_check_debug
RPM needs to be updated
ERROR You need to update rpm to handle:
rpmlib(TildeInVersions) <= 4.10.0-1 is needed by wkhtmltox-1:0.12.1.3-1~centos6.i686
You could try running: rpm -Va --nofiles --nodigest
Your transaction was saved, rerun it with: yum load-transaction /tmp/yum_save_tx-2018-07-16-13-27MMbXjG.yumtx
[root@nagiosxi nagiosxi]#
Re: 5.5.1 Upgrade Failed
Posted: Mon Jul 16, 2018 12:50 pm
by jomann
What OS version is this? What version of rpm does it have (try rpm --version) and are you using any special repos?
Re: 5.5.1 Upgrade Failed
Posted: Mon Jul 16, 2018 1:30 pm
by hillhealthcenter
Hi Jomann,
The OS is CentOS release 6.2 (Final)
RPM version 4.8.0
No special repos
Re: 5.5.1 Upgrade Failed
Posted: Mon Jul 16, 2018 2:24 pm
by jomann
It looks like because CentOS is < 6.4 it does not support tilde in the rpm versions. I would suggest commenting out this section around line 1231 in the upgrade script:
Code: Select all
(
cd ./subcomponents/wkhtmltox
./install
)
Once you have that done, run the upgrade again.
After the upgrade do the following to install wkhtmltox:
Code: Select all
wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.1/wkhtmltox-0.12.1_linux-centos6-i386.rpm
rpm -ivh wkhtml*.rpm
ln -s /usr/local/bin/wkhtmltopdf /usr/bin/wkhtmltopdf
ln -s /usr/local/bin/wkhtmltoimage /usr/bin/wkhtmltoimage
Re: 5.5.1 Upgrade Failed
Posted: Tue Jul 17, 2018 7:34 am
by hillhealthcenter
This is what I get after editing the upgrade.sh:
Code: Select all
[root@nagiosxi nagiosxi]# ./upgrade
Archive: sourceguardian/ixed4.lin.x86-32.zip
inflating: /usr/lib/php/modules/ixed.5.3.lin
Sourceguardian extension found for PHP version 5.3
Sourceguardian extension already in php.ini
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
Checking required prereqs...
Please wait...
OLD VERSION: 5500
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
* base: mirror.siena.edu
* extras: mirrors.advancedhosters.com
* updates: centos.mirror.constant.com
Setting up Update Process
No Packages marked for Update
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
* base: mirror.siena.edu
* extras: mirrors.advancedhosters.com
* updates: centos.mirror.constant.com
Setting up Install Process
Package perl-Test-Simple-0.92-144.el6.i686 already installed and latest version
Package perl-Class-Accessor-0.31-6.1.el6.noarch already installed and latest version
Package perl-Params-Validate-0.92-3.el6.i686 already installed and latest version
Package perl-Config-Tiny-2.12-7.1.el6.noarch already installed and latest version
Package perl-Math-Calc-Units-1.07-6.el6.noarch already installed and latest version
Package perl-Number-Format-1.73-3.el6.noarch already installed and latest version
Nothing to do
./upgrade: line 416: syntax error near unexpected token `)'
Re: 5.5.1 Upgrade Failed
Posted: Tue Jul 17, 2018 1:44 pm
by lmiltchev
Did you comment the section of the code around line 1231 as suggested by jomann or around line 416? Also, did you forget to comment out the last ")"? The commented out section should look like this:
Code: Select all
#(
# cd ./subcomponents/wkhtmltox
# ./install
#)
Re: 5.5.1 Upgrade Failed
Posted: Tue Jul 17, 2018 3:29 pm
by hillhealthcenter
I didn't know to comment out the braces.
The XI upgrade was successful. However, the upgrade failed.
Code: Select all
[root@nagiosxi nagiosxi]# wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.1/wkhtmltox-0.12.1_linux-centos6-i386.rpm
--2018-07-17 15:25:12-- https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.1/wkhtmltox-0.12.1_linux-centos6-i386.rpm
Resolving github.com... 192.30.253.112, 192.30.253.113
Connecting to github.com|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/271714/54434048-52db-11e7-9f0b-75de5354803c?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20180717%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180717T192512Z&X-Amz-Expires=300&X-Amz-Signature=359f9de75e15ebee109e8bd9b9e2cd0625c40a5a0b4a0524633eaca0cc5e3f64&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dwkhtmltox-0.12.1_linux-centos6-i386.rpm&response-content-type=application%2Foctet-stream [following]
--2018-07-17 15:25:12-- https://github-production-release-asset-2e65be.s3.amazonaws.com/271714/54434048-52db-11e7-9f0b-75de5354803c?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20180717%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180717T192512Z&X-Amz-Expires=300&X-Amz-Signature=359f9de75e15ebee109e8bd9b9e2cd0625c40a5a0b4a0524633eaca0cc5e3f64&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dwkhtmltox-0.12.1_linux-centos6-i386.rpm&response-content-type=application%2Foctet-stream
Resolving github-production-release-asset-2e65be.s3.amazonaws.com... 52.216.131.11
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com|52.216.131.11|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 40336812 (38M) [application/octet-stream]
54434048-52db-11e7-9f0b-75de5354803c?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20180717%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180717T192512Z&X-Amz-Expires=300&X-Amz-Signature=359f9de75e15ebee109e8bd9b9e2cd0625c40a5a0b4a0524633eaca0cc5e3f64&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment; filename=wkhtmltox-0.12.1_linux-centos6-i386.rpm&response-content-type=application%2Foctet-stream: File name too long
Cannot write to “54434048-52db-11e7-9f0b-75de5354803c?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20180717%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180717T192512Z&X-Amz-Expires=300&X-Amz-Signature=359f9de75e15ebee109e8bd9b9e2cd0625c40a5a0b4a0524633eaca0cc5e3f64&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment; filename=wkhtmltox-0.12.1_linux-centos6-i386.rpm&response-content-type=application%2Foctet-stream” (Success).
You have mail in /var/spool/mail/root
[root@nagiosxi nagiosxi]#
Re: 5.5.1 Upgrade Failed
Posted: Wed Jul 18, 2018 9:23 am
by jomann
Hmm interesting, try doing this:
Code: Select all
wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.1/wkhtmltox-0.12.1_linux-centos6-i386.rpm -O wkhtmltox-0.12.1_linux-centos6-i386.rpm
Re: 5.5.1 Upgrade Failed
Posted: Wed Jul 18, 2018 9:54 am
by hillhealthcenter
That worked like a charm! I appreciate your help.

Re: 5.5.1 Upgrade Failed
Posted: Wed Jul 18, 2018 9:58 am
by jomann
Great, let us know if you hit any other problems.