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.
[image: ecs_cfg_page.png]

Thanks,
Charles

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

> 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 
> <https://github.com/gocd/gocd-ecs-elastic-agent/releases/tag/v6.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
>
> On Fri, Jun 14, 2024 at 11:31 PM Charles Haron <[email protected]> wrote:
>
>> Hello,
>>
>> I'm having some trouble with the ECS elastic agent plugin.
>>
>> I have no "Add" button as shown in the documentation 
>> <https://github.com/gocd/gocd-ecs-elastic-agent/blob/master/docs/cluster_profile_configuration.md>.
>>  
>> 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
>>
>> -- 
>> 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/b3c74d79-1971-473f-a838-580f8b1b3a93n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/go-cd/b3c74d79-1971-473f-a838-580f8b1b3a93n%40googlegroups.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/c3ce13ff-947a-49b7-8d7f-60235293b1c4n%40googlegroups.com.

Reply via email to