몇달전부터 IDC의 모든장비에서 yum update가 안되고 있습니다.
오류 메시지는 아래와 같습니다.
dns 오류인가 해서, /etc/resolv.conf도 바꿔보고
/etc/yum.repos.d/CentOS-Base.repo의 baseurl 등도 바꿔봤는데
Openration too slow는 동일 합니다.
어떤 이유인지 원인을 몰라서 질문 드립니다.
===
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=extras&infra=stock error was
12: Timeout on http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=extras&infra=stock: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds')
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=updates&infra=stock error was
12: Timeout on http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=updates&infra=stock: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds')
* epel: mirror01.idc.hinet.net
* extras: ftp.daumkakao.com
* remi-safe: mirror.innosol.asia
* updates: ftp.daumkakao.com
http://ftp.daum.net/centos/6/os/x86_64/repodata/repomd.xml: [Errno 12] Timeout on http://ftp.daum.net/centos/6/os/x86_64/repodata/repomd.xml: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds')
Trying other mirror.
===
OUT 80¹ø Æ÷Æ® ¿ÀÇ ¿©ºÎ Å×½ºÆ®
# curl -iv http://ftp.daum.net
* About to connect() to ftp.daum.net port 80 (#0)
* Trying 113.29.189.165...
* Connected to ftp.daum.net (113.29.189.165) port 80 (#0)
curl -iv http://ftp.daum.net
* About to connect() to ftp.daum.net port 80 (#0)
* Trying 113.29.189.165... connected
* Connected to ftp.daum.net (113.29.189.165) port 80 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.21 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> Host: ftp.daum.net
> Accept: */*
>
< HTTP/1.1 302 Found
HTTP/1.1 302 Found
< Date: Thu, 25 May 2017 06:37:44 GMT
Date: Thu, 25 May 2017 06:37:44 GMT
< Server: TS5K
Server: TS5K
< Location: http://ftp.daumkakao.com/
Location: http://ftp.daumkakao.com/
< Cache-Control: max-age=3600
Cache-Control: max-age=3600
< Expires: Thu, 25 May 2017 07:37:44 GMT
Expires: Thu, 25 May 2017 07:37:44 GMT
< Content-Length: 209
Content-Length: 209
< Content-Type: text/html; charset=iso-8859-1
Content-Type: text/html; charset=iso-8859-1
< Age: 5
Age: 5
< Connection: keep-alive
Connection: keep-alive
<
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="http://ftp.daumkakao.com/">here</a>.</p>
</body></html>
* Connection #0 to host ftp.daum.net left intact
* Closing connection #0
curl -iv 'http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=updates&infra=stock'
* About to connect() to mirrorlist.centos.org port 80 (#0)
* Trying 212.69.166.138... connected
* Connected to mirrorlist.centos.org (212.69.166.138) port 80 (#0)
> GET /?release=6&arch=x86_64&repo=updates&infra=stock HTTP/1.1
...
Server: PasteWSGIServer/0.5 Python/2.7.5
...
http://ftp.kaist.ac.kr/CentOS/6.9/updates/x86_64/
http://ftp.daumkakao.com/centos/6.9/updates/x86_64/
...
# curl -iv 'http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=updates&infra=stock'
* About to connect() to mirrorlist.centos.org port 80 (#0)
* Trying 85.236.43.108... connected
* Connected to mirrorlist.centos.org (85.236.43.108) port 80 (#0)
> GET /?release=6&arch=x86_64&repo=updates&infra=stock HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.21 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> Host: mirrorlist.centos.org
> Accept: */*
>
< HTTP/1.1 200 OK
HTTP/1.1 200 OK
< Date: Thu, 25 May 2017 07:08:59 GMT
Date: Thu, 25 May 2017 07:08:59 GMT
< Server: PasteWSGIServer/0.5 Python/2.7.5
Server: PasteWSGIServer/0.5 Python/2.7.5
< Content-Length: 569
Content-Length: 569
< Content-Type: text/plain; charset=UTF-8
Content-Type: text/plain; charset=UTF-8
<
http://ftp.kaist.ac.kr/CentOS/6.9/updates/x86_64/
http://ftp.daumkakao.com/centos/6.9/updates/x86_64/
http://centos.mirror.cdnetworks.com/6.9/updates/x86_64/
http://ftp.neowiz.com/centos/6.9/updates/x86_64/
http://mirror.navercorp.com/centos/6.9/updates/x86_64/
http://data.nicehosting.co.kr/os/CentOS/6.9/updates/x86_64/
http://mirror.oasis.onnetcorp.com/centos/6.9/updates/x86_64/
http://ftp.jaist.ac.jp/pub/Linux/CentOS/6.9/updates/x86_64/
http://ftp.iij.ad.jp/pub/linux/centos/6.9/updates/x86_64/
http://ftp.yz.yamagata-u.ac.jp/pub/linux/centos/6.9/updates/x86_64/
* Connection #0 to host mirrorlist.centos.org left intact
8.8.8.8 Çΰ¡³ª¿ä À̺κиÕÀú üũÇÏ´Â°Ô ÁÁ½À´Ï´Ù.
ping Àß ³ª°¡°í ÀÖ±¸¿ä.
ÇÏ°í Çѹø Çغ¸½ÃÁÒ?
ÀúÈñ´Â 7.2 Àε¥,,,daumkakao °¡ °É¸®´Â °æ¿ì°¡ Á» µå¹°´øµ¥...
¿¡½º¿ø °üÁ¦¼ ½ÃÅ¥¾ÆÀÌ UTM Â÷´Ü Çß´Ù°í ÇÕ´Ï´Ù.
Åнâ.
¿Ö??? yumÀ» Â÷´Ü??? -..-..
Â÷´Ü Ç®¾ú½À´Ï´Ù.
°°Àº ÁÖ¼Ò¶óµµ User-Agent µî ¿¡ µû¶ó Â÷´ÜÇß³ª º¸³×¿ä. ^^
Ç®¾ú´Ù´Âµ¥ ¹¹°¡ ¶Ç ¹®Á¦ÀÎÁö.
UTM °üÁ¦ ¼¾ÅÍ¿¡ ¾Æ·¡ 2°³ ½ÇÇà °á°ú¸¦ ¾Ë·ÁÁÖ°í, UserAgent ¿¡¼ 'urlgrabber' ³ª 'yum' ´Ü¾î ÇÊÅ͸µÀ» »èÁ¦ÇØÇØ´Þ¶ó°í ÇÏ¸é µÇ°Ú³×¿ä.
# curl -iv --user-agent 'IE' 'http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=updates&infra=stock'
-> Àß ¿¸²
# curl -iv --user-agent 'urlgrabber/3.9.1 yum/3.2.29' 'http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=updates&infra=stock'
-> ¸ØÃç¹ö¸²
patch¸¦ patch¶ó ºÎ¸£Áö ¸øÇÏ´ø ½½ÇÄÀÌ ÇØ°á 됬½À´Ï´Ù.
À§ ´ñ±Û Áß
¿Ï·á°¡ µÈ°ÍÀÎÁö Àß ¸ð¸£°Ú½À´Ï´Ù
mirror.centos.org¿¡ telnet, ftp, http¿Í °°Àº ±âº» agent¸¸ Çã¿ëÇÏ°í
yum¿¡ ÇÊ¿äÇÑ urlgrabber µîÀÇ ±âº» agent¸¦ ¸ðµÎ Â÷´ÜÇÏ°í ÀÖ¾ú´ø °Í ÀÔ´Ï´Ù.
ÇØ°á ¹æ¹ýÀº UTM Â÷´Ü ·Î±×¸¦ º¸°í ¸®½ºÆ®¸¦ ¼öÁ¤Çß´ø °Í ÀÔ´Ï´Ù.
===
# curl -iv --user-agent 'IE' 'http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=updates&infra=stock'
-> Àß ¿¸²
# curl -iv --user-agent 'urlgrabber/3.9.1 yum/3.2.29' 'http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=updates&infra=stock'
-> ¸ØÃç¹ö¸²
´ã¿¡ À¯»ç Áõ»ó½Ã À¯¿ëÇϰڳ׿ä