Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

errors #52

Open
mu-us61 opened this issue Apr 16, 2021 · 6 comments
Open

errors #52

mu-us61 opened this issue Apr 16, 2021 · 6 comments

Comments

@mu-us61
Copy link

mu-us61 commented Apr 16, 2021

Fatal error: Uncaught Exception: JSON is invalid in /var/www/html/includes/vnstat.php:60 Stack trace: #0 /var/www/html/includes/vnstat.php(44): vnStat->processVnstatData('') #1 /var/www/html/index.php(27): vnStat->__construct('/usr/bin/vnstat') #2 {main} thrown in /var/www/html/includes/vnstat.php on line 60

@tomangert
Copy link

I don't think this branch works well with vnstat 2.x yet.

I have a version here that works for me:
https://github.com/tomangert/vnstat-dashboard

Feel free to try it

@sebelk
Copy link

sebelk commented Dec 8, 2021

@tomangert Hi, I've tried both this one and your version and none of them work. They fail with error that @e4e6 reported.

@tomangert
Copy link

What vnstat version are you using? I am running with 2.6 and tested with several older versions. Maybe newer versions changed something.

@sebelk
Copy link

sebelk commented Dec 9, 2021

@tomangert I've installed vnstat into the running container and worked fine.
I think that I was missing something... this images does not provides vnstat and expects that a Debian host provide it, does it?

@tomangert
Copy link

Yes vnstat has to be installed separately. Rpm, deb, source, whatever works for you.

Then set $vnstat_bin_dir to point to the executable in include/config.php

@airysoar
Copy link

Yes vnstat has to be installed separately. Rpm, deb, source, whatever works for you.

Then set $vnstat_bin_dir to point to the executable in include/config.php

Try your your version,still not work.The error show :Fatal error: Uncaught Exception: JSON is invalid in /var/www/html/includes/vnstat.php:60 Stack trace: #0 /var/www/html/includes/vnstat.php(44): vnStat->processVnstatData('') #1 /var/www/html/index.php(27): vnStat->__construct('/usr/bin/vnstat') #2 {main} thrown in /var/www/html/includes/vnstat.php on line 60

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants