question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add ability to opt out of agent auto-update

See original GitHub issue

Describe the enhancement

Running the agent within docker and having it auto update causes the container to throttle and never succeed without having to manage PID 1

It would be nice to have something in config.sh or run.sh, possibly environment variables to help opt out of auto-update

Code Snippet

n/a

Additional information

n/a

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:83
  • Comments:55 (19 by maintainers)

github_iconTop GitHub Comments

20reactions
bryanmacfarlanecommented, Apr 17, 2020

Also note in the short term if you are running the runner in a container, you should call the ./runsvc.sh entrypoint and not ./run.sh which is meant for interactive running. Calling ./runsvc.sh will at least handle the update and not exit.

In the medium term, we also want to support .container in the yaml when running in K8s so at least the container your job runs in (the steps) can stay static and is decoupled from the runner. That also means you don’t have to build the runner into your containers. That’s how it works with VM self-hosted - the runner on the host execs steps in the container you bring.

Finally, we should consider refactoring as @ioquatix referred to into the base runner (listener) and the steps portion which is derived from the service yaml orchestration.

13reactions
ioquatixcommented, Apr 1, 2020

Here is my suggestions:

  • Don’t want self-updating features, it’s deployed as a versioned package. If an update is needed we will release a new package.
  • Please separate the files according to unix conventions: read-only area for binaries/assets and a directory for runtime state, e.g. the user’s home directory, or allow it to be specified on the command line.
Read more comments on GitHub >

github_iconTop Results From Across the Web

Setting up self-hosted automatic agent updates (Preview)
We'll provide a rolling update channel for agents to be able to automatically update from one major to another. When this will happen,...
Read more >
Define the behavior for failed agent auto-updates
In the Admin Console, go to Directory > Directory Integrations. · Click an AD instance. · Click the Agents tab. · Select Update...
Read more >
Deactivate or Activate Auto-Update for Individual Agents
You can enable or deactivate auto-update for individual agents by editing the client-side configuration file for that agent.
Read more >
Automating updates to SSM Agent - AWS Systems Manager
Choose the Settings tab. In the Agent auto update area, choose Auto update SSM Agent. To change the version of SSM Agent your...
Read more >
Manage additional Windows Update settings
Configuring Automatic Updates by editing the registry · Select Start, search for "regedit", and then open Registry Editor. · Open the following ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found