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
[HTML Error] HTML::Template::param() : attempt to set parameter 'groups' with a scalar - parameter is not a TMPL_VAR! #610
Comments
This is actually still an open issue on 2.0.26 on arch linux. HTML error:
|
I've this problem in Fedora with munin 2.0.33. The proposed workaround does not work for me. |
I have the same problem with munin 2.0.33.1 on Raspbian 9 "stretch". It works every other time: once I get error message and once I get correct output. Change proposed by AIXMeister works for me if I restart fastcgi processes. |
I just did the following:
I did not notice any errors. Do you still encounter this issue? If yes: do the |
@sumpfralle
|
@pbda: thank you for taking a look again! @AIXMeister, @Nukesor, @jorti: do you still experience this issue? |
@sumpfralle I created a gist with my current nginx and munin/node config. The server is running ArchLinux and uses version 2.0.26-4:
|
@Nukesor: thank you for the example configuration. Hopefully it helps me reproducing this behaviour. Is there any chance that you could (without too much of a hassle) try it with a newer version of munin? 2.0.39 was just released a few minutes ago :) |
Dear collegues, Server is running but web frontend is not working....:( Any updates on this issue since the first post?? Thanks in advance Jon Garrido, |
@trucheromayor: just for making sure, that we are talking about the same issue ...
|
Thank you Lars for your response. About your indications:
I´m doing a deeper research. I´ll feedback you... Thanks again. |
Can confirm the issue, exactly as described by the original submitter, still exists in 2.0.47. However, changing the suggested line in |
After reading through http://munin-monitoring.org/ticket/739 I checked my munin-node config. |
@artjomsimon: just for clarification - your problem was not related to the one described by the creator of this issue? |
You get this error if the configuration contains no data. It is not sufficient that a node is defined, there will also have to be collected data for at least one graph. A strategic test for defined $config and an error message to somewhere would be nice. |
The template engine emits the following error, if no host entries are configured for data collection (on the master): [HTML Error] HTML::Template::param() : attempt to set parameter 'groups' with a scalar - parameter is not a TMPL_VAR The following steps are taken to fix this issue: * ensure that the proper data type is handed over to the template (i.e. an array) * a helpful hint is displayed on the master overview page, if no hosts were configured Closes: #610
Thank you all for your thoughts and comments! I fixed the issue in 48e1e0a. |
Version
munin 2.0.25
Prerequisites
On a fresh installation set the following parameters in
munin.conf
:Incorrect behaviour
Browse the munin installation and load the same page multiple times. The following happens:
This alternating behaviour - display normal, then display error - happens for any page on every reload of the page.
Analysis
Line 55 in
munin/cgi/munin-cgi-html
loads the configuration:The given parameter
1
tries to load the configuration from the cache.With
html_strategy cgi
andgraph_strategy cgi
this cache does not exist/cannot be created.Workaround
Change the parameter to zero in line 55 in
munin/cgi/munin-cgi-html
:Any page loads display normally if this workaround is in place.
The text was updated successfully, but these errors were encountered: