[JIRA] [safe-restart] (JENKINS-33702) safeRestart fails with Authentication exception

77 views
Skip to first unread message

Daniel.Mish@gfs.com (JIRA)

unread,
Mar 21, 2016, 1:33:01 PM3/21/16
to jenkinsc...@googlegroups.com
Daniel Mish created an issue
 
Jenkins / Bug JENKINS-33702
safeRestart fails with Authentication exception
Issue Type: Bug Bug
Assignee: Unassigned
Components: safe-restart
Created: 2016/Mar/21 5:32 PM
Environment: Jenkins ver. 1.653
Linux 3.10.0-327.4.5.el7.x86_64 #1 SMP Thu Jan 21 04:10:29 EST 2016 x86_64 x86_64 x86_64 GNU/Linux
java version "1.7.0_80"
Java(TM) SE Runtime Environment (build 1.7.0_80-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)
EXT_JENKINS_MEMORY="-Xms256m -Xmx1024m -XX:PermSize=512m -XX:MaxPermSize=512m"
Running Jenkins directly
No reverse proxy
No slave nodes
Browser not involved in issue
Priority: Minor Minor
Reporter: Daniel Mish

Jenkins hangs with "Please wait while Jenkins is restarting..." after a restart from the GUI.

This seems to occur with any restart from the Jenkins GUI. I experienced the same issue when disabling plugins and selecting "Restart Once No Jobs are Running" or selecting the "Restart Safely" plugin.

The following error shows in the log:

SEVERE: Failed to stop filters
java.lang.UnsupportedOperationException
	at java.util.concurrent.CopyOnWriteArrayList$COWIterator.remove(CopyOnWriteArrayList.java:1040)
	at hudson.util.PluginServletFilter.cleanUp(PluginServletFilter.java:162)
	at jenkins.model.Jenkins._cleanUpPluginServletFilters(Jenkins.java:3237)
	at jenkins.model.Jenkins.cleanUp(Jenkins.java:2890)
	at hudson.lifecycle.UnixLifecycle.restart(UnixLifecycle.java:70)
	at jenkins.model.Jenkins$27.run(Jenkins.java:3846)

Mar 21, 2016 1:28:41 PM jenkins.model.Jenkins cleanUp
INFO: Jenkins stopped
Mar 21, 2016 1:28:41 PM jenkins.model.Jenkins$27 run
WARNING: Failed to restart Jenkins
java.lang.RuntimeException: Unexpected issues encountered during cleanUp: null
	at jenkins.model.Jenkins.cleanUp(Jenkins.java:2905)
	at hudson.lifecycle.UnixLifecycle.restart(UnixLifecycle.java:70)
	at jenkins.model.Jenkins$27.run(Jenkins.java:3846)
Caused by: java.lang.UnsupportedOperationException
	at java.util.concurrent.CopyOnWriteArrayList$COWIterator.remove(CopyOnWriteArrayList.java:1040)
	at hudson.util.PluginServletFilter.cleanUp(PluginServletFilter.java:162)
	at jenkins.model.Jenkins._cleanUpPluginServletFilters(Jenkins.java:3237)
	at jenkins.model.Jenkins.cleanUp(Jenkins.java:2890)
	... 2 more

This occurred after an upgrade to Jenkins 1.653.

I have also experienced this after running a safeRestart, executed using the following command:

curl -u ${key} -X POST -w "%{http_code}" --connect-time 5 --max-time 10 https://ci.gfs.com/scmProductAcquisition/safeRestart

where $

{key}

is the username:apikey. I have verified the login and API with successful logins. The command executes and the server does not shutdown or restart. The process ID remains the same and active. Killing and restarting works fine. Thread dumps produce no logging at all, as if the process did not actually exist.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

Daniel.Mish@gfs.com (JIRA)

unread,
Mar 21, 2016, 1:36:03 PM3/21/16
to jenkinsc...@googlegroups.com
Daniel Mish updated an issue
Change By: Daniel Mish
Attachment: jenkins.log

