tariqbuilds / linux-dash

A beautiful web dashboard for Linux
https://afaqurk.github.io/linux-dash/
MIT License
10.43k stars 1.2k forks source link

Ubuntu 16.04LTS and Apache 2.4.18 #401

Closed swordmaster2k closed 8 years ago

swordmaster2k commented 8 years ago

Hi,

I recently upgraded my Ubuntu server distribution from the older Ubuntu 15.04 and Apache 2.4.10. I had linux-dash installed under /var/www/html/linux-dash. Before the upgrade everything was working fine, but now I don't have any readings and I'm seeing the following errors in the browser console:

Error: [ngRepeat:dupes] http://errors.angularjs.org/1.3.4/ngRepeat/dupes?p0=row%20in%20tableRows%20%7C%20filter%3Akeyword&p1=string%3Ap&p2=p
z/<@http://10.134.61.68/linux-dash/js/angular.min.js:6:416
ke</<.compile/</<@http://10.134.61.68/linux-dash/js/angular.min.js:234:262
Me/this.$get</k.prototype.$watchCollection/<@http://10.134.61.68/linux-dash/js/angular.min.js:121:305
Me/this.$get</k.prototype.$digest@http://10.134.61.68/linux-dash/js/angular.min.js:122:366
Me/this.$get</k.prototype.$apply@http://10.134.61.68/linux-dash/js/angular.min.js:125:305
m@http://10.134.61.68/linux-dash/js/angular.min.js:80:453
N@http://10.134.61.68/linux-dash/js/angular.min.js:85:32
tf/</w.onload@http://10.134.61.68/linux-dash/js/angular.min.js:86:69

http://10.134.61.68/linux-dash/js/angular.min.js
Line 101
Error: seriesOptions[x] is undefined
.link/<@http://10.134.61.68/linux-dash/js/linuxDash.js:651:15
this.get/<@http://10.134.61.68/linux-dash/js/linuxDash.js:186:18
f/<@http://10.134.61.68/linux-dash/js/angular.min.js:111:182
Me/this.$get</k.prototype.$eval@http://10.134.61.68/linux-dash/js/angular.min.js:125:36
Me/this.$get</k.prototype.$digest@http://10.134.61.68/linux-dash/js/angular.min.js:122:119
Me/this.$get</k.prototype.$apply@http://10.134.61.68/linux-dash/js/angular.min.js:125:305
m@http://10.134.61.68/linux-dash/js/angular.min.js:80:453
N@http://10.134.61.68/linux-dash/js/angular.min.js:85:32
tf/</w.onload@http://10.134.61.68/linux-dash/js/angular.min.js:86:69

http://10.134.61.68/linux-dash/js/angular.min.js
Line 101
Error: scope.seriesArray[keyCount] is undefined
.link/scope.getData/<@http://10.134.61.68/linux-dash/js/linuxDash.js:684:15
this.get/<@http://10.134.61.68/linux-dash/js/linuxDash.js:186:18
f/<@http://10.134.61.68/linux-dash/js/angular.min.js:111:182
Me/this.$get</k.prototype.$eval@http://10.134.61.68/linux-dash/js/angular.min.js:125:36
Me/this.$get</k.prototype.$digest@http://10.134.61.68/linux-dash/js/angular.min.js:122:119
Me/this.$get</k.prototype.$apply@http://10.134.61.68/linux-dash/js/angular.min.js:125:305
m@http://10.134.61.68/linux-dash/js/angular.min.js:80:453
N@http://10.134.61.68/linux-dash/js/angular.min.js:85:32
tf/</w.onload@http://10.134.61.68/linux-dash/js/angular.min.js:86:69

http://10.134.61.68/linux-dash/js/angular.min.js
Line 101

I've looked around in the apache PHP logs but I don't see anything in the error.log or access.log that could be causing this issue. It stopped working after the upgrade, I tried a few other things like changing the folder permissions but I can't get it working again under Apache. I'm using the python version for the moment.

Thanks.

swordmaster2k commented 8 years ago

I also tested it under Ubuntu 15.10 and Apache 2.4.12 and it was still functioning. I noticed that Ubuntu 16.04LTS moved up to PHP 7 from PHP 5, could that be having an affect?

swordmaster2k commented 8 years ago

I found the cause of the issue Ubuntu had disabled PHP5 after the upgrade without installing PHP7. To fix it I had to run:

sudo apt-get install php libapache2-mod-php php-json php-curl
sudo systemctl restart apache2 
tariqbuilds commented 8 years ago

Glad to hear your issue is resolved. Seems very specific to upgrade of system packages.