You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Craig W (JIRA)" <ji...@apache.org> on 2017/01/04 13:10:58 UTC

[jira] [Created] (MESOS-6850) UI does not work because of strict mode related error

Craig W created MESOS-6850:
------------------------------

             Summary: UI does not work because of strict mode related error
                 Key: MESOS-6850
                 URL: https://issues.apache.org/jira/browse/MESOS-6850
             Project: Mesos
          Issue Type: Bug
          Components: webui
    Affects Versions: 1.1.0
         Environment: Firefox 38.7
            Reporter: Craig W
            Priority: Blocker


After upgrading from Mesos 0.28.2 to Mesos 1.1.0, the UI is not functioning properly.

The top menu bar appears, but on the far right it says {{state.cluster}}. In the main body of the page, it just says "No master is currently leading...".

If I open the web console, I see an error:

SyntaxError: in strict mode code, functions may be declared only at top level or immediately within another function

It points to [line 845 in controllers.js|https://github.com/apache/mesos/blame/1.1.0/src/webui/master/static/js/controllers.js#L845].

The current work around I have is to remove the "use strict" statement in app.js and controllers.js but this requires a custom post-install script on my behalf when setting this up on a cluster.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)