GEN24 / Unraid /Solaranzeige Docker / PHP Fatal error - kein Speicher

Solaranzeige und Docker
Alles was mit der Docker Version zu tun hat.

Moderatoren: Ulrich, DeBaschdi

mosjka1
Beiträge: 3
Registriert: Fr 2. Jun 2023, 21:36

GEN24 / Unraid /Solaranzeige Docker / PHP Fatal error - kein Speicher

Beitrag von mosjka1 »

Hallo Leute,

bis vor heute hat alles funktioniert. Ich erhalte keine neuen Daten mehr vom Wechselrichter in die Datenbank. Weiß nicht wo der Hund begraben ist.
Bitte um Hilfe.

Code: Alles auswählen

root@d479ee29d373:/var/www/log# cat php.log 
[10-Jul-2023 21:12:03 Europe/Berlin] PHP Notice:  Undefined variable: USB_Devices in /var/www/html/usb_init.php on line 132
[10-Jul-2023 21:13:01 Europe/Berlin] PHP Notice:  Undefined variable: funktionen in /var/www/html/regler_auslesen.php on line 53
[10-Jul-2023 21:13:01 Europe/Berlin] PHP Fatal error:  Uncaught Error: Call to a member function log_schreiben() on null in /var/www/html/regler_auslesen.php:53
Stack trace:
#0 {main}
  thrown in /var/www/html/regler_auslesen.php on line 53
[10-Jul-2023 21:14:01 Europe/Berlin] PHP Notice:  Undefined variable: funktionen in /var/www/html/regler_auslesen.php on line 53
[10-Jul-2023 21:14:01 Europe/Berlin] PHP Fatal error:  Uncaught Error: Call to a member function log_schreiben() on null in /var/www/html/regler_auslesen.php:53
Stack trace:
#0 {main}
  thrown in /var/www/html/regler_auslesen.php on line 53
[10-Jul-2023 21:15:02 Europe/Berlin] PHP Notice:  Undefined variable: funktionen in /var/www/html/regler_auslesen.php on line 53
[10-Jul-2023 21:15:02 Europe/Berlin] PHP Fatal error:  Uncaught Error: Call to a member function log_schreiben() on null in /var/www/html/regler_auslesen.php:53
Stack trace:
#0 {main}
  thrown in /var/www/html/regler_auslesen.php on line 53
[10-Jul-2023 21:16:01 Europe/Berlin] PHP Notice:  Undefined variable: funktionen in /var/www/html/regler_auslesen.php on line 53
[10-Jul-2023 21:16:01 Europe/Berlin] PHP Fatal error:  Uncaught Error: Call to a member function log_schreiben() on null in /var/www/html/regler_auslesen.php:53
Stack trace:
#0 {main}
  thrown in /var/www/html/regler_auslesen.php on line 53
[10-Jul-2023 21:17:01 Europe/Berlin] PHP Notice:  Undefined variable: funktionen in /var/www/html/regler_auslesen.php on line 53
[10-Jul-2023 21:17:01 Europe/Berlin] PHP Fatal error:  Uncaught Error: Call to a member function log_schreiben() on null in /var/www/html/regler_auslesen.php:53
Stack trace:
#0 {main}
  thrown in /var/www/html/regler_auslesen.php on line 53
[10-Jul-2023 21:18:01 Europe/Berlin] PHP Notice:  Undefined variable: funktionen in /var/www/html/regler_auslesen.php on line 53
[10-Jul-2023 21:18:01 Europe/Berlin] PHP Fatal error:  Uncaught Error: Call to a member function log_schreiben() on null in /var/www/html/regler_auslesen.php:53
Stack trace:
#0 {main}
  thrown in /var/www/html/regler_auslesen.php on line 53
und hier die Zeile 53 aus /var/www/html/regler_auslesen.php

Code: Alles auswählen

 $funktionen->log_schreiben( substr( trim( $FreierSpeicher ), 0, - 1 )." GB freier Speicher steht auf der SD-Karte / USB Stick zur Verfügung.", "!! ", 2 );
und hier noch df

Code: Alles auswählen

root@d479ee29d373:/var/www/log# df
Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/nvme0n1p1 500106584 9265748 487074460   2% /
tmpfs              65536       0     65536   0% /dev
shm                65536       0     65536   0% /dev/shm
shfs           500106584 9265748 487074460   2% /var/www
/dev/nvme0n1p1 500106584 9265748 487074460   2% /etc/hosts
tmpfs            6134192       0   6134192   0% /proc/acpi
tmpfs            6134192       0   6134192   0% /sys/firmware
Es ist doch genügend Speicherplatz vorhanden. Wieso kommt diese Meldung und was ist da schief gelaufen. Ich musste heute mein Server kaltstarten, seitdem funzt das nicht mehr. Hat jemand eine Idee?

mosjka1
Beiträge: 3
Registriert: Fr 2. Jun 2023, 21:36

Re: GEN24 / Unraid /Solaranzeige Docker / PHP Fatal error - kein Speicher

Beitrag von mosjka1 »

Ich habe soeben noch eine weitere "Solanazeige_test" aufgesetzt.

Es wird dieselbe Fehlermeldung ausgegeben:

Code: Alles auswählen

