[WorksForMe] Miss OS file directories after reboot of OS
-
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Miss OS file directories after reboot of OS
Pretty much only Linux users would know what LEMP or LAMP meant, but it is a valid acronym. LEMP (Linux, Nginx, MySQL, and PHP) has a smaller footprint by design but I don't understand what this would have to do with VirtualBox as it is OS specific code and not actually controlled by VirtualBox.
Re: Miss OS file directories after reboot of OS
I was exiting users and then "power off" but I get the same results with the ACPI shutdown.scottgus1 wrote:Have you tried shutting down the guest from within the guest's OS, using its built-in Shut Down feature?
I just tried "shutdown" in the OS and it did look like it was gracefully shutting down, waited 60 seconds before executing, but the directory was missing again on reboot.
Re: Miss OS file directories after reboot of OS
I'm not sure where the problem lies and that's why I'm asking. Like I said I've never experienced this with my live servers but again I've only ever rebooted them via console, not power cycled them. I would think as /run/ and /var/run/ are default locations for sockets this issue would be documented but there's practically nothing in google results for it.Perryg wrote:...I don't understand what this would have to do with VirtualBox as it is OS specific code and not actually controlled by VirtualBox.
-
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Miss OS file directories after reboot of OS
I can pretty much say with certainty that this is not a VirtualBox issue. I asked in your other thread if you had talked to them and until you do and can show that this is actually an issue with VirtualBox I have nothing more to add to this discussion.
-
- Volunteer
- Posts: 2561
- Joined: 30. May 2007, 18:05
- Primary OS: Fedora other
- VBox Version: PUEL
- Guest OSses: XP, Win7, Win10, Linux, OS/2
Re: Miss OS file directories after reboot of OS
Are these "installed to the virtual harddisk" guests or are you maybe just running lifeboot ISOs?
Re: Miss OS file directories after reboot of OS
Yeah installed to virtual hard disc. I forget which option, I just chose the defaults.
The rest of my changes stick and my full websites are there but won't show because php-fpm can't run without the directory.
The rest of my changes stick and my full websites are there but won't show because php-fpm can't run without the directory.
-
- Site Moderator
- Posts: 27329
- Joined: 22. Oct 2010, 11:03
- Primary OS: Mac OS X other
- VBox Version: PUEL
- Guest OSses: Win(*>98), Linux*, OSX>10.5
- Location: Greece
Re: Miss OS file directories after reboot of OS
I haven't seen the slightest proof for that.pom wrote:Yeah installed to virtual hard disc
- Start the VM. Not from a saved or paused state. Clean start.
- Take the steps required to generate/observe the error.
- Shut down the VM (if it hasn't aborted by itself). Not saved or paused. Completely shut down. If you can't shut it down by normal means, close the VM window and select "Power off".
- Right-click on the VM in the VirtualBox Manager. Select "Show Log..."
- Save it (only the first VBox.log), ZIP it and attach it to your response (see the "Upload attachment" tab below the reply form).
- Right-click on the VM in the VirtualBox Manager. Select "Show in Finder/Explorer/Whatever".
- ZIP the selected ".vbox" file and attach it to your response.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Re: Miss OS file directories after reboot of OS
Ok, here's the log and .vbox...
Re: Miss OS file directories after reboot of OS
Here's a couple of screenshots too if they're any help.
Making the /run/php/ directory, setting permissions, enabling php-fpm to run at start, and shutdown from the OS. Rebooted, checked the status of php-fpm and for the /run/php/ directory...
Making the /run/php/ directory, setting permissions, enabling php-fpm to run at start, and shutdown from the OS. Rebooted, checked the status of php-fpm and for the /run/php/ directory...
-
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Miss OS file directories after reboot of OS
https://serverfault.com/questions/61546 ... ntu-server
/run is pretty much the same thing. Like I said it is package/OS specific and not an issue with VirtualBox./var/run is a temporary mounted filesystem, that is re-created after each reboot, so changes are not persisted in it. So in order to have a custom directory for socket files you will have to create it every time. The best place to add such functionality is an upstart config for PHP FPM....
Re: Miss OS file directories after reboot of OS
Yeah I found that thread and another.
Their solutions are to create a global pid but it is already explicitly set in my case, I've double checked the conf file to make sure. "enable" in centos initialises the process to start at boot which I have done too.
You might very well be right that it is OS specific but the issue has only been brought to my attention by using virtualbox and I'm only asking here in case any others have had similar experience.
If it is OS specific I might never have know until a power outage or similar on my remote servers as they have the exact same setup as my guests.
Their solutions are to create a global pid but it is already explicitly set in my case, I've double checked the conf file to make sure. "enable" in centos initialises the process to start at boot which I have done too.
You might very well be right that it is OS specific but the issue has only been brought to my attention by using virtualbox and I'm only asking here in case any others have had similar experience.
If it is OS specific I might never have know until a power outage or similar on my remote servers as they have the exact same setup as my guests.
-
- Site Moderator
- Posts: 27329
- Joined: 22. Oct 2010, 11:03
- Primary OS: Mac OS X other
- VBox Version: PUEL
- Guest OSses: Win(*>98), Linux*, OSX>10.5
- Location: Greece
Re: Miss OS file directories after reboot of OS
I would hurry then and fix the real servers, to prevent a power outage wiping the real deal. But, as Perryg found out, this is definitely *not* a VirtualBox problem. I'll mark the thread as [WorksForMe].pom wrote:If it is OS specific I might never have know until a power outage or similar on my remote servers as they have the exact same setup as my guests.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Re: [WorksForMe] Miss OS file directories after reboot of OS
[solved] It's definitely not virtualbox specific in my case.
There is a /run/php-fpm/ directory that is persistent after hard boots and I've been trying to force it on /run/php/ which isn't.
Still not entirely sure why, I'm guessing it's a difference between my typical LEMP install notes and a php version outside of the main repo, and I'm creating a process that can't start again after a hard boot.
Thanks for your help.
There is a /run/php-fpm/ directory that is persistent after hard boots and I've been trying to force it on /run/php/ which isn't.
Still not entirely sure why, I'm guessing it's a difference between my typical LEMP install notes and a php version outside of the main repo, and I'm creating a process that can't start again after a hard boot.
I'm on it. If any good's came out of this it's that virtualbox has alerted me to a potential problem. All's well that ends well.socratis wrote:I would hurry then and fix the real servers, to prevent a power outage wiping the real deal.
Thanks for your help.