Re: All jobs disappeared from view

2021-01-01 Thread David Maul
Yes, I had tried that, numerous times.  (All the jobs data is there).  I 
even restored a backup done earlier today when everything was fine.  No 
luck.  HOWEVER, I just downloaded a newer jenkins.war (2.263) , and 
then restarted jenkins, and the jobs all reappeared.  *Perhaps this will 
help someone else*.

On Friday, January 1, 2021 at 10:19:55 PM UTC-5 jaychandran...@gmail.com 
wrote:

> Pls check what is there in /var/lib/jenkins/jobs folder if all jobs 
> present in this folder just restart Jenkins service
>
> On Sat, 2 Jan 2021, 8:37 am David Maul,  wrote:
>
>> All of a sudden my jobs have all disappeared from the :8080 web page.  
>> They are very much there on disk. I have tried reloading configuration from 
>> disk - no luck.  I have tried restoring /var/lib/jenkins entirely from a 
>> backup, still no luck.  Nothing seems to help.  I am only greeted with:
>>
>> "This view has no jobs associated with it. You can either add some 
>> existing jobs  to this view or create a new 
>> job  in this view." 
>>
>> I know all of my job data is there, but I cannot figure out why jenkins 
>> will not show it to me.
>>
>> I am running 2.150.3 on Centos7.  Usually has been very good.  This is 
>> kind of a crisis.
>>
>> Thanks in advance for help, and Happy New year. 
>>
>> -- 
>> 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/c677f342-2873-4e40-aa84-22077b9262dbn%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/4180ebff-914e-4d99-b015-de2487e32e77n%40googlegroups.com.


Re: All jobs disappeared from view

2021-01-01 Thread jaychandran subramanian
Pls check what is there in /var/lib/jenkins/jobs folder if all jobs present
in this folder just restart Jenkins service

On Sat, 2 Jan 2021, 8:37 am David Maul,  wrote:

> All of a sudden my jobs have all disappeared from the :8080 web page.
> They are very much there on disk. I have tried reloading configuration from
> disk - no luck.  I have tried restoring /var/lib/jenkins entirely from a
> backup, still no luck.  Nothing seems to help.  I am only greeted with:
>
> "This view has no jobs associated with it. You can either add some
> existing jobs  to this view or create a new
> job  in this view."
>
> I know all of my job data is there, but I cannot figure out why jenkins
> will not show it to me.
>
> I am running 2.150.3 on Centos7.  Usually has been very good.  This is
> kind of a crisis.
>
> Thanks in advance for help, and Happy New year.
>
> --
> 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-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/c677f342-2873-4e40-aa84-22077b9262dbn%40googlegroups.com
> 
> .
>

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAG0_wUseQHWs2WF3io242Y2CqFCY4mSCJ-2wHdXW4cdc9EwurQ%40mail.gmail.com.


All jobs disappeared from view

2021-01-01 Thread David Maul
All of a sudden my jobs have all disappeared from the :8080 web page.  They 
are very much there on disk. I have tried reloading configuration from disk 
- no luck.  I have tried restoring /var/lib/jenkins entirely from a backup, 
still no luck.  Nothing seems to help.  I am only greeted with:

"This view has no jobs associated with it. You can either add some existing 
jobs  to this view or create a new job 
 in this view." 

I know all of my job data is there, but I cannot figure out why jenkins 
will not show it to me.

I am running 2.150.3 on Centos7.  Usually has been very good.  This is kind 
of a crisis.

Thanks in advance for help, and Happy New year. 

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c677f342-2873-4e40-aa84-22077b9262dbn%40googlegroups.com.


Re: Issue with master-agent communication over ssh

2021-01-01 Thread Ivan Fernandez Calvo
If the agent is running something there is traffic, so it si not related to 
keep alive settings, I wonder if after the issue happens there is a 
remoting process running on the agent.
Did you check the SSHD service logs on your agent? 
https://github.com/jenkinsci/ssh-slaves-plugin/blob/master/doc/TROUBLESHOOTING.md#enable-verbose-ssh-server-log-output
Did you check the remoting logs? 
https://github.com/jenkinsci/remoting/blob/master/docs/logging.md
Did you check for hs_err_pid error files in the root fs of the agent? 
http://www.oracle.com/technetwork/java/javase/felog-138657.html#gbwcy
How much memory you set for your remoting process?
How much memory your maven build needs?

El miércoles, 30 de diciembre de 2020 a las 23:40:38 UTC+1, 
jiga...@gmail.com escribió:

