dg9vh / MMDVMHost-Dashboard

Dashboard for MMDVMHost (by G4KLX)
Creative Commons Zero v1.0 Universal
60 stars 45 forks source link

D-Star linked #15

Closed YV5OF closed 8 years ago

YV5OF commented 8 years ago

Hi Kim,

Today I did the upgrade repository, and test the dashboard observed:

That being connected to a reflector D-Star, not shown in linkto

captura de pantalla 2016-05-24 a las 1 08 57 p m

captura de pantalla 2016-05-24 a las 1 24 10 p m

dg9vh commented 8 years ago

Had you configured the right path to Link.log?

YV5OF commented 8 years ago

Yes,

My log path is -> define("LOGPATH", "/var/log/opendv/"); define("LINKLOGPATH", LOGPATH . "/Links.log");

Into log path -> May 24 14:15 Links.log

tail -f Links.log 2016-05-24 18:15:52: DCS link - Type: Repeater Rptr: YV5OF C Refl: DCS018 D Dir: Outgoing

dg9vh commented 8 years ago

If you really have moved to actual version from github, the structure of config.php has moved a little bit:

<?php
# This is an auto-generated config-file!
# Be careful, when manual editing this!

define("MMDVMLOGPATH", "/mnt/ramdisk/");
define("MMDVMLOGPREFIX", "MMDVM");
define("MMDVMINIPATH", "/etc/mmdvm/");
define("MMDVMINIFILENAME", "MMDVM.ini");
define("MMDVMHOSTPATH", "/usr/local/bin/");
define("LINKLOGPATH", "/var/log/");
define("IRCDDBGATEWAY", "ircddbgatewayd");
define("REFRESHAFTER", "60");
define("SHOWPROGRESSBARS", "on");
define("TEMPERATUREALERT", "on");
define("TEMPERATUREHIGHLEVEL", "60");
define("LHLINES", "20");
?>

So you have to put only "/var/log/opendv/" into define of LINKLOGPATH

YV5OF commented 8 years ago

Uhmmm, ok try remove all directory and clone repository.

dg9vh commented 8 years ago

you can also call setup.php to get a little configurator

YV5OF commented 8 years ago

Done Kim,

Remove all file on /var/www/html/ Cloning repository again. And install from setup.php

Thank for your time.

captura de pantalla 2016-05-24 a las 2 40 56 p m

dg9vh commented 8 years ago

Yessss :+1:

ve1aic commented 8 years ago
  1. Newest version of Dashboard gives me many errors.

    Using the latest version "Commits on May 22, 2016 " gives the errors below in your current dashboard. FYI I replaced all dashboard files and re-edited config.php just in case.

  2. Is there a way to view the YSF reflector setting now that its available. [System Fusion Network] Enable=1

    Address=127.0.0.1

    Address=c4fm.duckdns.org Port=42000 Debug=0

73, Ron VE1AIC My error log from today:

[Wed May 25 09:10:00.572979 2016] [:error] [pid 17617] [client 192.168.1.105:50068] PHP Notice: Undefined offset: 1 in /var/www/html/include/functions.php on line 43 [Wed May 25 09:10:00.573197 2016] [:error] [pid 17617] [client 192.168.1.105:50068] PHP Notice: Undefined offset: 1 in /var/www/html/include/functions.php on line 50 [Wed May 25 09:10:00.573746 2016] [:error] [pid 17617] [client 192.168.1.105:50068] PHP Fatal error: Uncaught exception 'Exception' with message 'DateInterval::construct(): Unknown or bad format (PTS)' in /var/www/html/include/functions.php:271\nStack trace:\n#0 /var/www/html/include/functions.php(271): DateInterval->construct('PTS')\n#1 /var/www/html/include/repeaterinfo.php(15): getActualMode(Array, Array)\n#2 /var/www/html/index.php(42): include('/var/www/html/i...')\n#3 {main}\n thrown in /var/www/html/include/functions.php on line 271

dg9vh commented 8 years ago

@ve1aic Hi, at 2.: see https://github.com/dg9vh/MMDVMHost-Dashboard/issues/16 for separate tracking...

at 1: could you post me your config.php?

dg9vh commented 8 years ago

@ve1aic could you try to add

date_default_timezone_set('UTC');

into your config.php (at first line after the comments in header)?

ve1aic commented 8 years ago

I just tried again using your setup.php same results. The config.php has the default UTC your mention on line 2. The "undefined offset " errors have been there since May18th..so not sure what version of Host caused that. However the fatal error in the latest dashboard is: PHP Fatal error: Uncaught exception 'Exception' with message 'DateInterval::construct(): Unknown or bad format (PTS)' in /var/www/html/include/functions.php:271\nStack trace:\n#0 /var/www/html/include/functions.php(271): DateInterval->construct('PTS')\n#1 /var/www/html/include/repeaterinfo.php(15): getActualMode(Array, Array)\n#2 /var/www/html/index.php(42): include('/var/www/html/i...')\n#3 {main}\n thrown in /var/www/html/include/functions.php on line 271 ------------------\ OK I'm using the git Issue page now instead of email.

dg9vh commented 8 years ago

@ve1aic Could you post your [General]-section from MMDVM.ini? Line 271 is playing around with ModeHang-Value so maybe there is our problem...

Using git issues makes it easier for me to track issues before they get lost in my inbox that is filled up with 100 e-mails when not online for a day... toooooo many projects where my fingers are in, hi.

ve1aic commented 8 years ago

OK, setup.php had problems with permissions, gave 666 to config.php and it wrote to it ok. <?php

This is an auto-generated config-file!

Be careful, when manual editing this!

date_default_timezone_set('UTC'); define("MMDVMLOGPATH", "/home/host/"); define("MMDVMLOGPREFIX", ""); define("MMDVMINIPATH", "/home/host/"); define("MMDVMINIFILENAME", ""); define("MMDVMHOSTPATH", "/home/host/"); define("LINKLOGPATH", ""); define("IRCDDBGATEWAY", "ircddbgateway"); define("REFRESHAFTER", ""); define("TEMPERATUREHIGHLEVEL", ""); define("LHLINES", ""); ?>

ve1aic commented 8 years ago

My General section of MMDVM.ini [General] Callsign=VE1CRA Timeout=180 Duplex=1 ModeHang=5 Display=None Daemon=0

dg9vh commented 8 years ago

Seems you missed to fill out some fields like define("MMDVMLOGPREFIX", ""); define("MMDVMINIFILENAME", ""); define("LINKLOGPATH", ""); define("REFRESHAFTER", ""); define("TEMPERATUREHIGHLEVEL", ""); define("LHLINES", "");

Looks to me to improve setup.php with checkings of values...

ve1aic commented 8 years ago

OK so you have to enter ALL fields, even ones that have the default (in grey)?

dg9vh commented 8 years ago

@ve1aic Permissions are mentioned in https://github.com/dg9vh/MMDVMHost-Dashboard/blob/master/linux-step-by-step.md point 3... It's working perfectly after giving www-data write-permissions

dg9vh commented 8 years ago

@ve1aic Yes... sorry, it's a bit misunderstanding there. When back from QRL today in just 1h I'll fix this with some checkings to not get empty values...

ve1aic commented 8 years ago

OK, after entering ALL fields using setup.php it works. Writes a new config.php although defined vars are not all same as original config.php from source.

The status page displays ok but the 'offset' errors continue. PHP Notice: Undefined offset: 4 in /var/www/html/include/functions.php on line 144

(offsets 3 & 4 on lines 136 & 144)

dg9vh commented 8 years ago

@ve1aic please check with actual commits...

ve1aic commented 8 years ago

Just cloned the latest, nice to see YSF Master info. ...oops forgot to verify error log timestamp. Php 'Offset' errors have stopped.