1. 程式人生 > >socket.gaierror Errno -3 Temporary failure in name resolution

socket.gaierror Errno -3 Temporary failure in name resolution

同事在安裝deepgreendb.16.18.rh6.x86_64.170706的時候執行到如下兩步出現錯誤: source /home/gpadmin/deepgreendb/greenplum_path.sh gpssh-exkeys -f /home/gpadmin/hostlist 報錯: Traceback (most recent call last):   File "/home/gpadmin/deepgreendb/bin/gpssh-exkeys", line 509, in <module>     (primary, aliases, ipaddrs) = socket.gethostbyaddr(hostname) socket.gaierror: [Errno -3] Temporary failure in name resolution 【ps:此時通過ssh是可以在兩個節點之間互相轉換的】 很明顯是兩個節點建立互信的時候出現無法識別hostname導致的,一般來說出現類似的問題先去找兩個檔案: /etc/hosts /etc/sysconfig/network 另外不同的軟體在安裝的時候可能會建立一些hosts相關的檔案,例如deepgreen會在/home/gpadmin/下建立一個hostlist檔案,也要保證此類檔案內容和格式正確。 最後發現其中一個節點的主機名後面多出來了一些字尾,刪除後,重新執行指令碼,執行成功

相關推薦

socket.gaierror Errno -3 Temporary failure in name resolution

同事在安裝deepgreendb.16.18.rh6.x86_64.170706的時候執行到如下兩步出現錯誤: source /home/gpadmin/deepgreendb/greenplum_path.sh gpssh-exkeys -f /home/gpadmin/

在安裝python的pip工具時,遇到以下報錯[Errno -3] Temporary failure in name resolution',)': /simple/pip/

c/apt# pip2 install -U pip Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip

ssh: Could not resolve hostname git.*****-inc.com : Temporary failure in name resolution fatal: The remote end hung up unexpectedly

配置 soft mic target clas 無法執行 ssh pull 開發   問題出現的情景:使用git pull拉取開發的代碼到測試服務器,報錯:   ssh: Could not resolve hostname git.****-inc.com : Tempo

mycat啟動報錯UnknownHostException(Temporary failure in name resolution)解決方法

temporary exc ava ora wrap 命令 temp lex PE 重啟命令 ./mycat restart 查看日誌 cd logs tail -f wrapper.log 報錯信息 INFO | jvm 2 | 2018/05/09 11:28

CentOS Kafka 啟動失敗 - java.net.UnknownHostException: maven: maven: Temporary failure in name resolution

tex problems lur .net start ble failure ora 指定 CentOS7 下啟動 Kafka的時候失敗了,報異常: java.net.UnknownHostException: maven: maven: Temporary failur

運行ntpdate報錯:Temporary failure in name resolution

使用 問題 -s dns fail 解決 分鐘 方法 span 發現問題:   忽然發現某臺機器時間慢了些幾分鐘,之前沒有搭建ntpd服務,目前都是使用的ntpdate加定時任務進行時間同步。直接執行ntpdate報錯如下: # ntpdate cn.pool.ntp

SpringBoot之解決雲伺服器VPS在所處雲端叢集的內網不能解析域名的問題:java.net.UnknownHostException:abc.cn: Temporary failure in name resolution

一、起因與原因分析過程   前端同學告訴我,說伺服器崩了。   請求資料介面,介面有響應,但報的json提示指向:資料庫異常錯誤。   遂登陸雲主機檢視日誌,核心記錄顯示如下: 2018-11-09 22:15:53.824 ERROR 26088 --- [ main]

SpringBoot之解決雲服務器VPS在所處雲端集群的內網不能解析域名的問題:java.net.UnknownHostException:abc.cn: Temporary failure in name resolution

col rap hiberna nbsp exe 網卡配置文件 3.2 baidu .get 一、起因與原因分析過程   前端同學告訴我,說服務器崩了。   請求數據接口,接口有響應,但報的json提示指向:數據庫異常錯誤。   遂登陸雲主機查看日誌,核心記錄顯示如下:

阿里雲SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution

如果是阿里雲的伺服器 SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution 出現以上提示 並且你的伺服器有若干漏洞 並且安騎士模組中 屬於離線

wget下載出現failed: Temporary failure in name resolution錯誤的解決方法

用vi開啟/etc/resolv.conf,發現裡面是空的。於是聯絡服務商,幸好有線上客服,立刻要我發SSH的使用者名稱與密碼,片刻之後回答我說搞定了。在此用vi開啟/etc/resolv.conf發現裡面多了兩行: nameserver   8.8.8.8 將上面

IP address could not be resolved: Temporary failure in name resolution

這個警告不會影響資料庫的訪問,但是當有大量的這種日誌產生的時候,資料庫之前的錯誤資訊 就會很難去查詢了。連線數越多,產生報警日誌的頻率越高。資料庫的alert.log中,我們經常會出現下面的警告:IP address '172.16.12.195' could not be

ssh: Could not resolve hostname you: Temporary failure in name resolution

今天在 start-all.sh 啟動 Hadoop 時出現了很多這樣的異常資訊:  “ssh: Could not resolve hostname you: Temporary failure in name resolution” 解決辦法:在 /etc/prof

ssh: Could not resolve hostname host: Temporary failure in name resolution

ssh: Could not resolve hostname host: Temporary failure in name resolution 無法解析域名,即DNS解析配置出現問題。可以對/e

Temporary failure in name resolution

查閱資料後發現是dns解析問題 sudo vim /etc/resolv.conf #nameserver 119.29.29.2

問題:(爬蟲)使用jsonpath報錯requests.exceptions.ConnectionError: [Errno -3] Temporary failure...

想要獲取拉鉤網站上的地區的內容,並且配好了headers 報錯內容如下: requests.exceptions.ConnectionError: HTTPConnectionPool(host='www.lagou.com', port=80): Max retries exceeded

Temporary failure in name resolutionf的解決方法

rar color ros ria 報錯 robot ebo 折騰 onf Linux有時還蠻煩的這個不能用那個不能用,只能多折騰了。 今天又是,ping z.cn的時候直接報錯 Temporary failure in name resolutionf 這個一般都知道是

scrapy爬蟲報錯“Temporaty failure in name resolution

原因不明,根據一個帖子,進行了如下修改後,仍未解決該問題: $ vim /etc/resolv.conf然後修改檔案中的nameserver 該方法無效。 後連線vpn後再次執行該爬蟲,就不報這個錯誤了。 而是報錯: $ apt-get update $

python學習--for Mac 問題解決:socket.gaierror: [Errno -2] Name or service not known

在Mac電腦上利用bottle搭建簡單web伺服器,以實現mac版本的網路除錯助手。 主程式從csdn下載,下載地址為:http://download.csdn.net/detail/yuanhuamanjing/9383142,推測為win執行環境。除錯後的伺服器程式main.py

Python學習:socket.gaierror: [Errno -8]

tro 啟動 socket error color strong 利用 body erro 在終端內打開python模式,利用如下代碼查詢本機hostname,這裏舉例為“xxMacBookPro.local”: import socket socket.gethostn

解決socket.error: [Errno 98] Address already in use問題

一、基本設定 如果python中socket 繫結的地址正在使用,往往會出現錯誤, 在linux下:             則會顯示“ socket.error: [Errno 98] Address already in use” 在windows下: