Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

PHP Release RPM %postinstall stuck trying to reach unrouteable address

User_FE0Z5Jul 1 2020 — edited Jul 9 2020

YUM has to be interrupted while concluding the transaction for installation of oracle-php-release-el7-1.0-4.el7.x86_64

This is unsurprising, once you look at the first line of its %postinstall scriptlet:

if curl -sf -H "Authorization: Bearer Oracle" http://169.254.169.254/opc/v2/instance/id | grep '403\|404' > /dev/null; then

The subsequent lines at least time themselves out, but... what gives?  "Why in the world is this trying to reach an automatic private address in the first place," would be my question, except that I can imagine someone is using this as a "clever," albeit inappropriate, way to reach something local.  So instead, my question is: "why is this written in a way which hangs YUM?"

This post has been answered by Avi Miller-Oracle on Jul 2 2020
Jump to Answer
Comments
Post Details
Added on Jul 1 2020
4 comments
480 views