This was also a huge issue for us. We traced the issue to the Mailer/ext-email plugins, by verifying that a vanilla jenkins install doesn't have this issue, and then individually deleting config files until we found the culprit.
We think it has something to do with https://issues.jenkins-ci.org/browse/JENKINS-20595
If the hudson.tasks.Mailer.xml file exists with a hudsonUrl entry inside, and the jenkins.model.JenkinsLocationConfiguration.xml file doesn't exist, it seems that something goes horribly wrong during the login.
Broken
{{$ cat hudson.tasks.Mailer.xml
<?xml version='1.0' encoding='UTF-8'?>
<hudson.tasks.Mailer_-DescriptorImpl plugin="mailer@1.4">
<defaultSuffix>@***.com</defaultSuffix>
<hudsonUrl>https://***.com/</hudsonUrl>
<adminAddress>build@***.com</adminAddress>
<smtpHost>localhost</smtpHost>
<useSsl>false</useSsl>
<charset>UTF-8</charset>
</hudson.tasks.Mailer_-DescriptorImpl>
$ cat jenkins.model.JenkinsLocationConfiguration.xml
cat: jenkins.model.JenkinsLocationConfiguration.xml: No such file or directory}}
Fix 1
Remove the hudsonUrl entry from xml file
{{$ cat hudson.tasks.Mailer.xml
<?xml version='1.0' encoding='UTF-8'?>
<hudson.tasks.Mailer_-DescriptorImpl plugin="mailer@1.4">
<defaultSuffix>@***.com</defaultSuffix>
<adminAddress>build@***.com</adminAddress>
<smtpHost>localhost</smtpHost>
<useSsl>false</useSsl>
<charset>UTF-8</charset>
</hudson.tasks.Mailer_-DescriptorImpl>
$ cat jenkins.model.JenkinsLocationConfiguration.xml
cat: jenkins.model.JenkinsLocationConfiguration.xml: No such file or directory}}
Fix 2
Using the Jenkins manage ui, save a new Jenkins Url under Jenkins Location section. It will generate a JenkinsLocationConfiguration.xml file.
{{$ cat hudson.tasks.Mailer.xml
<?xml version='1.0' encoding='UTF-8'?>
<hudson.tasks.Mailer_-DescriptorImpl plugin="mailer@1.4">
<defaultSuffix>@***.com</defaultSuffix>
<hudsonUrl>https://***.com/</hudsonUrl>
<adminAddress>build@***.com</adminAddress>
<smtpHost>localhost</smtpHost>
<useSsl>false</useSsl>
<charset>UTF-8</charset>
</hudson.tasks.Mailer_-DescriptorImpl>
$ cat jenkins.model.JenkinsLocationConfiguration.xml
<?xml version='1.0' encoding='UTF-8'?>
<jenkins.model.JenkinsLocationConfiguration>
<adminAddress>Build Jenkins <build@***.com></adminAddress>
<jenkinsUrl>http://***.com/</jenkinsUrl>
</jenkins.model.JenkinsLocationConfiguration>}}
Can some one please suggest a fix for this issue as it is making too much annoying to us to push user to use ""Remember me on this computer" check box" ?
Thanks.