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 keeps filling up with zip files

See original GitHub issue

/var/lib/waagent keeps filling up with zip files.

Users reported issues with VM not booting up because of /var being full (https://github.com/microsoft/OMS-Agent-for-Linux/issues/932) This issue has already been reported before (https://github.com/Azure/WALinuxAgent/issues/1020 ) and is still occuring with the latest version.

Is there any reason why waagent keeps all those old zip files ? Would it be possible to add some code to delete those old files ?

EXAMPLE

-rw-r--r-- 1 root root 126056109 Aug  7 09:54 Microsoft.Azure.Diagnostics__LinuxDiagnostic__3.0.121.zip
-rw-r--r-- 1 root root 142397246 Nov  3 11:05 Microsoft.Azure.Diagnostics.LinuxDiagnostic__3.0.125.zip
-rw-r--r-- 1 root root   1374378 Feb  3  2018 Microsoft.Azure.RecoveryServices__VMSnapshotLinux__1.0.9126.0.zip
-rw-r--r-- 1 root root   1375184 Feb 16  2018 Microsoft.Azure.RecoveryServices__VMSnapshotLinux__1.0.9127.0.zip
-rw-r--r-- 1 root root   1374020 Mar  6  2018 Microsoft.Azure.RecoveryServices__VMSnapshotLinux__1.0.9128.0.zip
-rw-r--r-- 1 root root   1393624 Apr 20  2018 Microsoft.Azure.RecoveryServices__VMSnapshotLinux__1.0.9131.0.zip
-rw-r--r-- 1 root root   1394887 May 30  2018 Microsoft.Azure.RecoveryServices__VMSnapshotLinux__1.0.9133.0.zip
-rw-r--r-- 1 root root   1401585 Jul 30  2018 Microsoft.Azure.RecoveryServices__VMSnapshotLinux__1.0.9136.0.zip
-rw-r--r-- 1 root root   1439101 Feb 12  2019 Microsoft.Azure.RecoveryServices__VMSnapshotLinux__1.0.9146.0.zip
-rw-r--r-- 1 root root   1439094 Feb 24  2019 Microsoft.Azure.RecoveryServices__VMSnapshotLinux__1.0.9147.0.zip
-rw-r--r-- 1 root root   1438804 Apr 10  2019 Microsoft.Azure.RecoveryServices__VMSnapshotLinux__1.0.9148.0.zip
-rw-r--r-- 1 root root   1438571 Apr 15  2019 Microsoft.Azure.RecoveryServices__VMSnapshotLinux__1.0.9149.0.zip
-rw-r--r-- 1 root root   1438703 May 10  2019 Microsoft.Azure.RecoveryServices__VMSnapshotLinux__1.0.9150.0.zip
-rw-r--r-- 1 root root   1440027 Aug 21 11:02 Microsoft.Azure.RecoveryServices__VMSnapshotLinux__1.0.9151.0.zip
-rw-r--r-- 1 root root   1442515 Sep 25 10:31 Microsoft.Azure.RecoveryServices__VMSnapshotLinux__1.0.9153.0.zip
-rw-r--r-- 1 root root   1448436 Oct  3 10:44 Microsoft.Azure.RecoveryServices__VMSnapshotLinux__1.0.9156.0.zip
-rw-r--r-- 1 root root   2350933 Mar 25  2018 Microsoft.CPlat.Core__RunCommandLinux__1.0.0.zip
-rw-r--r-- 1 root root 113383928 May  5  2019 Microsoft.EnterpriseCloud.Monitoring__OmsAgentForLinux__1.10.3.zip
-rw-r--r-- 1 root root 113384304 May 14  2019 Microsoft.EnterpriseCloud.Monitoring__OmsAgentForLinux__1.10.5.zip
-rw-r--r-- 1 root root 129614911 Jul 27 10:52 Microsoft.EnterpriseCloud.Monitoring__OmsAgentForLinux__1.11.15.zip
-rw-r--r-- 1 root root 129728388 Jun 11 10:33 Microsoft.EnterpriseCloud.Monitoring__OmsAgentForLinux__1.11.3.zip
-rw-r--r-- 1 root root 129742348 Jun 19 10:30 Microsoft.EnterpriseCloud.Monitoring__OmsAgentForLinux__1.11.5.zip
-rw-r--r-- 1 root root 129742423 Jun 25 10:50 Microsoft.EnterpriseCloud.Monitoring__OmsAgentForLinux__1.11.7.zip
-rw-r--r-- 1 root root 129628554 Jun 28 10:40 Microsoft.EnterpriseCloud.Monitoring__OmsAgentForLinux__1.11.9.zip
-rw-r--r-- 1 root root 140756004 Dec  6 08:12 Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux__1.12.15.zip
-rw-r--r-- 1 root root 137303839 Oct 17 10:44 Microsoft.EnterpriseCloud.Monitoring__OmsAgentForLinux__1.12.1.zip
-rw-r--r-- 1 root root 137317799 Oct 21 11:13 Microsoft.EnterpriseCloud.Monitoring__OmsAgentForLinux__1.12.5.zip
-rw-r--r-- 1 root root 118059938 Mar  3  2018 Microsoft.EnterpriseCloud.Monitoring__OmsAgentForLinux__1.4.59.1.zip
-rw-r--r-- 1 root root 115012056 Mar  8  2018 Microsoft.EnterpriseCloud.Monitoring__OmsAgentForLinux__1.4.60.2.zip
-rw-r--r-- 1 root root 112370654 Jan 31  2019 Microsoft.EnterpriseCloud.Monitoring__OmsAgentForLinux__1.8.12.zip
-rw-r--r-- 1 root root 113049744 Feb 22  2019 Microsoft.EnterpriseCloud.Monitoring__OmsAgentForLinux__1.9.1.zip
-rw-r--r-- 1 root root    478290 Apr 24  2019 WALinuxAgent-2.2.40.zip
-rw-r--r-- 1 root root    486628 Jul  4 05:34 WALinuxAgent-2.2.41.zip
-rw-r--r-- 1 root root    506986 Aug 13 09:48 WALinuxAgent-2.2.42.zip
-rw-r--r-- 1 root root    502139 Oct 25 10:55 WALinuxAgent-2.2.44.zip
-rw-r--r-- 1 root root    517593 Nov 19 08:14 WALinuxAgent-2.2.45.zip

VERSION

WALinuxAgent-2.2.35.1 running on oracle 7.6
Python: 2.7.5
Goal state agent: 2.2.45

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
pgombarcommented, Jun 23, 2020

Issue is resolved with #1642 and zip files will not keep accumulating anymore. If you have old zips laying around, the mitigation is to manually delete them, they won’t come back.

1reaction
johanburaticommented, Dec 16, 2019

https://github.com/Azure/WALinuxAgent/pull/1642 cleans up the extension zip files that have the new format.

New format: Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux__1.12.15.zip Old format: Microsoft.EnterpriseCloud.Monitoring__OmsAgentForLinux__1.11.9.zip

Please refer to the listing above you will see that you have multiple files with the old format for one extension, please delete those files manually if you need the space, going forward all the extension files will have the new format and the agent will take care of deleting them.

Read more comments on GitHub >

github_iconTop Results From Across the Web

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 >
Zip and unzip files - Microsoft Support
To unzip all the contents of the zipped folder, press and hold (or right-click) the folder, select Extract All, and then follow the...
Read more >
Why are my files zipped and how do I unzip them?
Answer · Download the file to your local computer · Bring the file up in Windows Explorer · Right-click on it · Choose...
Read more >
Is is good idea to store long term data in Zip format? [closed]
All data is arranged in many folders. As my laptop drive is keep filling , I have to move this data to some...
Read more >
WinZip for Windows - Zip Files, Unzip Files
WinZip is the world's leading zip utility for file compression, encryption, sharing, and backup. Save time and space, zip & unzip files quickly....
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