nginx-amplify-agent icon indicating copy to clipboard operation
nginx-amplify-agent copied to clipboard

Service gets duplicated in the portal on client restart

Open njt1982 opened this issue 7 years ago • 4 comments

I asked this on twitter first... https://twitter.com/nick_thompson/status/990662680842330113

Initially, I thought this was caused by some kind of change in fingerprint of the software versions (like when nginx upgrades): image

But then I just restarted the client (service amplify-agent restart) and another one came up in the list. image

Should I write the UUID to the config?

It looks like, back in December, the app was changed to not write the UUID to the config. https://github.com/nginxinc/nginx-amplify-agent/commit/4299c79eab210e5201f4776fdeccb9364f9538fc

njt1982 avatar Apr 29 '18 19:04 njt1982

For some managed environments, modifying the config file is undesirable. We did however add a new config value that you can use to enable writing the UUID automatically to the config:

[credentials]
store_uuid=True  # with this set to true the agent will write UUID to the config like before

With this flag set to True the original agent behavior will be restored.

gshulegaard avatar May 02 '18 19:05 gshulegaard

For some managed environments, modifying the config file is undesirable. We did however add a new config value that you can use to enable writing the UUID automatically to the config:

[credentials]
store_uuid=True  # with this set to true the agent will write UUID to the config like before

With this flag set to True the original agent behavior will be restored.

I'm having the same problem. Where exactly should we put those lines? What file?

Danrancan avatar Sep 24 '23 02:09 Danrancan

@nkashiv Could you have a look?

richbrowne avatar Sep 25 '23 15:09 richbrowne

I'm having the same problem. Where exactly should we put those lines? What file?

@Danrancan You can add it to the Amplify Agent's config file /etc/amplify-agent/agent.conf under the [credentials] section.

nkashiv avatar Sep 26 '23 18:09 nkashiv