Question

How to Fix: "Failed to open serialization file readonly file system"

Hi, I performed apt update +upgrade and rebooted the machine when prompted to do so. Now my droplet fails to boot and gives a message of “Failed to open serialization file readonly file system” Is there any guidance on how to resolve this issue?

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Accepted Answer

Ok so after running up a new droplet with my week old backup and updating to the point that it broke as described. I identified that it was the snapd package (snapd/bionic-updates 2.42.1+18.04 amd64 [upgradable from: 2.40+18.04]) that caused the break.

I then booted via the recovery console and removed the snapd package. I then shutdown and switched back to booting via the standard method and the test system is now working as expected.

I am now going to fully update the test system and reboot.

If this works I will replicate this to my live system.

Edit: This has worked and I have replicated to live system and all is working. The ‘snapd’ package was the issue for me, once removed all was good.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Uninstalling snap solved my problem as well. I’m going to upgrade to a newer version of Ubuntu to see if this problem persists there.

Great thread! I just found my way here after discovering snapd caused my 18.04 ubuntu server to go into read-only mode after a reboot.

I was using snapd to install certbot, but I found a tutorial with installation without snapd. See: https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-20-04

@ghostseven Thank you, we had the same problem and running:

apt rempve snapd

made our droplet boot as normal again.