Daniel.Mish@gfs.com (JIRA)

unread,
Mar 21, 2016, 1:41:02 PM3/21/16
to jenkinsc...@googlegroups.com
Daniel Mish commented on Bug JENKINS-33702
 
Re: safeRestart fails with Authentication exception

SystemInfo:

System Properties

Name  ↓
Value   
awt.toolkit	sun.awt.X11.XToolkit
executable-war	/lcl/dev/data/builds/scmProductAcquisition/jenkins.war
file.encoding	UTF-8
file.encoding.pkg	sun.io
file.separator	/
hudson.diyChunking	true
hudson.model.DirectoryBrowserSupport.CSP	default-src 'none'; img-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; child-src 'self'; connect-src *.gfs.com
java.awt.graphicsenv	sun.awt.X11GraphicsEnvironment
java.awt.headless	true
java.awt.printerjob	sun.print.PSPrinterJob
java.class.path	/lcl/dev/data/builds/scmProductAcquisition/jenkins.war
java.class.version	51.0
java.endorsed.dirs	/lcl/apps/java/oracle/jdk1.7.0_80/jre/lib/endorsed
java.ext.dirs	/lcl/apps/java/oracle/jdk1.7.0_80/jre/lib/ext:/usr/java/packages/lib/ext
java.home	/lcl/apps/java/oracle/jdk1.7.0_80/jre
java.io.tmpdir	/tmp
java.library.path	/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
java.runtime.name	Java(TM) SE Runtime Environment
java.runtime.version	1.7.0_80-b15
java.specification.name	Java Platform API Specification
java.specification.vendor	Oracle Corporation
java.specification.version	1.7
java.vendor	Oracle Corporation
java.vendor.url	http://java.oracle.com/
java.vendor.url.bug	http://bugreport.sun.com/bugreport/
java.version	1.7.0_80
java.vm.info	mixed mode
java.vm.name	Java HotSpot(TM) 64-Bit Server VM
java.vm.specification.name	Java Virtual Machine Specification
java.vm.specification.vendor	Oracle Corporation
java.vm.specification.version	1.7
java.vm.vendor	Oracle Corporation
java.vm.version	24.80-b11
jenkins.udp	11403
jna.loaded	true
jna.platform.library.path	/usr/lib64:/lib64:/usr/lib:/lib:/usr/lib/vmware-tools/lib64/libvmGuestLibJava.so:/usr/lib/vmware-tools/lib32/libvmGuestLibJava.so:/usr/lib/vmware-tools/lib64/libvmGuestLib.so:/usr/lib/vmware-tools/lib32/libvmGuestLib.so:/usr/lib64/dyninst:/usr/lib64/qt-3.3/lib:/usr/lib64/mysql:/usr/lib/vmware-tools/lib64/libDeployPkg.so:/usr/lib/vmware-tools/lib32/libDeployPkg.so
jnidispatch.path	/tmp/jna-94094958/jna5657623128511445445.tmp
line.separator	
mail.smtp.sendpartial	true
mail.smtps.sendpartial	true
os.arch	amd64
os.name	Linux
os.version	3.10.0-327.4.5.el7.x86_64
path.separator	:
sun.arch.data.model	64
sun.boot.class.path	/lcl/apps/java/oracle/jdk1.7.0_80/jre/lib/resources.jar:/lcl/apps/java/oracle/jdk1.7.0_80/jre/lib/rt.jar:/lcl/apps/java/oracle/jdk1.7.0_80/jre/lib/sunrsasign.jar:/lcl/apps/java/oracle/jdk1.7.0_80/jre/lib/jsse.jar:/lcl/apps/java/oracle/jdk1.7.0_80/jre/lib/jce.jar:/lcl/apps/java/oracle/jdk1.7.0_80/jre/lib/charsets.jar:/lcl/apps/java/oracle/jdk1.7.0_80/jre/lib/jfr.jar:/lcl/apps/java/oracle/jdk1.7.0_80/jre/classes
sun.boot.library.path	/lcl/apps/java/oracle/jdk1.7.0_80/jre/lib/amd64
sun.cpu.endian	little
sun.cpu.isalist	
sun.font.fontmanager	sun.awt.X11FontManager
sun.io.unicode.encoding	UnicodeLittle
sun.java.command	/lcl/dev/data/builds/scmProductAcquisition/jenkins.war --httpPort=11403 --httpListenAddress=0.0.0.0 --ajp13Port=-1 --prefix=/scmProductAcquisition --logfile=/lcl/dev/data/builds/scmProductAcquisition/logs/jenkins.log --javaHome=/lcl/apps/java/default -Djava.io.tmpdir=/lcl/dev/data/builds/scmProductAcquisition/temp
sun.java.launcher	SUN_STANDARD
sun.jnu.encoding	UTF-8
sun.management.compiler	HotSpot 64-Bit Tiered Compilers
sun.os.patch.level	unknown
svnkit.http.methods	Digest,Basic,NTLM,Negotiate
svnkit.ssh2.persistent	false
user.country	US
user.dir	/lcl/dev/data/builds/scmProductAcquisition
user.home	/gfs/home/build
user.language	en
user.name	build
user.timezone	America/Detroit
Environment Variables

Name  ↓
Value   
_	/bin/nohup
_AST_FEATURES	UNIVERSE - ucb
A__z	"*SHLVL
ANT_HOME	/gfs/prd/apps/ant
ANT_OPTS	-XX:MaxPermSize=512m
ANTICS_COMPATIBILITY	on
ANTICS_HOME	/gfs/prd/apps/antics/current
APPSDIR	/lcl/dev/apps/
BEA_HOME	/gfs/prd/apps/builds/wls/10.3
BUILDDIR	/lcl/dev/data/builds/
CATALINA_HOME	/gfs/prd/apps/builds/tomcat
CDPATH	.:/gfs/home/build:/lcl/dev/data/:/lcl/dev/data/builds/scmProductAcquisition/sandbox/:/lcl/dev/data/builds/:/lcl/dev/data/builds/scmProductAcquisition/:/lcl/dev/apps/:/lcl/dev/logs/builds/:.:/gfs/sit/apps/shrScripts/preferences/dmish/:/gfs/sit/apps/shrScripts/preferences/dmish/.env:/gfs/sit/apps/shrScripts/preferences/dmish/fpath
COBBLER_SERVER	satellite.grhq.gfs.com
DATADIR	/lcl/dev/data/
ECLIPSE_HOME	/lcl/dev/data/builds/transportation/eclipse
EDITOR	vi
Env	sit
EXT_JENKINS_MEMORY	-Xms256m -Xmx1024m -XX:PermSize=512m -XX:MaxPermSize=512m
FGLAM_DEVKIT_HOME	/gfs/prd/apps/builds/productionServices/devkit
FPATH	:/gfs/sit/apps/shrScripts/preferences/dmish/fpath
HISTCONTROL	ignoredups
HISTFILE	.histfile.sit.builds
HISTSIZE	1000
HOME	/gfs/home/build
HOST	buildscmproductacquisition.gfs.com
HOSTNAME	buildscmproductacquisition.gfs.com
JAVA_HOME	/lcl/apps/java/default
JENKINS_HOME	/lcl/dev/data/builds/scmProductAcquisition
KDEDIRS	/usr
LANG	en_US.UTF-8
LESS	--IGNORE-CASE --LONG-PROMPT --quit-on-intr --quit-at-eof
LESSOPEN	||/usr/bin/lesspipe.sh %s
LOGNAME	build
LOGSDIR	/lcl/dev/logs/builds/
LS_COLORS	rs=0:di=38;5;27:ln=38;5;51:mh=44;38;5;15:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=05;48;5;232;38;5;15:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;34:*.tar=38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lha=38;5;9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.tzo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.Z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:*.ear=38;5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5;13:*.webm=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.axv=38;5;13:*.anx=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.axa=38;5;45:*.oga=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:
LS_OPTIONS	-N --color=tty -T 0
M2_HOME	/gfs/prd/apps/maven/m3
MAIL	/var/spool/mail/build
MAVEN_OPTS	-Xmx512m -XX:MaxPermSize=512m
NLSPATH	/usr/dt/lib/nls/msg/%L/%N.cat
PABUILDDIR	/lcl/dev/data/builds/scmProductAcquisition/
PAGER	less -s
PATH	/lcl/apps/svn/bin:/lcl/apps/java/oracle/jdk1.7.0/bin:.:.:/gfs/prd/apps/ant/bin:/lcl/apps/java/oracle/jdk1.7.0/bin:/lcl/apps/svn/bin:/gfs/prd/apps/maven/m3/bin:/gfs/prd/apps/builds/phantomjs/bin:.:/gfs/prd/apps/ant/bin:/lcl/apps/java/oracle/jdk1.7.0/bin:/lcl/apps/svn/bin:/gfs/prd/apps/maven/m3/bin:/gfs/prd/apps/builds/phantomjs/bin:/gfs/home/build/perl5/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/opt/puppetlabs/bin:/gfs/sit/apps/shrScripts/preferences/dmish/scripts:/gfs/sit/apps/shrScripts/preferences/dmish/Bin:/gfs/sit/apps/shrScripts/preferences/dmish/oracle/unloader:/lcl/apps/svn/subversion/bin:/usr/sfw/bin:/gfs/sit/apps/shrScripts/shell:/gfs/sit/apps/shrScripts/shell
PERL5LIB	/gfs/home/build/perl5/lib/perl5:
PERL_LOCAL_LIB_ROOT	:/gfs/home/build/perl5
PERL_MB_OPT	--install_base /gfs/home/build/perl5
PERL_MM_OPT	INSTALL_BASE=/gfs/home/build/perl5
PHANTOMJS_CDNURL	http://repository.gfs.com/deploy-config/phantomjs/.
PWD	/lcl/dev/data/builds/scmProductAcquisition
QT_GRAPHICSSYSTEM_CHECKED	1
QT_PLUGIN_PATH	/usr/lib64/kde4/plugins:/usr/lib/kde4/plugins
QTDIR	/usr/lib64/qt-3.3
SANDBOX	/lcl/dev/data/builds/scmProductAcquisition/sandbox/
SHELL	/bin/ksh
SHLVL	3
SUDO_COMMAND	/bin/ksh
SUDO_GID	1260
SUDO_UID	30718
SUDO_USER	dmish
SVN_HOME	/lcl/apps/svn/subversion/
TERM	xterm-256color
USE	builds
USER	build
USERNAME	build
VISUAL	vi
XFILESEARCHPATH	/usr/dt/app-defaults/%L/Dt
Plugins

