dg9vh/MMDVMHost-Dashboard

last heard and local transmissions not populating

Closed this issue · 50 comments

w0cts commented

Hello, I recently installed mmdvmhost --dashboard and configured it and have everything working except for the last heard and local Transmissions fields are not populating and data at all but show cached. I can see the logs after logging in, the current TX field populates just fine as well as the other fields I have configured however I cannot get it to show me last heard or local Transmissions. the reboot buttons and shutdown buttons are not configured to work by the way.... Could you possibly point me in a direction to look?

here is the site for reference:

208.123.141.6:88

thanks

troy

dg9vh commented

What log level do you have configured in your mmdvm.ini?

w0cts commented

log level is set to 2 but I've tried 1 also with no change

1590765031370352523844524982476

dg9vh commented

Hi, FileLevel=2 is ok...

what happens, if you try with FileLevel=2 but delete old logfile and start the MMDVMHost again? Means: If you had many many lines with Level=1 in the log, this could confuse the system...

What version of MMDVMHost are you using?

73 de Kim
DG9VH

w0cts commented
w0cts commented

also mmdvmhost version is 20190131

15907659680636026495999086527275

w0cts commented

also don't know if this helps but here is the permissions for my log location. I was concerned that www-data may not have read access but according to this it looks like all users have read access?

15907679615842340179281239962631

dg9vh commented

I think this could cause such issues... please try, if www-data has read-access to this file... optically it should be... Do you have this directory also configured within the dashboard setup?

w0cts commented

I'm sorry, I guess I don't understand what you mean by " this could cause such issues"

What could cause such issues?

also Is there another way to verify that www-data has the correct permissions? Other than what I posted previously. I'm sorry but unfortunately I am not a Linux expert and I'm kind of stumbling through this :/

Also yes I believe I have the correct directory path configured in the configuration for setup.php but here is a screenshot

15907717037608151456024775716721

thank you for all the quick responses I really appreciate your help!
troy

dg9vh commented

Having no read permission could produce this problems, I think.

You could check read permissions by swithing to root-user (for example with sudo su and then try to read the logfile with sudo -u www-data cat /var/log/mmdvm/NameOfLogfile

w0cts commented

Ok i verifed that www-data has read permission for the latest log file ( i delted all the older ones per your request)... below is a section of the output of the commands you listed in the last post. Looks like it reads the log file just fine from www-data


mmdvm@W0CTS-mmdvm-nano:$ sudo su
[sudo] password for mmdvm:
root@W0CTS-mmdvm-nano:/home/mmdvm# cd /var/log/mmdvm
root@W0CTS-mmdvm-nano:/var/log/mmdvm# ls
mmdvm-2020-05-29.log
root@W0CTS-mmdvm-nano:/var/log/mmdvm# cd
root@W0CTS-mmdvm-nano:
# sudo -u www-data cat /var/log/mmdvm/mmdvm-2020-05-29.log
I: 2020-05-29 15:35:02.429 This software is for use on amateur radio networks only,
I: 2020-05-29 15:35:02.429 it is to be used for educational purposes only. Its use on
I: 2020-05-29 15:35:02.429 commercial networks is strictly prohibited.
I: 2020-05-29 15:35:02.429 Copyright(C) 2015-2018 by Jonathan Naylor, G4KLX and others
M: 2020-05-29 15:35:02.429 MMDVMHost-20190131 is starting
M: 2020-05-29 15:35:02.429 Built 08:42:57 May 11 2019 (GitID #ffd5cd1)
I: 2020-05-29 15:35:02.429 General Parameters
I: 2020-05-29 15:35:02.429 Callsign: W0CTS
I: 2020-05-29 15:35:02.429 Id: 311665
I: 2020-05-29 15:35:02.430 Duplex: yes
I: 2020-05-29 15:35:02.430 Timeout: 180s
I: 2020-05-29 15:35:02.430 D-Star: disabled
I: 2020-05-29 15:35:02.430 DMR: enabled
I: 2020-05-29 15:35:02.430 YSF: disabled
I: 2020-05-29 15:35:02.430 P25: disabled
I: 2020-05-29 15:35:02.430 NXDN: disabled
I: 2020-05-29 15:35:02.430 POCSAG: disabled
I: 2020-05-29 15:35:02.430 Modem Parameters
I: 2020-05-29 15:35:02.430 Port: /dev/ttyS1
I: 2020-05-29 15:35:02.430 Protocol: uart
I: 2020-05-29 15:35:02.430 RX Invert: no
I: 2020-05-29 15:35:02.431 TX Invert: no
I: 2020-05-29 15:35:02.431 PTT Invert: no
I: 2020-05-29 15:35:02.431 TX Delay: 100ms
I: 2020-05-29 15:35:02.431 RX Offset: 0Hz
I: 2020-05-29 15:35:02.431 TX Offset: 0Hz
I: 2020-05-29 15:35:02.431 RX DC Offset: 0
I: 2020-05-29 15:35:02.431 TX DC Offset: 0
I: 2020-05-29 15:35:02.431 RF Level: 100.0%
I: 2020-05-29 15:35:02.431 DMR Delay: 160 (6.7ms)
I: 2020-05-29 15:35:02.431 RX Level: 60.0%
I: 2020-05-29 15:35:02.431 CW Id TX Level: 15.0%
I: 2020-05-29 15:35:02.431 D-Star TX Level: 15.0%
I: 2020-05-29 15:35:02.431 DMR TX Level: 15.0%
I: 2020-05-29 15:35:02.431 YSF TX Level: 15.0%
I: 2020-05-29 15:35:02.431 P25 TX Level: 15.0%
I: 2020-05-29 15:35:02.431 NXDN TX Level: 15.0%
I: 2020-05-29 15:35:02.431 POCSAG TX Level: 50.0%
I: 2020-05-29 15:35:02.431 RX Frequency: 147750000Hz (147750000Hz)
I: 2020-05-29 15:35:02.432 TX Frequency: 147150000Hz (147150000Hz)
M: 2020-05-29 15:35:02.432 Opening the MMDVM
I: 2020-05-29 15:35:04.443 MMDVM protocol version: 1, description: MMDVM 20190130 (D-Star/DMR/System Fusion/P25/NXDN/POCSAG) 12.0000 MHz GitID #b4647d8
I: 2020-05-29 15:35:04.464 Display Parameters
I: 2020-05-29 15:35:04.464 Type: None
W: 2020-05-29 15:35:04.464 No valid display found, disabling
I: 2020-05-29 15:35:04.464 DMR Network Parameters
I: 2020-05-29 15:35:04.464 Address: 74.91.114.19
I: 2020-05-29 15:35:04.464 Port: 62031
I: 2020-05-29 15:35:04.464 Local: random
I: 2020-05-29 15:35:04.464 Jitter: 360ms
I: 2020-05-29 15:35:04.464 Slot 1: enabled
I: 2020-05-29 15:35:04.464 Slot 2: enabled
I: 2020-05-29 15:35:04.464 Mode Hang: 10s
I: 2020-05-29 15:35:04.465 Info Parameters
I: 2020-05-29 15:35:04.465 Callsign: W0CTS
I: 2020-05-29 15:35:04.465 RX Frequency: 147750000Hz
I: 2020-05-29 15:35:04.465 TX Frequency: 147150000Hz
I: 2020-05-29 15:35:04.465 Power: 75W
I: 2020-05-29 15:35:04.465 Latitude: 37.723343deg N
I: 2020-05-29 15:35:04.465 Longitude: -102.601334deg E
I: 2020-05-29 15:35:04.465 Height: 37m
I: 2020-05-29 15:35:04.465 Location: "Lamar,Colorado"
I: 2020-05-29 15:35:04.465 Description: "Multi-Mode Repeater"
I: 2020-05-29 15:35:04.465 URL: "sites.google.com/view/w0cts"
M: 2020-05-29 15:35:04.465 DMR, Opening DMR Network
I: 2020-05-29 15:35:04.465 RSSI
I: 2020-05-29 15:35:04.465 Mapping File: /usr/local/etc/rssi.dat
I: 2020-05-29 15:35:04.466 Loaded 21 RSSI data mapping points from /usr/local/etc/rssi.dat
I: 2020-05-29 15:35:04.466 DMR Id Lookups
I: 2020-05-29 15:35:04.466 File: /etc/DMRIds.dat
I: 2020-05-29 15:35:04.466 Reload: 24 hours
I: 2020-05-29 15:35:05.100 Loaded 162307 Ids to the DMR callsign lookup table
I: 2020-05-29 15:35:05.100 DMR RF Parameters
I: 2020-05-29 15:35:05.101 Started the DMR Id lookup reload thread
I: 2020-05-29 15:35:05.101 Id: 311665
I: 2020-05-29 15:35:05.101 Color Code: 1
I: 2020-05-29 15:35:05.101 Self Only: no
I: 2020-05-29 15:35:05.101 Embedded LC Only: no
I: 2020-05-29 15:35:05.101 Dump Talker Alias Data: yes
I: 2020-05-29 15:35:05.101 Prefixes: 0
I: 2020-05-29 15:35:05.101 Call Hang: 3s
I: 2020-05-29 15:35:05.101 TX Hang: 10s
I: 2020-05-29 15:35:05.101 Mode Hang: 10s
M: 2020-05-29 15:35:05.101 MMDVMHost-20190131 is running
M: 2020-05-29 15:35:15.238 DMR, Logged into the master successfully
M: 2020-05-29 15:37:01.358 DMR Slot 1, received network voice header from WE0FUN to TG 310815
M: 2020-05-29 15:37:02.060 DMR Talker Alias (Data Format 1, Received 6/10 char): 'WE0FUN'
M: 2020-05-29 15:37:02.060 DMR Slot 1, Embedded Talker Alias Header
M: 2020-05-29 15:37:02.060 0000: 04 00 54 57 45 30 46 55 4E ..TWE0FUN
M: 2020-05-29 15:37:02.592 DMR Talker Alias (Data Format 1, Received 10/10 char): 'WE0FUN Fun'
M: 2020-05-29 15:37:02.592 DMR Slot 1, Embedded Talker Alias Block 1
M: 2020-05-29 15:37:02.592 0000: 05 00 20 46 75 6E 00 00 00 .. Fun...
M: 2020-05-29 15:37:04.268 DMR Slot 1, received network end of voice transmission, 3.1 seconds, 0% packet loss, BER: 11.9%
M: 2020-05-29 15:39:50.144 Downlink Activate received from W0CTS
M: 2020-05-29 15:39:50.557 DMR Slot 1, received RF voice header from W0CTS to TG 31000
M: 2020-05-29 15:39:54.277 DMR Slot 1, received RF end of voice transmission, 3.6 seconds, BER: 0.4%, RSSI: -73/-49/-58 dBm
M: 2020-05-29 15:39:56.978 DMR Slot 1, received network voice header from W0CTS to TG 31000
M: 2020-05-29 15:39:57.577 DMR Talker Alias (Data Format 1, Received 6/12 char): 'W0CTS '
M: 2020-05-29 15:39:57.577 DMR Slot 1, Embedded Talker Alias Header
M: 2020-05-29 15:39:57.577 0000: 04 00 58 57 30 43 54 53 20 *..XW0CTS *
M: 2020-05-29 15:39:58.294 DMR Talker Alias (Data Format 1, Received 12/12 char): 'W0CTS Troy A'
M: 2020-05-29 15:39:58.294 DMR Slot 1, Embedded Talker Alias Block 1
M: 2020-05-29 15:39:58.294 0000: 05 00 54 72 6F 79 20 41 00 ..Troy A.
M: 2020-05-29 15:40:00.573 DMR Slot 1, received network end of voice transmission, 3.7 seconds, 0% packet loss, BER: 0.0%
M: 2020-05-29 15:46:37.674 DMR Slot 1, received network voice header from AA8TI to TG 31000
M: 2020-05-29 15:46:37.799 DMR Talker Alias (Data Format 1, Received 6/21 char): 'AA8TI '
M: 2020-05-29 15:46:37.799 DMR Slot 1, Embedded Talker Alias Header
M: 2020-05-29 15:46:37.799 0000: 04 00 6A 41 41 38 54 49 20 *..jAA8TI *
M: 2020-05-29 15:46:38.495 DMR Talker Alias (Data Format 1, Received 13/21 char): 'AA8TI DMR ID:'
M: 2020-05-29 15:46:38.495 DMR Slot 1, Embedded Talker Alias Block 1
M: 2020-05-29 15:46:38.495 0000: 05 00 44 4D 52 20 49 44 3A ..DMR ID:
M: 2020-05-29 15:46:39.243 DMR Talker Alias (Data Format 1, Received 20/21 char): 'AA8TI DMR ID: 316014'
M: 2020-05-29 15:46:39.243 DMR Slot 1, Embedded Talker Alias Block 2
M: 2020-05-29 15:46:39.243 0000: 06 00 20 33 31 36 30 31 34 .. 316014
M: 2020-05-29 15:46:39.872 DMR Slot 1, received network end of voice transmission, 2.5 seconds, 0% packet loss, BER: 0.0%
M: 2020-05-29 15:46:42.144 DMR Slot 1, received network voice header from AA8TI to TG 31000
M: 2020-05-29 15:46:42.918 DMR Talker Alias (Data Format 1, Received 6/21 char): 'AA8TI '
M: 2020-05-29 15:46:42.919 DMR Slot 1, Embedded Talker Alias Header
M: 2020-05-29 15:46:42.919 0000: 04 00 6A 41 41 38 54 49 20 *..jAA8TI *
M: 2020-05-29 15:46:43.641 DMR Talker Alias (Data Format 1, Received 13/21 char): 'AA8TI DMR ID:'
M: 2020-05-29 15:46:43.641 DMR Slot 1, Embedded Talker Alias Block 1
M: 2020-05-29 15:46:43.641 0000: 05 00 44 4D 52 20 49 44 3A ..DMR ID:
M: 2020-05-29 15:46:44.363 DMR Talker Alias (Data Format 1, Received 20/21 char): 'AA8TI DMR ID: 316014'
M: 2020-05-29 15:46:44.363 DMR Slot 1, Embedded Talker Alias Block 2
M: 2020-05-29 15:46:44.363 0000: 06 00 20 33 31 36 30 31 34 .. 316014
M: 2020-05-29 15:46:45.023 DMR Slot 1, received network end of voice transmission, 2.8 seconds, 0% packet loss, BER: 0.0%
M: 2020-05-29 15:47:29.044 DMR Slot 1, received network voice header from OA2DG to TG 31000
M: 2020-05-29 15:47:29.721 DMR Talker Alias (Data Format 1, Received 6/16 char): 'OA2DG '
M: 2020-05-29 15:47:29.721 DMR Slot 1, Embedded Talker Alias Header
M: 2020-05-29 15:47:29.721 0000: 04 00 60 4F 41 32 44 47 20 *..OA2DG * M: 2020-05-29 15:47:30.438 DMR Talker Alias (Data Format 1, Received 13/16 char): 'OA2DG Alexsis' M: 2020-05-29 15:47:30.438 DMR Slot 1, Embedded Talker Alias Block 1 M: 2020-05-29 15:47:30.438 0000: 05 00 41 6C 65 78 73 69 73 *..Alexsis* M: 2020-05-29 15:47:31.160 DMR Talker Alias (Data Format 1, Received 16/16 char): 'OA2DG Alexsis W.' M: 2020-05-29 15:47:31.160 DMR Slot 1, Embedded Talker Alias Block 2 M: 2020-05-29 15:47:31.160 0000: 06 00 20 57 2E 00 00 00 00 *.. W.....* M: 2020-05-29 15:47:37.400 DMR Slot 1, received network end of voice transmission, 8.4 seconds, 0% packet loss, BER: 0.0% M: 2020-05-29 15:47:39.672 DMR Slot 1, received network voice header from OA2DG to TG 31000 M: 2020-05-29 15:47:40.445 DMR Talker Alias (Data Format 1, Received 6/16 char): 'OA2DG ' M: 2020-05-29 15:47:40.446 DMR Slot 1, Embedded Talker Alias Header M: 2020-05-29 15:47:40.446 0000: 04 00 60 4F 41 32 44 47 20 *..OA2DG *
M: 2020-05-29 15:47:41.168 DMR Talker Alias (Data Format 1, Received 13/16 char): 'OA2DG Alexsis'
M: 2020-05-29 15:47:41.168 DMR Slot 1, Embedded Talker Alias Block 1
M: 2020-05-29 15:47:41.168 0000: 05 00 41 6C 65 78 73 69 73 ..Alexsis
M: 2020-05-29 15:47:41.885 DMR Talker Alias (Data Format 1, Received 16/16 char): 'OA2DG Alexsis W.'
M: 2020-05-29 15:47:41.885 DMR Slot 1, Embedded Talker Alias Block 2

dg9vh commented

hmmmm.... what webserver you are using? Could you take a look at the error-log?

w0cts commented

im using lighttpc and i looked in the error log and found this as the only errors present:

2020-05-29 14:48:06: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Notice: Undefined index: HTTP_HOST in /var/www/html/include/lh_ajax.php on line 50
2020-05-29 14:48:06: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Notice: Undefined index: HTTP_HOST in /var/www/html/include/localtx_ajax.php on line 48

w0cts commented

here is line 50 and line 48 of the above referenced .php files

<?php $request = 'http' . (isset($_SERVER['HTTPS']) ? 's' : '') . '://' . "{$_SERVER['HTTP_HOST']}/{$_SERVER['REQUEST_URI']}";

dg9vh commented

oh, there is something with your webserver config... seems that the PHP-_Server-variable is not filled as expected... I have no experiences with lighttpc - so you may get some ideas by googling? Sorry...

w0cts commented

ok thanks, so what web server do you recommend instead? I will look into seeing if i can find and fill the variable. thank you for your time! I really appreciate it!

troy

w0cts commented

sorry typo im using lighttpd not lighttpc....

dg9vh commented

oh, but there is still the problem in the configuration of the service itself... don't know exactly, what to do there...

w0cts commented

ok thanks again

troy

dg9vh commented

Hi again,
would you give following a try:
replace the line
<?php $request = 'http' . (isset($_SERVER['HTTPS']) ? 's' : '') . '://' . "{$_SERVER['HTTP_HOST']}/{$_SERVER['REQUEST_URI']}";
with
<?php $request = 'http' . (isset($_SERVER['HTTPS']) ? 's' : '') . '://' . "{$_SERVER['SERVER_NAME']}/{$_SERVER['REQUEST_URI']}";
and take a test-drive, if this could solve the problem for you.

73 de Kim
DG9VH

w0cts commented
w0cts commented
dg9vh commented

you could try first with the lh_ajax.php

w0cts commented
w0cts commented

Ok i made the change to the file lh_ajax.php as you requested and it now shows "loading...." but no other info loads. I made a couple test calls acrossed the repeater to BM Parrot but it stays at "loading..." so we seem to have process from the old message of "no data available in table" :) but still no actual data

last_heard change

troy

w0cts commented

here is the lighttpd error log after i restarted....

2020-05-31 06:25:04: (server.c.1534) logfiles cycled UID = 0 PID = 6918
2020-06-02 14:11:36: (server.c.1828) server stopped by UID = 0 PID = 1
2020-06-02 14:12:14: (log.c.217) server started
2020-06-02 14:12:22: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning: fopen(/tmp/MMDVMFirmware.txt): failed to open stream: No such file or directory in /var/www/html/include/functions.php on line 74
2020-06-02 14:12:22: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning: filesize(): stat failed for /tmp/MMDVMFirmware.txt in /var/www/html/include/functions.php on line 75
2020-06-02 14:12:22: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning: fread() expects parameter 1 to be resource, bool given in /var/www/html/include/functions.php on line 75
2020-06-02 14:12:22: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Notice: Undefined offset: 0 in /var/www/html/include/lh_ajax.php on line 14

dg9vh commented

ok, then you could revert the change... it's strange...

Are you in the same network as this repeater?

After looking at your source-code of the website, I see, there would be a problem with the port, you are using for the webserver... you are differing from standard-port 80... and the embedded javascript is requesting ajax-updates at port 80...

Just give me some minutes to take a look, if we can get the port out of the request...

w0cts commented

so i have it at 88 because im port forwarding internal 80 traffic acrossed the router to 88 on the outside IP address so its 80 internally and just port forwarded to 88 on the outside of the firewall

troy

dg9vh commented

you could try superseeding the line with following:
<?php $request = 'http' . (isset($_SERVER['HTTPS']) ? 's' : '') . '://' . "{$_SERVER['SERVER_NAME']}:{$_SERVER['SERVER_PORT']}/{$_SERVER['REQUEST_URI']}";

This now contains the server-port-variable... but I don't know, if it would work with your port-forwarding-setup
What's the matter you have to forward to port 88? Is port 80 occupied already?

w0cts commented

yes 80 is occupied by the router gui. i could change the router gui port and then move the port forward back to 80 inside and 80 outside. let me try that, ill contact back with results before i try your code from just a minute ago

troy

dg9vh commented

What you also could do is to move the port on your webserver to 88 also and forward 88 to 88.

w0cts commented

ok let me try that because i changed it to 80 and the MMDVMHost-Dashboard never shows up but changing it back to port 88 and it comes up immediately. so my guess is 80 is being used by the router in a way i cant turn off. ill makes the changes and post back when they are done

troy

dg9vh commented

tnx :-) would be very helpful

