It would be great to have inputs from an author or anyone from https://github.com/iriusrisk/GoCD-EC2-Elastic-Agent-Plugin. @iriusrisk ?
Many thanks in advance. Satya On Thu, Jul 14, 2022 at 4:58 PM Satya Elipe <[email protected]> wrote: > Also, to add: > > "Check agent status" from the job gives all the details about the agent, > but agents tab shows nothing under "Elastic". > > > On Thu, Jul 14, 2022 at 4:52 PM Satya Elipe <[email protected]> wrote: > >> Thanks Aravind. >> >> Yes, I use that plugin. >> >> Attached is the log snippet from /var/log/go-agent/go-agent.log >> Not sure, what does that mean? Agent not able to reach the severer, but >> we are able to see all the information about the agent on the server (from >> the job's agent status). >> >> Let me know if any other logs from the agent will be helpful . Thank you >> >> Best Wishes >> Satya >> >> On Thu, Jul 14, 2022 at 4:25 PM Aravind SV <[email protected]> >> wrote: >> >>> Is there any information in the elastic agent logs? Not the GoCD server >>> logs. >>> >>> It looks like the plugin you’re using is: >>> https://github.com/iriusrisk/GoCD-EC2-Elastic-Agent-Plugin >>> >>> The author or someone there might know more. To me, it looks like some >>> kind of a timing issue and the agent not identifying itself properly to the >>> server, if it is able to connect. >>> >>> Cheers, >>> Aravind >>> >>> * From*: Satya Elipe <satya+elipe+%[email protected]%3E> >>> * Subject*: Re: [go-cd] A new elastic agent is created for every 2 mins. >>> * To*: [email protected], [email protected] >>> * Date*: Thu, 14 Jul 2022 12:28:03 +0100 >>> Hi Ketan >>> Thank you for the input. >>> >>> I could ssh into go-agent and look into some more details.. >>> 1. Server configuration from agent pc looks fine and I'm able to wget >>> the server info, attached the screenshot >>> 2. Elastic agent is actually visible on the server/job, attached are the >>> screenshots from the server/job. >>> 3. go-agent is installed and available on the AMI and is running/active >>> on the elastic agent pc; attached the screenshot; >>> 4. agent stderr.out file shows some errors about the cookies but finally >>> was able to set/get that info, attached the screenshot too. >>> >>> I think I'm missing something very obvious hence the agent not getting >>> assigned. >>> Any further inputs will be appreciated. Thank you. >>> >>> Regards >>> Satya >>> >>> >>> >>> >>> >>> On Wed, Jul 13, 2022 at 3:49 PM Ketan Padegaonkar < >>> [email protected]> wrote: >>> >>>> Most likely cause seems to be that the elastic agent is not registering >>>> with the server within a specified timeout. So the server attempts to >>>> create another elastic agent instance. >>>> >>>> Check if the profile supports a timeout configuration and see if you >>>> are able to increase it. Increasing the timeout might give you enough time >>>> to be able to SSH into the instance to determine what's going on. The >>>> plugin seems to expect that your AMI contains a gocd agent installed, it >>>> then sets up some user data >>>> <https://github.com/iriusrisk/GoCD-EC2-Elastic-Agent-Plugin/blob/92e5efd322ac9ae8bc574706e0503060bd1a9015/src/main/java/com/continuumsecurity/elasticagent/ec2/Ec2Instance.java#L73-L89> >>>> to configure the gocd agent, and start up the agent and wait for it to >>>> connect. >>>> >>>> - Ketan >>>> >>>> On Wed, Jul 13, 2022 at 7:55 PM Satya Elipe <[email protected]> >>>> wrote: >>>> >>>>> Hi All >>>>> >>>>> I see that, for every 2 mins a new elastic agent is created in >>>>> contrast to my understanding that a single elastic agent comes up and >>>>> finishes the job and vanishes after the job is finished. >>>>> >>>>> Did I miss something? >>>>> >>>>> Many thanks in advance. >>>>> Satya >>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "go-cd" 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/go-cd/CADKEDRqhicqueq-hwCwdjbtRcVFharVu_bUDKFPSV-_MPamPzQ%40mail.gmail.com >>>>> <https://groups.google.com/d/msgid/go-cd/CADKEDRqhicqueq-hwCwdjbtRcVFharVu_bUDKFPSV-_MPamPzQ%40mail.gmail.com?utm_medium=email&utm_source=footer> >>>>> . >>>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "go-cd" 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/go-cd/CAMUPJd7N2FGvHz%3Dp4gw_LX6r4K%3DXBzxKX4sG7GJCwM%3D625%3Dseg%40mail.gmail.com >>>> <https://groups.google.com/d/msgid/go-cd/CAMUPJd7N2FGvHz%3Dp4gw_LX6r4K%3DXBzxKX4sG7GJCwM%3D625%3Dseg%40mail.gmail.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "go-cd" 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/go-cd/CADKEDRr5qwnTnuDMiNWX5KzWtc-sopvPwXQmBo4419fMg3obfg%40mail.gmail.com >>> <https://groups.google.com/d/msgid/go-cd/CADKEDRr5qwnTnuDMiNWX5KzWtc-sopvPwXQmBo4419fMg3obfg%40mail.gmail.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- You received this message because you are subscribed to the Google Groups "go-cd" 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/go-cd/CADKEDRojdXdCbiFzey7xSgnzArguES5WXLfknPvoMtw6nY3aaA%40mail.gmail.com.
