• 安装部署
  • kk 3.0 devops部署后无法使用日志报User admin not found in directory.

  1. 提供一下安装时间,
  2. 检查 openldap 服务是否正常

    yangjzh

    Jenkins 使用的是 openldap,不会直接创建用户。在安装时会对 openldap 初始化创建 admin 用户,看起来是这个环节出错了,可以看下安装日志里面有没有报错。

      shaowenchen kk3.0重装了好几次,看日志没明显的错误

      
      2020-07-21T08:19:23.650689554Z **************************************************
      2020-07-21T08:19:23.650693903Z task monitoring status is successful
      2020-07-21T08:19:23.650698401Z task multicluster status is successful
      2020-07-21T08:19:23.650702819Z task alerting status is successful
      2020-07-21T08:19:23.65070725Z task auditing status is successful
      2020-07-21T08:19:23.650711789Z task devops status is successful
      2020-07-21T08:19:23.650716621Z task events status is successful
      2020-07-21T08:19:23.650721535Z task logging status is successful
      2020-07-21T08:19:23.650726526Z task notification status is successful
      2020-07-21T08:19:23.6507315Z task openpitrix status is successful
      2020-07-21T08:19:23.650737039Z total: 9     completed:9
      2020-07-21T08:19:23.65074163Z **************************************************
      2020-07-21T08:19:23.650746339Z #####################################################
      2020-07-21T08:19:23.650751032Z ###              Welcome to KubeSphere!           ###
      2020-07-21T08:19:23.65075561Z #####################################################
      2020-07-21T08:19:23.650760571Z 
      2020-07-21T08:19:23.650764806Z Console: http://192.168.160.242:30880
      2020-07-21T08:19:23.650769313Z Account: admin
      2020-07-21T08:19:23.65077431Z Password: P@88w0rd
      2020-07-21T08:19:23.650779385Z 
      2020-07-21T08:19:23.650783695Z NOTES:
      2020-07-21T08:19:23.650788631Z   1. After logging into the console, please check the
      2020-07-21T08:19:23.650793157Z      monitoring status of service components in
      2020-07-21T08:19:23.65079757Z      the "Cluster Management". If any service is not
      2020-07-21T08:19:23.650802524Z      ready, please wait patiently until all components 
      2020-07-21T08:19:23.650807713Z      are ready.
      2020-07-21T08:19:23.650812759Z   2. Please modify the default password after login.
      2020-07-21T08:19:23.650818092Z 
      2020-07-21T08:19:23.65082231Z #####################################################

      yangjzh 在界面上创建新的用户, 看看 kubesphere-system 下 ks-controller-manager 的 pod 有没有 错误日志

        hongming 有报错

        2020-07-21T12:02:51.010865348Z </pre></div></div></div><footer><div class="container-fluid"><div class="row"><div class="col-md-6" id="footer"></div><div class="col-md-18"><span class="page_generated">Page generated: Jul 21, 2020 12:02:51 PM UTC</span><span class="rest_api"><a href="api/">REST API</a></span><span class="jenkins_ver"><a href="https://jenkins.io/">Jenkins ver. 2.176.2</a></span></div></div></div></footer></body></html>, requeuing
        2020-07-21T12:06:51.280969291Z I0721 12:06:51.280763       1 ns_k8s.go:240] Found 0 policies in k8s datastore:
        2020-07-21T12:08:28.282488249Z E0721 12:08:28.282146       1 globalrolebinding_controller.go:240] GET http://ks-jenkins.kubesphere-devops-system.svc/role-strategy/strategy/getRole/?roleName=admin&type=globalRoles: 500 
        2020-07-21T12:08:28.28255299Z     
        2020-07-21T12:08:28.282563039Z     
        2020-07-21T12:08:28.282567547Z   
        2020-07-21T12:08:28.282572644Z   <!DOCTYPE html><html><head resURL="/static/d7f59fc0" data-rooturl="" data-resurl="/static/d7f59fc0">
        2020-07-21T12:08:28.282578566Z     
        2020-07-21T12:08:28.282582841Z 
        2020-07-21T12:08:28.282593682Z     <title>Jenkins [Jenkins]</title><link rel="stylesheet" href="/static/d7f59fc0/css/layout-common.css" type="text/css" /><link rel="stylesheet" href="/static/d7f59fc0/css/style.css" type="text/css" /><link rel="stylesheet" href="/static/d7f59fc0/css/color.css" type="text/css" /><link rel="stylesheet" href="/static/d7f59fc0/css/responsive-grid.css" type="text/css" /><link rel="shortcut icon" href="/static/d7f59fc0/favicon.ico" type="image/vnd.microsoft.icon" /><link color="black" rel="mask-icon" href="/images/mask-icon.svg" /><script>var isRunAsTest=false; var rootURL=""; var resURL="/static/d7f59fc0";</script><script src="/static/d7f59fc0/scripts/prototype.js" type="text/javascript"></script><script src="/static/d7f59fc0/scripts/behavior.js" type="text/javascript"></script><script src='/adjuncts/d7f59fc0/org/kohsuke/stapler/bind.js' type='text/javascript'></script><script src="/static/d7f59fc0/scripts/yui/yahoo/yahoo-min.js"></script><script src="/static/d7f59fc0/scripts/yui/dom/dom-min.js"></script><script src="/static/d7f59fc0/scripts/yui/event/event-min.js"></script><script src="/static/d7f59fc0/scripts/yui/animation/animation-min.js"></script><script src="/static/d7f59fc0/scripts/yui/dragdrop/dragdrop-min.js"></script><script src="/static/d7f59fc0/scripts/yui/container/container-min.js"></script><script src="/static/d7f59fc0/scripts/yui/connection/connection-min.js"></script><script src="/static/d7f59fc0/scripts/yui/datasource/datasource-min.js"></script><script src="/static/d7f59fc0/scripts/yui/autocomplete/autocomplete-min.js"></script><script src="/static/d7f59fc0/scripts/yui/menu/menu-min.js"></script><script src="/static/d7f59fc0/scripts/yui/element/element-min.js"></script><script src="/static/d7f59fc0/scripts/yui/button/button-min.js"></script><script src="/static/d7f59fc0/scripts/yui/storage/storage-min.js"></script><script src="/static/d7f59fc0/scripts/hudson-behavior.js" type="text/javascript"></script><script src="/static/d7f59fc0/scripts/sortable.js" type="text/javascript"></script><script>crumb.init("Jenkins-Crumb", "275c41c6ebdecba756f2d8a8dc934727");</script><link rel="stylesheet" href="/static/d7f59fc0/scripts/yui/container/assets/container.css" type="text/css" /><link rel="stylesheet" href="/static/d7f59fc0/scripts/yui/assets/skins/sam/skin.css" type="text/css" /><link rel="stylesheet" href="/static/d7f59fc0/scripts/yui/container/assets/skins/sam/container.css" type="text/css" /><link rel="stylesheet" href="/static/d7f59fc0/scripts/yui/button/assets/skins/sam/button.css" type="text/css" /><link rel="stylesheet" href="/static/d7f59fc0/scripts/yui/menu/assets/skins/sam/menu.css" type="text/css" /><meta name="ROBOTS" content="INDEX,NOFOLLOW" /><meta name="viewport" content="width=device-width, initial-scale=1" /><script src="/adjuncts/d7f59fc0/org/kohsuke/stapler/jquery/jquery.full.js" type="text/javascript"></script><script>var Q=jQuery.noConflict()</script><link rel="stylesheet" href="/plugin/jquery-ui/css/jquery-ui-1.8.9.custom.css" type="text/css" /><script src="/plugin/jquery-ui/js/jquery-ui-1.8.9.custom.min.js"></script><script src="/static/d7f59fc0/jsbundles/page-init.js" type="text/javascript"></script></head><body data-model-type="hudson.model.Hudson" id="jenkins" class="yui-skin-sam two-column jenkins-2.176.2" data-version="2.176.2"><a href="#skip2content" class="skiplink">Skip to content</a><div id="page-head"><div id="header"><div class="logo"><a id="jenkins-home-link" href="/"><img src="/static/d7f59fc0/images/headshot.png" alt="[Jenkins]" id="jenkins-head-icon" /><img src="/static/d7f59fc0/images/title.png" alt="Jenkins" width="139" id="jenkins-name-icon" height="34" /></a></div><div class="login"> <a href="/login?from=%2Frole-strategy%2Fstrategy%2FgetRole%2F"><b>log in</b></a></div><div class="searchbox hidden-xs"><form role="search" method="get" name="search" action="/search/" style="position:relative;" class="no-json"><div id="search-box-minWidth"></div><div id="search-box-sizer"></div><div id="searchform"><input role="searchbox" name="q" placeholder="search" id="search-box" class="has-default-text" /> <a href="https://jenkins.io/redirect/search-box"><img src="/static/d7f59fc0/images/16x16/help.png" style="width: 16px; height: 16px; " class="icon-help icon-sm" /></a><div id="search-box-completion"></div><script>createSearchBox("/search/");</script></div></form></div></div><div id="breadcrumbBar"><tr id="top-nav"><td id="left-top-nav" colspan="2"><link rel='stylesheet' href='/adjuncts/d7f59fc0/lib/layout/breadcrumbs.css' type='text/css' /><script src='/adjuncts/d7f59fc0/lib/layout/breadcrumbs.js' type='text/javascript'></script><div class="top-sticker noedge"><div class="top-sticker-inner"><div id="right-top-nav"></div><ul id="breadcrumbs"><li class="item"><a href="/" class="model-link inside">Jenkins</a></li><li href="/" class="children"></li></ul><div id="breadcrumb-menu-target"></div></div></div></td></tr></div></div><div id="page-body" class="clear"><div id="side-panel"><div class="task"><a href="https://jenkins.io/" class="task-icon-link"><img src="/static/d7f59fc0/images/24x24/next.png" style="width: 24px; height: 24px; width: 24px; height: 24px; margin: 2px;" class="icon-next icon-md" /></a> <a href="https://jenkins.io/" class="task-link">Jenkins project</a></div><div class="task"><a href="https://jenkins.io/redirect/report-an-issue" class="task-icon-link"><img src="/static/d7f59fc0/images/24x24/gear2.png" style="width: 24px; height: 24px; width: 24px; height: 24px; margin: 2px;" class="icon-gear2 icon-md" /></a> <a href="https://jenkins.io/redirect/report-an-issue" class="task-link">Bug tracker</a></div><div class="task"><a href="https://jenkins.io/redirect/mailing-lists" class="task-icon-link"><img src="/static/d7f59fc0/images/24x24/search.png" style="width: 24px; height: 24px; width: 24px; height: 24px; margin: 2px;" class="icon-search icon-md" /></a> <a href="https://jenkins.io/redirect/mailing-lists" class="task-link">Mailing Lists</a></div><div class="task"><a href="https://twitter.com/jenkinsci" class="task-icon-link"><img src="/static/d7f59fc0/images/24x24/user.png" style="width: 24px; height: 24px; width: 24px; height: 24px; margin: 2px;" class="icon-user icon-md" /></a> <a href="https://twitter.com/jenkinsci" class="task-link">Twitter: @jenkinsci</a></div></div><div id="main-panel"><a name="skip2content"></a><h1 style="text-align: center"><img src="/static/d7f59fc0/images/rage.png" width="154" height="179" /><span style="font-size:50px"> Oops!</span></h1><div id="error-description"><p>A problem occurred while processing the request.
        2020-07-21T12:08:28.28272889Z         Please check <a href="https://jenkins.io/redirect/issue-tracker">our bug tracker</a> to see if a similar problem has already been reported.
        2020-07-21T12:08:28.282735941Z         If it is already reported, please vote and put a comment on it to let us gauge the impact of the problem.
        2020-07-21T12:08:28.282740156Z         If you think this is a new issue, please file a new issue.
        2020-07-21T12:08:28.282743955Z         When you file an issue, make sure to add the entire stack trace, along with the version of Jenkins and relevant plugins.
        2020-07-21T12:08:28.282748106Z         <a href="https://jenkins.io/redirect/users-mailing-list">The users list</a> might be also useful in understanding what has happened.</p><h2>Stack trace</h2><pre style="margin:2em; clear:both">org.acegisecurity.userdetails.UsernameNotFoundException: User admin not found in directory.
        2020-07-21T12:08:28.282754619Z 	at org.acegisecurity.ldap.search.FilterBasedLdapUserSearch.searchForUser(FilterBasedLdapUserSearch.java:126)
        2020-07-21T12:08:28.282759377Z 	at hudson.security.LDAPSecurityRealm$LDAPUserDetailsService.loadUserByUsername(LDAPSecurityRealm.java:1314)
        2020-07-21T12:08:28.28276335Z 	at hudson.security.LDAPSecurityRealm$LDAPUserDetailsService.loadUserByUsername(LDAPSecurityRealm.java:1251)
        2020-07-21T12:08:28.282767381Z 	at jenkins.security.ImpersonatingUserDetailsService.loadUserByUsername(ImpersonatingUserDetailsService.java:30)
        2020-07-21T12:08:28.282771765Z 	at hudson.model.User.getUserDetailsForImpersonation(User.java:394)
        2020-07-21T12:08:28.282776747Z 	at io.kubesphere.jenkins.devops.auth.KubesphereApiTokenAuthenticator.authenticate(KubesphereApiTokenAuthenticator.java:47)
        2020-07-21T12:08:28.282780903Z Caused: javax.servlet.ServletException
        2020-07-21T12:08:28.282784796Z 	at io.kubesphere.jenkins.devops.auth.KubesphereApiTokenAuthenticator.authenticate(KubesphereApiTokenAuthenticator.java:57)
        2020-07-21T12:08:28.282788841Z 	at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:79)
        2020-07-21T12:08:28.282798319Z 	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
        2020-07-21T12:08:28.282803335Z 	at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
        2020-07-21T12:08:28.282808428Z 	at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
        2020-07-21T12:08:28.282813254Z 	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
        2020-07-21T12:08:28.282818363Z 	at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:90)
        2020-07-21T12:08:28.282823125Z 	at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
        2020-07-21T12:08:28.282827962Z 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
        2020-07-21T12:08:28.282832507Z 	at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
        2020-07-21T12:08:28.282836941Z 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
        2020-07-21T12:08:28.282841909Z 	at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)
        2020-07-21T12:08:28.282846854Z 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
        2020-07-21T12:08:28.28285189Z 	at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
        2020-07-21T12:08:28.282856694Z 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
        2020-07-21T12:08:28.28286154Z 	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:540)
        2020-07-21T12:08:28.282866203Z 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)
        2020-07-21T12:08:28.282870294Z 	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)
        2020-07-21T12:08:28.282874989Z 	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
        2020-07-21T12:08:28.282879697Z 	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)
        2020-07-21T12:08:28.282884481Z 	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1701)
        2020-07-21T12:08:28.282890156Z 	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
        2020-07-21T12:08:28.282895278Z 	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1345)
        2020-07-21T12:08:28.282900287Z 	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)
        2020-07-21T12:08:28.282905169Z 	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:480)
        2020-07-21T12:08:28.282909924Z 	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1668)
        2020-07-21T12:08:28.28291474Z 	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)
        2020-07-21T12:08:28.282924272Z 	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1247)
        2020-07-21T12:08:28.282929308Z 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)
        2020-07-21T12:08:28.282934258Z 	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
        2020-07-21T12:08:28.282953713Z 	at org.eclipse.jetty.server.Server.handle(Server.java:502)
        2020-07-21T12:08:28.282958966Z 	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:370)
        2020-07-21T12:08:28.282962896Z 	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:267)
        2020-07-21T12:08:28.282966961Z 	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305)
        2020-07-21T12:08:28.282971042Z 	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
        2020-07-21T12:08:28.282975158Z 	at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)
        2020-07-21T12:08:28.282979871Z 	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765)
        2020-07-21T12:08:28.282984736Z 	at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:683)
        2020-07-21T12:08:28.282988972Z 	at java.lang.Thread.run(Thread.java:748)
        2020-07-21T12:08:28.28299294Z </pre></div></div></div><footer><div class="container-fluid"><div class="row"><div class="col-md-6" id="footer"></div><div class="col-md-18"><span class="page_generated">Page generated: Jul 21, 2020 12:08:28 PM UTC</span><span class="rest_api"><a href="api/">REST API</a></span><span class="jenkins_ver"><a href="https://jenkins.io/">Jenkins ver. 2.176.2</a></span></div></div></div></footer></body></html>
        2020-07-21T12:08:28.283002388Z E0721 12:08:28.282268       1 globalrolebinding_controller.go:207] error syncing 'admin': GET http://ks-jenkins.kubesphere-devops-system.svc/role-strategy/strategy/getRole/?roleName=admin&type=globalRoles: 500 
        2020-07-21T12:08:28.283006833Z     
        2020-07-21T12:08:28.283010364Z     
        2020-07-21T12:08:28.28301401Z   
        2020-07-21T12:08:28.283018587Z   <!DOCTYPE html><html><head resURL="/static/d7f59fc0" data-rooturl="" data-resurl="/static/d7f59fc0">
        2020-07-21T12:08:28.28302363Z     
        2020-07-21T12:08:28.283027233Z 
        2020-07-21T12:08:28.283033432Z     <title>Jenkins [Jenkins]</title><link rel="stylesheet" href="/static/d7f59fc0/css/layout-common.css" type="text/css" /><link rel="stylesheet" href="/static/d7f59fc0/css/style.css" type="text/css" /><link rel="stylesheet" href="/static/d7f59fc0/css/color.css" type="text/css" /><link rel="stylesheet" href="/static/d7f59fc0/css/responsive-grid.css" type="text/css" /><link rel="shortcut icon" href="/static/d7f59fc0/favicon.ico" type="image/vnd.microsoft.icon" /><link color="black" rel="mask-icon" href="/images/mask-icon.svg" /><script>var isRunAsTest=false; var rootURL=""; var resURL="/static/d7f59fc0";</script><script src="/static/d7f59fc0/scripts/prototype.js" type="text/javascript"></script><script src="/static/d7f59fc0/scripts/behavior.js" type="text/javascript"></script><script src='/adjuncts/d7f59fc0/org/kohsuke/stapler/bind.js' type='text/javascript'></script><script src="/static/d7f59fc0/scripts/yui/yahoo/yahoo-min.js"></script><script src="/static/d7f59fc0/scripts/yui/dom/dom-min.js"></script><script src="/static/d7f59fc0/scripts/yui/event/event-min.js"></script><script src="/static/d7f59fc0/scripts/yui/animation/animation-min.js"></script><script src="/static/d7f59fc0/scripts/yui/dragdrop/dragdrop-min.js"></script><script src="/static/d7f59fc0/scripts/yui/container/container-min.js"></script><script src="/static/d7f59fc0/scripts/yui/connection/connection-min.js"></script><script src="/static/d7f59fc0/scripts/yui/datasource/datasource-min.js"></script><script src="/static/d7f59fc0/scripts/yui/autocomplete/autocomplete-min.js"></script><script src="/static/d7f59fc0/scripts/yui/menu/menu-min.js"></script><script src="/static/d7f59fc0/scripts/yui/element/element-min.js"></script><script src="/static/d7f59fc0/scripts/yui/button/button-min.js"></script><script src="/static/d7f59fc0/scripts/yui/storage/storage-min.js"></script><script src="/static/d7f59fc0/scripts/hudson-behavior.js" type="text/javascript"></script><script src="/static/d7f59fc0/scripts/sortable.js" type="text/javascript"></script><script>crumb.init("Jenkins-Crumb", "275c41c6ebdecba756f2d8a8dc934727");</script><link rel="stylesheet" href="/static/d7f59fc0/scripts/yui/container/assets/container.css" type="text/css" /><link rel="stylesheet" href="/static/d7f59fc0/scripts/yui/assets/skins/sam/skin.css" type="text/css" /><link rel="stylesheet" href="/static/d7f59fc0/scripts/yui/container/assets/skins/sam/container.css" type="text/css" /><link rel="stylesheet" href="/static/d7f59fc0/scripts/yui/button/assets/skins/sam/button.css" type="text/css" /><link rel="stylesheet" href="/static/d7f59fc0/scripts/yui/menu/assets/skins/sam/menu.css" type="text/css" /><meta name="ROBOTS" content="INDEX,NOFOLLOW" /><meta name="viewport" content="width=device-width, initial-scale=1" /><script src="/adjuncts/d7f59fc0/org/kohsuke/stapler/jquery/jquery.full.js" type="text/javascript"></script><script>var Q=jQuery.noConflict()</script><link rel="stylesheet" href="/plugin/jquery-ui/css/jquery-ui-1.8.9.custom.css" type="text/css" /><script src="/plugin/jquery-ui/js/jquery-ui-1.8.9.custom.min.js"></script><script src="/static/d7f59fc0/jsbundles/page-init.js" type="text/javascript"></script></head><body data-model-type="hudson.model.Hudson" id="jenkins" class="yui-skin-sam two-column jenkins-2.176.2" data-version="2.176.2"><a href="#skip2content" class="skiplink">Skip to content</a><div id="page-head"><div id="header"><div class="logo"><a id="jenkins-home-link" href="/"><img src="/static/d7f59fc0/images/headshot.png" alt="[Jenkins]" id="jenkins-head-icon" /><img src="/static/d7f59fc0/images/title.png" alt="Jenkins" width="139" id="jenkins-name-icon" height="34" /></a></div><div class="login"> <a href="/login?from=%2Frole-strategy%2Fstrategy%2FgetRole%2F"><b>log in</b></a></div><div class="searchbox hidden-xs"><form role="search" method="get" name="search" action="/search/" style="position:relative;" class="no-json"><div id="search-box-minWidth"></div><div id="search-box-sizer"></div><div id="searchform"><input role="searchbox" name="q" placeholder="search" id="search-box" class="has-default-text" /> <a href="https://jenkins.io/redirect/search-box"><img src="/static/d7f59fc0/images/16x16/help.png" style="width: 16px; height: 16px; " class="icon-help icon-sm" /></a><div id="search-box-completion"></div><script>createSearchBox("/search/");</script></div></form></div></div><div id="breadcrumbBar"><tr id="top-nav"><td id="left-top-nav" colspan="2"><link rel='stylesheet' href='/adjuncts/d7f59fc0/lib/layout/breadcrumbs.css' type='text/css' /><script src='/adjuncts/d7f59fc0/lib/layout/breadcrumbs.js' type='text/javascript'></script><div class="top-sticker noedge"><div class="top-sticker-inner"><div id="right-top-nav"></div><ul id="breadcrumbs"><li class="item"><a href="/" class="model-link inside">Jenkins</a></li><li href="/" class="children"></li></ul><div id="breadcrumb-menu-target"></div></div></div></td></tr></div></div><div id="page-body" class="clear"><div id="side-panel"><div class="task"><a href="https://jenkins.io/" class="task-icon-link"><img src="/static/d7f59fc0/images/24x24/next.png" style="width: 24px; height: 24px; width: 24px; height: 24px; margin: 2px;" class="icon-next icon-md" /></a> <a href="https://jenkins.io/" class="task-link">Jenkins project</a></div><div class="task"><a href="https://jenkins.io/redirect/report-an-issue" class="task-icon-link"><img src="/static/d7f59fc0/images/24x24/gear2.png" style="width: 24px; height: 24px; width: 24px; height: 24px; margin: 2px;" class="icon-gear2 icon-md" /></a> <a href="https://jenkins.io/redirect/report-an-issue" class="task-link">Bug tracker</a></div><div class="task"><a href="https://jenkins.io/redirect/mailing-lists" class="task-icon-link"><img src="/static/d7f59fc0/images/24x24/search.png" style="width: 24px; height: 24px; width: 24px; height: 24px; margin: 2px;" class="icon-search icon-md" /></a> <a href="https://jenkins.io/redirect/mailing-lists" class="task-link">Mailing Lists</a></div><div class="task"><a href="https://twitter.com/jenkinsci" class="task-icon-link"><img src="/static/d7f59fc0/images/24x24/user.png" style="width: 24px; height: 24px; width: 24px; height: 24px; margin: 2px;" class="icon-user icon-md" /></a> <a href="https://twitter.com/jenkinsci" class="task-link">Twitter: @jenkinsci</a></div></div><div id="main-panel"><a name="skip2content"></a><h1 style="text-align: center"><img src="/static/d7f59fc0/images/rage.png" width="154" height="179" /><span style="font-size:50px"> Oops!</span></h1><div id="error-description"><p>A problem occurred while processing the request.
        2020-07-21T12:08:28.283109199Z         Please check <a href="https://jenkins.io/redirect/issue-tracker">our bug tracker</a> to see if a similar problem has already been reported.
        2020-07-21T12:08:28.283120469Z         If it is already reported, please vote and put a comment on it to let us gauge the impact of the problem.
        2020-07-21T12:08:28.283125887Z         If you think this is a new issue, please file a new issue.
        2020-07-21T12:08:28.283130695Z         When you file an issue, make sure to add the entire stack trace, along with the version of Jenkins and relevant plugins.
        2020-07-21T12:08:28.283135134Z         <a href="https://jenkins.io/redirect/users-mailing-list">The users list</a> might be also useful in understanding what has happened.</p><h2>Stack trace</h2><pre style="margin:2em; clear:both">org.acegisecurity.userdetails.UsernameNotFoundException: User admin not found in directory.
        2020-07-21T12:08:28.283141824Z 	at org.acegisecurity.ldap.search.FilterBasedLdapUserSearch.searchForUser(FilterBasedLdapUserSearch.java:126)
        2020-07-21T12:08:28.283146357Z 	at hudson.security.LDAPSecurityRealm$LDAPUserDetailsService.loadUserByUsername(LDAPSecurityRealm.java:1314)
        2020-07-21T12:08:28.28315094Z 	at hudson.security.LDAPSecurityRealm$LDAPUserDetailsService.loadUserByUsername(LDAPSecurityRealm.java:1251)
        2020-07-21T12:08:28.28315554Z 	at jenkins.security.ImpersonatingUserDetailsService.loadUserByUsername(ImpersonatingUserDetailsService.java:30)
        2020-07-21T12:08:28.283160193Z 	at hudson.model.User.getUserDetailsForImpersonation(User.java:394)
        2020-07-21T12:08:28.283164903Z 	at io.kubesphere.jenkins.devops.auth.KubesphereApiTokenAuthenticator.authenticate(KubesphereApiTokenAuthenticator.java:47)
        2020-07-21T12:08:28.28316982Z Caused: javax.servlet.ServletException
        2020-07-21T12:08:28.283174996Z 	at io.kubesphere.jenkins.devops.auth.KubesphereApiTokenAuthenticator.authenticate(KubesphereApiTokenAuthenticator.java:57)
        2020-07-21T12:08:28.283190866Z 	at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:79)
        2020-07-21T12:08:28.283196207Z 	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
        2020-07-21T12:08:28.283201058Z 	at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
        2020-07-21T12:08:28.28320591Z 	at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
        2020-07-21T12:08:28.283210858Z 	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
        2020-07-21T12:08:28.283215557Z 	at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:90)
        2020-07-21T12:08:28.283220457Z 	at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
        2020-07-21T12:08:28.283225102Z 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
        2020-07-21T12:08:28.283229955Z 	at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
        2020-07-21T12:08:28.283234659Z 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
        2020-07-21T12:08:28.283244743Z 	at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)
        2020-07-21T12:08:28.283249552Z 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
        2020-07-21T12:08:28.283269443Z 	at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
        2020-07-21T12:08:28.283273253Z 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
        2020-07-21T12:08:28.283276209Z 	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:540)
        2020-07-21T12:08:28.283279285Z 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)
        2020-07-21T12:08:28.283282511Z 	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)
        2020-07-21T12:08:28.28328536Z 	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
        2020-07-21T12:08:28.283288389Z 	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)
        2020-07-21T12:08:28.28329122Z 	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1701)
        2020-07-21T12:08:28.283294202Z 	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
        2020-07-21T12:08:28.283297039Z 	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1345)
        2020-07-21T12:08:28.283302089Z 	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)
        2020-07-21T12:08:28.283307498Z 	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:480)
        2020-07-21T12:08:28.283312054Z 	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1668)
        2020-07-21T12:08:28.283316191Z 	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)
        2020-07-21T12:08:28.283320458Z 	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1247)
        2020-07-21T12:08:28.283324784Z 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)
        2020-07-21T12:08:28.28332972Z 	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
        2020-07-21T12:08:28.283334506Z 	at org.eclipse.jetty.server.Server.handle(Server.java:502)
        2020-07-21T12:08:28.283339244Z 	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:370)
        2020-07-21T12:08:28.283343894Z 	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:267)
        2020-07-21T12:08:28.283348718Z 	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305)
        2020-07-21T12:08:28.283353452Z 	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
        2020-07-21T12:08:28.283358191Z 	at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)
        2020-07-21T12:08:28.283362853Z 	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765)
        2020-07-21T12:08:28.283373261Z 	at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:683)
        2020-07-21T12:08:28.283378117Z 	at java.lang.Thread.run(Thread.java:748)
        2020-07-21T12:08:28.283382884Z </pre></div></div></div><footer><div class="container-fluid"><div class="row"><div class="col-md-6" id="footer"></div><div class="col-md-18"><span class="page_generated">Page generated: Jul 21, 2020 12:08:28 PM UTC</span><span class="rest_api"><a href="api/">REST API</a></span><span class="jenkins_ver"><a href="https://jenkins.io/">Jenkins ver. 2.176.2</a></span></div></div></div></footer></body></html>, requeuing
          3 个月 后
          2 个月 后

          sunnywu https://github.com/kubesphere/kubesphere/issues/3105

          在启用 devops 组件的集群上执行

          kubectl patch users admin -p '{"spec":{"password":"<yourpassword>"}}' --type='merge' && kubectl annotate users admin iam.kubesphere.io/password-encrypted-
            4 年 后

            [未知用户] 是什么原因? 我也遇到这个错误了