Trouble with GoCD ECS Elastic Agent Plugin

33 views
Skip to first unread message

Charles Haron

unread,
Jun 14, 2024, 11:31:46 AMJun 14
to go-cd
Hello,

I'm having some trouble with the ECS elastic agent plugin.

I have no "Add" button as shown in the documentation. I thought it might be due to an older version of the plugin (2.0.0-157). So, I attempted to update the plugin to 7.4.0-663.

I started by removing /var/lib/go-server/plugins/external/ecs-elastic-agent-plugin-2.0.0-157.jar and adding /var/lib/go-server/plugins/external/ecs-elastic-agent-plugin-7.4.0-663.jar.  I then restarted the service with "sudo systemctl restart go-server.service".

After the restart, ecs-elastic-agent-plugin-2.0.0-157.jar returned to /var/lib/go-server/plugins/external/ and the logs say "Loading plugin com.thoughtworks.gocd.elastic-agent.ecs version 2.0.0"

So, I have two questions...
  1. How do I upgrade the plugin?
  2. Why is there no "Add" button for creating a cluster profile?
My GoCD server version is 23.3.0

Thanks

Chad Wilson

unread,
Jun 14, 2024, 12:31:57 PMJun 14
to go...@googlegroups.com
What changed in your environment to cause you to notice the add button is missing and that you had an ancient version of the plugin? I'm not aware of such old versions of the plugin, that would seem imply it was a commercial version from before the plugin was open-sourced, since the first open source version was 6.3.0-3.

I'm not aware of any mechanism internal to GoCD that would cause plugins to re-appear with the plugins/external folder. GoCD via container has an optional automated download mechanism, but seems you are not using that if using systemctl to restart.

Do you have some proprietary rsync/cron job or something from an external source that syncs stuff into the plugins directory from elsewhere?

In any case, it would seem very unlikely that an ancient version of the plugin like that works correctly now, so we should probably focus on getting the latest version there, and only the latest version (not duplicates).

-Chad

--
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 go-cd+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/b3c74d79-1971-473f-a838-580f8b1b3a93n%40googlegroups.com.

Charles Haron

unread,
Jun 14, 2024, 10:31:21 PMJun 14
to go-cd
Hi,

Disregard my last message.  There was a typo is my Puppet config.  I've successfully updated to  7.4.0-663 and the "Add" button is now visible.

Thanks again.
Charles

Charles Haron

unread,
Jun 14, 2024, 10:31:40 PMJun 14
to go-cd
Hi Chad,

Thanks for the hint on rsync/cron.  Turns out Puppet was adding the old plugin.  I've made the necessary Puppet change, so now I have only 7.4.0-663 in the plugins directory.   Unfortunately, I'm still seeing it load 2.0.0 in the logs and still no "Add" button.

Log output:
-------- >8 --------
❯ cat /var/log/go-server/plugin-com.thoughtworks.gocd.elastic-agent.ecs.log
2024-06-14 13:47:58,817 INFO  [Thread-79] ECSElasticPlugin:72 - Loading plugin com.thoughtworks.gocd.elastic-agent.ecs version 2.0.0 (4e392884e572ed609ae3863598ded7a9293cfbf8)
2024-06-14 13:50:19,164 INFO  [Thread-79] ECSElasticPlugin:72 - Loading plugin com.thoughtworks.gocd.elastic-agent.ecs version 2.0.0 (4e392884e572ed609ae3863598ded7a9293cfbf8)
------- >8 --------

A search for ECS pugins
------- >8 --------
❯ sudo find /var/lib/go-server -type f -name 'ecs-elastic-agent-plugin*'
/var/lib/go-server/plugins/external/ecs-elastic-agent-plugin-7.4.0-663.jar
-------- >8 --------

This is what my Elastic Agents Configuration page looks like.
ecs_cfg_page.png

Thanks,
Charles

On Friday, June 14, 2024 at 12:31:57 PM UTC-4 Chad Wilson wrote:

Chad Wilson

unread,
Jun 14, 2024, 10:35:11 PMJun 14
to go...@googlegroups.com
Good to hear!

For completeness, if you want to know the root cause of the 'add' button not being there, old versions of the plugin had same technically invalid HTML syntax for the configuration view which is more strictly interpreted by modern browsers - fixed in later versions of the plugin.

-Chad


Reply all
Reply to author
Forward
0 new messages