flyersa / MuninMX-Frontend

Frontend for MuninMX
5 stars 1 forks source link

OpenSuse Leap installation #8

Open tomxxx opened 8 years ago

tomxxx commented 8 years ago

Hello, I'm trying to configure muninMx on OpenSuse Leap. This is a POC before production installation on SLES. Something woks, something not. I can add nodes, gather and display metrics. But for example I can't add new user. I get " Database Error cannot add user. try again later". When trying add graph to dashboard (indirectly create new dashboard) I get " Cannot create Dashboard There was a error creating this dashboard. Please try again later". On Home page I see only message "Please Wait. Loading Nodes...". It seems to be a problem with database access. But nothing interested in MariaDB log (mysqld.log). Any ideas?

Best regards Tom

flyersa commented 8 years ago

Hi Tom,

yes there is an problem with the database scheme, i think some fields are missing.

Can you provide me with a dump of your muninmx database (schema only).

Am 18.07.2016 12:27 vorm. schrieb "tomxxx" notifications@github.com:

Hello, I'm trying to configure muninMx on OpenSuse Leap. This is a POC before production installation on SLES. Something woks, something not. I can add nodes, gather and display metrics. But for example I can't add new user. I get " Database Error cannot add user. try again later". When trying add graph to dashboard (indirectly create new dashboard) I get " Cannot create Dashboard There was a error creating this dashboard. Please try again later". On Home page I see only message "Please Wait. Loading Nodes...". It seems to be a problem with database access. But nothing interested in MariaDB log (mysqld.log). Any ideas?

Best regards Tom

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/flyersa/MuninMX-Frontend/issues/8, or mute the thread https://github.com/notifications/unsubscribe-auth/AEKf_1HzhBIwrWVuur-fpHa7AsXMaj9vks5qWqw6gaJpZM4JOU_1 .

tomxxx commented 8 years ago

Hi, thank you for quick response. Muninmx schema dump is in attachment. muninmx.sql.zip

Tom

flyersa commented 8 years ago

Your schema looks correct to me, at least nothing missing on users or dashboard related tables. That error comes up if the insert into the database failed. I use it with Percona 5.7, so i do not think its an issue with mariadb. Also the Please Wait loading nodes seems strange, it should load nodes and then display them in a datatable, so something with the database seems a issue yes.

How did you install it on Suse?

Can you check apache error logs and maybe set php verbose logging higher? I think some queries seem to fail for whatever reason.

tomxxx commented 8 years ago

Hi Enrico, it was nice shoot :-). The Apache error log has a lot of entries. Mostly undefined index, property, variable and so on. Here is it: Apache_error_log.zip. I'm not familliar with PHP, i'm sure you find what is wrong. I installed MuninMX manually, step-by-step, according to your install guide (https://www.muninmx.com/docs/admin/installation).

flyersa commented 8 years ago

Hi first of all please install mbstring extension for php, thats cause for this error:

PHP Fatal error: Call to undefined function mb_internal_encoding() in /srv/www/htdocs/dtaTable.php on line 15, referer: http://127.0.0.1/index.php

which leads to the "Loading Nodes" screen without displaying the nodes.

And maybe in php.ini set something to disable logging of notices ;) Then remove the error logfile restart and try again to add an user and we can check if there is some additional stuff in the database.

Also disable selinux if you have it activated.

tomxxx commented 8 years ago

Hi, firstly sorry for late answer. Some serious problems with systems at my work... As you expected "Loading node" issue went out after install mbstring. Thank you. Error log is rather boring after removing notices. It's simply empty, no errors, no warnings. Even when II'm trying add new user. Selinux is installed but not active.

Best regards Tom

flyersa commented 8 years ago

hmm its a bit hard to debug from here, i will supply you some files to replace with more debug output when i have time later this week.

tomxxx commented 8 years ago

Yes indeed, it might by quite complicated... ;-) Ok, I will wait for files.