MySQL server has gone away, SQL

Moderator: crythias

Locked
aph
Znuny superhero
Posts: 646
Joined: 20 Jun 2014, 12:11
Znuny Version: 3.3.9, 4.x, 5.x

MySQL server has gone away, SQL

Post by aph »

I'm unable to reach otrsI am getting the following error from the log

Code: Select all

[Error][Kernel::System::PID::PIDGet][181] MySQL server has gone away, SQL: '
            SELECT process_name, process_id, process_host, process_create, process_change
            FROM process_id
            WHERE process_name = ? LIMIT 1'
[Fri Jan 30 09:33:08 2015][Error][Kernel::System::DB::new][223] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Any idea why this error might be occuring?
OTRS 3.3.x (private/testing) on Windows Server 2008 with MSSQL database.
OTRS 3.3.x (private/testing) on CentOS with MySQL database and apache
eandrex
Znuny expert
Posts: 213
Joined: 04 Nov 2012, 23:58
Znuny Version: OTRS 4.x
Real Name: Esteban
Company: NORTON DE COLOMBIA

Re: MySQL server has gone away, SQL

Post by eandrex »

when you exec

perl otrs.CheckDB.pl

what does it display?
aph
Znuny superhero
Posts: 646
Joined: 20 Jun 2014, 12:11
Znuny Version: 3.3.9, 4.x, 5.x

Re: MySQL server has gone away, SQL

Post by aph »

I was able to resolve the problem. It was a firewall problem.
OTRS 3.3.x (private/testing) on Windows Server 2008 with MSSQL database.
OTRS 3.3.x (private/testing) on CentOS with MySQL database and apache
aph
Znuny superhero
Posts: 646
Joined: 20 Jun 2014, 12:11
Znuny Version: 3.3.9, 4.x, 5.x

Re: MySQL server has gone away, SQL

Post by aph »

Apparently this was not a firewall problem.

I get the following error again

Code: Select all

[Wed Feb  4 10:10:02 2015][Notice][Kernel::System::PID::PIDCreate] Can't create PID PostMasterMailbox, because it's already running (otrs.limbachgruppe.com/1832)!
[Wed Feb  4 10:13:54 2015][Error][Kernel::System::PID::PIDGet][181] MySQL server has gone away, SQL: '
            SELECT process_name, process_id, process_host, process_create, process_change
            FROM process_id
            WHERE process_name = ? LIMIT 1'
[Wed Feb  4 10:13:54 2015][Error][Kernel::System::DB::new][223] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
[Wed Feb  4 10:15:02 2015][Notice][main::_Status] Scheduler Daemon status request! PID 1839
[Wed Feb  4 10:15:02 2015][Notice][main::_Stop] Scheduler Daemon Stop! PID 1839
[Wed Feb  4 10:15:03 2015][Notice][main::_Start] Scheduler Daemon start! PID 2250
I can't follow the process part from the log

Code: Select all

SELECT process_name, process_id, process_host, process_create, process_change
            FROM process_id
            WHERE process_name = ? LIMIT 1'
What could be the reason behind it. How can I resolve it
OTRS 3.3.x (private/testing) on Windows Server 2008 with MSSQL database.
OTRS 3.3.x (private/testing) on CentOS with MySQL database and apache
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: MySQL server has gone away, SQL

Post by crythias »

a search might help.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Locked