> Interestingly, whenever Jenkins agent is executing PMD/Findbugs task, it 
> runs into " Resource temporarily unavailable". 
> I have
>
>- verified TCP parameters 
>i.e. tcp_keepalive_time, tcp_keepalive_intvl, tcp_keepalive_probes 
>& tcp_fin_timeout ; All of them have higher values then what cloudbees 
>recommended at 
>
> https://support.cloudbees.com/hc/en-us/articles/115001369667-dedicated-SSH-agents-formerly-slaves-get-disconnected
>- set heap space to 2-4Gb
>- disabled ping thread from Jenkins agent by setting 
>"-Dhudson.remoting.Launcher.pingIntervalSec=-1"
>
> Please let me know if there is anything else I should consider.
> On Friday, December 11, 2020 at 12:11:39 PM UTC-5 kuisat...@gmail.com 
> wrote:
>
>> The most common issue is related to disconnections because there is no 
>> traffic between the Jenkins instance and the agent, for that, you have to 
>> tune the TCP stack of your OS (see 
>> https://support.cloudbees.com/hc/en-us/articles/115001369667-dedicated-SSH-agents-formerly-slaves-get-disconnected),
>>  
>> or enable the keepalive option in the SSH protocol this can be configured 
>> by setting ClientAliveInterval or TCPKeepAlive on the SSH server 
>> (/etc/ssh/sshd_config), also by setting ServerAliveInterval or TCPKeepAlive 
>> options for the user connection (/etc/ssh/ssh_config or ~/.ssh/ssh_config)
>>
>> https://www.freebsd.org/cgi/man.cgi?sshd_config(5)
>> https://www.freebsd.org/cgi/man.cgi?ssh_config(5)
>>
>> Also, check you follow the best practices to configure your SSH agents 
>> and enable SSH verbose log output in your service (see 
>> https://github.com/jenkinsci/ssh-slaves-plugin/blob/master/doc/TROUBLESHOOTING.md
>> )
>>
>> El miércoles, 9 de diciembre de 2020 a las 17:53:19 UTC+1, 
>> jiga...@gmail.com escribió:
>>
>>> Hello Jenkins community, 
>>>
>>> I have setup Jenkins agents over SSH and this agent frequently goes 
>>> offline with Resource temporarily unavailable error. I had to configure my 
>>> Jenkins agents to communicate over JNLP. Any advise on how to fix this 
>>> issue?
>>>
>>> Jenkins v2.249.1
>>>
>>> [12/04/20 15:23:00] [SSH] Checking java version of java
>>> [12/04/20 15:23:01] [SSH] java -version returned 1.8.0_202.
>>> [12/04/20 15:23:01] [SSH] Starting sftp client.
>>> [12/04/20 15:23:03] [SSH] Remote file system root $JENKINS_SSH_DATA does 
>>> not exist. Will try to create it...
>>> [12/04/20 15:23:03] [SSH] Copying latest remoting.jar...
>>> [12/04/20 15:23:03] [SSH] Copied 1,521,553 bytes.
>>> Expanded the channel window size to 4MB
>>> [12/04/20 15:23:03] [SSH] Starting agent process: cd "$JENKINS_SSH_DATA" 
>>> && java  -jar remoting.jar -workDir $JENKINS_SSH_DATA -jar-cache 
>>> $JENKINS_SSH_DATA/remoting/jarCache
>>> Dec 04, 2020 3:23:29 PM org.jenkinsci.remoting.engine.WorkDirManager 
>>> initializeWorkDir
>>> INFO: Using $JENKINS_SSH_DATA/remoting as a remoting work directory
>>> Dec 04, 2020 3:23:29 PM org.jenkinsci.remoting.engine.WorkDirManager 
>>> setupLogging
>>> INFO: Both error and output logs will be printed to 
>>> $JENKINS_SSH_DATA/remoting
>>> <===[JENKINS REMOTING CAPACITY]===>channel started
>>> Remoting version: 4.5
>>> This is a Unix agent
>>> Evacuated stdout
>>> Agent successfully connected and online
>>> The Agent is connected, disconnect it before to try to connect it again.
>>> Dec 04, 2020 3:33:58 PM org.eclipse.jgit.util.FS discoverGitSystemConfig
>>> WARNING: Exception caught during execution of command '[git, config, 
>>> --system, --edit]' in '$GIT_PATH/bin', return code '128', error message 
>>> 'fatal: Invalid path '$GIT_PATH/etc': No such file or directory
>>> '
>>> Dec 04, 2020 3:33:58 PM org.eclipse.jgit.util.FS$FileStoreAttributes 
>>> saveToConfig
>>> WARNING: locking FileBasedConfig[$JENKINS_PATH/.config/jgit/config] 
>>> failed after 5 retries
>>> Dec 04, 2020 3:33:59 PM 
>>> org.jenkinsci.remoting.util.AnonymousClassWarnings warn
>>> WARNING: Attempt to (de-)serialize anonymous class 
>>> com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerBuildChooser$1;
>>>  
>>> see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
>>> Dec 04, 2020 3:34:24 PM hudson.remoting.Reque

