Still Login Problem.

20 views
Skip to first unread message

Steve Burrus

unread,
Sep 8, 2018, 12:10:18 PM9/8/18
to jenkins...@googlegroups.com
Mark [or whoever else who wan ts to hielp me] I am STILL getting the login area when I go to "localhost". I have done EVERYTHING Mark that you wanted me to do to correct this problem. Do you have any more fresh ideas?


Slide

unread,
Sep 8, 2018, 2:31:17 PM9/8/18
to jenkins...@googlegroups.com
Do you have jobs that you want to keep the data and configuration for, or is the setup pretty fresh? If it's pretty fresh and you are ok with starting over, you could delete the directory that contains that config.xml file (JENKINS_HOME) and start over with a clean setup.


On Sat, Sep 8, 2018, 09:10 Steve Burrus <sburr...@gmail.com> wrote:
Mark [or whoever else who wan ts to hielp me] I am STILL getting the login area when I go to "localhost". I have done EVERYTHING Mark that you wanted me to do to correct this problem. Do you have any more fresh ideas?


--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CABinwmWSoj0ZBrX%2BKvxkaFUPQSzdDfz8oWrz4fDWMdKSxhQi7Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Steve Burrus

unread,
Sep 8, 2018, 3:21:45 PM9/8/18
to jenkins...@googlegroups.com
Ya I have tried dpoing th at maybe 2-3 times before "start over with a clean setup." to no avail BUT I will try doing that yet again [if that helps I don't know]. But no I didn't have any jobs on it.   

Mark Waite

unread,
Sep 8, 2018, 3:35:00 PM9/8/18
to jenkins...@googlegroups.com
When you've reset and done a clean setup, you may want to capture the "Manage Jenkins" -> "System Information" page to record the value of the variable "JENKINS_HOME".

JENKINS_HOME is the directory which contains the "config.xml" file that I described earlier.  Inside %JENKINS_HOME%\config.xml you'll find the '<useSecurity>' XML tag.

Mark Waite

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.

Steve Burrus

unread,
Sep 8, 2018, 3:42:08 PM9/8/18
to jenkins...@googlegroups.com

 

I’m sorry but I haven’t evr even gotten to capture the "Manage Jenkins" -> "System Information" page. No when I seemed to activate Jenkins in my command prompt I then went, in my web browser, to the localhost but then I always get the login page which I really DON’T WANT.     

 

Sent from Mail for Windows 10

Mark Waite

unread,
Sep 8, 2018, 3:54:35 PM9/8/18
to jenkins...@googlegroups.com
I infer from that paragraph that you started Jenkins from a command prompt window.  If so, then you can define the value for JENKINS_HOME before you run the "java -jar jenkins.jar" command.  Jenkins will use the value you defined for JENKINS_HOME.

Jenkins starts initially as "secure by default".  The initial administrator password is written to the command prompt window during startup and is also written to the JENKINS_HOME directory as the file secrets\initialAdminPassword.

Once you've used that initial admin password to login, it will prompt you to create a new user and assign a password to that user.

The post-installation setup wizard is the guide for that process.

Mark Waite

Jan Monterrubio

unread,
Sep 24, 2018, 6:26:04 PM9/24/18
to Jenkins Users
Steve, what system are you running Jenkins with? Can you locate the config.xml file anywhere within that OS?

Steve Burrus

unread,
Sep 24, 2018, 7:26:30 PM9/24/18
to jenkins...@googlegroups.com
Jan I am using Windows 10 Entrerprise Eval uation. And YES I have not only located the config.xml file but also edited a few lines in it before.  

On Mon, Sep 24, 2018 at 5:26 PM Jan Monterrubio <janmont...@gmail.com> wrote:
Steve, what system are you running Jenkins with? Can you locate the config.xml file anywhere within that OS?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.

Jan Monterrubio

unread,
Sep 24, 2018, 9:35:35 PM9/24/18
to jenkins...@googlegroups.com
What happens if you delete it? Does it regenerate correctly?

Steve Burrus

unread,
Sep 24, 2018, 9:47:55 PM9/24/18
to jenkins...@googlegroups.com
you mean the  the config.xml file?



Jan Monterrubio

unread,
Sep 25, 2018, 12:55:00 AM9/25/18
to jenkins...@googlegroups.com
Yeah, copy it and move it out. I read somewhere that it should regenerate. If not, I think you can log in with the default username and password (prints to console) and disable security like that. 

Baptiste Mathus

unread,
Sep 25, 2018, 10:16:51 AM9/25/18
to jenkins...@googlegroups.com

Steve, please generally be more precise with what you've tried, the errors you see and everything. This is required to be able to help you.
Most of the times, a one-liner is not enough and you can provide much more insights to help people help you.




Steve Burrus

unread,
Sep 25, 2018, 11:25:42 AM9/25/18
to jenkins...@googlegroups.com
Okay careful what you ask for. Here is the "dump" from my Jenkimns command prompt :

C:\MyJenkins>java -jar jenkins.war --httpPort=8032
Running from: C:\MyJenkins\jenkins.war
webroot: $user.home/.jenkins
Sep 25, 2018 10:03:52 AM org.eclipse.jetty.util.log.Log initialized
INFO: Logging initialized @909ms to org.eclipse.jetty.util.log.JavaUtilLog
Sep 25, 2018 10:03:52 AM winstone.Logger logInternal
INFO: Beginning extraction from war file
[33mSep 25, 2018 10:03:53 AM org.eclipse.jetty.server.handler.ContextHandler setContextPath
WARNING: Empty contextPath
[0mSep 25, 2018 10:03:53 AM org.eclipse.jetty.server.Server doStart
INFO: jetty-9.4.z-SNAPSHOT, build timestamp: 2017-11-21T15:27:37-06:00, git hash: 82b8fb23f757335bb3329d540ce37a2a2615f0a8
Sep 25, 2018 10:04:04 AM org.eclipse.jetty.webapp.StandardDescriptorProcessor visitServlet
INFO: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet
Sep 25, 2018 10:04:05 AM org.eclipse.jetty.server.session.DefaultSessionIdManager doStart
INFO: DefaultSessionIdManager workerName=node0
Sep 25, 2018 10:04:05 AM org.eclipse.jetty.server.session.DefaultSessionIdManager doStart
INFO: No SessionScavenger set, using defaults
Sep 25, 2018 10:04:05 AM org.eclipse.jetty.server.session.HouseKeeper startScavenging
INFO: Scavenging every 660000ms
Jenkins home directory: C:\Users\sburris125\.jenkins found at: $user.home/.jenkins
Sep 25, 2018 10:04:08 AM org.eclipse.jetty.server.handler.ContextHandler doStart
INFO: Started w.@15888343{/,file:///C:/Users/sburris125/.jenkins/war/,AVAILABLE}{C:\Users\sburris125\.jenkins\war}
Sep 25, 2018 10:04:08 AM org.eclipse.jetty.server.AbstractConnector doStart
INFO: Started ServerConnector@7139992f{HTTP/1.1,[http/1.1]}{0.0.0.0:8032}
Sep 25, 2018 10:04:08 AM org.eclipse.jetty.server.Server doStart
INFO: Started @16401ms
Sep 25, 2018 10:04:08 AM winstone.Logger logInternal
INFO: Winstone Servlet Engine v4.0 running: controlPort=disabled
Sep 25, 2018 10:04:11 AM jenkins.InitReactorRunner$1 onAttained
INFO: Started initialization
Sep 25, 2018 10:04:12 AM jenkins.InitReactorRunner$1 onAttained
INFO: Listed all plugins
Sep 25, 2018 10:04:15 AM jenkins.InitReactorRunner$1 onAttained
INFO: Prepared all plugins
Sep 25, 2018 10:04:15 AM jenkins.InitReactorRunner$1 onAttained
INFO: Started all plugins
Sep 25, 2018 10:04:15 AM jenkins.InitReactorRunner$1 onAttained
INFO: Augmented all extensions
Sep 25, 2018 10:04:16 AM jenkins.InitReactorRunner$1 onAttained
INFO: Loaded all jobs
Sep 25, 2018 10:04:18 AM hudson.model.AsyncPeriodicWork$1 run
INFO: Started Download metadata
Sep 25, 2018 10:04:20 AM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.springframework.web.context.support.StaticWebApplicationContext@62b9b31: display name [Root WebApplicationContext]; startup date [Tue Sep 25 10:04:20 CDT 2018]; root of context hierarchy
Sep 25, 2018 10:04:20 AM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
INFO: Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@62b9b31]: org.springframework.beans.factory.support.DefaultListableBeanFactory@6c44edc8
Sep 25, 2018 10:04:20 AM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@6c44edc8: defining beans [authenticationManager]; root of factory hierarchy
Sep 25, 2018 10:04:21 AM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.springframework.web.context.support.StaticWebApplicationContext@51448540: display name [Root WebApplicationContext]; startup date [Tue Sep 25 10:04:21 CDT 2018]; root of context hierarchy
Sep 25, 2018 10:04:21 AM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
INFO: Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@51448540]: org.springframework.beans.factory.support.DefaultListableBeanFactory@6b2476bc
Sep 25, 2018 10:04:21 AM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@6b2476bc: defining beans [filter,legacy]; root of factory hierarchy
Sep 25, 2018 10:04:21 AM jenkins.InitReactorRunner$1 onAttained
INFO: Completed initialization
Sep 25, 2018 10:04:21 AM hudson.WebAppMain$3 run
INFO: Jenkins is fully up and running
Sep 25, 2018 10:04:29 AM hudson.model.UpdateSite updateData
INFO: Obtained the latest update center data file for UpdateSource default
Sep 25, 2018 10:04:30 AM hudson.model.DownloadService$Downloadable load
INFO: Obtained the updated data file for hudson.tasks.Maven.MavenInstaller
Sep 25, 2018 10:04:30 AM hudson.model.AsyncPeriodicWork$1 run
INFO: Finished Download metadata. 11,954 ms

 And attached is the login webpage that I DON'T WANT to see. 


Jenkins.html

Slide

unread,
Sep 25, 2018, 11:33:39 AM9/25/18
to jenkins...@googlegroups.com
Hi Steve,

Just to make sure, the config.xml file you edited to remove the security is C:\Users\sburris125\.jenkins\config.xml, correct?

Thanks,

Alex

Steve Burrus

unread,
Sep 25, 2018, 12:47:26 PM9/25/18
to jenkins...@googlegroups.com
No it was actiually in th e C:\MyJenkins folder from which I deleted  the config.xml file.


Slide

unread,
Sep 25, 2018, 2:03:29 PM9/25/18
to jenkins...@googlegroups.com
Based on this line from your log:

Jenkins home directory: C:\Users\sburris125\.jenkins found at: $user.home/.jenkins 

Please try following these steps (again I know) using C:\Users\sburris125\.jenkins as $JENKINS_HOME


 

Steve Burrus

unread,
Sep 25, 2018, 2:51:53 PM9/25/18
to jenkins...@googlegroups.com
Ya IT WORKED for the first time. Thanx for allowing me, for the first time, to escape the login page.

Reply all
Reply to author
Forward
0 new messages