Ubuntu :: 10.10 Not Shutting Down Mysql Properly During Reboot/shutdown?

Dec 9, 2010

I have an mysql innodb ~ 20gigs. Normally shutting down mysql (service mysql stop) takes a few seconds. When I reboot Ubuntu with the reboot or shutdown command it just reboots it super fast without mysql logging (/usr/sbin/mysqld: Shutdown complete) Also during this shutdown the following is failed: umount2: device or resource busy /data: device is busy.

mysql is setup to read from /data . Why is ubuntu not waiting for mysql to properly shutdown before unmounting the filesystem and rebooting?

View 1 Replies


ADVERTISEMENT

General :: [FYI] "last -f <old Wtmp> -x Reboot Shutdown" Incorrect For Last Reboot And Shutdown?

Mar 25, 2010

Further to this LQ thread which Tinkster solved by suggesting the last command (thanks Tinkster) I have been exploring last -x reboot and have found that the reported duration is incorrect for the last reboot and shutdown when a old wtmp file is used. Not having a record for the following shutdown, last assumes that the system has been up until the current time and similarly for the shutdown.

The output comes in time order, latest first, each line showing the time of the reboot and the uptime from then to shutdown. Using last -x reboot shutdown to show the shutdown time, here's an illustration

Code:

shutdown system down 2.6.29.6-smp Sun Mar 7 15:35 - 03:02 (11:27)
reboot system boot 2.6.29.6-smp Sun Mar 7 09:35 (05:59)
09:35 until 15:35 is 05:59.

When the uptime exceeds 24 hours it is shown as (<days>+<hours:minutes) like this
Code:
shutdown system down 2.6.29.6-smp Sun Feb 21 12:39 - 13:20 (00:40)
reboot system boot 2.6.29.6-smp Sat Feb 20 09:39 (1+02:59)
09:39 until 12:39 the next day is 1 day 02:59.

The time in parentheses at the end of the shutdown lines is normally the time until the next shutdown.

So far so good. The incorrect output is for the last reboot and shutdown of an old wtmp file. Here's the output of last /var/log/wtmp -x reboot shutdown; last -f /var/log/wtmp.1 -x reboot shutdown

Code:

[snip]
reboot system boot 2.6.29.6-smp Fri Mar 12 07:42 (01:54)
shutdown system down 2.6.29.6-smp Fri Mar 12 01:31 - 09:37 (08:05)
wtmp begins Thu Mar 11 08:25:26 2010
[snip]
reboot system boot 2.6.29.6-smp Wed Mar 10 14:12 (15+01:42)
shutdown system down 2.6.29.6-smp Wed Mar 10 12:41 - 15:54 (15+03:13)
[snip]

The boot started at "Wed Mar 10 14:12" which had an actual uptime of 1 day 11:20 is reported as 15 days 03:13 which is the time from then until the last -f /var/log/wtmp.1 -x reboot shutdown command was issued. The time from shutdown to shutdown is similarly affected.

View 1 Replies View Related

OpenSUSE :: Opera Not Shutting Down Properly Sometimes?

Feb 17, 2010

Suse 11.1 opera 10. When I shut down opera browser I assume it should shut down completely? Infact sometimes it does, but often it just goes to sleep (futex_wait). Any way to make it shutdown/kill itself every time ???

View 5 Replies View Related

General :: Gnome Not Shutting Down Properly ?

Aug 23, 2010

I'm using Gnome 2.30.2 with Ubuntu 10.4 would like to shut down X Windows properly. Using sudo init 3 from console 1 or a terminal on the Gnome desktop results nothing. There are a bunch of ways of doing accomplishing this that I've seen, but the most recommended methods each cause the same errors. The methods that I've used are sudo service gdm stop, sudo stop gdm && sudo pkill X, and sudo /etc/init.d/gdm stop. After these commands are run I receive the following message: gdm stop/waiting.

Then I switch to console 7 & notice that the screen is frozen & has the following information:

There is a blinking cursor below this message & the terminal does not respond to any command including Ctrl z.

These are the same messages that are normally quickly displayed when linux normally boots.