Name  ↓
Version   
Enabled   
Pinned   
analysis-core	1.76	true	false
ant	1.2	true	false
antisamy-markup-formatter	1.3	true	true
batch-task	1.17	true	false
build-monitor-plugin	1.8+build.201601112328	true	false
build-timeout	1.16	true	false
buildgraph-view	1.1.1	true	false
clover	4.6.0	true	false
configurationslicing	1.45	true	false
credentials	1.25	true	true
cvs	2.12	false	true
dashboard-view	2.9.7	true	false
dependency-check-jenkins-plugin	1.3.5	true	false
external-monitor-job	1.4	true	false
findbugs	4.64	true	false
git	2.4.2	false	false
git-client	1.19.6	false	false
icon-shim	2.0.3	true	false
jacoco	2.0.1	true	false
javadoc	1.3	true	true
jira	2.2	true	false
junit	1.11	true	true
ldap	1.11	true	true
locks-and-latches	0.6	true	false
mailer	1.16	true	true
mapdb-api	1.0.6.0	true	false
matrix-auth	1.3.2	true	true
matrix-project	1.6	true	true
maven-plugin	2.12.1	true	true
monitoring	1.59.0	false	false
pam-auth	1.2	true	true
pmd	3.44	true	false
saferestart	0.3	true	false
scm-api	1.1	true	false
script-security	1.17	true	true
sonar	2.3	true	false
ssh-credentials	1.11	true	true
ssh-slaves	1.10	true	true
subversion	1.54	true	false
svnmerge	2.6	true	false
thinBackup	1.7.4	true	false
token-macro	1.12.1	true	false
translation	1.12	false	true
windows-slaves	1.1	true	true

