nasa / meza

Setup an enterprise MediaWiki server with simple commands
MIT License
18 stars 10 forks source link

Could not connect to mirror.centos.org error is always presented #57

Open bunnypranav opened 4 days ago

bunnypranav commented 4 days ago

Environment

Issue details

While running bash /opt/meza/src/scripts/getmeza.sh, I get an error saying Could not connect to mirror.centos.org. Internet Connection might be down. I am sure I have a working internet connection, tested using installing any package (eg. yum install git). Removing the checkInternetConnection() portion from getmeza.sh fixes the issue, but many errors are presented.

CentOS Configmanagement SIG - ansible-29                                                                                    0.0  B/s |   0  B     00:00
Errors during downloading metadata for repository 'centos-ansible-29':
  - Curl error (6): Couldn't resolve host name for http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=configmanagement-ansible-29 [Could not resolve host: mirrorlist.centos.org]
Error: Failed to download metadata for repo 'centos-ansible-29': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=configmanagement-ansible-29 [Could not resolve host: mirrorlist.centos.org]
CentOS Configmanagement SIG - ansible-29                                                                                    0.0  B/s |   0  B     00:00
Errors during downloading metadata for repository 'centos-ansible-29':
  - Curl error (6): Couldn't resolve host name for http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=configmanagement-ansible-29 [Could not resolve host: mirrorlist.centos.org]
Error: Failed to download metadata for repo 'centos-ansible-29': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=configmanagement-ansible-29 [Could not resolve host: mirrorlist.centos.org]
CentOS Configmanagement SIG - ansible-29                                                                                    0.0  B/s |   0  B     00:00
Errors during downloading metadata for repository 'centos-ansible-29':
  - Curl error (6): Couldn't resolve host name for http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=configmanagement-ansible-29 [Could not resolve host: mirrorlist.centos.org]
Error: Failed to download metadata for repo 'centos-ansible-29': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=configmanagement-ansible-29 [Could not resolve host: mirrorlist.centos.org]
CentOS Configmanagement SIG - ansible-29                                                                                    0.0  B/s |   0  B     00:00
Errors during downloading metadata for repository 'centos-ansible-29':
  - Curl error (6): Couldn't resolve host name for http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=configmanagement-ansible-29 [Could not resolve host: mirrorlist.centos.org]
Error: Failed to download metadata for repo 'centos-ansible-29': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=configmanagement-ansible-29 [Could not resolve host: mirrorlist.centos.org]
/usr/bin/python3 has not been configured as an alternative for python

With Centos 8 being gone, mirror will always be down, the code should be changed to reflect this Thanks!

revansx commented 4 days ago

Are you using the main branch? Does your version of getmeza.py have this commit: https://github.com/nasa/meza/commit/ba25a5df5f98b1911ca9e8c82d49915ec3837549

bunnypranav commented 4 days ago

I used these lines from the https://www.mediawiki.org/wiki/Meza/Install_on_existing_server

export MEZA_REPOSITORY_URL='https://github.com/nasa/meza.git'
export MEZA_BRANCH_NAME='39.x'
git clone --branch $MEZA_BRANCH_NAME $MEZA_REPOSITORY_URL /opt/meza
revansx commented 4 days ago

Apologies, that documentation is out-of-date. It's on my list of things to do to update the mw.o instructions.

Here's a link to a site where I have chronicled my notes on installing Meza onto a fresh new RL8 server: https://meza.wiki/meza

bunnypranav commented 1 day ago

Thanks, will definitely check it out.

bunnypranav commented 20 hours ago

Hi @revansx

I tried your documenttion, but am still getting an error. Below is a terminal output

[root@localhost meza]# git status
On branch main
Your branch is up to date with 'origin/main'.
nothing to commit, working tree clean
[root@localhost meza]# bash /opt/meza/src/scripts/getmeza.sh
Could not connect to mirrorlist.centos.org. Internet connection might be down. Retrying (#100) in 3 seconds...
Could not connect to mirrorlist.centos.org. Internet connection might be down. Retrying (#99) in 3 seconds...
Could not connect to mirrorlist.centos.org. Internet connection might be down. Retrying (#98) in 3 seconds...
^C
[root@localhost meza]#
revansx commented 20 hours ago

I'm sorry you're having issues.

Did you start over entirely with a fresh system?

I'm on holiday for another week, but plan to addresses this when I get back.

In the meantime, try installing git and ansible manually before running grtmeza.py

sudo dnf install git

sudo dnf install ansible

Then run getmeza.py

cowen23 commented 13 hours ago

FYI -

I ran into this error also back in July.

This is happening because the /meza/src/scripts/getmeza.sh is trying to ping mirrorlist.centos.org to verify the internet connection is good. However, the url mirrorlist.centos.org is no longer a valid website. See https://github.com/nasa/meza/blob/39.x/src/scripts/getmeza.sh#L22

I edited lines in the /meza/src/sripts/getmeza.sh on my system from: while [[ $pingRetries -gt 0 ]] && ! ping -c 1 -W 1 mirrorlist.centos.org >/dev/null 2>&1; do echo "Could not connect to mirrorlist.centos.org. Internet connection might be down. Retrying (#$pingRetries) in $sleepDuration seconds..." to: while [[ $pingRetries -gt 0 ]] && ! ping -c 1 -W 1 cdn.redhat.com >/dev/null 2>&1; do echo "Could not connect to cdn.redhat.com. Internet connection might be down. Retrying (#$pingRetries) in $sleepDuration seconds..."

Then it runs fine.

Respectfully, Carolyn R. Owen Systems Administrator IV AEGIS 228.688.2526 @.**@.>

From: Rich Evans @.> Sent: Thursday, October 31, 2024 1:18 AM To: nasa/meza @.> Cc: Subscribed @.***> Subject: [EXTERNAL] [BULK] Re: [nasa/meza] Could not connect to mirror.centos.org error is always presented (Issue #57)

CAUTION: This email originated from outside of NASA. Please take care when clicking links or opening attachments. Use the "Report Message" button to report suspicious messages to the NASA SOC.

I'm sorry you're having issues.

Did you start over entirely with a fresh system?

I'm on holiday for another week, but plan to addresses this when I get back.

In the meantime, try installing git and ansible manually before running grtmeza.py

sudo dnf install git

sudo dnf install ansible

Then run getmeza.py

- Reply to this email directly, view it on GitHubhttps://github.com/nasa/meza/issues/57#issuecomment-2449078052, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABU5B7NP36UPBCHBAPEZEN3Z6HDRZAVCNFSM6AAAAABQVVXNMGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBZGA3TQMBVGI. You are receiving this because you are subscribed to this thread.Message ID: @.**@.>>