I disabled the battery power option in & removed other unnecessary startup processes from System, Preferences, Startup Applications. I've tried running the gdm stop commands from terminals 1 & 2 as well as consoles in X Windows & it produces the same results. For some reason though, the gdm commands do work when I used the restart option.

View 1 Replies View Related

Ubuntu Servers :: Reboot Command Shutting Down PC

Jun 6, 2011

I have problem with my reboot command.
sudo reboot and sudo halt -f now don't work (they don't reboot)
but sudo halt -p is shutting down my PC.

View 9 Replies View Related

Ubuntu :: Run From Cron Shutdown Command Restarts Server Instead Of Shutting It Down?

Jan 4, 2010

I want my server to automatically shutdown at 23:59 and startup at 8:00. The startup is handled through by bios but the shutdown is to be managed through cron. I thought I had this working, I actually swear I had it working because I thought the uptime command showed the appropriate uptime. I happened to be up and was streaming a movie from my server when at the time it should've shutdown it actually just restarted. If I run the shutdown -h now command by itself it works well but the scheduled command just restarts the server. Here is the what is shown when I enter crontab -e.

View 9 Replies View Related

Ubuntu Servers :: 10.04 Server Edition Not Booting Properly - Monitor Shutting Down

May 16, 2010

I 10.04 32bit server edition on a box I had lying around, set it up for samba+upnp, and everything was going great.

When rebooting, the server now turns the monitor off, and I'm not sure if anything's loading. I see the initial dell splash screen, and hear the hard drive start to run, and then the monitor goes into standby.

View 5 Replies View Related

Server :: Unable To Shutdown/reboot Server, No Shutdown Process Running?

Mar 30, 2010

I'm trying to reboot the server (shutdown -r now).But it seems like nothing happened.

When I try "shutdown -c", the system prompts "shutdown: cannot find pid of running shutdown."

View 5 Replies View Related

Ubuntu :: Wont Shutdown Properly ?

Oct 25, 2010

I have a very weird issue here. At work I have a machine that runs ubuntu 10.04.1 and whenever I do a "shutdown -h now" the system shutsdown for a few seconds and the comes back up again.

The system itself is a HP DC7900 SFF machine. It was the network setup along with wild flying magic packages that caused this.

View 2 Replies View Related

Ubuntu :: Unable To Shutdown Properly

Jul 9, 2010

I am unable to shutdown the ubuntu system properly. As i click the logout button, the desktop icons and taskbar and everything disappears and only i can see the wall paper... Then i hav to do a hard shutdown by pressing the power button...

View 2 Replies View Related

Ubuntu :: Unable To Shutdown Down Properly After Installing Apt-get Hibernate

Jul 1, 2010

I just installed apt-get hibernate and when my computer shuts down, it will go to a recovery menu. I have to end up killing the machine.

Also when I try to hibernate the machine this error msg will appear: hibernate:Warning: Tuxonice binary signature file not found.

How should I rectify this error?

View 9 Replies View Related

Software :: Will Not Shutdown Or Restart Properly

Mar 25, 2010

I'm sure there's an underlying hardware problem for this... but I figured I'd start here as I do not know the specific hardware issue.

I'm in Ubuntu 9.10 (Ubuntu Studio actually) and my computer will not shut down properly. I get the splash, then a black screen, then something like #terminating processes, #closing connections, #blah blah blah, #will now halt(or will now restart if rebooting)

View 10 Replies View Related

CentOS 5 :: Server Does Not Shutdown Properly Sometimes

Aug 17, 2010

I have noticed my server do not shutdown properly sometimes.It should do it with this command in a cron with root session /sbin/shutdown -h now

View 3 Replies View Related

Ubuntu Installation :: 11.04 Startup And Shutdown Screens Do Not Display Properly

May 2, 2011

The startup and shutdown displays are a series of vertical black and white lines, and the text displayed on them appears as more or less white blobs. Otherwise, the displays when 11.04 is running are fine, but this startup looks so naff it would be nice to change it so that the diplays can be read. I would hate to demonstrate Ubuntu to someone and have to explain such a display.

