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.

/var/lib/waagent zip files

See original GitHub issue

Hi Everyone,

I know we had some fixes for this issue in the past: https://github.com/Azure/WALinuxAgent/issues/1730

We still see cases where there’s tons of old zip files in the folder and recently I noticed that specifically the WALinuxAgent install files are still there?

drwxr-xr-x  3 root root      4096 Sep 15 19:42 WALinuxAgent-2.2.44
-rw-r--r--  1 root root    502139 Sep 15 19:42 WALinuxAgent-2.2.44.zip
drwxr-xr-x  3 root root      4096 Sep 15 19:42 WALinuxAgent-2.2.45
-rw-r--r--  1 root root    517593 Sep 15 19:42 WALinuxAgent-2.2.45.zip
drwxr-xr-x  3 root root      4096 Sep 15 19:42 WALinuxAgent-2.2.46
-rw-r--r--  1 root root    530463 Sep 15 19:42 WALinuxAgent-2.2.46.zip
drwxr-xr-x  3 root root      4096 Sep 15 19:42 WALinuxAgent-2.2.48.1
-rw-r--r--  1 root root    531494 Sep 15 19:42 WALinuxAgent-2.2.48.1.zip
drwxr-xr-x  3 root root      4096 Sep 15 19:42 WALinuxAgent-2.2.49.2
-rw-r--r--  1 root root    547951 Sep 15 19:42 WALinuxAgent-2.2.49.2.zip
drwxr-xr-x  3 root root      4096 Oct  6 19:43 WALinuxAgent-2.2.51
-rw-r--r--  1 root root    547144 Oct  6 19:43 WALinuxAgent-2.2.51.zip

Are there any plans to manage these leftovers better moving forward? We have many users that ask about it.

As far as old ZIP files, if a user wants to clean up let’s say 100+ VM’s what is the safest way to do that? Do we have any proper guidance on how to do that safely?

Would let’s say:

stop the agent
mv /var/lib/waagent /var/lib/waagent.old
start the waagent
cp /var/lib/waagent.old/ovf-env.xml /var/lib/waagent/lib

Be a good solution so the waagent would re-download the most recent extensions only?

Thank you, Marco

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ZhidongPengcommented, Oct 13, 2020

Deleted the older version 2.2.44, 2.2.45 and 2.2.46

0reactions
narrietacommented, Nov 28, 2022

@itsafire This should be resolved. In case the agent did not remove old ZIPs, please go ahead and remove them manually.

Read more comments on GitHub >

github_iconTop Results From Across the Web

var/lib/waagent keeps filling up with zip files #1730 - GitHub
var /lib/waagent keeps filling up with zip files. Users reported issues with VM not booting up because of /var being full ...
Read more >
Azure Linux VM Agent Overview - Virtual Machines
The Microsoft Azure Linux Agent (waagent) manages Linux & FreeBSD provisioning, and VM interaction with the Azure Fabric Controller.
Read more >
Developers - /var/lib/waagent keeps filling up with zip files -
/var/lib/waagent keeps filling up with zip files. Users reported issues with VM not booting up because of /var being full ...
Read more >
How to deploy a shell script to private linux vm - Stack Overflow
Use @{file} to load script from a file. Therefore, you can do deploymentScript() { echo '#! /usr/bin/env bash ...
Read more >
Bug #1690854 “walinuxagent 2.2.12” - Launchpad Bugs
[#688] Agent should purge /var/lib/waagent/events if it gets full [#689] Remove superseded extension folders / zip files
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