Koozali.org formerly Contribs.org

software collections: PHP update mirrors not found

software collections: PHP update mirrors not found
« on: September 13, 2018, 07:08:17 AM »
Hi,

Saw this when I attempted to update the PHP collections. Koozali 9 with all updates applied, except these.

Code: [Select]
Error Downloading Packages:
  php56-php-mysqlnd-5.6.38-1.el6.remi.x86_64: failure: php56-php-mysqlnd-5.6.38-1.el6.remi.x86_64.rpm from remi-safe: [Errno 256] No more mirrors to try.
  php70-php-process-7.0.32-1.el6.remi.x86_64: failure: php70-php-process-7.0.32-1.el6.remi.x86_64.rpm from remi-safe: [Errno 256] No more mirrors to try.
  php56-php-imap-5.6.38-1.el6.remi.x86_64: failure: php56-php-imap-5.6.38-1.el6.remi.x86_64.rpm from remi-safe: [Errno 256] No more mirrors to try.
  php70-php-gd-7.0.32-1.el6.remi.x86_64: failure: php70-php-gd-7.0.32-1.el6.remi.x86_64.rpm from remi-safe: [Errno 256] No more mirrors to try.
  php56-php-soap-5.6.38-1.el6.remi.x86_64: failure: php56-php-soap-5.6.38-1.el6.remi.x86_64.rpm from remi-safe: [Errno 256] No more mirrors to try.

Thoughts from the forum most welcome.
- Mark

Offline ReetP

  • *
  • 1,593
Re: software collections: PHP update mirrors not found
« Reply #1 on: September 13, 2018, 12:39:38 PM »
Which URL/Mirror was it using?
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Re: software collections: PHP update mirrors not found
« Reply #2 on: September 13, 2018, 12:43:31 PM »
Hi Mophilly,

PHP-5.6 is end of live but I found another URL wich might be the solution for this version: https://www.softwarecollections.org/repos/rhscl/rh-php56/epel-6-x86_64/.

If you have a test site, try changing the yum repository to:


Code: [Select]
/sbin/e-smith/db yum_repositories set rh-php56 \
repository Name 'Software collections - php56' \
BaseURL 'https://www.softwarecollections.org/repos/rhscl/rh-php56/epel-6-x86_64/' \
EnableGroups no Visible yes status disabled

I think that the rh-collection does not show in Server Manager. If needed by an i-bay then try to add it by modifying the i-bay accounts.

If this works, maybe somebody can add this to the Software Collections Repositories at: https://wiki.contribs.org/index.php?title=Software_Collections_Repositories&oldid=28179#tab=PHP55.

Let me know what is the result,

Michel-André


Re: software collections: PHP update mirrors not found
« Reply #3 on: September 13, 2018, 01:58:05 PM »
Hi Mophilly,

I tried rh-php56 on an virtual machine.

If you use php-56 on all i-bays because there is no line for SCL Version in Server Manager.

Code: [Select]
/sbin/e-smith/db yum_repositories set rh-php56 \
repository Name 'Software collections - php56' \
BaseURL 'https://www.softwarecollections.org/repos/rhscl/rh-php56/epel-6-x86_64/' \
EnableGroups no Visible yes status disabled


yum install -y --enablerepo=rh-php56 rh-php56


signal-event yum-modify


cat > /etc/profile.d/activer-rh-php56.sh <<'EOT'
#!/bin/bash
source /opt/rh/rh-php56/enable
#
if [[ "$X_SCLS" != *rh-php56* ]]; then
src="`scl enable rh-php56 'echo $X_SCLS'`"
pkgs=(${src// / })
uniq=($(printf "%s\n" "${pkgs[@]}" | sort -u));
export X_SCLS="${uniq[@]}"
fi
EOT


##### exit the ssh console
##### login again


php --version

##### Should display
PHP 5.6.5 (cli) (built: Jun 29 2015 08:20:04)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies


Maybe someone knows how to enable it per i-bay?

Michel-André


Offline ReetP

  • *
  • 1,593
Re: software collections: PHP update mirrors not found
« Reply #4 on: September 13, 2018, 02:43:14 PM »
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Re: software collections: PHP update mirrors not found
« Reply #5 on: September 13, 2018, 05:17:28 PM »
Thank you for the posts. I appreciate the help.

I apologize for not posting enough information. We are using PHP software collections. We are maintaining one site (one of the iBays) on PHP 5.6 until a third party sorts out an incompatibility with PHP 7.x. We haven't changed the PHP included in the SME distro.

The repo we are reading is remi-safe.

The system has been and still is working fine. It is a production site. I update the system regularly. The PHP update was attempted in response to an alert of updates available.

As an aside, I just watched, again, the ever entertaining "The Web Site Is Down" video from BOFH, so I am suffering temptations. I will refrain from any shenanigans.  :-P

I will try the update once more, just in case something has changed at the repo.
- Mark

Offline ReetP

  • *
  • 1,593
Re: software collections: PHP update mirrors not found
« Reply #6 on: September 13, 2018, 06:15:19 PM »
Check the repo contents

Mirrorlist here:

https://rpms.remirepo.net/

Typical contents here:

https://mirror.netweaver.uk/remi/enterprise/6/

Seems 5.6 is still there.

I'd guess you had a mirror issue.

Clean your yum repos and try again
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

[SOLVED] Re: software collections: PHP update mirrors not found
« Reply #7 on: September 19, 2018, 06:09:06 PM »
We ran the update again a day or two later, and the mirrors were found. All's well that ends well.
- Mark

Offline ReetP

  • *
  • 1,593
Re: software collections: PHP update mirrors not found
« Reply #8 on: September 20, 2018, 12:36:19 AM »
Good news !!

Glad it is all sorted.

Time for a :pint:

:-)
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation