linwiz / Raspberry-Pi-Web-GPIO

PHP script to control Raspberry PI GPIO pins from the web
GNU General Public License v3.0
4 stars 1 forks source link

Random errors #13

Closed linwiz closed 9 years ago

linwiz commented 9 years ago

I received random errors last night while the GPIOServer was running but no changes were being made to the pin status.

mysql: error while loading shared libraries: libpthread.so.0: failed to map segment from shared object: Cannot allocate memory Usage: gpio mode pin mode Usage: gpio mode pin mode Usage: gpio write pin value

linwiz commented 9 years ago

Commited 9f9b007379b09be9e783ac713dc821eab35bd9b7 as a possible fix for the Usage: gpio errors, not sure of the cause yet but possibly related to the mysql error

Paku- commented 9 years ago

got the commit seems to work here

linwiz commented 9 years ago

Appears to be fixed.

linwiz commented 9 years ago

Received more errors last night.

{ajax} /www/gpio$ ERROR 2013 (HY000) at line 1: Lost connection to MySQL server during query ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run /mysqld/mysqld.sock' (111) ... ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run /mysqld/mysqld.sock' (111) ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run /mysqld/mysqld.sock' (2) ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run ... ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run /mysqld/mysqld.sock' (2) {ajax} /www/gpio$ * glibc detected * mysql: corrupted double-linked list: 0 xb7aeaee0 ***

Paku- commented 9 years ago

Logs were under rotation so mySQL server was stopped for 2-3sec

linwiz commented 9 years ago

That may be hard to fix then. Also I wonder why it is polluting my terminal though and not going into a log file.

Paku- commented 9 years ago

Just the idea check it out.

Paku- commented 9 years ago

mySQL should allow the logs to rotate without stopping itself.

linwiz commented 9 years ago

Possible fix for mysql errors at commit 8f4c00772d4d34a845dd93203e0457bea2a2e879