w0cts commented

ok lighttpd is now native to port 88 and forwarded inside to outside 88 to 88. website works again but no change on last heard or local transmissions fields.... last hears says "loading..." this is the one i modified with your code from change HTTP_HOST to SERVER_NAME

local transmissions has not been changed at all, still shows " no data available in table"

also here are the lighttpd error logs after the port change and a reboot


2020-06-02 15:30:11: (server.c.1828) server stopped by UID = 0 PID = 1
2020-06-02 15:30:42: (log.c.217) server started
2020-06-02 15:31:17: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Notice: Undefined offset: 0 in /var/www/html/include/lh_ajax.php on line 14
2020-06-02 15:37:23: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning: Use of undefined constant MMDVMLOGPREFIX - assumed 'MMDVMLOGPREFIX' (this will throw an Error in a future version of PHP) in /var/www/html/scripts/reboot.php on lin$
2020-06-02 15:37:23: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Notice: Undefined variable: mmdvmconfigs in /var/www/html/scripts/reboot.php on line 44
2020-06-02 15:37:23: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning: array_search() expects parameter 2 to be array, null given in /var/www/html/include/functions.php on line 171
2020-06-02 15:37:23: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/include/functions.php on line 172
2020-06-02 15:37:23: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Notice: Trying to access array offset on value of type null in /var/www/html/include/functions.php on line 173
2020-06-02 15:37:23: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Notice: Trying to access array offset on value of type null in /var/www/html/include/functions.php on line 179
2020-06-02 15:37:23: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Notice: Undefined variable: mmdvmconfigs in /var/www/html/scripts/reboot.php on line 51
2020-06-02 15:37:23: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning: array_search() expects parameter 2 to be array, null given in /var/www/html/include/functions.php on line 171
2020-06-02 15:37:23: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/include/functions.php on line 172
2020-06-02 15:37:23: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Notice: Trying to access array offset on value of type null in /var/www/html/include/functions.php on line 173
2020-06-02 15:37:23: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Notice: Trying to access array offset on value of type null in /var/www/html/include/functions.php on line 179
2020-06-02 15:37:23: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Notice: Undefined variable: mmdvmconfigs in /var/www/html/scripts/reboot.php on line 56
2020-06-02 15:37:23: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning: array_search() expects parameter 2 to be array, null given in /var/www/html/include/functions.php on line 171
2020-06-02 15:37:23: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/include/functions.php on line 172
2020-06-02 15:37:23: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Notice: Trying to access array offset on value of type null in /var/www/html/include/functions.php on line 173
2020-06-02 15:37:23: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Notice: Trying to access array offset on value of type null in /var/www/html/include/functions.php on line 179

