[jenkins]Can’t connect to window server – not enough permissions
遇到了如標題所示的問題,產生原因如下
A機器為master更改IP地址
B機器為slave斷電
原本B連結A沒有任何問題,斷電後再次連結一直報標題所示錯誤
剛開始以為是slave問題,檢視slave日誌如下:
檢視問題不清楚問題所在,然後考慮master日誌如下:
檢視問題因為jenkins沒有操作目錄許可權所致,但是我的jenkins服務是用root許可權使用者啟動的,檢視目錄許可權也沒有問題,然後就卡住了,不知道什麼問題。
經過同事的幫助,才知道是因為jenkins workspace目錄被鎖死,我備份了jenkins,利用backup外掛,然後刪除目錄,在啟動jenkins發現slave終於能連線上master了,多謝同事啊。都是經驗啊。
另外由於master的ip進行了更改,剛開始的時候slave提示的連結總是老的IP地址,這個修改時在系統管理-系統設定-Jenkins Location-JenkinsURL修改到現在的IP地址即可
A機器為master更改IP地址
B機器為slave斷電
原本B連結A沒有任何問題,斷電後再次連結一直報標題所示錯誤
剛開始以為是slave問題,檢視slave日誌如下:
Caused by: hudson.remoting.RequestAbortedException:
java.io.IOException: Unexpected termination of the channel
at hudson.remoting.Request.abort(Request.java:273)
at hudson.remoting.Channel.terminate(Channel.java:732)
at hudson.remoting.Channel$ReaderThread.run(Channel.java:1117)
Caused by: java.io.IOException: Unexpected termination of the channel
at hudson.remoting.Channel$ReaderThread.run(Channel.java:1093)
Caused by: java.io.EOFException
at java.io.ObjectInputStream
$BlockDataInputStream.peekByte(ObjectInputStream.java:2498)
at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1273)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:
348)
at hudson.remoting.Channel$ReaderThread.run(Channel.java:1087)
檢視問題不清楚問題所在,然後考慮master日誌如下:
Can’t connect to window server – not enough permissions
檢視問題因為jenkins沒有操作目錄許可權所致,但是我的jenkins服務是用root許可權使用者啟動的,檢視目錄許可權也沒有問題,然後就卡住了,不知道什麼問題。
經過同事的幫助,才知道是因為jenkins workspace目錄被鎖死,我備份了jenkins,利用backup外掛,然後刪除目錄,在啟動jenkins發現slave終於能連線上master了,多謝同事啊。都是經驗啊。
另外由於master的ip進行了更改,剛開始的時候slave提示的連結總是老的IP地址,這個修改時在系統管理-系統設定-Jenkins Location-JenkinsURL修改到現在的IP地址即可
相關文章
- MySQL 2003 - Can’t connect to MySQL server on (10060)MySqlServer
- Can't Connect to MySQL Server on IP Address (10061) 錯誤的解決方案MySqlServer
- Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock錯誤MySqlServer
- SQL Server 建立使用者賦權報錯之Permissions at the server scope canSQLServer
- Error:Can't connect to SOCKS proxy:Connection refused (Connection refused)Error
- Navicat 連線 MySQL 失敗:2002-can‘t connect to server on localhost(10061)問題解決MySqlServerlocalhost
- DELL R900伺服器上基於REDHAT 4.6安裝oracle中碰到的Can't connect to X11 window server using 'localhost:0.0'伺服器RedhatOracleServerlocalhost
- mysql 啟動報錯Can't connect to local MySQL server through socket '/data/mysql/mysql/mysql.sock'(111)MySqlServer
- [mac pip錯誤]Can't connect to HTTPS URL because the SSL module is not availableMacHTTPAI
- linux下連線mysql報錯ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/var/lib/mysqLinuxMySqlErrorServer
- 使用雲伺服器配置MariaDB環境,Navicat遠端連線一直出錯誤程式碼 "2002 - Can't connect to server on '' (10060)"伺服器Server
- You don't have write permissions for the /usr/bin directory.
- TypeError: can‘t concat str to bytesError
- Can't open file: (errno: 24)
- Host 'localhost' is not allowed to connect to this MySQL serverlocalhostMySqlServer
- “Host ‘xxxx‘ is not allowed to connect to this MySQL server“MySqlServer
- 116 svn連線提示can't connect to the host'***':由於目標機積極拒絕,無法連線。
- Supervisor 解決 can't find command *
- Mongoose can't update timestampGo
- Host 'xxx' is not allowed to connect to this MySQL server.MySqlServer
- psql: error: could not connect to server: No such file or directorySQLErrorServer
- eslint --fix 報錯 can't not find modulesEsLint
- mysql遇到Variable can’t be set to the value of ‘NULL’MySqlNull
- Can't load IA 32-bit .dll on a
- multiprocessing pool AttributeError: Can't get attribute 'func'Error
- MySQL-1130-host ... is not allowed to connect to this MySql serverMySqlServer
- Python——UnicodeEncodeError: 'ascii' codec can't encode/decode charactersPythonUnicodeErrorASCII
- redis : Can't save in background: fork: Cannot allocate memoryRedis
- Host 'xxx' is not allowed to connect to this MySQL server 解決方法MySqlServer
- FILESTREAM feature can't be enabled if you use cluster shared volumes
- WIN配置git 配置後失敗 can't be establishedGit
- Python報錯:UnicodeDecodeError: 'gbk' codec can't decode byte ...PythonUnicodeError
- Mysql:Variable 'XXXt' can't be set to the value of 'NULL'解決MySqlNull
- You can‘t specify target table ‘Person‘ for update in FROM clause
- 完美解決stack Error: Can‘t find Python executable “python“, you can set the PYTHON env variable.ErrorPython
- jenkins自動構建前端專案(window,vue)Jenkins前端Vue
- Window server 2016 搭建Java Web環境ServerJavaWeb
- Fatal error: can't check configuration file '/home/watt/proxy/dError
- 解決ERROR 1231 (42000): Variable 'time_zone' can'tError