arogotne@cisco.com (JIRA)

unread,
Mar 21, 2016, 3:29:03 PM3/21/16
to jenkinsc...@googlegroups.com

i seem to get it after an exception from the LDAP plugin

Mar 21, 2016 9:07:52 PM org.acegisecurity.providers.ldap.authenticator.BindAuthenticator2 handleBindException
WARNING: Failed to bind to LDAP: userDnCN=****,OU=**,OU=***,DC=**,DC=*** username=****
javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C0903A8, comment: AcceptSecurityContext error, data 52e, v1db1]
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3135)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:3081)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2883)
at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2797)
at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:319)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:192)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:210)
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:153)
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:83)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)
at javax.naming.InitialContext.init(InitialContext.java:244)
at javax.naming.InitialContext.<init>(InitialContext.java:216)
at javax.naming.directory.InitialDirContext.<init>(InitialDirContext.java:101)
at org.acegisecurity.ldap.DefaultInitialDirContextFactory.connect(DefaultInitialDirContextFactory.java:180)
at org.acegisecurity.ldap.DefaultInitialDirContextFactory.newInitialDirContext(DefaultInitialDirContextFactory.java:261)
at org.acegisecurity.ldap.LdapTemplate.execute(LdapTemplate.java:123)
at org.acegisecurity.ldap.LdapTemplate.retrieveEntry(LdapTemplate.java:165)
at org.acegisecurity.providers.ldap.authenticator.BindAuthenticator.bindWithDn(BindAuthenticator.java:87)
at org.acegisecurity.providers.ldap.authenticator.BindAuthenticator.authenticate(BindAuthenticator.java:72)
at org.acegisecurity.providers.ldap.authenticator.BindAuthenticator2.authenticate(BindAuthenticator2.java:49)
at org.acegisecurity.providers.ldap.LdapAuthenticationProvider.retrieveUser(LdapAuthenticationProvider.java:233)
at org.acegisecurity.providers.dao.AbstractUserDetailsAuthenticationProvider.authenticate(AbstractUserDetailsAuthenticationProvider.java:122)
at org.acegisecurity.providers.ProviderManager.doAuthentication(ProviderManager.java:200)
at org.acegisecurity.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:47)
at hudson.security.LDAPSecurityRealm$LDAPAuthenticationManager.authenticate(LDAPSecurityRealm.java:786)
at org.acegisecurity.ui.webapp.AuthenticationProcessingFilter.attemptAuthentication(AuthenticationProcessingFilter.java:74)
at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:252)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1474)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
at org.eclipse.jetty.server.Server.handle(Server.java:370)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:960)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1021)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
at org.eclipse.jetty.io.nio.SslConnection.handle(SslConnection.java:196)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Mar 21, 2016 9:08:40 PM jenkins.model.Jenkins$27 run
INFO: Restart in 10 seconds
Mar 21, 2016 9:08:50 PM jenkins.model.Jenkins$27 run
SEVERE: Restarting VM as requested by *****
Mar 21, 2016 9:08:51 PM org.jenkinsci.plugins.mailwatcher.MailWatcherNotification log
INFO: mail-watcher-plugin: notified: Computer master marked offline
Mar 21, 2016 9:08:51 PM jenkins.model.Jenkins cleanUp
INFO: Stopping Jenkins
Mar 21, 2016 9:08:51 PM jenkins.model.Jenkins _cleanUpDisconnectComputers
INFO: Starting node disconnection
Mar 21, 2016 9:08:52 PM hudson.TcpSlaveAgentListener$ConnectionHandler run
INFO: Accepted connection #6 from /127.0.1.1:48363
Mar 21, 2016 9:08:52 PM jenkins.model.Jenkins _cleanUpShutdownPluginManager
INFO: Stopping plugin manager
Mar 21, 2016 9:08:52 PM jenkins.model.Jenkins _cleanUpPersistQueue
INFO: Persisting build queue
Mar 21, 2016 9:08:52 PM jenkins.model.Jenkins _cleanUpAwaitDisconnects
INFO: Waiting for node disconnection completion
Mar 21, 2016 9:08:52 PM jenkins.model.Jenkins _cleanUpPluginServletFilters


