Return-Path: X-Original-To: apmail-oodt-dev-archive@www.apache.org Delivered-To: apmail-oodt-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C09F017DFD for ; Mon, 27 Oct 2014 02:22:47 +0000 (UTC) Received: (qmail 71307 invoked by uid 500); 27 Oct 2014 02:22:47 -0000 Delivered-To: apmail-oodt-dev-archive@oodt.apache.org Received: (qmail 71267 invoked by uid 500); 27 Oct 2014 02:22:47 -0000 Mailing-List: contact dev-help@oodt.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@oodt.apache.org Delivered-To: mailing list dev@oodt.apache.org Received: (qmail 71255 invoked by uid 99); 27 Oct 2014 02:22:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Oct 2014 02:22:47 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tpalsulich@gmail.com designates 209.85.217.180 as permitted sender) Received: from [209.85.217.180] (HELO mail-lb0-f180.google.com) (209.85.217.180) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Oct 2014 02:22:21 +0000 Received: by mail-lb0-f180.google.com with SMTP id z12so1517413lbi.11 for ; Sun, 26 Oct 2014 19:21:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=EsjWOYCicsdwu81r4GemuT0rjc6Bn+0TCMQPhR0Fg4c=; b=xAv/uoZx9x7qKWmiSONAm2aJ3qlH7enNgAPydlD93dtjx0pPasvSZfDIlxoZ0HRV11 8xMqkwuQGD29RfCWq4HP4wvk0x8bhdWVv4E+O/Snn+x4yqi67qkUmHZI4IyLTe/36Dcn VuYLYfCBKD1CjP1NjyWa8hL/HMWOj/fNLZUcjdo+RlsEh81mgtqX9uV8mWup0ogHf2Ot 14eoZlcZn44BLHkfU4ddA4K2Wmd1U+gAYBagh1vn4Ir6gWVsyCSL+n+spUkgPQRUn/uT 3Qe73VJ0BOpMPPeSyKO7JKF+GcnWGs/MIOCD6D7XPvqB3KvPZHmraNis9uevapkwuUp3 8MPA== X-Received: by 10.152.18.166 with SMTP id x6mr19831574lad.18.1414376495379; Sun, 26 Oct 2014 19:21:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.170.101 with HTTP; Sun, 26 Oct 2014 19:21:15 -0700 (PDT) In-Reply-To: References: From: Tyler Palsulich Date: Sun, 26 Oct 2014 22:21:15 -0400 Message-ID: Subject: Re: OODT- Error while executing filemgr-client in OODT File manager component To: dev Cc: Christian Alan Mattmann , Preethi Ramesh , Gouthami Kondakindi , "apraj@usc.edu" , Jarin Nitin Shah Content-Type: multipart/alternative; boundary=089e0149421095f99005065e3086 X-Virus-Checked: Checked by ClamAV on apache.org --089e0149421095f99005065e3086 Content-Type: text/plain; charset=UTF-8 I'm looking into this more. The problem seems to be that the archetype isn't using the same source as trunk. Take a look at https://github.com/apache/oodt/blob/trunk/mvn/archetypes/radix/src/main/resources/archetype-resources/filemgr/src/main/resources/bin/filemgr-client The archetype filemgr-client. Compare that to https://github.com/apache/oodt/blob/trunk/filemgr/src/main/bin/filemgr-client the trunk filemgr-client. Shouldn't these two be the same? Is there a way to keep the archetype up to date with trunk/the archetype version? Tyler On Sun, Oct 26, 2014 at 10:07 PM, Tyler Palsulich wrote: > I just tried the same steps with some trouble. In particular, here are the > commands I ran: > > curl -s > http://svn.apache.org/repos/asf/oodt/trunk/mvn/archetypes/radix/src/main/resources/bin/radix > | bash > cd oodt > mvn package > mkdir ../deploy > tar -xzvf filemgr/target/oodt-filemgr-0.1-bin.tar.gz -C ../deploy > cd ../deploy/filemgr/bin > ./filemgr start > > ./filemgr: line 95: [: -eq: unary operator expected > ./filemgr: line 83: : command not found > > Both problems are caused by undefined variables. Can fix line 95 by > switching it to be [[ ... ]] and switching the shebang to /bin/bash. But, > that doesn't fix the underlying issue that $have_tty isn't defined. From > googling, it looks to be an artifact from [0]. Thoughts? > > Line 83 is caused by $_RUNJAVA not being defined. That can be fixed by, > well, defining it. ;) Add this right below the definition of OODT_HOME: > [ -z "$_RUNJAVA" ] && _RUNJAVA="$JAVA_HOME/bin/java" > > After applying both of those fixes, I get the following error: > Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1 > at > org.apache.oodt.cas.filemgr.system.XmlRpcFileManager.main(XmlRpcFileManager.java:996) > > But, that's another thread. I haven't looked into it yet. > > So, I tried just running filemgr-client and got the same error as > Vishal... Looking at line 71, it's the same problem as with filemgr. > $_RUNJAVA$ isn't defined, so we get a command not found. I added the same > _RUNJAVA definition from above... and it worked! > > Can you try adding that line to filemgr-client, Vashal? Did you have any > issues running `filemgr start`? > > Tyler > > [0] - https://svn.apache.org/repos/asf/tomcat/trunk/bin/catalina.sh > > On Sun, Oct 26, 2014 at 7:07 PM, Mattmann, Chris A (3980) < > chris.a.mattmann@jpl.nasa.gov> wrote: > >> Is your java_home env variable set? >> >> Sent from my iPhone >> >> > On Oct 26, 2014, at 12:26 PM, "Vishal Hemnani" wrote: >> > >> > Hello, >> > >> > We installed OODT using Radix and followed steps given on wiki ( >> > >> https://cwiki.apache.org/confluence/display/OODT/OODT+Filemgr+User+Guide) >> > >> > But while executing filemgr-client, it fails to execute due to a >> > "Permission denied" error on line 71. The snippet where it fails is- >> > >> > "$_RUNJAVA" $JAVA_OPTS $OODT_OPTS \ -Djava.ext.dirs="$FILEMGR_HOME"/lib >> \ >> > >> -Dorg.apache.oodt.cas.filemgr.properties="$FILEMGR_HOME"/etc/filemgr.properties >> > \ >> -Djava.util.logging.config.file="$FILEMGR_HOME"/etc/logging.properties \ >> > >> -Dorg.apache.oodt.cas.cli.action.spring.config=file:"$FILEMGR_HOME"/policy/cmd-line-actions.xml >> > \ >> > >> -Dorg.apache.oodt.cas.cli.option.spring.config=file:"$FILEMGR_HOME"/policy/cmd-line-options.xml >> > \ org.apache.oodt.cas.filemgr.system.XmlRpcFileManagerClient "$@" >> > >> > We tried chmod on this script but didn't help. >> > Also, tried setting JAVA_HOME and other env variables, but that didn't >> help >> > either. >> > >> > Appreciate if someone could help troubleshoot this issue. >> > >> > *Environment details-* >> > Ubuntu 14.04 >> > 64-bit >> > Radix installation >> > >> > Thanks & Best, >> > Vishal Hemnani >> > Graduate Student, MS Computer Science >> > University of Southern California, Los Angeles >> > > --089e0149421095f99005065e3086--