Hi everyone,
Yesterday, our Webwork stopped running, meaning that the our Webwork's website was unreachable.
After contacting our IT about it, the server was checked and it had an error about memory. Restarting the server made our Webwork to run again just fine but by the end of the day nobody could access it.
Last night until this morning, we were able to see the Webwork's website but trying to access any of the accounts showed the following error:
Error messages
error instantiating DB driver WeBWorK::DB::Driver::SQL for table problem_user: DBI connect('webwork','webworkWrite',...) failed: Too many connections at /opt/webwork/webwork2/lib/WeBWorK/DB/Driver/SQL.pm line 70. at /opt/webwork/webwork2/lib/WeBWorK.pm line 317.
Call stack
The information below can help locate the source of the problem.
in Carp::croak called at line 269 of /opt/webwork/webwork2/lib/WeBWorK/DB.pm
in WeBWorK::DB::init_table called at line 228 of /opt/webwork/webwork2/lib/WeBWorK/DB.pm
in WeBWorK::DB::new called at line 317 of /opt/webwork/webwork2/lib/WeBWorK.pm
We still able to see the website but then the error changed to the following:
Error messages
error instantiating DB driver WeBWorK::DB::Driver::SQL for table locations: DBI connect('webwork','webworkWrite',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at /opt/webwork/webwork2/lib/WeBWorK/DB/Driver/SQL.pm line 70. at /opt/webwork/webwork2/lib/WeBWorK.pm line 317.
Call stack
The information below can help locate the source of the problem.
in Carp::croak called at line 269 of /opt/webwork/webwork2/lib/WeBWorK/DB.pm
in WeBWorK::DB::init_table called at line 228 of /opt/webwork/webwork2/lib/WeBWorK/DB.pm
in WeBWorK::DB::new called at line 317 of /opt/webwork/webwork2/lib/WeBWorK.pm
root@webwork:~# mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
I tried the following commands but no success:mysql start
/etc/init.d/mysql start
Any suggestions how to fix this issue.
Thank you.