SEVERE: Failed to stop filters
java.lang.UnsupportedOperationException

at java.util.concurrent.CopyOnWriteArrayList$COWIterator.remove(CopyOnWriteArrayList.java:1176)


at hudson.util.PluginServletFilter.cleanUp(PluginServletFilter.java:162)
at jenkins.model.Jenkins._cleanUpPluginServletFilters(Jenkins.java:3237)
at jenkins.model.Jenkins.cleanUp(Jenkins.java:2890)
at hudson.lifecycle.UnixLifecycle.restart(UnixLifecycle.java:70)
at jenkins.model.Jenkins$27.run(Jenkins.java:3846)

Mar 21, 2016 9:08:52 PM jenkins.model.Jenkins cleanUp
INFO: Jenkins stopped
Mar 21, 2016 9:08:52 PM jenkins.model.Jenkins$27 run


WARNING: Failed to restart Jenkins
java.lang.RuntimeException: Unexpected issues encountered during cleanUp: null
at jenkins.model.Jenkins.cleanUp(Jenkins.java:2905)
at hudson.lifecycle.UnixLifecycle.restart(UnixLifecycle.java:70)
at jenkins.model.Jenkins$27.run(Jenkins.java:3846)
Caused by: java.lang.UnsupportedOperationException

at java.util.concurrent.CopyOnWriteArrayList$COWIterator.remove(CopyOnWriteArrayList.java:1176)


at hudson.util.PluginServletFilter.cleanUp(PluginServletFilter.java:162)
at jenkins.model.Jenkins._cleanUpPluginServletFilters(Jenkins.java:3237)
at jenkins.model.Jenkins.cleanUp(Jenkins.java:2890)
... 2 more

Mar 21, 2016 9:08:56 PM org.eclipse.jetty.util.log.JavaUtilLog warn
WARNING:
java.nio.channels.ClosedChannelException
at sun.nio.ch.SocketChannelImpl.ensureWriteOpen(SocketChannelImpl.java:270)
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:461)
at org.eclipse.jetty.io.nio.ChannelEndPoint.flush(ChannelEndPoint.java:293)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.flush(SelectChannelEndPoint.java:402)
at org.eclipse.jetty.io.nio.SslConnection.process(SslConnection.java:337)
at org.eclipse.jetty.io.nio.SslConnection.access$900(SslConnection.java:48)
at org.eclipse.jetty.io.nio.SslConnection$SslEndPoint.flush(SslConnection.java:738)
at org.eclipse.jetty.io.nio.SslConnection$SslEndPoint.shutdownOutput(SslConnection.java:641)
at org.eclipse.jetty.io.nio.SslConnection.onIdleExpired(SslConnection.java:260)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.onIdleExpired(SelectChannelEndPoint.java:349)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:326)
at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Daniel.Mish@gfs.com (JIRA)

unread,
Mar 22, 2016, 1:33:03 PM3/22/16
to jenkinsc...@googlegroups.com

Daniel.Mish@gfs.com (JIRA)

unread,
Mar 22, 2016, 1:35:01 PM3/22/16
to jenkinsc...@googlegroups.com
Daniel Mish commented on Bug JENKINS-33702
 
Re: safeRestart fails with Authentication exception

Upgraded to Major, since it seems that the process gets stuck, never shuts down and requires a kill -9 to restart. This affects all restarts within the application, including the Restart Safely plugin.

Reply all
Reply to author
Forward
0 new messages