Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.
Mango 3.0.1 & Debian Error
-
Hello, i am trying to run mango free 3.0.1 on Debian Jessie
uname -rv 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-2+deb8u3 (2016-07-02)
java -version java version "1.8.0_131" Java(TM) SE Runtime Environment (build 1.8.0_131-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
echo $JAVA_HOME /usr/lib/jvm/java-8-oracle
I copied mango files in /opt/mango directory
I have changed permissions to all /bin scripts,
but when I am trying to execute ma.sh script:sh ma.sh start ma.sh: 25: ma.sh: Syntax error: Bad fd number
-
I suspect
mkdir "$MA_HOME"/logs/ >&/dev/null
should be
mkdir "$MA_HOME"/logs/ &>/dev/null
in your
ma.sh
script. -
There is something more, but still does not want to work
sh ma.sh start MA_HOME is /opt/mango ma.sh: 30: ma.sh: source: not found /opt/mango/bin/ma-start.sh: line 99: -server: command not found ma-start: MA started with Process ID: 2178 ma-start: no restart flag found, not restarting MA ma-start: MA done
-
Ah, that explains why the first error occurred, I overlooked you were using sh. In bash the &> and >& are equivalent in that place I pointed out. The hashbang is /bin/bash, is there a reason you're using sh?
-
I must apologize to you. Of course Mango is now working fine. I am beginner in unix system, so I'm making so basic mistakes. Thank You for your help.
-
No worries, it's what we're here for! Please feel free to post any and all questions you have (well, it can be good to try to answer them for yourself first, of course)!