Controlling disk space in /var/snap/ams/common/data/artifacts

Managing disk space in /var/snap/ams/common/data/artifacts

We have deployment that has run out of disk space, is it safe to purge files?

find /var/snap/ams/common/data/artifacts/* -mtime +30
/var/snap/ams/common/data/artifacts/05326c0578997298520e44021b386b0504a7a85e155adc084b1a82a98d1e71db
/var/snap/ams/common/data/artifacts/0d21d3b915e5e8c2b57d96e07a37f02e38e5c67933f19bc03ed90052f0402d40
/var/snap/ams/common/data/artifacts/0d7cf8d599671f52d8b6888eb8c3c93d86dacaa941a0b10a52cce61c1224fcf5
/var/snap/ams/common/data/artifacts/0ee12c78bf0d392df37a8473ee86df7e8c14c1c968a9b1aba0ddc0f61e9fedbb
/var/snap/ams/common/data/artifacts/0f97a6f410cdc3386f9af30049f456c0c79374e8358c96bffc8775dc8a60795d
/var/snap/ams/common/data/artifacts/161378cc09974e9e1197f738f61bf275cf7b573870c476c713c663d74168e96d
/var/snap/ams/common/data/artifacts/175126837b4a64f45d13c1b2e2ea0f72359bf300ea0c4e62cfebabb83519fad2
/var/snap/ams/common/data/artifacts/1939dd5f64a7908128a4f250c5af132b8c9694db37fee03e7ada4f55510c23b5
/var/snap/ams/common/data/artifacts/1e3c29d7bb606a1ca4f86e87cf01928e9b0e7de18ac5ccc590770f8bbb3b5c9a
/var/snap/ams/common/data/artifacts/23f6d0d53423dacf2141e6e3d2897e572b80b00fc813610c984fa12460ef4767
/var/snap/ams/common/data/artifacts/27871a36aa82af6cb812cf75c532f6a1fdd69f5b3e88a3e55067c37c96013c31
/var/snap/ams/common/data/artifacts/31c2506b26c4f2a4afa02d404dbb9687ac0484853d19cf3ae26b30c19e0ed35b
/var/snap/ams/common/data/artifacts/3f3da4903465b90ee4ca1bfc7df778dbe275b196dda2848b923ce8ad0fee477a
/var/snap/ams/common/data/artifacts/5411cc8d35d8c9ca6fa650cbf26316161edb628b18a59c3deee44ffbff0e955a
/var/snap/ams/common/data/artifacts/5867bdc82ae836356495b87974d1f4f311c28d5418f6888baaf651d330113822
/var/snap/ams/common/data/artifacts/61dd1f6a5f9a4e12f42ae89d1ac387dcd747e442c565c81207b30ce5322ee27a
/var/snap/ams/common/data/artifacts/674311c51eaacbd7c1b11fbab02eee9b6bccc08f43a6c777ef053fdffb40f480
/var/snap/ams/common/data/artifacts/7b57f580206e5461a2f0cc6e8c45adcf762e211b6c653f3f4c96143de3a39ef8
/var/snap/ams/common/data/artifacts/87cf416a8b3fcb936022072fc3a927c42e742c43f5e2a724a12827b4067820e6
/var/snap/ams/common/data/artifacts/89dd6a57535b2b1377eccb90414572f35f190c2f2e66a7f3541a2d1f06c8ca7e
/var/snap/ams/common/data/artifacts/8ae11d18484c00fa2c02bb6ed35c86c641407536d70b608c78214c3f7f546314
/var/snap/ams/common/data/artifacts/8dbb023e7c2657346adb4992cf09e3ecc43193c0a6bb522947bfda8d6a86d2d6
/var/snap/ams/common/data/artifacts/8dfe8a9235feec746429f36a869a3f1564087440cf565add21a5b056349de629
/var/snap/ams/common/data/artifacts/8fcf012d81cd912df1a498901ea3c53335d4fc9e1405ec39aeb733f3ad49eefe
/var/snap/ams/common/data/artifacts/903b14be134fb30713424613276c4ce9525f85014656b551c935b336f5c7030c
/var/snap/ams/common/data/artifacts/911eefc6e3481a156f34a6a8de54120a65abd32d9747366427684df173d094af
/var/snap/ams/common/data/artifacts/96546d252ea946bcb0f1be0b766d9f047df1e83c91d5127de11454056b662ae3
/var/snap/ams/common/data/artifacts/99a80cef4697ba86b418bff963474c9016be64295b5e6cef0ea8f7d6e6f59ef1
/var/snap/ams/common/data/artifacts/9f41798a2c6044d09b9cbcad8d79a5a8dbd5e4c949ce7b6f0ea10bf631f3fad2
/var/snap/ams/common/data/artifacts/a3db167098115a2faf145be6af3ed2e8cdd5c03f74d1de68a4d3cde857c46500
/var/snap/ams/common/data/artifacts/aaaab1d51bf1e69f9238a4fd0f7801e858bd47a278a9e8032add1d4e3cff98b4
/var/snap/ams/common/data/artifacts/aef1feeca3f3d0ba325b35e271c989bd7b287e3bf930cdef676d0b7841a0d930
/var/snap/ams/common/data/artifacts/b2759efacacca4fb889bed8350d955dc73e419206e482966af68828905322189
/var/snap/ams/common/data/artifacts/bd91f0fb9cc2e83c65b27c8d6939347d860524696235433492218bd2e457e9ac
/var/snap/ams/common/data/artifacts/c24d2f5165a2892df8613704152de8d7dcd971176f1ae46da5a1d2ff4217700b
/var/snap/ams/common/data/artifacts/ce097f12f2727cb3287fc65f272576095eb56a819f0d4c751afbf90f1f0307ce
/var/snap/ams/common/data/artifacts/d423a0acb4334f2401a1b162d725fa71e61c36c3e8c25c0983b880ace9d2de24
/var/snap/ams/common/data/artifacts/d62e2de1dc09b3ba421860f849fd39745767bc84cbbb53cf142329b66e896f10
/var/snap/ams/common/data/artifacts/d991a5101844356d4cfa3f7c7c97b850760d012fd1d56391436308d72acebae4
/var/snap/ams/common/data/artifacts/dc82b7f27bf097e9077f7da73f84b8b692529610ab8bc7ee29ba9dd26cb70a9f
/var/snap/ams/common/data/artifacts/df58cd83f3eca38f12b899ca1f223b4e6af2a2084a026517d697757b2a1c50bb
/var/snap/ams/common/data/artifacts/dfa45cea81242ff474fabfd3e2f2970bac46100c5f082988c49a2c672744f322
/var/snap/ams/common/data/artifacts/e6ee410cf7c843d3d743cee18ceec49c72a93d5fcfb6aa5a2bfb9192bfc00189
/var/snap/ams/common/data/artifacts/f4c4ad560a485640eaf68f1923debe322aafbcb01fd2b7fc73226ff80a91534f
/var/snap/ams/common/data/artifacts/f7a606b5a1f617ff2b8690baa422d57c5d522735632f2fc6327ebba2c54f46d2
/var/snap/ams/common/data/artifacts/ffdbda84114a1c773979918b59ea88b62503a09c1ca549945b7ec339b47ac2c3

Hi!

These files are stored on request by users, and are bound to objects managed by AMS (applications, instance images…)

It is not safe to remove these files manually, as it will corrupt the internal AMS state.

You should look into cleaning up some objects through the AMS interfaces (the HTTP API or the amc command line tool), or via the Anbox Cloud dashboard. These objects can be unused AMS applications, images, or instances.

Hope this helps!

Alexis

Thanks, as we expected is there a best practice for managing this space requirement. We have 3 apps running and 6 TB of artifact as far back as April of this year.

Hi!

If you are running the Anbox Cloud Appliance, could you run and share the results of anbox-cloud-appliance.buginfo?

Otherwise, could you run the following commands and show us the results?

du -h /var/snap/ams/common/data/artifacts/*
amc image ls
amc application ls
amc addon ls

Thanks!

Alexis