Return-Path: X-Original-To: apmail-incubator-ambari-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-ambari-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B28AAFF2A for ; Fri, 22 Mar 2013 17:33:58 +0000 (UTC) Received: (qmail 32634 invoked by uid 500); 22 Mar 2013 17:33:58 -0000 Delivered-To: apmail-incubator-ambari-dev-archive@incubator.apache.org Received: (qmail 32606 invoked by uid 500); 22 Mar 2013 17:33:58 -0000 Mailing-List: contact ambari-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@incubator.apache.org Delivered-To: mailing list ambari-dev@incubator.apache.org Received: (qmail 32598 invoked by uid 99); 22 Mar 2013 17:33:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Mar 2013 17:33:58 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of croberts@redhat.com designates 209.132.183.25 as permitted sender) Received: from [209.132.183.25] (HELO mx4-phx2.redhat.com) (209.132.183.25) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Mar 2013 17:33:54 +0000 Received: from zmail16.collab.prod.int.phx2.redhat.com (zmail16.collab.prod.int.phx2.redhat.com [10.5.83.18]) by mx4-phx2.redhat.com (8.13.8/8.13.8) with ESMTP id r2MHXXQT015155 for ; Fri, 22 Mar 2013 13:33:33 -0400 Date: Fri, 22 Mar 2013 13:33:33 -0400 (EDT) From: Chad Roberts To: ambari-dev@incubator.apache.org Message-ID: <1362315.18002664.1363973613505.JavaMail.root@redhat.com> In-Reply-To: <1094276430.17987263.1363970497643.JavaMail.root@redhat.com> Subject: Re: Problem running ambari-web test server MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [10.3.113.99] X-Mailer: Zimbra 7.2.0_GA_2669 (ZimbraWebClient - FF3.0 (Linux)/7.2.0_GA_2669) X-Virus-Checked: Checked by ClamAV on apache.org Update. I discovered that I was running a "pre release" version of Node.js. I went back and installed v0.10.1 and my ambari-web test server is now up and running. Chad ----- Original Message ----- From: "Chad Roberts" To: ambari-dev@incubator.apache.org Sent: Friday, March 22, 2013 12:41:37 PM Subject: Re: Problem running ambari-web test server Thanks for the tips. I went ahead and started over, following the directions from the updated wiki. I encountered the same exception that I had come across earlier. As you suggested, I executed... # cd $AMBARI_DIR/ambari-web # rm -rf node_modules public # npm install # brunch build The output of brunch build was the same exception that I got when doing brunch w --s earlier. 'brunch test' gives me a similar exception, but also gives me a small bit of extra information at the top (line in index.js where exception is thrown). > brunch test /home/croberts/workspace/ambari/ambari-web/node_modules/ember-precompiler-brunch/lib/index.js:22 this.window.run(fs.readFileSync(this.config.files.templates.paths.jquery ^ TypeError: Object [object global] has no method 'run' at EmberPrecompiler.module.exports.EmberPrecompiler.setup (/home/croberts/workspace/ambari/ambari-web/node_modules/ember-precompiler-brunch/lib/index.js:22:19) at new EmberPrecompiler (/home/croberts/workspace/ambari/ambari-web/node_modules/ember-precompiler-brunch/lib/index.js:31:14) at /usr/local/lib/node_modules/brunch/lib/helpers.js:546:14 at Array.map (native) at Object.exports.getPlugins (/usr/local/lib/node_modules/brunch/lib/helpers.js:545:8) at /usr/local/lib/node_modules/brunch/lib/commands/watch.js:168:25 at Object.exports.loadPackages (/usr/local/lib/node_modules/brunch/lib/helpers.js:539:12) at initialize (/usr/local/lib/node_modules/brunch/lib/commands/watch.js:161:20) at new BrunchWatcher (/usr/local/lib/node_modules/brunch/lib/commands/watch.js:247:7) at module.exports.watch (/usr/local/lib/node_modules/brunch/lib/commands/watch.js:282:12) Are there any other logs that might help me in debugging this? Any thoughts on a root cause? Thanks again, Chad ----- Original Message ----- From: "Yusaku Sako" To: ambari-dev@incubator.apache.org Sent: Thursday, March 21, 2013 5:02:56 PM Subject: Re: Problem running ambari-web test server Hi Chad, That Wiki that you referred to is outdated. Please follow this Wiki instead: https://cwiki.apache.org/confluence/display/AMBARI/Ambari+Development Having said that, I've had several people report to me about the same error, even when following the updated instructions mentioned above. I was able to replicate the issue, but the problem went away for me after doing: # cd $AMBARI_DIR/ambari-web # rm -rf node_modules public # npm install # brunch build Please let me know if you continue to see issue. Yusaku On Thu, Mar 21, 2013 at 1:25 PM, Chad Roberts wrote: > Hello, > I'm new to the world of ambari development and I'm hoping someone might be > able help me along the path. > > I've been attempting to follow the instructions provided at > https://cwiki.apache.org/AMBARI/ambari-666-development.html > > I've grabbed the latest from trunk and am attempting to run the ambari-web > test server (Fedora 17 64-bit). > > Here is what I get when I run "brunch w --s": > > TypeError: Object [object global] has no method 'run' > at EmberPrecompiler.module.exports.EmberPrecompiler.setup > (/home/croberts/workspace/ambari/ambari-web/node_modules/ember-precompiler-brunch/lib/index.js:22:19) > at new EmberPrecompiler > (/home/croberts/workspace/ambari/ambari-web/node_modules/ember-precompiler-brunch/lib/index.js:31:14) > at /usr/local/lib/node_modules/brunch/lib/helpers.js:546:14 > at Array.map (native) > at Object.exports.getPlugins > (/usr/local/lib/node_modules/brunch/lib/helpers.js:545:8) > at /usr/local/lib/node_modules/brunch/lib/commands/watch.js:168:25 > at Object.exports.loadPackages > (/usr/local/lib/node_modules/brunch/lib/helpers.js:539:12) > at initialize > (/usr/local/lib/node_modules/brunch/lib/commands/watch.js:161:20) > at new BrunchWatcher > (/usr/local/lib/node_modules/brunch/lib/commands/watch.js:247:7) > at > > Regards, > Chad >