Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

service start generates errors, but service appears to be running #269

Closed
adeconsulting opened this Issue · 4 comments

5 participants

@adeconsulting

Ubuntu 12.04.3 LTS

I built from the "v2.0.0RC2" tag and installed using the debian package.

When I attempt to start the service, the script generates error messages:

$ sudo service opentsdb start
 * Starting TSD...
 /etc/init.d/opentsdb: 80: [: missing ]
 /etc/init.d/opentsdb: 107: [: Illegal number: Failed to start the TSD
[fail]
/etc/init.d/opentsdb: 123: return: Illegal number: Failed

However, the service does appear to be running:

$ ps -ef | grep TSDMain
opentsdb 15949     1  7 16:32 ?        00:00:04 java -enableassertions -enablesystemassertions -classpath /usr/share/opentsdb/*.jar:/usr/share/opentsdb:/usr/share/opentsdb/bin:/usr/share/opentsdb/lib/asynchbase-1.4.1.jar:/usr/share/opentsdb/lib/guava-13.0.1.jar:/usr/share/opentsdb/lib/jackson-annotations-2.1.4.jar:/usr/share/opentsdb/lib/jackson-core-2.1.4.jar:/usr/share/opentsdb/lib/jackson-databind-2.1.4.jar:/usr/share/opentsdb/lib/log4j-over-slf4j-1.7.2.jar:/usr/share/opentsdb/lib/logback-classic-1.0.9.jar:/usr/share/opentsdb/lib/logback-core-1.0.9.jar:/usr/share/opentsdb/lib/netty-3.6.2.Final.jar:/usr/share/opentsdb/lib/slf4j-api-1.7.2.jar:/usr/share/opentsdb/lib/suasync-1.4.0.jar:/usr/share/opentsdb/lib/tsdb-2.0.0.jar:/usr/share/opentsdb/lib/zookeeper-3.3.6.jar:/etc/opentsdb net.opentsdb.tools.TSDMain
@manolama manolama added the bug label
@mikebryant

It looks like this was fixed in bb32253, I think this can be closed.

@jakeri

Still broken. It manage to start the service but check fail. I removed the check and read the return code from last command instead.

case "$1" in
start)

  if [ -z "$JAVA_HOME" ]; then
    log_failure_msg "no JDK found - please set JAVA_HOME"
    exit 1
  fi

  log_action_begin_msg "Starting TSD"
  if start-stop-daemon --test --start --pidfile "$PID_FILE" \
    --user "$TSD_USER" --exec "$JAVA_HOME/bin/java" \
    >/dev/null; then

    touch "$PID_FILE" && chown "$TSD_USER":"$TSD_GROUP" "$PID_FILE"

    if [ -n "$MAX_OPEN_FILES" ]; then
      ulimit -n $MAX_OPEN_FILES
    fi

    # start the daemon
    start-stop-daemon --start -b --user "$TSD_USER" -c "$TSD_USER" \
      --make-pidfile --pidfile "$PID_FILE" \
      --exec /bin/bash -- -c "$DAEMON $DAEMON_OPTS"

    log_end_msg $?
  fi
  ;;
@manolama manolama referenced this issue from a commit in manolama/opentsdb
@manolama manolama Fix for #269 where the Debian init script would start the daemon but …
…report

a failure on some systems. Thanks @jakeri for the fix.
f08315a
@manolama manolama referenced this issue from a commit
@manolama manolama Fix for #269 where the Debian init script would start the daemon but …
…report

a failure on some systems. Thanks @jakeri for the fix.

Signed-off-by: Chris Larsen <clarsen@euphoriaaudio.com>
1ea0ac8
@manolama
Owner

Fixed in 1ea0ac8

@manolama manolama closed this
@ebereketoglu

I'm getting the same error. I installed the java 8 and set the JAVA_HOME but it still gives 'no JDK found - please set JAVA_HOME' error.
opentsdb_error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.