thanks
troy

dg9vh commented

Hi, please take a new update from github from yesterday... seems you have not the code running I am expecting there... Now the URLs in the script-sections should be with port-numbers but yours are not...

Just git pull or grab new zip file (don't know, how you installed the first dashboard-version you are running there).

w0cts commented

ok i updated the MMDVMHost-Dashboard but unfortunately there is no change.... both the local rx and last heard now show "no data available in table" again :(

updated dashboard

dg9vh commented

You are sure, that your webservice-user (www-data or www-user, depending on your linux running) has read permissions to the log-directory and the files in it? permissions should be at least -rx-rx for group and others...

for the logfile -r--r- would be ok...

please show me a ls -la /var/log to see the permissions of the log-directory itself.

w0cts commented

ok here is the output of ls -la /var/log


mmdvm@W0CTS-mmdvm-nano:/var/log/lighttpd$ ls -la /var/log
total 4752
drwxr-xr-x 8 root root 4096 Jun 5 06:25 .
drwxr-xr-x 13 root root 4096 May 16 22:18 ..
-rw-r--r-- 1 root root 0 Jun 1 06:25 alternatives.log
-rw-r--r-- 1 root root 1090 May 15 16:23 alternatives.log.1
-rw-r--r-- 1 root root 575 May 14 23:09 alternatives.log.2.gz
drwxr-xr-x 2 root root 4096 Jun 5 11:34 apt
-rw-r--r-- 1 root root 122418 Jun 5 11:47 armbian-hardware-monitor.log
-rw-r--r-- 1 root root 14754 Jun 2 15:30 armbian-hardware-monitor.log.1.gz
-rw-r--r-- 1 root root 15071 May 17 20:34 armbian-hardware-monitor.log.2.gz
-rw-r--r-- 1 root root 28071 May 16 13:17 armbian-hardware-monitor.log.3.gz
-rw-r--r-- 1 root root 117486 May 12 11:33 armbian-hardware-monitor.log.4.gz
-rw-r--r-- 1 root root 437 Feb 9 2019 armbian-ramlog.log
-rw-r----- 1 root adm 371664 Jun 5 11:47 auth.log
-rw-r----- 1 root adm 394519 May 31 06:25 auth.log.1
-rw-r----- 1 root adm 28797 May 25 06:25 auth.log.2.gz
-rw-r----- 1 root adm 18730 May 17 06:25 auth.log.3.gz
-rw-r----- 1 root adm 23513 May 13 06:25 auth.log.4.gz
-rw-r--r-- 1 root root 53550 Feb 7 2019 bootstrap.log
-rw------- 1 root utmp 0 Jun 1 06:25 btmp
-rw------- 1 root utmp 234 May 29 09:51 btmp.1.gz
-rw-r----- 1 root adm 636585 Jun 5 11:47 daemon.log
-rw-r----- 1 root adm 131285 May 31 06:25 daemon.log.1
-rw-r----- 1 root adm 28523 May 25 06:25 daemon.log.2.gz
-rw-r----- 1 root adm 36987 May 17 06:25 daemon.log.3.gz
-rw-r----- 1 root adm 90675 May 13 06:25 daemon.log.4.gz
-rw-r----- 1 root adm 2428 Jun 5 11:47 debug
-rw-r----- 1 root adm 1821 Jun 2 15:30 debug.1
-rw-r----- 1 root adm 322 May 17 20:34 debug.2.gz
-rw-r----- 1 root adm 1574 May 16 13:17 debug.3.gz
-rw-r----- 1 root adm 1467 May 12 11:33 debug.4.gz
-rw-r--r-- 1 root root 13544 Jun 5 11:35 dpkg.log
-rw-r--r-- 1 root root 97497 May 15 16:24 dpkg.log.1
-rw-r--r-- 1 root root 693 Aug 14 2019 dpkg.log.2.gz
-rw-r--r-- 1 root root 2640 Aug 14 2019 faillog
-rw-r----- 1 root adm 243061 Jun 5 11:47 kern.log
-rw-r----- 1 root adm 232 May 30 20:26 kern.log.1
-rw-r----- 1 root adm 22485 May 17 20:34 kern.log.2.gz
-rw-r----- 1 root adm 66443 May 16 13:17 kern.log.3.gz
-rw-r----- 1 root adm 327318 May 12 11:33 kern.log.4.gz
-rw-rw-r-- 1 root utmp 292292 Jun 5 11:47 lastlog
drwxr-x--- 2 www-data www-data 4096 May 31 06:25 lighttpd
-rw-r----- 1 root adm 306715 Jun 5 11:47 messages
-rw-r----- 1 root adm 1434 May 31 06:25 messages.1
-rw-r----- 1 root adm 27800 May 25 06:25 messages.2.gz
-rw-r----- 1 root adm 83352 May 17 06:25 messages.3.gz
-rw-r----- 1 root adm 399961 May 13 06:25 messages.4.gz
drwxr-xr-x 2 mmdvm mmdvm 4096 Jun 4 18:00 mmdvm
-rw-r--r-- 1 root root 116 May 18 2019 nand-sata-install.log
drwxr-xr-x 2 ntp ntp 4096 Feb 15 2018 ntpstats
-rw-r--r-- 1 root root 0 Aug 14 2019 stm32-DVM-MTR2K.configured
-rw-r----- 1 root adm 634433 Jun 5 11:47 syslog
-rw-r----- 1 root adm 53927 Jun 5 06:25 syslog.1
-rw-r----- 1 root adm 4512 Jun 4 06:25 syslog.2.gz
-rw-r----- 1 root adm 46775 Jun 3 06:25 syslog.3.gz
-rw-r----- 1 root adm 5095 Jun 2 06:25 syslog.4.gz
-rw-r----- 1 root adm 4469 Jun 1 06:25 syslog.5.gz
-rw-r----- 1 root adm 4615 May 31 06:25 syslog.6.gz
-rw-r----- 1 root adm 5306 May 30 06:25 syslog.7.gz
drwxr-xr-x 2 root root 4096 May 25 2017 sysstat
drwxr-x--- 2 root adm 4096 Apr 11 2019 unattended-upgrades
-rw-r----- 1 root adm 67945 Jun 5 11:47 user.log
-rw-r----- 1 root adm 103 May 30 20:26 user.log.1
-rw-r----- 1 root adm 2955 May 17 20:34 user.log.2.gz
-rw-r----- 1 root adm 6725 May 16 13:17 user.log.3.gz
-rw-r----- 1 root adm 25860 May 12 11:33 user.log.4.gz
-rw-rw-r-- 1 root utmp 42624 Jun 5 11:47 wtmp
-rw-rw-r-- 1 root utmp 2988 May 29 16:17 wtmp.1.gz

dg9vh commented

There must be an issue with the access to the logfile... you also have no info in the following section:
image
This is very typical for such issues with reading logfile... what makes me wondering is, that the Currently TXing is working...

w0cts commented

yes current TXing works just fine and has from day 1 of install... ... here is an example

current txing

dg9vh commented

would you please send me your logfile of today to my emailaddress listed at qrz.com? So I could test the logfile with my local system to see, if there is an issue within the file or something like that.

w0cts commented

I have emailed you todays log file.

Thanks
Troy

dg9vh commented

I got the source of your problem: You are using a very old version of MMDVMHost Built 08:42:57 May 11 2019 (GitID #ffd5cd1)

It is over 1 year old and within this year the logformat of MMDVMHost has changed and this was adapted to the Dashboard. So please upgrade to the lasted MMDVMHost-version... This will solve the problem...

We have differences in following lines for example:
M: 2020-06-05 18:31:42.283 DMR Slot 1, received network end of voice transmission, 56.8 seconds, 0% packet loss, BER: 0.0%
(your version)
M: 2020-06-03 17:45:01.707 DMR Slot 2, received network end of voice transmission from DG9VH to TG 26250, 3.7 seconds, 0% packet loss, BER: 0.0%
(actual version)

w0cts commented

ok thanks makes sense... i was wondering about that. the solution im using is for am MTR2000 and was pre-programmed onto a modem card inclusing a nano pi neo, when i purchased it. I will check into how to upgrade it as soon as i can get ahold of the person who made the solution. Thanks for all your help!!

troy

Hello, I'm also having this issue with latest dashboard. I am running 2020-05-18 build of MMDVMHost. Using apache2 with php and modules. There are no errors in apache error.log

The apache user has access to read the logs. "currently TXing" works fine. It even says "Last Heard List of today's 98 callsigns." so it knows there's callsigns in the log, it just not display them. It does not say "no data in table", its just blank. The "current mode" and "linked to" works fine also.

If you have any tips I would be grateful, thank you. 73 de va3dxv

dg9vh commented

Please first update to current version of Dashboard... if the issue still persists, please send me your logfile of your MMDVMHost to my e-mailaddress listed at qrz.com to first see the format of the logfile...

Nevermind, I tried it in Chrome and it worked fine. Realized PrivacyBadger on Firefox was blocking tracking cookies and it caught datatables.net. That wasn't an issue when I set it up previously so I missed it before posting. Seems to be a thing among others as well, and I wonder about datatables. Cheers and thank you.

dg9vh commented

ok, then I just wait for @w0cts 's reply, if the problem is solved after upgrading MMDVMHost... then we can close this issue.

w0cts commented
dg9vh commented

No problem... we let it open and wait for your reply :-)

dg9vh commented

If this issue still persist, reopen it, please by commenting. Now I close it :-)