Docker issue

225 views
Skip to first unread message

Raj

unread,
Sep 5, 2017, 10:57:57 AM9/5/17
to Datafari
All,

After setting up docker in windows 10, I tried installing application using the following command

$ docker pull datafari/datafariv3 docker run -t -i -p 8080:8080 datafari/datafariv3
unknown shorthand flag: 't' in -t
See 'docker pull --help'.

This failed. Hence I tried installing it first using the command
$ docker pull datafari/datafariv3  (which worked)

and then tried starting the application using the command
$ docker run -t -i -p 8080:8080 datafari/datafariv3

However, this does not seem start the application. It gets stuck at this point MCF configuration.
...

Start zookeeper
JMX enabled by default
Using config: /opt/datafari/zookeeper/bin/../conf/zoo.cfg
Starting zookeeper ... STARTED
Start Tomcat
Using CATALINA_BASE:   /opt/datafari/tomcat
Using CATALINA_HOME:   /opt/datafari/tomcat
Using CATALINA_TMPDIR: /opt/datafari/tomcat/temp
Using JRE_HOME:        /opt/datafari/bin/../jvm
Using CLASSPATH:       /opt/datafari/tomcat/bin/bootstrap.jar:/opt/datafari/tomcat/bin/tomcat-juli.jar
Using CATALINA_PID:    /opt/datafari/bin/../pid/tomcat.pid
Tomcat started.
Uploading configuration to zookeeper
Uploading MCF configuration
Configuration file successfully read

Nothing happens after this and http://localhost:8080/Datafari is not accessible either. Hence i had to do a Ctrl + c to stop and come out.  and the following log messages continues in the terminal

^C
Session terminated, terminating shell... ...terminated.
Starting MCF Agent ...
Configuration file successfully read
Synchronization storage cleaned up
MCF Agent started with PID 1028
Waiting up to 30 seconds to see Solr running on port 8983 [-]
Started Solr server on port 8983 (pid=1247). Happy searching!
                                                                                                                  <?xml version="1.0" encoding="UTF-8"?>
<response>
<lst name="responseHeader"><int name="status">0</int><int name="QTime">5301</int></lst><lst name="success"><lst name="localhost:8983_solr"><lst name="responseHeader"><int name="status">0</int><int name="QTime">4836</int></lst><str name="core">FileShare_shard1_replica1</str></lst></lst>
</response>
<?xml version="1.0" encoding="UTF-8"?>
<response>
<lst name="responseHeader"><int name="status">0</int><int name="QTime">2939</int></lst><lst name="success"><lst name="localhost:8983_solr"><lst name="responseHeader"><int name="status">0</int><int name="QTime">1648</int></lst><str name="core">Statistics_shard1_replica1</str></lst></lst>
</response>
<?xml version="1.0" encoding="UTF-8"?>
<response>
<lst name="responseHeader"><int name="status">0</int><int name="QTime">2924</int></lst><lst name="success"><lst name="localhost:8983_solr"><lst name="responseHeader"><int name="status">0</int><int name="QTime">1590</int></lst><str name="core">Promolink_shard1_replica1</str></lst></lst>
</response>
tail: cannot open '/opt/datafari/logs/datafari.log' for reading: No such file or directory
tail: no files remaining

Can you help me with the issue ?

-Raj

Olivier Tavard

unread,
Sep 5, 2017, 12:02:31 PM9/5/17
to Datafari
Hello Raj,

I just tried on a fresh install on an new Debian VM and I cannot reproduce the bug you had (I will try later on a Windows environment). But I fixed a bug on the Docker run command and uploaded the new Docker image on DockerHub. But it was not related to your issue, it was at the end of the script.
My advice is that you should wait when the script is at the step you mentioned. On my VM it took between 5-10 seconds before the script continued after the line 'Configuration file successfully read'

So what I did :

- install Docker
- docker pull datafari/datafariv3
- docker run -t -i -p 8080:8080 -p 8983:8983 datafari/datafariv3

Can you try again waiting for the script to finish and let me know ?

Best regards,

Olivier
Reply all
Reply to author
Forward
0 new messages