Re: Jenkins Integration with LDAP - Testing Connection Fails

2021-01-01 Thread Mohan
Okay.  In that case you need provide the password of account configured in
Manager DN section.

On Fri, 1 Jan 2021, 3:49 pm anilkumar panditi, 
wrote:

> Hi Mk,
> Yes i have the CN,OU details i was confused what is this Manager DN
> password, also when we click on Test it prompt for credentials which i am
> giving the LDAP admin credentials.
>
> On Friday, 1 January 2021 at 13:15:02 UTC+5:30 Mk wrote:
>
>> Manager credentials should be your domain LDAP Credentials. So it
>> requires the complete CN,OU details. To get that contact your domain
>> administrators.
>>
>> On Fri, 1 Jan 2021, 1:10 pm anilkumar panditi, 
>> wrote:
>>
>>> Okay, can you help how to create manager credentials, also i am trying
>>> from the command (what is the user id need to give in this command)
>>>
>>> ldapsearch -x -h ad-ldap-server.com
>>>  -p 389 -D "CN=jenkins,OU=Users,OU=Division,OU=Team,DC=domain,DC=com"  -b 
>>> "OU=Users,OU=Division,OU=Team,DC=domain,DC=com" "(sAMAccountName=jenkins)" 
>>> -W
>>>
>>> Thanks,
>>> Anil
>>>
>>> On Friday, 1 January 2021 at 12:33:02 UTC+5:30 Mk wrote:
>>>
 Hi Anil,

 Manager and manager password need to configured to validate the test
 connection.

 On Fri, 1 Jan 2021, 12:29 pm anilkumar panditi, 
 wrote:

> Hi MK,
> i am getting ldap_bind: Invalid credentials (49)
>
> what are the credentials need to give here.
>
> Thanks,
> Anil
>
> On Saturday, 22 August 2020 at 10:00:55 UTC+5:30 Mk wrote:
>
>> Hi Jeremy, Thanks for the reply. Actually *ldapsearch* command on
>> jenkins master server terminal works. Below is the response.
>>
>> ldapsearch -x -h ad-ldap-server.com -p 389 -D
>> "CN=jenkins,OU=Users,OU=Division,OU=Team,DC=domain,DC=com"  -b
>> "OU=Users,OU=Division,OU=Team,DC=domain,DC=com"
>> "(sAMAccountName=jenkins)" -W
>> Enter LDAP Password:
>> # extended LDIF
>> #
>> # LDAPv3
>> # base  with scope
>> subtree
>> # filter: (sAMAccountName=jenkins)
>> # requesting: ALL
>> #
>>
>> # search result
>> search: 2
>> result: 0 Success
>>
>> # numResponses: 2
>> # numEntries: 1
>>
>> Since i am getting reponse so seems i have permission to query the
>> AD(LDAP) server.
>>
>> Also tried *Login name case sensitivity* & *Group name case
>> sensitivity* - Both with *Case sensitive* & *Case insensitive *but
>> still same result.
>>
>>
>>
>> On Friday, August 21, 2020 at 11:44:56 PM UTC+5:30, jeremy mordkoff
>> wrote:
>>>
>>> sounds like the user is valid but not a member of any groups. Is
>>> that possible?
>>>
>>>
>>>
>>> On Thursday, August 20, 2020 at 1:28:21 PM UTC-4 Mk wrote:
>>>
 Hi Team,

 I am trying to configure LDAP(AD) Authentication in our Jenkins,
 Below is my configuration settings, But test LDAP connection is 
 failing.

 Environment:-
 Jenkins Version - 2.235.5(LTS)
 LDAP Plugin - 1.24


 Server - ldap://ad-ldap-server.com
 root DN: DC=domain,DC=com
 User search base: OU=Users,OU=Division,OU=Team,DC=domain,DC=com
 User search filter: sAMAccountName={0}
 Group search base: OU=Users,OU=Division,OU=Team,DC=domain,DC=com
 Group search filter: (&(objectclass=group)(cn={0}))
 Group membership
   Group membership filter -
 (&(objectCategory=group)(member:1.2.840.113556.1.4.1941:={0}))
 Manager DN: CN=jenkins,OU=Users,OU=Division,OU=Team,DC=domain,DC=com
 Manager Password: password
 Display Name LDAP attribute: displayname
 Email Address LDAP attribute: mail


 Error Message:-

 [image: 1.png]

 Please let me know what is missing in my configuration?. Any help
 would be appreciated.

>>> --
> 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/ff6057a3-0c96-48d9-ae83-7c8cfe234fe9n%40googlegroups.com
> 
> .
>
 --
