LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-29-2015, 05:30 AM   #1
dshorms
LQ Newbie
 
Registered: Oct 2015
Posts: 2

Rep: Reputation: Disabled
Server disconnecting with mysql databases


I've been running a vps with Heart Internet for nearly a year now and a few times all sites have disconnected with their mysql databases. The only way to get the databases reconnected is a manual server reboot.

The Server is running CENTOS 6.7 x86_64 kvm – 519609 and the error log on the last occurrence shows the following

Code:
[Thu Oct 22 21:19:51 2015] [error] [client 207.46.13.142] File does not exist: /home/websitedomain/public_html/shop
[Thu Oct 22 21:19:51 2015] [error] [client 207.46.13.142] File does not exist: /home/websitedomain/public_html/404.shtml
[Thu Oct 22 21:19:51 2015] [error] [client 207.46.13.142] File does not exist: /home/websitedomain/public_html/latest-news
[Thu Oct 22 21:19:51 2015] [error] [client 207.46.13.142] File does not exist: /home/websitedomain/public_html/404.shtml
[Thu Oct 22 21:19:51 2015] [error] [client 207.46.13.142] File does not exist: /home/websitedomain/public_html/shop
[Thu Oct 22 21:19:51 2015] [error] [client 207.46.13.142] File does not exist: /home/websitedomain/public_html/404.shtml
[Thu Oct 22 21:30:53 2015] [notice] caught SIGTERM, shutting down
[Thu Oct 22 21:31:44 2015] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Thu Oct 22 21:31:44 2015] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
[Thu Oct 22 21:31:44 2015] [notice] Digest: generating secret for digest authentication ...
[Thu Oct 22 21:31:44 2015] [notice] Digest: done
[Thu Oct 22 21:31:45 2015] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Thu Oct 22 21:31:45 2015] [notice] Apache/2.2.29 (Unix) mod_ssl/2.2.29 OpenSSL/1.0.1e-fips mod_bwlimited/1.4 configured -- resuming normal operations
[Thu Oct 22 21:40:08 2015] [error] [client 207.46.13.137] File does not exist: /home/websitedomain/public_html/shop
[Thu Oct 22 21:40:08 2015] [error] [client 207.46.13.137] File does not exist: /home/websitedomain/public_html/404.shtml
I think it is something connected to
Code:
caught SIGTERM, shutting down
but no idea what this means. I've googled it but not found this same problem. There's also a lot of attempts from IP addresses trying to access files that don't exist.

Thanks and any ideas?
 
Old 10-29-2015, 10:33 PM   #2
delite
Member
 
Registered: Nov 2008
Posts: 50

Rep: Reputation: 15
SIGTERM is a terminate signal sent to a process running a program, https://en.wikipedia.org/wiki/Unix_signal

I don't know what is causing your server to shutdown, but you don't need to reboot the OS, instead you could create a cron job to check if the server is running and if not to restart it.


When you say, "all sites have disconnected with their mysql databases", do you have multiple websites or is happening to others at the same time? If its happening to all then its Hearts issue at the machine level, but your logs to me indicate that the logs are actually the webserver and not the database, so, are no pages served when this happens or are pages served but display a specific database error?
 
Old 10-29-2015, 11:02 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,361

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Quote:
your logs to me indicate that the logs are actually the webserver and not the database
Indeed, that's the Apache error_log showing Apache (not the DB) shutting down, then restarting almost immediately.

You need to find out why - no need to reboot anything (depending on exactly how your app code works).

BTW, try nslookup on those addresses...
 
Old 10-30-2015, 06:14 AM   #4
dshorms
LQ Newbie
 
Registered: Oct 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks for the replies.

Delite - I have multiple wordpress sites hosted on my server, when this error happens each site defaults back to the wordpress installation screen, suggesting that each site isn't connected to the database. Any none database site is still displayed as normal. So would it seem the server is rebooting ok, but not restarting mysql?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving mysql databases to new server (ie, postfix) Kropotkin Linux - Newbie 1 11-22-2014 11:26 AM
LXer: How To Back Up MySQL Databases Without Interrupting MySQL LXer Syndicated Linux News 0 05-14-2007 09:16 AM
LXer: Backup MySQL databases, web server files to a FTP server automatically LXer Syndicated Linux News 0 08-11-2006 09:54 PM
restoring mysql databases? and mysql permissions... armegeden Linux - Software 0 03-13-2003 11:04 AM
mysql databases k3v0 Linux - Software 2 12-03-2002 07:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration