Symptoms
The package ea-wappspector can fail to install if getcomposer.org is blocked on AlmaLinux, Ubuntu, or CloudLinux servers.
On AlmaLinux and CloudLinux servers you will see:
All settings correct for using Composer
Downloading…
The "https://getcomposer.org/versions" file could not be downloaded: Failed to open stream: Connection timed out
Retrying…
The "https://getcomposer.org/versions" file could not be downloaded: Failed to open stream: Connection timed out
Retrying…
The "https://getcomposer.org/versions" file could not be downloaded: Failed to open stream: Connection timed out
The download failed repeatedly, aborting.
Could not open input file: composer.phar
Could not open input file: composer.phar
Could not open input file: vendor/bin/phar-composer
wappspector installation complete!
Ubuntu servers:
All settings correct for using Composer
Downloading...
The "https://getcomposer.org/versions" file could not be downloaded: Failed to open stream: Connection timed out
Retrying...
The "https://getcomposer.org/versions" file could not be downloaded: Failed to open stream: Connection timed out
Retrying...
The "https://getcomposer.org/versions" file could not be downloaded: Failed to open stream: Connection timed out
The download failed repeatedly, aborting.
dpkg: error processing package ea-wappspector (--configure):
installed ea-wappspector package post-installation script subprocess returned error exit status 1
Description
The ea-wappspector package can fail to install if access to getcomposer.org is blocked.
We've opened an internal case for our development team to investigate this further. For reference, the case number is EA4-157. Follow this article to receive an email notification when a solution is published in the product.
Workaround
Make sure access to the IPv4 and IPv6 is not blocked on port 443:
# dig a +short getcomposer.org
54.39.182.210
# dig aaaa +short getcomposer.org
2607:5300:201:2100::6e1
Reinstall on AlmaLinux or CloudLinux:
dnf reinstall ea-wappspector
Reinstall on Ubuntu:
apt reinstall ea-wappspector