Error: “/usr/local/cpanel/bin/python-packman” reported error code “1” when it ended:
Upgrading to php 8.1 gives following error in cPanel, ran bunch of command as mentioned in the other posts, didn't help. It is centOS 7 server. Anything else to try?
I've already opened ticket.
Error: “/usr/local/cpanel/bin/python-packman” reported error code “1” when it ended: Traceback (most recent call last): File "/usr/local/cpanel/bin/packman_get_info_json", line 16, in packman.init_yum() File "/usr/local/cpanel/bin/packman_lib/yum_impl.py", line 78, in init_yum yb.repos.populateSack() File "/usr/lib/python2.7/site-packages/yum/repos.py", line 347, in populateSack self.doSetup() File "/usr/lib/python2.7/site-packages/yum/repos.py", line 157, in doSetup self.retrieveAllMD() File "/usr/lib/python2.7/site-packages/yum/repos.py", line 88, in retrieveAllMD dl = repo._async and repo._commonLoadRepoXML(repo) File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 1482, in _commonLoadRepoXML result = self._getFileRepoXML(local, text) File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 1259, in _getFileRepoXML size=102400) # setting max size as 100K File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 1042, in _getFile raise e yum.Errors.NoMoreMirrorsRepoError: failure: repodata/repomd.xml from OVH-rtm: [Errno 256] No more mirrors to try. https://last-public-ovh-rtm.snap.mirrors.ovh.net/centos/7/x86_64/Packages/repodata/repomd.xml: [Errno 14] HTTPS Error 500 - Internal Server Error w/ /usr/local/cpanel/bin/packman_get_info_json ea-php81-php-fpm Often errors like this can be resolved by running `yum makecache`
/scripts/findphpversion
-bash: /scripts/findphpversion: No such file or directory
# /usr/local/cpanel/bin/python-packman
Python 2.7.5 (default, Jun 28 2022, 15:30:04)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
# yum makecache
Loaded plugins: fastestmirror, universal-hooks
Loading mirror speeds from cached hostfile
epel/x86_64/metalink | 26 kB 00:00:00
* EA4: 185.125.185.32
* cpanel-addons-production-feed: 185.125.185.32
* cpanel-plugins: 185.125.185.32
* centos-sclo-rh: centos.mirror.vexxhost.com
* centos-sclo-sclo: centos.mirror.vexxhost.com
* epel: mirror.xenyth.net
* nux-dextop: mirror.li.nux.ro
* remi: muug.ca
* remi-safe: muug.ca
* rpmfusion-free-updates: mirror.math.princeton.edu
EA4 | 2.9 kB 00:00:00
cpanel-addons-production-feed | 2.9 kB 00:00:00
cpanel-plugins | 2.9 kB 00:00:00
OVH-metrics/7/x86_64/signature | 833 B 00:00:00
OVH-metrics/7/x86_64/signature | 2.9 kB 00:00:00 !!!
https://last-public-ovh-rtm.snap.mirrors.ovh.net/centos/7/x86_64/Packages/repodata/repomd.xml: [Errno 14] HTTPS Error 500 - Internal Server Error
Trying other mirror.
One of the configured repositories failed (OVH RTM repo),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Run the command with the repository temporarily disabled
yum --disablerepo=OVH-rtm ...
4. Disable the repository permanently, so yum won't use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:
yum-config-manager --disable OVH-rtm
or
subscription-manager repos --disable=OVH-rtm
5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=OVH-rtm.skip_if_unavailable=true
failure: repodata/repomd.xml from OVH-rtm: [Errno 256] No more mirrors to try.
https://last-public-ovh-rtm.snap.mirrors.ovh.net/centos/7/x86_64/Packages/repodata/repomd.xml: [Errno 14] HTTPS Error 500 - Internal Server Error
-
Hey there! You mentioned you have already opened a ticket - can you post that number here so I can follow along?
0 -
I'm encountering the same problem. How was this resolved? Thank you!
0 -
I don't see that it was as the user never posted that ticket number so I wasn't able to follow along and track down the issue.
If you're still seeing that issue today, it would be best to create a ticket.
0 -
Update
There was no solution found and it was easier for me to move to new server than fixing the mess. Didn't have time to investigate further to pinpoint who is the culprit, cPanel/OVH/Repo or whatever?
It was a total nightmare to fix that issue so I dumped entire CentOS 7 server and moved to a new AL9 server.
1 -
Not to kick dead horses, but you may fix this by cleaning out rpm database. The situation is going to be caused by a python update being available, but not able to be downloaded or installed. Typically this is because your yum database is broken and needs to be rebuilt.
In order to minimize the risk, make sure you create a backup of files in/var/lib/rpm/
usingcp
command:mkdir /root/backups.rpm.mm_dd_yyyy/ cp -avr /var/lib/rpm/ /root/backups.rpm.mm_dd_yyyy/
Then try this to fix this problem:
# rm -f /var/lib/rpm/__db* # db_verify /var/lib/rpm/Packages # rpm --rebuilddb # yum clean all
And finally verify that error has gone with the following yum command
# yum update
0
Please sign in to leave a comment.
Comments
5 comments