View 7 Replies View Related

Ubuntu :: Unable To Reboot / Shutdown

Mar 9, 2010

I have recently upgraded to the 10.04 Alpha and have been unable to reboot or shutdown. I know it's just an alpha and therefore problems are bound to exist, so I tried reinstalling from a live cd of Alpha 3. But I am still unable to reboot or shutdown.To clarify what happens, I click on shutdown or reboot, the pop-up appears, I click on the shutdown/reboot button and it seems to complete it. It says that processes have been killed and something has exited with 255. But my computer is still on. I am guessing that Ubuntu is shutting down, it's just not actually shutting my computer down or restarting it.

View 5 Replies View Related

Ubuntu :: Cannot SIGKILL - Can't Reboot - Shutdown?

Jul 15, 2010

I have a remote server (Xubuntu 10.04) which suffered an electricity brownout yesterday. The server itself is backed with an ups, but it is connected to a external firewire disk, which is not, and this disk malfunctioned as a result of the brownout.

The problem: Now, any process trying to access the external disk freezes and ends up in eternal D state in the process list, including ls and umount. Even trying to ls a directory which contains a symbolic link to a file in that drive just causes ls to freeze. These processes cannot be killed even with SIGKILL, so I proceeded to reboot but...

None of the reboot commands work. Instead they just get added to the ever increasing list of D state processes. I tried (sudo) shutdown -r now, reboot -f now and finally plain shutdown -h now. Is there anything else to try other than ask somebody to actually go to the server and pull the plug (which is not at all trivial)? Some way to tell kernel not to worry about messing stuff up, and just reboot?

View 1 Replies View Related

Ubuntu :: Failed Shutdown/reboot In 10.10?

Nov 23, 2010

we've just bought 30 newest nettops ACER Aspire R3700 with ION 2. I've tried ubuntu, kubuntu, xubuntu. Everything works as expected, but... the first one freezes when trying to reboot, shutdown or enter sleep mode. Checked on several hardware units. The desktop just freezes and nothing happens (ubuntu 10.10, both x32 and amd64). Also no one installs the wi-fi drivers, only ethernet

View 4 Replies View Related

Ubuntu :: Natty Won't Reboot / Shutdown - What To Do?

May 4, 2011

Natty won't shutdown for me - the start up/shutting down graphic comes up and the 'light' go down from 5 to 3 then it just hangs there.

Is there a shutdown log? I've looked in /var/log/messages but there's nothing relevant there.

View 3 Replies View Related

Ubuntu :: Shutdown Or Reboot Only Logs Out?

Jun 26, 2011

From a 11.04 Ubuntu, I installed the meta-package xfce4 (*). Now, in the xfce4 session, "suspend" and "logout" (from the xfce4-panel button) works, but "shutdowmn" and "reboot" not, they only lead to GDM. (the shutdowm option there works.)

I tried to solve that by installing the meta-package "xubuntu-desktop" (maybe there are some necessary settings included?), and in fact, the login-screen changed (it's still GDM, I suppose) and there is now a "xubuntu" session, but in that, the probem is just the same: shutdown only leads to the login screen.

In Gnome Classic or Unity, shutdowmn works as it shoulds, so it's not a general problem with my computer.

In Detail, in forst tried to install xfce4 with ubuntu-software-center, but although it seemed to succeed, there was no xfce session. In Synaptic, installing the xfce3 metapackage worked. In fact, software-center seemed to have overlooked some dependencies...

View 4 Replies View Related

Programming :: How To Properly Clean Up On Asynchronous Or Sudden Shutdown

Jun 6, 2010

I have an user space application that performs file I/O operations, when a SIGKILL is captured, some routines are done first to ensure that all I/O operations are completed before rebooting the application or system. My question is, this won't work if the power button is pressed or the power supply is disconnected, so there can be incomplete I/O operation or corrupted data written into the file, so is there a way to prevent data corruption or at least complete any ongoing operation when this scenario happens? Assuming there is at most 1 second before the power really went out, can I/O be still completed?' I'm running the application on a busybox 2.6.14 kernel on an embedded system board.

View 1 Replies View Related

Ubuntu :: Random Reboot Shutdown In Karmic 9.10?

Jan 19, 2010

I recently migrated from Hardy 8.04 LTS (32) to Karmic 9.10 (32) so that the restricted ATI drivers and CCC would work correctly - that part is basically fine.

The problem for the past couple of weeks has been Karmic randomly shutting down, and rebooting the system after 1 or 2 hours up-time.

Why would this be happening, it was fine for the first few weeks after installing Karmic.

My system currently consists of the following;
Gigabyte MA790FX-DS5 mainboard - Jan '08
AMD 3.0Ghz Phenom II X4 945 CPU - Oct '09
4GB DDR2 Kingston HyperX RAM (1066 MHz) - Jul '09
Sapphire ATI HD5770 1GB GDDR5 video - Dec '09
Cooler Master Extreme Power Plus 640 watt power supply - Nov '09
Cooler Master Centurion 5 CAC-T05 case - Jan '08
1 pata 500 GB, 3 sata 500 GB & 1 sata 640 GB drives
2 DVD burners (Pioneer and LG)
2 x 19" (4:3) Samsung SyncMaster 943N LCD monitors


I used to have lmsensors working with the Athlon 2.8GHz dual core in Hardy, but they wouldn't work with the new Phenom 3.0 GHz 945 CPU in Hardy (and they still won't work in Karmic).

