jenkins 报错fatal:could not read Username for ‘XXX‘:No such device or address

这篇具有很好参考价值的文章主要介绍了jenkins 报错fatal:could not read Username for ‘XXX‘:No such device or address。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

#原因:机器做迁移,或者断电,遇到突发情况
#解决:
一.排查HOME和USER环境变量
可以在项目执行shell脚本的时候echo $HOME和USER
也可以在构建记录位置点击compare environment 对比两次构建的环境变量
二.查看指定节点的git凭证
查看家目录下cat .git*
三.重启jenkins salve节点(按此方法解决)
四.在项目执行shell脚本的时候强行指定HOME和USER文章来源地址https://www.toymoban.com/news/detail-701913.html

到了这里,关于jenkins 报错fatal:could not read Username for ‘XXX‘:No such device or address的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • 解决报错:No converter for [xxx] with preset Content-Type ‘null‘和Could not find acceptable representation

    报错如下:    从表面上看:似乎是因为没有序列号转换工具converter的原因,但是springboot实际已经自带jackson序列号转换工具(在spring-boot-starter-web/spring-boot-starter-json包下)。  所以明显不是这个原因。那么真正的原因是什么? 实际上,报这个异常跟序列化的原理有关,不论

    2024年02月11日
    浏览(32)
  • git报错:Permission denied (publickey). fatal: Could not read from remote repository.

    背景 :由于新换了电脑,新装了git,所以在用git拉取代码的时候就出现了标题一样的错误 ternimal下出现下面错误: Permissiondenied (publickey). fatal:Could not read from remote repository. Pleasemake sure you have the correct access rights and the repository exists. 分析原因 : 原因是由于你在本地(或者服务

    2024年02月05日
    浏览(38)
  • git克隆报错:Permission denied (publickey).fatal: Could not read from remote repository解决办法

    Permission denied (publickey).fatal: Could not read from remote repository 1、问题解决首先参考文章 例如:缺少公钥解决办法 2、生成公钥报错 ssh-keygen -t rsa -C ‘邮箱’ 生成公钥时,报错如下: 解决办法: 需要换到C盘的C:UsersASUS.ssh目录下,再右键Git Bash Here 输入命令: ssh-keygen -t rsa -C \\\'

    2024年02月04日
    浏览(45)
  • Git 报错:Connection closed by remote host. fatal: Could not read from remote repository.

    1、背景: 今天部署到GitHub时,出现此错误。昨天还正常,今天突然这样。 2、详细错误信息: 3、解析错误信息: 错误信息翻译成中文后: 通过以上可知: 系统连接不到GitHub,因此无法用SSH密钥进行识别。 ---- 说明是网络问题。 4、实践探索 - 解决过程: 出现错误的时候,

    2024年02月07日
    浏览(87)
  • git clone 报错fatal: could not create work tree dir ‘xxx’: Permission denied

    新的电脑进行环境配置,下载git,今天去GitHub拉取新的项目就出现上面的错误,进行一个记录。 当时我是执行命令git克隆出现以下报错截图    最开始我将错误截图进行搜索,错误原因大概是:“The error message you received, \\\"fatal: could not create work tree dir \\\'RoyalSecurity\\\': Permission de

    2024年02月07日
    浏览(52)
  • [git]报错fatal: ‘origin‘ does not appear to be a git repository Could not read from remote repository

    问题1:   fatal: \\\'origin\\\' does not appear to be a git repository fatal: Could not read from remote repository. 说明库是有的,但是没办法push。所以重新关联一下。 解决方法: 输入以下代码, 这是因为本地的分支没有和远程分支建立联系,需要执行以下代码就可以正常 push 了   问题2:   fatal:

    2024年02月09日
    浏览(37)
  • @Autowired报错Could not autowire. No beans of ‘XXX‘ type found

      IDEA中使用 @Autowired 报错 Could not autowire. No beans of \\\'XXX\\\' type found ,错误大致意思为:没有匹配到类型为XXX的bean。   个人觉得,注入 controller 的 service 虽然一般来说我们都是注入一个接口,但是该接口有实现类,并且使用 @Service 进行关联,所以注入类型应该也可以视为一

    2024年02月07日
    浏览(35)
  • VUE报错解决Could not find a declaration file for module ‘xxx‘.

    Github上下载的代码,导入后出现以下报错。    错误代码 Could not find a declaration file for module \\\'element-plus/dist/locale/zh-cn.mjs\\\'. \\\'c:/Users/Lenovo/typescript/hotel/hotel-system-web-main/node_modules/element-plus/dist/locale/zh-cn.mjs\\\' implicitly has an \\\'any\\\' type. If the \\\'element-plus\\\' package actually exposes this module, try ad

    2024年02月12日
    浏览(35)
  • 解决SpringBoot项目中的报错:Could not autowire,no beans of “XXX“ type found

    问题:找不到mapper注入的bean,如图   分析:注入mapper有两种方式:  第一种:在启动类中添加  @MapperScan        然后在mapper的类中添加  @Repository 注解 第二种方法:直接在各个mapper类中添加@Mapper注解,但是一定要注意导入正确的包,否则解决不了这个异常;  很多新手

    2024年02月08日
    浏览(40)
  • git 解决 “fatal: Could not read from remote repository.“

    现象 在使用Git将本地仓库推送到远程仓库的时候,发生了如下错误:“fatal: Could not read from remote repository.”   原因 出现这错误一般是以下两种原因: 客户端与服务端未生成 ssh key 客户端与服务端的ssh key不匹配 为解决以上问题,我们需要重新生成一次ssh key ,并重新配置一

    2024年02月09日
    浏览(32)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包