开发者社区> 自娱> 正文

[jenkins]Can’t connect to window server – not enough permissions

简介:
+关注继续查看
遇到了如标题所示的问题,产生原因如下 

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地址即可

版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。

相关文章
SQL Agent Job 报“Access to the remote server is denied because the current security context is not trusted”
SQL Server 2005(Microsoft SQL Server 2005 - 9.00.5000.00)下的一个作业执行一个存储过程,存储过程中动态SQL语句使用链接服务器(Linked Servers),从另外一台SQL Server服务器获取数据。
1129 0
zabbix server is not running: the information displayed may not be current
<p><br></p> <p><br></p> <p>解决:</p> <p>http://blog.csdn.net/u010098331/article/details/50787771<br></p> <p>然后就可以了:</p> <p><img src="https://p.qlogo.cn/qqmail_head/wHnrU28rKHExJ1LF5Ag4b9FSV504u
1901 0
You don't have permission to access /nagios/ on this server
<p><span style="font-size:18px"> <span style="white-space:pre"> </span>You don't have permission to access /nagios/ on this server </span></p> <p><span style="font-size:18px"><br></span></p> <p>
4131 0
+关注
自娱
阿里巴巴无线客户端性能与安全负责人 Gradle中文文档作者
文章
问答
文章排行榜
最热
最新
相关电子书
更多
Scaling Through Simplicity: How a 300 million user chat app reduced data engineering efforts by 70%
立即下载
Scaling Spark applications by connecting code to resource consumption
立即下载
Glint:An Asynchronous Parameter Server for Spark
立即下载