Nov 21 08:40:36 vps423681.ovh.net systemd[1]: Starting LSB: Example initscript...
Nov 21 08:40:36 vps423681.ovh.net janusgraph[1414]: basename: missing operand
Nov 21 08:40:36 vps423681.ovh.net janusgraph[1414]: Try 'basename --help' for more information.
Nov 21 08:40:36 vps423681.ovh.net systemd[1]: Started LSB: Example initscript.
Nov 21 08:40:37 vps423681.ovh.net janusgraph[1414]: Forking Cassandra...
Nov 21 08:40:49 vps423681.ovh.net janusgraph[1414]: Running `nodetool statusthrift`... OK (returned exit status 0 and printed string "running")
Nov 21 08:40:50 vps423681.ovh.net janusgraph[1414]: Forking Elasticsearch...
Nov 21 08:41:51 vps423681.ovh.net janusgraph[1414]: Connecting to Elasticsearch (127.0.0.1:9200)............................. timeout exceeded
Nov 21 08:41:51 vps423681.ovh.net janusgraph[1414]: See /home/vps01/janusgraph-0.2.0-hadoop2/bin/../log/elasticsearch.log for Elasticsearch log
[2017-11-21T08:12:07,299][INFO ][o.e.n.Node ] [GBlVv_O] stopping ...
[2017-11-21T08:12:07,853][INFO ][o.e.n.Node ] [GBlVv_O] stopped
[2017-11-21T08:12:07,856][INFO ][o.e.n.Node ] [GBlVv_O] closing ...
[2017-11-21T08:12:07,999][INFO ][o.e.n.Node ] [GBlVv_O] closed
--
You received this message because you are subscribed to the Google Groups "JanusGraph users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to janusgraph-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/janusgraph-users/7f2a3e87-2f8a-40fb-9522-caf3487b0901%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Nov 21 15:25:08 vps423681.ovh.net su[1455]: pam_unix(su:session): session opened for user vps01 by (uid=0)
Nov 21 15:25:09 vps423681.ovh.net janusgraph[1413]: bash: start: command not found
Nov 21 15:25:09 vps423681.ovh.net janusgraph[1413]: basename: missing operand
Nov 21 15:25:09 vps423681.ovh.net janusgraph[1413]: Try 'basename --help' for more information.
Nov 21 15:25:09 vps423681.ovh.net systemd[1]: Started LSB: Example initscript.
Nov 21 15:25:10 vps423681.ovh.net janusgraph[1413]: Forking Cassandra...
Nov 21 15:25:22 vps423681.ovh.net janusgraph[1413]: Running `nodetool statusthrift`... OK (returned exit status 0 and printed string
Nov 21 15:25:22 vps423681.ovh.net janusgraph[1413]: Forking Elasticsearch...
Nov 21 15:26:23 vps423681.ovh.net janusgraph[1413]: Connecting to Elasticsearch (127.0.0.1:9200)............................. timeou
Nov 21 15:26:23 vps423681.ovh.net janusgraph[1413]: See /home/vps01/janusgraph-0.2.0-hadoop2/bin/../log/elasticsearch.log for Elasti
sudo /etc/init.d/janusgraph
Running `nodetool statusthrift`.. OK (returned exit status 0 and printed string "running").
Forking Elasticsearch...
Connecting to Elasticsearch (127.0.0.1:9200)....... OK (connected to 127.0.0.1:9200).
Forking Gremlin-Server...
Connecting to Gremlin-Server (127.0.0.1:8182).... OK (connected to 127.0.0.1:8182).
Run gremlin.sh to connect.
Are you running it as a non-root user?"Note for security reasons Elasticsearch and therefore janusgraph.sh must be run under a non-root account."
Robert Dale
On Tue, Nov 21, 2017 at 2:52 AM, <troj...@gmail.com> wrote:
When I start janusgraph by: bin/janusgraph start, everything is OK.The problem occurs when I start janusgraph at a system startup. I use Ubuntu server 16.04 and I added above command to the script in /etc/init.d as a result (service janusgraph status) I get:
Nov 21 08:40:36 vps423681.ovh.net systemd[1]: Starting LSB: Example initscript...
Nov 21 08:40:36 vps423681.ovh.net janusgraph[1414]: basename: missing operand
Nov 21 08:40:36 vps423681.ovh.net janusgraph[1414]: Try 'basename --help' for more information.
Nov 21 08:40:36 vps423681.ovh.net systemd[1]: Started LSB: Example initscript.
Nov 21 08:40:37 vps423681.ovh.net janusgraph[1414]: Forking Cassandra...
Nov 21 08:40:49 vps423681.ovh.net janusgraph[1414]: Running `nodetool statusthrift`... OK (returned exit status 0 and printed string "running")
Nov 21 08:40:50 vps423681.ovh.net janusgraph[1414]: Forking Elasticsearch...
Nov 21 08:41:51 vps423681.ovh.net janusgraph[1414]: Connecting to Elasticsearch (127.0.0.1:9200)............................. timeout exceeded
Nov 21 08:41:51 vps423681.ovh.net janusgraph[1414]: See /home/vps01/janusgraph-0.2.0-hadoop2/bin/../log/elasticsearch.log for Elasticsearch logIn elastic search logs I have:
[2017-11-21T08:12:07,299][INFO ][o.e.n.Node ] [GBlVv_O] stopping ...
[2017-11-21T08:12:07,853][INFO ][o.e.n.Node ] [GBlVv_O] stopped
[2017-11-21T08:12:07,856][INFO ][o.e.n.Node ] [GBlVv_O] closing ...
[2017-11-21T08:12:07,999][INFO ][o.e.n.Node ] [GBlVv_O] closed
I don't understand why I can't start janusgraph at the system startup but I can run it as a normal login user.
--
You received this message because you are subscribed to the Google Groups "JanusGraph users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to janusgraph-use...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to janusgraph-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/janusgraph-users/7dd35379-72e2-458b-80a8-703f82014509%40googlegroups.com.
#!/bin/sh
# kFreeBSD do not accept scripts as interpreters, using #!/bin/sh and sourcing.
if [ true != "$INIT_D_SCRIPT_SOURCED" ] ; then
set "$0" "$@"; INIT_D_SCRIPT_SOURCED=true . /lib/init/init-d-script
fi
### BEGIN INIT INFO
# Provides: janusgraph
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Example initscript
# Description: This file should be used to construct scripts to be
# placed in /etc/init.d. This example start a
# single forking daemon capable of writing a pid
# file. To get other behavoirs, implemend
# do_start(), do_stop() or other functions to
# override the defaults in /lib/init/init-d-script.
### END INIT INFO
# DESC="Janus graph database"
# DAEMON=/home/vps01/janusgraph-0.2.0-hadoop2/bin/janusgraph.sh start
su vps01 -c "bash -c '/home/vps01/janusgraph-0.2.0-hadoop2/bin/janusgraph.sh start & $1'"
Robert Dale
[Unit]Description=JanusGraphDocumentation=http://janusgraph.org/After=network.target[Service]Type=forkingUser=<username>Group=<groupname>WorkingDirectory=/path/to/janusgraph-0.2.0-hadoop2# Using /bin/bash gets around potential SELinux issues with JavaExecStart=/bin/bash -c '/path/to/janusgraph-0.2.0-hadoop2/bin/janusgraph.sh -v start'ExecStop=/bin/bash -c '/path/to/janusgraph-0.2.0-hadoop2/bin/janusgraph.sh stop'[Install]WantedBy=multi-user.target
To unsubscribe from this group and stop receiving emails from it, send an email to janusgraph-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/janusgraph-users/d025b8d6-7b2f-4bf6-a297-73e394f72163%40googlegroups.com.
Robert Dale