Cleared, reactivated a few campaigns.
This seems to be the typical error I'm getting, not 100% sure of the exact issue at hand apart from connections;
2017/04/19 10:14:03 [error] [exception.CDbException] SQLSTATE[08004] [1040] Too many connections
2017/04/19 10:14:03 [error] [exception.CDbException] SQLSTATE[HY000] [1040] Too many connections
2017/04/19 10:14:03 [error] [exception.CDbException] exception 'CDbException' with message 'CDbConnection failed to open the DB connection.' in /home/public_html/mailwizz/apps/common/framework/db/CDbConnection.php:405
Stack trace:
#0 /home/public_html/mailwizz/apps/common/framework/db/CDbConnection.php(347): CDbConnection->open()
#1 /home/public_html/mailwizz/apps/common/framework/db/CDbConnection.php(496): CDbConnection->setActive(true)
#2 /home/public_html/mailwizz/apps/common/framework/db/ar/CActiveFinder.php(1371): CDbConnection->createCommand('SELECT `segment...')
#3 /home/public_html/mailwizz/apps/common/framework/db/ar/CActiveFinder.php(807): CJoinQuery->createCommand(Object(CMysqlCommandBuilder))
#4 /home/public_html/mailwizz/apps/common/framework/db/ar/CActiveFinder.php(509): CJoinElement->runQuery(Object(CJoinQuery))
#5 /home/public_html/mailwizz/apps/common/framework/db/ar/CActiveFinder.php(163): CJoinElement->lazyFind(Object(Campaign))
#6 /home/public_html/mailwizz/apps/common/framework/db/ar/CActiveRecord.php(281): CActiveFinder->lazyFind(Object(Campaign))
#7 /home/public_html/mailwizz/apps/common/components/db/ar/BaseActiveRecord.php(360): CActiveRecord->getRelated('segment', false, Array)
#8 /home/public_html/mailwizz/apps/common/framework/db/ar/CActiveRecord.php(143): BaseActiveRecord->getRelated('segment')
#9 /home/public_html/mailwizz/apps/common/models/Campaign.php(1410): CActiveRecord->__get('segment')
#10 /home/public_html/mailwizz/apps/common/models/Campaign.php(1224): Campaign->findSubscribersByListSegment(40000, 2000, Object(CDbCriteria))
#11 /home/public_html/mailwizz/apps/console/commands/SendCampaignsCommand.php(1241): Campaign->findSubscribers(40000, 2000, Object(CDbCriteria))
#12 /home/public_html/mailwizz/apps/console/commands/SendCampaignsCommand.php(631): SendCampaignsCommand->findSubscribers(40000, 2000)
#13 /home/public_html/mailwizz/apps/console/commands/SendCampaignsCommand.php(576): SendCampaignsCommand->sendCampaignStep3(Array)
#14 /home/public_html/mailwizz/apps/console/commands/SendCampaignsCommand.php(520): SendCampaignsCommand->sendCampaignStep2(Array)
#15 /home/public_html/mailwizz/apps/console/commands/SendCampaignsCommand.php(389): SendCampaignsCommand->sendCampaignStep1('728', 1)
#16 /home/public_html/mailwizz/apps/console/commands/SendCampaignsCommand.php(351): SendCampaignsCommand->sendCampaignStep0(Array)
#17 /home/public_html/mailwizz/apps/console/commands/SendCampaignsCommand.php(125): SendCampaignsCommand->process()
#18 [internal function]: SendCampaignsCommand->actionIndex()
#19 /home/public_html/mailwizz/apps/common/framework/console/CConsoleCommand.php(172): ReflectionMethod->invokeArgs(Object(SendCampaignsCommand), Array)
#20 /home/public_html/mailwizz/apps/common/framework/console/CConsoleCommandRunner.php(71): CConsoleCommand->run(Array)
#21 /home/public_html/mailwizz/apps/common/framework/console/CConsoleApplication.php(92): CConsoleCommandRunner->run(Array)
#22 /home/public_html/mailwizz/apps/common/framework/base/CApplication.php(185): CConsoleApplication->processRequest()
#23 /home/public_html/mailwizz/apps/init.php(227): CApplication->run()
#24 /home/public_html/mailwizz/apps/console/console.php(28): require_once('/home/pu...')
#25 {main}