By joelerr
Setup: Ubuntu 16.06, digital ocean droplet. Single WordPress app on a micro droplet.
Customizations:
All this was working (honest) and the site was up and accessible up to midday yesterday. I wasn’t even working on it remotely - working locally most of the day. Then I checked it at the end of the day and boom! app directory gone. Everything else appears normal - I can access it via ssh and console and all the users I added are there,etc.
Any ideas how I can tell what stupid thing I did to find out if I deleted it? Any way to tell if Server Pilot did something that might have deleted it?
ServerPilot still shows WordPress as connected to the app.
getfacl on the app directories show everything normal with root having read access to everything.
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!
ahh…
I’m sure it had to do with me trying to create a wordpress user that was jailed to the wordpress directory, and then deciding to delete the user later when I realized I needed a home directory for keys.
I can’t recreate the exact sequence of events since its spread across users, but I think it went something like this :
sudo adduser --home /srv/users/serverpilot/apps/wordpress wpsys
mkhomedir_helper wpsys
#that didn't seem to work, so I did this:
usermod -m -d /home/wpsys wpsys
#and then later decided I didn't need the user
userdel -r wpsys
my suspicion is that I screwed up the sequence and deleted the original home directory which was the wordpress directory when I deleted the user. It shouldn’t have done that since I thought I moved the user’s home directory to /home/wpsys but apparently it either deleted both the original directory and the last one, or I deleted the user before the new home directory was assigned.
good thing I had a recent digital ocean backup. also, not really a big deal since I can just download and install wordpress separately, but I wanted to make sure it wasn’t something serverpilot did when it didn’t like some of the customizations I did.
Also - the server’s just being used for staging at the moment …
I have the same problem, but no solution yet. Are there any others with the same problem that have found a solution?
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.