root@37d96ff869c0:/var/www/log# cat solaranzeige.log 
Starting Services...
Starting influxdb...
influxdb process was started [ OK ]
Starting Grafana Server: failed!
Starting Apache httpd web server: apache2.
Starting periodic command scheduler: cron.

###############################################################################
# If u Like my Work, please Donate https://paypal.me/DeBaschdi Thank You ! :) #
###############################################################################

#########################################################################
# Image Version 0.2.0                                           #
# Running Solaranzeige Software Version 4.8.3b  [32Bit]    update    Juni  2023   #
#########################################################################

10.07. 21:55:29    -
T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 6
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev=06.01
S:  Manufacturer=Linux 6.1.36-Unraid ehci_hcd
S:  Product=EHCI Host Controller
S:  SerialNumber=0000:02:01.0
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I:  If#=0x0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=480 MxCh= 0
D:  Ver= 2.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=0781 ProdID=5583 Rev=01.00
S:  Manufacturer=SanDisk
S:  Product=Ultra Fit
S:  SerialNumber=4C530001280401105114
C:  #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=224mA
I:  If#=0x0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0001 Rev=06.01
S:  Manufacturer=Linux 6.1.36-Unraid uhci_hcd
S:  Product=UHCI Host Controller
S:  SerialNumber=0000:02:00.0
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I:  If#=0x0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub

T:  Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0e0f ProdID=0003 Rev=01.03
S:  Manufacturer=VMware
S:  Product=VMware Virtual USB Mouse
C:  #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=0mA
I:  If#=0x0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=02 Driver=usbhid

T:  Bus=02 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#=  3 Spd=12  MxCh= 7
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0e0f ProdID=0002 Rev=01.00
S:  Manufacturer=VMware, Inc.
S:  Product=VMware Virtual USB Hub
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I:  If#=0x0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub

10.07. 21:55:29    -Daten:
array (
  '' => '',
)
10.07. 21:55:29    -USB Devices: 
NULL
10.07. 21:55:29    -Regler: 12
10.07. 21:55:29    -Device: Ethernet wird in die user.config.php eingetragen.
10.07. 21:55:29    -Zeile gefunden. USB Device kann ausgetauscht werden. Index: 716   $USBRegler         = "/dev/ttyUSB0";

10.07. 21:55:29    -Zeile gefunden. Containerversion kann eingetragen werden. Index: 735   $Platine = "Raspberry unbekannt";

10.07. 21:55:29    -Es handelt sich um ein 64 Bit System.
root@37d96ff869c0:/var/www/log#

Code: Alles auswählen

root@37d96ff869c0:/var/www/log# cat php.log 
[10-Jul-2023 22:08:01 Europe/Berlin] PHP Notice:  Undefined variable: funktionen in /var/www/html/regler_auslesen.php on line 53
[10-Jul-2023 22:08:01 Europe/Berlin] PHP Fatal error:  Uncaught Error: Call to a member function log_schreiben() on null in /var/www/html/regler_auslesen.php:53
Stack trace:
#0 {main}
  thrown in /var/www/html/regler_auslesen.php on line 53
Api Schnittstelle scheint auch zu funktionieren:

Code: Alles auswählen

http://192.168.178.223/solar_api/v1/GetPowerFlowRealtimeData.fcgi

{
   "Body" : {
      "Data" : {
         "Inverters" : {
            "1" : {
               "Battery_Mode" : "normal",
               "DT" : 1,
               "E_Day" : null,
               "E_Total" : 2376068.8808333334,
               "E_Year" : null,
               "P" : 1751.9273681640625,
               "SOC" : 51.5
            }
         },
         "SecondaryMeters" : {},
         "Site" : {
            "BackupMode" : false,
            "BatteryStandby" : true,
            "E_Day" : null,
            "E_Total" : 2376068.8808333334,
            "E_Year" : null,
            "Meter_Location" : "grid",
            "Mode" : "bidirectional",
            "P_Akku" : 1810.592041015625,
            "P_Grid" : 40.200000000000003,
            "P_Load" : -1778.17998046875,
            "P_PV" : 2.9178527593612671,
            "rel_Autonomy" : 97.739261467255815,
            "rel_SelfConsumption" : 100.0
         },
         "Smartloads" : {
            "Ohmpilots" : {
               "0" : {
                  "P_AC_Total" : 0.0,
                  "State" : "normal",
                  "Temperature" : 50.799999999999997
               }
            }
         },
         "Version" : "12"
      }
   },
   "Head" : {
      "RequestArguments" : {},
      "Status" : {
         "Code" : 0,
         "Reason" : "",
         "UserMessage" : ""
      },
      "Timestamp" : "2023-07-10T20:14:08+00:00"
   }
}

DeBaschdi
Beiträge: 300
Registriert: Mo 10. Aug 2020, 08:13
Hat sich bedankt: 15 Mal
Danksagung erhalten: 55 Mal

Re: GEN24 / Unraid /Solaranzeige Docker / PHP Fatal error - kein Speicher

Beitrag von DeBaschdi »

Der Fehler ist bekannt und wurde heute morgen für Docker in der Imageversion 0.2.1 behoben.

viewtopic.php?p=28522#p28522

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 0 Gäste