I think you can discard JVM versions issues and connectivity issues,
because the agent connects and copy the remoting.jar, How much time takes
between the agent connect and the channel is broken? Check you do not have
any configuration  that kill idle connections, also try to assign memory to
the remoting process (-Xmx256m -Xms256m), check those files dmesg,
kernel.log, syslog, and messages of the agent to see if there is some error.

```

[02/11/19 08:14:54] [SSH] Checking java version of
/usr/lib/jvm/jdk1.8.0_161/bin/java
[02/11/19 08:14:55] [SSH] /usr/lib/jvm/jdk1.8.0_161/bin/java -version
returned 1.8.0_161.
[02/11/19 08:14:55] [SSH] Starting sftp client.
[02/11/19 08:14:55] [SSH] Copying latest remoting.jar...
[02/11/19 08:14:55] [SSH] Copied 776,265 bytes.
Expanded the channel window size to 4MB
[02/11/19 08:14:55] [SSH] Starting agent process: cd "/home/jenkins"
&& /usr/lib/jvm/jdk1.8.0_161/bin/java  -jar remoting.jar -workDir
/home/jenkins
Feb 11, 2019 8:14:55 AM org.jenkinsci.remoting.engine.WorkDirManager
initializeWorkDir
INFO: Using /home/jenkins/remoting as a remoting work directory
Both error and output logs will be printed to /home/jenkins/remoting
<===[JENKINS REMOTING CAPACITY]===>   channel started
Remoting version: 3.25
This is a Unix agent
Evacuated stdout
Agent successfully connected and online

```

El mar., 12 feb. 2019 a las 5:45, niristotle okram (<[email protected]>)
escribió:

> Okay going by the logs now, here are some of the possible things that you
> can look into:
>
> 1. jdk versions consistent across the master and slaves
> 2.
> https://issues.jenkins-ci.org/plugins/servlet/mobile#issue/JENKINS-30561
> 3.
> https://devops.stackexchange.com/questions/1053/jenkins-cannot-reach-nodes-after-upgrade
> 4. "Jenkins 2.58+ only support java8 or higher, this includes your agents
> JVM." so you can try jdk7 instead of 8
>
> i will bet on 1 and 4. All the best!
>
>
>
>
>
> On Mon, Feb 11, 2019 at 2:52 PM Glenn Burkhardt <[email protected]>
> wrote:
>
>> I've attached the two logs.  I did make a change after seeing 'Failed to
>> ack the stream' to turn off scatter/gather.  But I think that's a bit of a
>> "hail mary".
>>
>> On Monday, February 11, 2019 at 10:16:05 AM UTC-5, Ivan Fernandez Calvo
>> wrote:
>>>
>>> It could be tons of things, Probably, if you go to the node log
>>> (JENKINS_URL/computer/NODE_NAME/log) we could see if the agent connect or
>>> not, then if the communication is broken before/after connection and in
>>> which point.
>>>
>>>
>>> --
>> 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 [email protected].
>
>
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/733c4024-b246-4dfb-b50c-3a7c85641e1b%40googlegroups.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/733c4024-b246-4dfb-b50c-3a7c85641e1b%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> --
> Regards
> nirish okram
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-users/VbdIfb4ua9A/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4iiX8iOZviNzXfynLDjkyt7pCUQ8Z7G_8kmg%3DaCS-2%3DTw%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4iiX8iOZviNzXfynLDjkyt7pCUQ8Z7G_8kmg%3DaCS-2%3DTw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAKo5QrrMnacuS05sUA-EBjECqf5eyB58QPCHg%3DTMpWjBNzxhMw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to