Latest raspbx fails, it boots then i can ssh into this and set timezone but when i access via the browser the page comes up with tonnes of errors, i can fix the 1st 1 with a chown command but then another error comes up for something else related to the database this time (first error was just a log file permission issue) so the latest upload is actually pointless and should be taken offline until it is fixed and is then ready for public use in my opinion! there is no other way to fix this, even if a fix for these errors are made available this is not good practice to put things out that require patching! please sort all these errors out relating to the web part of the raspbx (admin section).
i have tried both not upgrading and upgrading same errors:
SQLSTATE[HY000][2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)::SQLSTATE[HY000][2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
UPDATE:
The latest raspbx fails even when using ip in url instead of the hostname however the previous version
seems to be showing error only when using the hostname in the url, but when ip is used it all seems to be fine!
and updating the previous raspbx fails to update / upgrade correctly!
after 5 - 10 mins it starts to work as it should...
this bug is anoying!
Last edit: Jay Mee 2016-09-03
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a similar issue. It seemed to get broken by updating with apt-get as well as raspbx-upgrade. I did notice the mysql.sock file is actually in /run/mysqld/mysqld.sock (not /var/run...) I got passed this, by editing the mysql.cnf but I am still seing "MySQL server has gone away", if I try and access the administration. I'd really like a fix for this too.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Latest raspbx fails, it boots then i can ssh into this and set timezone but when i access via the browser the page comes up with tonnes of errors, i can fix the 1st 1 with a chown command but then another error comes up for something else related to the database this time (first error was just a log file permission issue) so the latest upload is actually pointless and should be taken offline until it is fixed and is then ready for public use in my opinion! there is no other way to fix this, even if a fix for these errors are made available this is not good practice to put things out that require patching! please sort all these errors out relating to the web part of the raspbx (admin section).
i have tried both not upgrading and upgrading same errors:
/var/www/html/admin/libraries/utility.functions.php196
/var/www/html/admin/libraries/BMO/Database.class.php83
/var/www/html/admin/libraries/BMO/Database.class.php80
/var/www/html/admin/libraries/BMO/Database.class.php80
/var/www/html/admin/libraries/BMO/FreePBX.class.php69
/var/www/html/admin/bootstrap.php141
/etc/freepbx.conf9
/var/www/html/admin/config.php103
Exception (2002)
SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)::SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
UPDATE:
The latest raspbx fails even when using ip in url instead of the hostname however the previous version
seems to be showing error only when using the hostname in the url, but when ip is used it all seems to be fine!
and updating the previous raspbx fails to update / upgrade correctly!
after 5 - 10 mins it starts to work as it should...
this bug is anoying!
Last edit: Jay Mee 2016-09-03
And again it fails to work after a reinstall, it only seems to work for a while and then it stops after powering off and on again please fix this ?
Hi
I have a similar issue. It seemed to get broken by updating with apt-get as well as raspbx-upgrade. I did notice the mysql.sock file is actually in /run/mysqld/mysqld.sock (not /var/run...) I got passed this, by editing the mysql.cnf but I am still seing "MySQL server has gone away", if I try and access the administration. I'd really like a fix for this too.
I have this problem too. I get it when I update via raspbx-update and also when I update via Admin Modules of FreePBX.