>>> 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/b189583d-7246-41f2-89d3-0eef98e6c718n%40googlegroups.com
>>> 

Re: Jenkins Integration with LDAP - Testing Connection Fails

2021-01-01 Thread anilkumar panditi
Hi Mk,
Yes i have the CN,OU details i was confused what is this Manager DN 
password, also when we click on Test it prompt for credentials which i am 
giving the LDAP admin credentials.

On Friday, 1 January 2021 at 13:15:02 UTC+5:30 Mk wrote:

> Manager credentials should be your domain LDAP Credentials. So it requires 
> the complete CN,OU details. To get that contact your domain administrators. 
>
> On Fri, 1 Jan 2021, 1:10 pm anilkumar panditi,  
> wrote:
>
>> Okay, can you help how to create manager credentials, also i am trying 
>> from the command (what is the user id need to give in this command)
>>
>> ldapsearch -x -h ad-ldap-server.com
>>  -p 389 -D "CN=jenkins,OU=Users,OU=Division,OU=Team,DC=domain,DC=com"  -b 
>> "OU=Users,OU=Division,OU=Team,DC=domain,DC=com" "(sAMAccountName=jenkins)" 
>> -W  
>>
>> Thanks,
>> Anil
>>
>> On Friday, 1 January 2021 at 12:33:02 UTC+5:30 Mk wrote:
>>
>>> Hi Anil,
>>>
>>> Manager and manager password need to configured to validate the test 
>>> connection.
>>>
>>> On Fri, 1 Jan 2021, 12:29 pm anilkumar panditi,  
>>> wrote:
>>>
 Hi MK,
 i am getting ldap_bind: Invalid credentials (49)

 what are the credentials need to give here.

 Thanks,
 Anil

 On Saturday, 22 August 2020 at 10:00:55 UTC+5:30 Mk wrote:

> Hi Jeremy, Thanks for the reply. Actually *ldapsearch* command on 
> jenkins master server terminal works. Below is the response. 
>
> ldapsearch -x -h ad-ldap-server.com -p 389 -D 
> "CN=jenkins,OU=Users,OU=Division,OU=Team,DC=domain,DC=com"  -b 
> "OU=Users,OU=Division,OU=Team,DC=domain,DC=com" 
> "(sAMAccountName=jenkins)" -W
> Enter LDAP Password:
> # extended LDIF
> #
> # LDAPv3
> # base  with scope 
> subtree
> # filter: (sAMAccountName=jenkins)
> # requesting: ALL
> #
>
> # search result
> search: 2
> result: 0 Success
>
> # numResponses: 2
> # numEntries: 1
>
> Since i am getting reponse so seems i have permission to query the 
> AD(LDAP) server.
>
> Also tried *Login name case sensitivity* & *Group name case 
> sensitivity* - Both with *Case sensitive* & *Case insensitive *but 
> still same result. 
>
>
>
> On Friday, August 21, 2020 at 11:44:56 PM UTC+5:30, jeremy mordkoff 
> wrote:
>>
>> sounds like the user is valid but not a member of any groups. Is that 
>> possible? 
>>
>>
>>
>> On Thursday, August 20, 2020 at 1:28:21 PM UTC-4 Mk wrote:
>>
>>> Hi Team,
>>>
>>> I am trying to configure LDAP(AD) Authentication in our Jenkins, 
>>> Below is my configuration settings, But test LDAP connection is failing.
>>>
>>> Environment:-
>>> Jenkins Version - 2.235.5(LTS)
>>> LDAP Plugin - 1.24
>>>
>>>
>>> Server - ldap://ad-ldap-server.com
>>> root DN: DC=domain,DC=com
>>> User search base: OU=Users,OU=Division,OU=Team,DC=domain,DC=com
>>> User search filter: sAMAccountName={0}
>>> Group search base: OU=Users,OU=Division,OU=Team,DC=domain,DC=com
>>> Group search filter: (&(objectclass=group)(cn={0}))
>>> Group membership
>>>   Group membership filter - 
>>> (&(objectCategory=group)(member:1.2.840.113556.1.4.1941:={0}))
>>> Manager DN: CN=jenkins,OU=Users,OU=Division,OU=Team,DC=domain,DC=com
>>> Manager Password: password
>>> Display Name LDAP attribute: displayname
>>> Email Address LDAP attribute: mail
>>>
>>>
>>> Error Message:-
>>>
>>> [image: 1.png]
>>>
>>> Please let me know what is missing in my configuration?. Any help 
>>> would be appreciated.
>>>
>> -- 
 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/ff6057a3-0c96-48d9-ae83-7c8cfe234fe9n%40googlegroups.com
  
 
 .

>>> -- 
>> 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/b189583d-7246-41f2-89d3-0eef98e6c718n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails