By predmijat
Hey,
so I configured my droplet with nginx, php-fpm, mariadb, wordpress etc. and I thought it was a good idea to create a snapshot. When I booted back to my droplet, I couldn’t access my site and after some investigating I found that /etc/nginx/conf.d/default.conf is missing, but there was a default.conf.rpmsave which looks like my last version of default.conf.
Before creating a snapshot I did a
# systemctl poweroff
My question is why did this happen and how can I prevent it.
Thanks!
edit: I just did another snapshot just to check it and this time default.conf didn’t disappear. So I don’t know what caused it the first time…I also remember that I had the same problem some time ago, but I was doing all kind of testing at that time and figured I accidentally did it myself.
Question remains though - what can cause default.conf to disappear and become default.conf.rpmsave and how do I prevent it?
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!
It sounds like you must have had an update to nginx at some point before you made the snapshot. yum, the package manager for CentOS and Fedora will move config files to and rpmsave files when upgrading so that edits to config files won’t get overwritten during the upgrade. rpmconf is an neat little utility that you can run after upgrades to check for any new rpmsave files. If it finds one, it will offer you the choice to merge it with the new file from the package or to just restore it.
(Shameless Debian/Ubuntu plug: That functionality is baked into apt.)
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.