[Win] got war file; cannot login

38 views
Skip to first unread message

Thomas Hofmann

unread,
Apr 30, 2018, 6:00:46 AM4/30/18
to Jenkins Users
Hello everybody,

I'm new to the list.

I have downloaded the war file under Windows (7). I've started Jenkins once and it did run.
Today is "the next day". As I wanted to login, I had no success.
My command line looks like this:

java -jar c:\temp\Software\Online\Jenkins\jenkins.war --httpPort=9090 --argumentsRealm.roles.toohoo=admin --argumentsR
ealm.passwd.toohoo=XXXXXXXXXX --logfile=c:\temp\jenkins\logs/winstone_date-20180430-103646.log

What can be wrong?

Thanks in advance

Thomas Arnbjerg

unread,
Apr 30, 2018, 6:06:16 AM4/30/18
to Jenkins Users
Have you considere running Jenkins in Docker - see here: https://engineering.riotgames.com/news/putting-jenkins-docker-container

br
Thomas

Daniel Beck

unread,
Apr 30, 2018, 10:20:10 AM4/30/18
to jenkins...@googlegroups.com

> On 30. Apr 2018, at 10:39, Thomas Hofmann <too...@gmail.com> wrote:
>
> My command line looks like this:
>
> java -jar c:\temp\Software\Online\Jenkins\jenkins.war --httpPort=9090 --argumentsRealm.roles.toohoo=admin --argumentsR
> ealm.passwd.toohoo=XXXXXXXXXX --logfile=c:\temp\jenkins\logs/winstone_date-20180430-103646.log
>
> What can be wrong?

Jenkins has built in security realms with default authentication that are independent of the container's security. So if you see a friendly butler-themed login page, these are not the credentials to use.

Check secrets/initialAdminPassword in JENKINS_HOME, if that exists try user 'admin' and that password.

Thomas Hofmann

unread,
May 3, 2018, 8:41:11 AM5/3/18
to Jenkins Users
Hello Thomas,

thanks for the hint. No, I didn't. We have some software policies that forbid this, I guess.

Thanks so far, Thomas

Thomas Hofmann

unread,
May 3, 2018, 8:44:32 AM5/3/18
to Jenkins Users
Hello Daniel,

I've solved it somehow. I did find a XML conf file. There I did change some 
false/true-settings. In the end the Jenkins was open for write by everybody (also unknown user).

Then I could remove user admin and add a new one with defined pw. I also created a "work-"account.
Then I did set back the openness.

Thanks so far, best regards, Thomas


On Monday, April 30, 2018 at 4:20:10 PM UTC+2, Daniel Beck wrote:

> On 30. Apr 2018, at 10:39, Thomas Hofmann <too...@gmail.com> wrote:
>
> java -jar c:\temp\Software\Online\Jenkins\jenkins.war --httpPort=9090 --argumentsRealm.roles.toohoo=admin --argumentsR
> ealm.passwd.toohoo=XXXXXXXXXX --logfile=c:\temp\jenkins\logs/winstone_date-20180430-103646.log

Reply all
Reply to author
Forward
0 new messages