Th upshot is that I don't have cpu, system, or graphics temps; nor do I have any fan speeds, so I don't know what temps or fan speeds my system is running without rebooting into BIOS (which isn't much good as I really need to know what's happening when I'm using the OS itself).

Does anyone know what could be causing this random shut-down/reboot problem?

View 9 Replies View Related

Debian Multimedia :: Jessie - LXDE Doesn't Shutdown Properly

May 19, 2015

I know the problem has been partly solved in this old thread [URL] .....

Now we have Jessie as stable, yet LXDE doesn't shutdown properly:

On the same computers, Wheezy LXDE shut down very fast

I installed Jessie from the netinstall image.

On a 2007 computer, it's like the old days with a Pentium II running some version of Puppy Linux or Slitaz. The system shuts down after a while but the computer remains on.

On a 2013 laptop, I added the line init=/bin/systemd in the Grub default file as advised on the old thread above. The laptop shuts down after a while, the system first, then the hard disk goes to sleep, then all the leds are off.

If I run the magic command, the computer shutdowns in a breeze, perhaps even quicker than good old Wheezy:

Code: Select all# systemctl poweroff

Now, is this still a systemd bug? Doesn't look like it since the systemctl command works. Is it an LXDE bug? Looks like it in a way - if the LXDE shutdown button enabled the systemctl poweroff command, I suppose the button would work?

Is there a way to make the LXDE shutdown button run the systemctl poweroff command?

I'm glad Wheezy is still with us because I wouldn't install Jessie for newbies — they'd think shutdown (through clicking on a button) is even worse than in Windows.

View 2 Replies View Related

Ubuntu :: Prevent Nomal User To Reboot/shutdown?

May 15, 2010

i searched the forum about this subject, i found many post but nothing useful. i also wonder why a normal user is not prompted to authenticate as root to perform these tasks. i thought the file /etc/sudoers but i don't think this is the point. i tried the group "shutdown" but does not exist. i read that this is expected in ubuntu server so it should exist even in the desktop version, i guess.

View 3 Replies View Related

Ubuntu Installation :: Can't Startx Everytime Shutdown Or Reboot?

Oct 12, 2010

ubuntu with windows xp on my laptop. My problem is everytime I out of ubuntu, the vga driver seems to disappear. I can't start x server, and when go into windows xp, the screen is on very low resolution state. After go into win xp and reboot, I can boot either ubuntu or winxp normally, everything is okey again. In summary:- When go into XP and reboot, I can boot ubuntu and XP normally.- When go into ubuntu and reboot, I can only boot with very low resolution in XP and can not start x server if boot ubuntu

View 3 Replies View Related

Ubuntu Installation :: System Reboot At Shutdown / Resolve This?

Oct 25, 2010

I recently updated my 10.04 (se remix,I guess it's only preinstalled language support and some other thinks like link to ubuntu se homepage; http://ubuntu.se/content.php/322-Ubu...it-uppdatering!) to 10.10.

I now I'm stuck with a quite annoying (but not sever) error. When I shut down the computer doesn't turn of it just restart?!

I know I had some similar issue with my old EEEPC but that was a GRUB 1 error and now I'm running the latest GRUB so ...

View 1 Replies View Related

Ubuntu :: Use Keyboard On Logon Screen To Reboot Or Shutdown?

Mar 12, 2011

I remember that in previous Ubuntu releases, it was possible to restart/shutdown at the logon screen via the keyboard. I think it was via the F10 key. Can this function be brought back?

View 1 Replies View Related

Debian :: PC Not Capable To Shutdown Or Reboot?

Aug 10, 2010

I am facing the issue that the PC not capable to shutdown or reboot; In order to debug that, htop tells me the running processes but all seems normal, I killed few but still cold reset is needed.There is certainly a problem somewhere. the best would be to know which process are weirdly hanging. It could make this testing debian bit better to know which package has these issues.

View 1 Replies View Related

General :: Shutdown-command Doesnt Work Properly - End Up With A Black Screen

Jan 14, 2010

When i use the shutdown-command in the terminal as root, it nearly works. It starts to shut down, and it looks like all programs and the kernels shuts down. I end up with a black screen, sometimes with the ubuntu-logo on, but it never powers off. I have to force it off by holding the power button. When i use the graphical interface to shut it down, it works perfectly. The poweroff-command works without problem too.

Here is the command i use:

Code:

View 4 Replies View Related

Software :: Mythwelcome - Auto Shutdown And System Clock Not Working Properly

Mar 29, 2010

I installed Mythbuntu 9.04 about 9 months to a year ago and (for the most part) I haven't had any problems with mythwelcome, automatic shutdown or the system clock. The "for the most part" relates to the fact that the clock on mythbuntu has always been 4 minutes fast. Then, just last week, the system started acting up - for some reason the system clock changed to 8-10 minutes fast (6 minutes faster than it was previously). To fix this problem, I have tried manually setting the "time and date" setting, and I have also tried setting the "time and date" setting to sync with an internet server. Lastly, I tried changing the system time through the motherboard bios. In each situation, mythwelcome would initially start up with the correct time. Then, several seconds later, the time shown in mythwelcome would change to being 4 minutes fast (as I described above). The time would also be 4 minutes fast when I enter the frontend.

I was willing to live with this, but the weird part is that when I start the system now (assuming I don't have any programs scheduled to record), mythwelcome boots up fine and I see the indication that "MythTV is idel and will shutdown in XXX seconds". Then, it flashes to "MythTV is idle" - like it used to; except now, it doesn't flash back to the countdown for shutting down mythtv. One time when I started the system when I was adjusting the time as mentioned above, I noticed that mythwelcome went to the "MythTV is idle" around the same time it changed the clock to 4 minutes fast - I think there is definitely a correlation here.

I checked out all the settings and nothing else has been changed that would otherwise affect MythTV from shutting itself down. The other interesting part is that I can get the shutdown countdown back if I go to "Utilities / Setup", "Setup", and "Mythbuntu". In the popup screen I choose "MythTV Configuration" and select "Launch MythTV Setup". I get a popup box that says that the mythbackend must be closed (as expected). Then I immediately exit mythtv-setup and the system runs "mythfilldatabase". I exit the Mythbuntu Control Centre and exit the frontend. When I get back to mythwelcome, the shutdown countdown comes back.

View 1 Replies View Related

Ubuntu :: Disable Reboot And Shutdown Options From The Drop Down Menu In 9.10?

Jan 30, 2010

I want to disable Reboot and Shutdown options from the drop down menu in Ubuntu 9.10. I tried this:[URL] I also tried to modify the gdm.conf file, but the changes I made, made no difference.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved