Can't access Quickbox anymore

Hi, since this morning I can’t acces my dashboard anymore, i have an error message when i try co connect to it by my web browser, I have this message: Error connecting to database - check your database connection properties in constants.php file!

SQLSTATE[HY000] [2002] No such file or directory
PHP Version : 7.2.17-1+0~20190412071344.20+stretch~1.gbp23a36d

Fatal error : Uncaught Error: Call to a member function execute() on null in /srv/quickbox/inc/Session.php:0 Stack trace: #0 /srv/quickbox/inc/Session.php(0): Session->confirmUserID(‘782206d6a327ccf…’, ‘1’) #1 /srv/quickbox/inc/Session.php(0): Session->checkIfLoggedIn() #2 /srv/quickbox/inc/Session.php(0): Session->startSession() #3 /srv/quickbox/inc/controller.php(0): Session->__construct(Object(Database)) #4 /srv/quickbox/index.php(0): unknown() #5 {main} thrown in /srv/quickbox/inc/Session.php on line 0

So I did a service apache2 status
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2019-04-27 18:36:01 CEST; 54s ago
Process: 7275 ExecStart=/usr/sbin/apachectl start (code=exited, status=127)

Apr 27 18:35:59 user systemd[1]: Starting The Apache HTTP Server…
Apr 27 18:36:01 user apachectl[7275]: /usr/sbin/apachectl: 174: /usr/sbin/apachectl: /usr/sbin/apache2: not found
Apr 27 18:36:01 user apachectl[7275]: Action ‘start’ failed.
Apr 27 18:36:01 user apachectl[7275]: The Apache error log may have more information.
Apr 27 18:36:01 user systemd[1]: apache2.service: Control process exited, code=exited status=127
Apr 27 18:36:01 user systemd[1]: Failed to start The Apache HTTP Server.
Apr 27 18:36:01 user systemd[1]: apache2.service: Unit entered failed state.
Apr 27 18:36:01 user systemd[1]: apache2.service: Failed with result ‘exit-code’.

I can’t even restart apache.

Also It seems like my CPU / memory usage is close to 100% with deluge / plex / rutorrent running, but this is my server config: CPU

Intel Xeon E3-1230 v2 - 3.3 GHz - 4 core(s) RAM 16GB - DDR3 STORAGE 2x 1TB (HDD SATA) OPERATING SYSTEM Debian 9, 64 bits and I use the Pro Version of quickbox.

Thanks

Hey,
Welcome to our plaza.
Your issue means that you have a problem concerning your database.
In Pro we uses nginx and not Apache.

Also, can you login in ssh and run the following for me ?

sudo su -
qb fix website 

or if you are on a version older than v1.3.0 :

sudo su -
fix website

Hi tom, Thanks for your quick reply here is what i get when i type it:

✗ Sorry, your license doesn’t appear to be active.
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run /mysqld/mysqld.sock’ (2)

Ok, can you enable quickSupport ?

sudo su - 
qb support enable

or if you are on a version older than v1.3.0 :

sudo su - 
quickSupport enable

Once done, can you raise a ticket and tell us the output of this command ?

We will fix it asap :slight_smile:

Sounds good thank you