Dr Clèm's Blog

Tags: Captain's log FLOSS FOSS Free Software Linux container LXD Ubuntu Canonical Snap

How to fix a broken LXD server due to fail snap auto-refresh

Sunday Aug 16, 2020 15:37, last edition on Sunday Aug 16, 2020 15:42

For my Linux containers, I am using LXD. The recommended way to install LXD is Snap, which updates daily. Few days ago, the last release of LXD has been released and the update started automatically. For the next two following days, I experienced timeout on my virtual servers. I also noticed at lot of input/output (I/O) on the hard drives. I started to investigate. I identified, using Htop among other tools like Netdata, that the process snapd, from Snap, was using 100% of the hard drives and all the I/O were on the /var/ partition. Using the command snap watch --last auto-refresh, I saw that the update stated more than two days ago and was stuck at the step Copy snap "lxd" data. I aborted the ongoing procedure but I ended up with a completely broken LXD. Hopefully, on Linux Containers forum, I found someone with the same, or at least similar enough, issue.

You can try to automate snap in offline mode. Make sure your host is not connected to the internet. This is definitely recommended for hypervisors and therefore also the LXD hosts. (my opinion for LXD hosts)

Download snap somewhere else with:
snap download lxd

Copy the files to your LXD node and install the snap:
snap ack <package.assert>
snap install <package.snap>

Linux Containers

It saved my day! At least, what was left ot it. It is at least the second time that this issue happens to me and it appears to impact other user. Unfortunately, it is a sign that LXD is not ready for production environment which requires stability. It is also a reminder that I need to find a way to backup LXD.

Mastodon Follow me Mastodon Share
Comments

ivermectin lotion cost
Posted by Darrinram on Tuesday Oct 05, 2021 06:00.
ivermectin lotion <a href=" http://stromectolrt.online# ">ivermectin for sale</a> - ivermectin 1% cream generic
pay pal for cialis
Posted by DavidSweed on Tuesday Oct 05, 2021 09:26.
brand cialis <a href=" https://edcialislove.com/# ">cialis no perscription overnight delivery</a> - how to make homemade cialis
anyone ever order viagra online
Posted by LarryFoomb on Friday Oct 08, 2021 12:43.
https://edviagralove.online# viagra coupon code
viagra online buy
erection problems
Posted by Jasonesoxy on Wednesday Oct 13, 2021 23:44.
ivermectin tablets order <a href=" http://stromectoli.com/# ">ivermectin over the counter canada</a> - stromectol ivermectin 3 mg
comfortis without vet prescription
Posted by Jasonesoxy on Thursday Oct 14, 2021 11:32.
ivermectin 12 mg <a href=" https://stromectoli.com/# ">ivermectin cream cost</a> - ivermectin pills human
best price for generic viagra on the internet
Posted by Jasonesoxy on Friday Oct 15, 2021 00:05.
ivermectin 3mg pill <a href=" http://stromectoli.online# ">ivermectin 500mg</a> - ivermectin over the counter
Post a comment

* required field.

Your comment

*

About you

*

*

Dr Clément Février

Bonjour, Je suis Clément Février, docteur en physique théorique de l’université de Grenoble Alpes, ingénieur Recherche et Développement dans le domaine de l’imagerie médicale et de la chirurgie mini-invasive chez Surgivisio et soutien du mouvement La France Insoumise.


Non, mais je rêve. La faille de sécurité Windows CVE-2021-40444 ne touche que le moteur de rendu d'Internet Explorer, pas celui de Edge. Donc, ça semblait cool sauf pour les très vieux Windows ? Sauf que Office utilise toujours le moteur de rendu d'Internet Explorer (oui, il y a un navigateur Web dans le tableur et dans le traitement de texte) et est donc vulnérable, et cette faille est exploitée (on ouvre le document vérolé et paf).

#cyberTruc