jeanmarc77 / 123solar

123Solar is a lightweight set of PHP/JS files that makes a web logger to monitor your photovoltaic inverter(s). It just need a web server and PHP, no databases are even needed. The philosophy is: To keep it simple, fast, with a low foot print to run on cheap and low powered devices.
GNU General Public License v3.0
36 stars 12 forks source link

Error by pressing "On/Off" Button #21

Closed DirkAlbi closed 2 years ago

DirkAlbi commented 2 years ago

Since a few weeks, I get an Error "Fehler Verbindung unterbrochen",wenn I press the Button "On/Off"-Button. I log in as admin and get to admin.php, the On button is activated. If I try to disable it I get an error page that the connection was lost. When I press the "Back" button, the page flickers briefly and I end up back in "Admin.php". What information is required for targeted troubleshooting? RaspberryPi 3, Debian Bulleseye, Apache 2.4, php 7.4

Thanks a lot for help.

jeanmarc77 commented 2 years ago

Hi, Do you use lastest 123solar version ? Check if 123s run : ps -ef | grep 123solar Any hints into Help and debugger ? Make sure your HTTP user can write into /dev/shm/

DirkAlbi commented 2 years ago

Hello, Jeanmarc, thanks you for answer. I use Version 1.8.4.4. ps -ef | grep 123solar reports "pi 23784 23770 0 22:08 pts/0 00:00:00 grep --color=auto 123solar". Debug is acivated. Where can I see Errors? /dev/shm/ is empty, is this right? Every User can write in /dev/shm/

jeanmarc77 commented 2 years ago

It seem like there is a problem with /dev/shm/. You can get details via admin > /Help and debugger

DirkAlbi commented 2 years ago

Thank you Jeanmarc, now it is working correctly. :-) /dev/shm was okay. In "Help and Debugger" I found the notice "Since PHP 7.4 there is hardening options. Current version is 7.4.30. Allow to use your com. devices by setting PrivateDevices=false in php-fpm.service. (e.g. 'systemctl edit --full php-fpm.service') and 'systemctl restart php7.4-fpm". After I take this, the 123solar war running fine. I´m happy and must donate for you and your for good software. Best wishes, Dirk Albers

jeanmarc77 commented 2 years ago

Great, cheers Dirk