Panorama view, adding new dashboard failed: 500 - Internal Server Error

383 views
Skip to first unread message

smetj

unread,
Oct 10, 2014, 5:07:01 PM10/10/14
to th...@googlegroups.com
Hi,

When setting Panorama view to read only for a user I get following messages:

adding new dashboard failed: 500 - Internal Server Error

When I tail the log I see following output:

[2014/10/10 21:04:49][xxxxxxxxxxxxxxxxxxx][ERROR][Catalyst] Couldn't render template "panorama/panorama_cgi.tt: file error - panorama/panorama_cgi.tt: not found"
[2014/10/10 21:04:49][xxxxxxxxxxxxxxxxxxx][ERROR][Template.Provider] on page: POST https://xxxxxxxxxxxxxxx/thruk/cgi-bin/panorama.cgi?task=dashboard_data

Any ideas anyone?

Cheers,

Jelle

Sven Nierlein

unread,
Oct 11, 2014, 9:27:48 AM10/11/14
to th...@googlegroups.com
Hi Jelle,

what exactly do you do? With "readonly" you mean setting a dashboard to "Locked"?

Cheers,
Sven

smetj

unread,
Oct 11, 2014, 5:16:28 PM10/11/14
to th...@googlegroups.com
Hi Sven,

I would like to set all panorama boards to read only, ... I have following configuration:

<Component Thruk::Plugin::Panorama>
    default_dashboards = 7,29
    readonly = 1
</Component>

<User smetj>
   <Component Thruk::Plugin::Panorama>
     readonly        = 0
   </Component>
</User>


The moment I login with another user than smetj, I get the above described error message, ....

smetj

unread,
Oct 13, 2014, 4:55:40 AM10/13/14
to th...@googlegroups.com
Hi Sven,

Apparently, the parameter should be "default_dashboard" (without the s)
However, when I correct that, I do see the tabs of the dashboards in panorama, but all tabs stay empty.

I can see following error output in the logs:

==> /var/log/thruk/thruk.log <==
[2014/10/13 08:52:05][xxxxxxxxxx][ERROR][Thruk.Controller.remote] ---------------
JS-Error:
Version:    1.84~6
Release:    August 06, 2014
Url:        /thruk/cgi-bin/panorama.cgi?
Browser:    Mozilla/5.0 (X11; Linux x86_64; rv:32.0) Gecko/20100101 Firefox/32.0
Backends:   uname:      Linux xxxxxxxxxx 2.6.32-431.23.3.el6.x86_64 #1 SMP Wed Jul 16 06:12:23 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux
release:    Red Hat Enterprise Linux Server release 6.2 (Santiago)

Stacktrace:
Error: ReferenceError: cleanUnderscoreUrl is not defined
---------------

==> /var/log/thruk/debug.log <==
[2014/10/13 08:52:05][xxxxxxxxxx][ERROR][Thruk.Controller.remote] ---------------
JS-Error:
Version:    1.84~6
Release:    August 06, 2014
Url:        /thruk/cgi-bin/panorama.cgi?
Browser:    Mozilla/5.0 (X11; Linux x86_64; rv:32.0) Gecko/20100101 Firefox/32.0
Backends:   uname:      Linux xxxxxxxxxx 2.6.32-431.23.3.el6.x86_64 #1 SMP Wed Jul 16 06:12:23 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux
release:    Red Hat Enterprise Linux Server release 6.2 (Santiago)

Stacktrace:
Error: ReferenceError: cleanUnderscoreUrl is not defined
---------------
[2014/10/13 08:52:06][xxxxxxxxxx][DEBUG][Thruk.Action.AddDefaults] checking auth
[2014/10/13 08:52:06][xxxxxxxxxx][DEBUG][Thruk.Action.AddDefaults] user not authenticated yet
[2014/10/13 08:52:06][xxxxxxxxxx][DEBUG][Thruk.Action.AddDefaults] user authenticated as: thrukadmin
[2014/10/13 08:52:06][xxxxxxxxxx][DEBUG][Thruk.Action.AddDefaults] _set_enabled_backends() by param
[2014/10/13 08:52:06][xxxxxxxxxx][DEBUG][Thruk.Action.AddDefaults] disabled_backends: $VAR1 = {
          '0ded1' => 0
        };
[2014/10/13 08:52:06][xxxxxxxxxx][DEBUG][Thruk.Utils] can_submit_commands: 1

smetj

unread,
Oct 13, 2014, 5:00:57 AM10/13/14
to th...@googlegroups.com
However, when I correct that, I do see the tabs of the dashboards in panorama, but all tabs stay empty.


When I copy over an existing user session /var/lib/thruk/users/smetj to /var/lib/thruk/users/thrukadmin everything works as expected.
I I delete  /var/lib/thruk/users/thrukadmin and login again with user "thrukadmin", then I get the panorama dashboards tabs as defined by the "default_dashboard" parameter, but they stay all empty (and generate the above error in the logs)

Sven Nierlein

unread,
Feb 5, 2015, 10:10:08 AM2/5/15
to th...@googlegroups.com
Hi Jelle,

is this still the case? I cannot reproduce this.

Cheers,
Sven

On 11.10.2014 23:16, smetj wrote:
> Hi Sven,
>
> I would like to set all panorama boards to read only, ... I have following configuration:
>
> <Component Thruk::Plugin::Panorama>
> default_dashboards = 7,29
> readonly = 1
> </Component>
>
> <User smetj>
> <Component Thruk::Plugin::Panorama>
> readonly = 0
> </Component>
> </User>
>
>
> The moment I login with another user than smetj, I get the above described error message, ....
>
> On Saturday, October 11, 2014 3:27:48 PM UTC+2, Sven Nierlein wrote:
>
> On 10/10/14 23:07, smetj wrote:
> > Hi,
> >
> > When setting Panorama view to read only for a user I get following messages:
> >
> > adding new dashboard failed: 500 - Internal Server Error
> >
> > When I tail the log I see following output:
> >
> > [2014/10/10 21:04:49][xxxxxxxxxxxxxxxxxxx][ERROR][Catalyst] Couldn't render template "panorama/panorama_cgi.tt <http://panorama_cgi.tt>: file error - panorama/panorama_cgi.tt <http://panorama_cgi.tt>: not found"
> > [2014/10/10 21:04:49][xxxxxxxxxxxxxxxxxxx][ERROR][Template.Provider] on page: POST https://xxxxxxxxxxxxxxx/thruk/cgi-bin/panorama.cgi?task=dashboard_data <https://xxxxxxxxxxxxxxx/thruk/cgi-bin/panorama.cgi?task=dashboard_data>
> >
> > Any ideas anyone?
> >
> > Cheers,
> >
> > Jelle
>
> Hi Jelle,
>
> what exactly do you do? With "readonly" you mean setting a dashboard to "Locked"?
>
> Cheers,
> Sven
>
> --
> You received this message because you are subscribed to the Google Groups "Thruk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to thruk+un...@googlegroups.com <mailto:thruk+un...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages