[{"data":1,"prerenderedAt":175},["ShallowReactive",2],{"\u002F2024-02-19-jenkins-problems":3},{"id":4,"title":5,"body":6,"date":161,"description":12,"extension":162,"meta":163,"navigation":169,"path":170,"seo":171,"stem":172,"tags":173,"__hash__":174},"blogs\u002F_legacy\u002F2024\u002F2024-02-19-jenkins-problems.md","Jenkins使用时的问题记录",{"type":7,"value":8,"toc":157},"minimark",[9,13,17,20,26,37,40,64,67,70,73,114,123,153],[10,11,12],"p",{},"有个Jenkins挂在服务器上好久没动过了，年后上去看了下发现居然完全挂掉了。",[14,15,16],"h2",{"id":16},"空间不足",[10,18,19],{},"还没搞清楚问题前，Jenkins就完全访问不了了，直接在命令行拉起服务，提示",[21,22,23],"blockquote",{},[10,24,25],{},"Jenkins failed to create a temporary file in \u002Ftmp: java.io.IOException: No space left on device",[10,27,28,29,36],{},"搜索了下发现是空间不足了，可以参考",[30,31,35],"a",{"href":32,"rel":33},"https:\u002F\u002Fdocs.cloudbees.com\u002Fdocs\u002Fcloudbees-ci-kb\u002Flatest\u002Fbest-practices\u002Fdeleting-old-builds-best-strategy-for-cleanup-and-disk-space-management",[34],"nofollow","这里","的操作",[10,38,39],{},"由于我这边已经连服务都拉不起来了，只能手动删除一些缓存",[41,42,47],"pre",{"className":43,"code":44,"language":45,"meta":46,"style":46},"language-shell shiki shiki-themes github-light-high-contrast github-dark monokai","cd \u002Fvar\u002Flib\u002Fjenkins\u002Fjobs\u002Fmy_awsome_job\u002F\nrm -r builds\u002F\n","shell","",[48,49,50,58],"code",{"__ignoreMap":46},[51,52,55],"span",{"class":53,"line":54},"line",1,[51,56,57],{},"cd \u002Fvar\u002Flib\u002Fjenkins\u002Fjobs\u002Fmy_awsome_job\u002F\n",[51,59,61],{"class":53,"line":60},2,[51,62,63],{},"rm -r builds\u002F\n",[10,65,66],{},"然后就可以拉起Jenkins了，按照上面的文章配置了下自动清除，后续观察下有没有问题。",[14,68,69],{"id":69},"升级失败",[10,71,72],{},"出现错误：",[41,74,78],{"className":75,"code":76,"language":77,"meta":46,"style":46},"language-log shiki shiki-themes github-light-high-contrast github-dark monokai","Err:6 https:\u002F\u002Fpkg.jenkins.io\u002Fdebian-stable binary\u002F Release.gpg\n  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 5BA31D57EF5975CA\nFetched 833 B in 1s (616 B\u002Fs)\nReading package lists... Done\nW: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https:\u002F\u002Fpkg.jenkins.io\u002Fdebian-stable binary\u002F Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 5BA31D57EF5975CA\nW: Failed to fetch http:\u002F\u002Fpkg.jenkins.io\u002Fdebian-stable\u002Fbinary\u002FRelease.gpg  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 5BA31D57EF5975CA\n","log",[48,79,80,85,90,96,102,108],{"__ignoreMap":46},[51,81,82],{"class":53,"line":54},[51,83,84],{},"Err:6 https:\u002F\u002Fpkg.jenkins.io\u002Fdebian-stable binary\u002F Release.gpg\n",[51,86,87],{"class":53,"line":60},[51,88,89],{},"  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 5BA31D57EF5975CA\n",[51,91,93],{"class":53,"line":92},3,[51,94,95],{},"Fetched 833 B in 1s (616 B\u002Fs)\n",[51,97,99],{"class":53,"line":98},4,[51,100,101],{},"Reading package lists... Done\n",[51,103,105],{"class":53,"line":104},5,[51,106,107],{},"W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https:\u002F\u002Fpkg.jenkins.io\u002Fdebian-stable binary\u002F Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 5BA31D57EF5975CA\n",[51,109,111],{"class":53,"line":110},6,[51,112,113],{},"W: Failed to fetch http:\u002F\u002Fpkg.jenkins.io\u002Fdebian-stable\u002Fbinary\u002FRelease.gpg  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 5BA31D57EF5975CA\n",[10,115,116,117,122],{},"参考了",[30,118,121],{"href":119,"rel":120},"https:\u002F\u002Fwww.jenkins.io\u002Fblog\u002F2023\u002F03\u002F27\u002Frepository-signing-keys-changing\u002F",[34],"这个资料","，似乎是密钥变更导致的。直接复制黏贴后就能升级了。",[41,124,126],{"className":43,"code":125,"language":45,"meta":46,"style":46},"curl -fsSL https:\u002F\u002Fpkg.jenkins.io\u002Fdebian-stable\u002Fjenkins.io-2023.key | sudo tee \\\n  \u002Fusr\u002Fshare\u002Fkeyrings\u002Fjenkins-keyring.asc > \u002Fdev\u002Fnull\necho deb [signed-by=\u002Fusr\u002Fshare\u002Fkeyrings\u002Fjenkins-keyring.asc] \\\n  https:\u002F\u002Fpkg.jenkins.io\u002Fdebian-stable binary\u002F | sudo tee \\\n  \u002Fetc\u002Fapt\u002Fsources.list.d\u002Fjenkins.list > \u002Fdev\u002Fnull\n",[48,127,128,133,138,143,148],{"__ignoreMap":46},[51,129,130],{"class":53,"line":54},[51,131,132],{},"curl -fsSL https:\u002F\u002Fpkg.jenkins.io\u002Fdebian-stable\u002Fjenkins.io-2023.key | sudo tee \\\n",[51,134,135],{"class":53,"line":60},[51,136,137],{},"  \u002Fusr\u002Fshare\u002Fkeyrings\u002Fjenkins-keyring.asc > \u002Fdev\u002Fnull\n",[51,139,140],{"class":53,"line":92},[51,141,142],{},"echo deb [signed-by=\u002Fusr\u002Fshare\u002Fkeyrings\u002Fjenkins-keyring.asc] \\\n",[51,144,145],{"class":53,"line":98},[51,146,147],{},"  https:\u002F\u002Fpkg.jenkins.io\u002Fdebian-stable binary\u002F | sudo tee \\\n",[51,149,150],{"class":53,"line":104},[51,151,152],{},"  \u002Fetc\u002Fapt\u002Fsources.list.d\u002Fjenkins.list > \u002Fdev\u002Fnull\n",[154,155,156],"style",{},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html .sepia .shiki span {color: var(--shiki-sepia);background: var(--shiki-sepia-bg);font-style: var(--shiki-sepia-font-style);font-weight: var(--shiki-sepia-font-weight);text-decoration: var(--shiki-sepia-text-decoration);}html.sepia .shiki span {color: var(--shiki-sepia);background: var(--shiki-sepia-bg);font-style: var(--shiki-sepia-font-style);font-weight: var(--shiki-sepia-font-weight);text-decoration: var(--shiki-sepia-text-decoration);}",{"title":46,"searchDepth":60,"depth":92,"links":158},[159,160],{"id":16,"depth":60,"text":16},{"id":69,"depth":60,"text":69},"2024-02-19","md",{"layout":164,"excerpt":165},"post",{"type":7,"value":166},[167],[10,168,12],{},true,"\u002F2024-02-19-jenkins-problems",{"title":5,"description":12},"_legacy\u002F2024\u002F2024-02-19-jenkins-problems",[],"u7ipYedm2BYWlTZ8iRkErsPUWNQNVsmb_HW1ZKUNNoc",1788763176938]