Install tigergraph 3.1.0 in a Docker image

Hi

I am trying to install tigergraph 3.1.0 in a Docker.

And I am using the dockerfile found from here:

But I got the following errors:

cp: cannot stat '/tmp/tigergraph_logs/precheck_res.log': No such file or directory
[ERROR   ]: Prechecking failed on node m1 (127.0.0.1), please check the following log:
      /home/tigergraph/tigergraph-3.1.0-offline/logs/precheck.log.m1 
------------------------------------------------------------
[ERROR   ]: Prechecking on one or more nodes failed 

============================================================
Here is my environment:

Docker version is:

Client:
 Version:           18.09.0
 API version:       1.39
 Go version:        go1.10.4
 Git commit:        4d60db4
 Built:             Wed Nov  7 00:49:01 2018
 OS/Arch:           linux/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          18.09.0
  API version:      1.39 (minimum version 1.12)
  Go version:       go1.10.4
  Git commit:       4d60db4
  Built:            Wed Nov  7 00:16:44 2018
  OS/Arch:          linux/amd64
  Experimental:     false

Host OS version is:

LSB Version:core-9.20170808ubuntu1-noarch:printing-9.20170808ubuntu1-noarch:security-9.20170808ubuntu1-noarch

Distributor ID:Ubuntu
Description:Ubuntu 18.04.1 LTS
Release:18.04
Codename:bionic

===================================================================
The entire log when installing:

Sending build context to Docker daemon  19.43MB
Step 1/6 : FROM ubuntu:16.04
 ---> 005d2078bdfa
Step 2/6 : ENV TG_VERSION 3.1.0
 ---> Using cache
 ---> d63d5d8c8a33
Step 3/6 : RUN useradd -ms /bin/bash tigergraph
 ---> Using cache
 ---> 5d4dd3042bfa
Step 4/6 : RUN apt-get -qq update && apt-get install -y --no-install-recommends sudo curl iproute2 net-tools cron ntp locales vim emacs wget git tar unzip jq uuid-runtime openssh-client openssh-server > /dev/null &&   mkdir /var/run/sshd &&   echo 'root:root' | chpasswd &&   echo 'tigergraph:tigergraph' | chpasswd &&   sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config &&   sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd &&   echo "tigergraph    ALL=(ALL)       NOPASSWD: ALL" >> /etc/sudoers &&   apt-get clean -y &&   curl -s -k -L https://dl.tigergraph.com/enterprise-edition/tigergraph-3.1.0-offline.tar.gz     -o /home/tigergraph/tigergraph-dev.tar.gz &&   /usr/sbin/sshd && cd /home/tigergraph/ &&   tar xfz tigergraph-dev.tar.gz &&   rm -f tigergraph-dev.tar.gz &&   cd /home/tigergraph/tigergraph-* &&   ./install.sh -n || : &&   mkdir -p /home/tigergraph/tigergraph/logs &&   rm -fR /home/tigergraph/tigergraph-* &&   rm -fR /home/tigergraph/tigergraph/app/${TG_VERSION}/syspre_pkg &&   rm -f /home/tigergraph/tigergraph/gium_prod.tar.gz &&   rm -f /home/tigergraph/tigergraph/pkg_pool/tigergraph_*.tar.gz &&   cd /tmp && rm -rf /tmp/tigergraph-* && curl -s -k -L "https://github.com/tigergraph/ecosys/tarball/master" -o /tmp/ecosys.tgz &&   tar xzf ecosys.tgz && mv /tmp/tigergraph-ecosys-*/demos/guru_scripts/docker/tutorial /home/tigergraph/tutorial &&   curl -s -k -L "https://github.com/tigergraph/gsql-graph-algorithms/tarball/master" -o /tmp/algorithms.tgz &&   tar xzf algorithms.tgz && mv /tmp/tigergraph-gsql-graph-algorithms-* /home/tigergraph/gsql-graph-algorithms &&   rm -rf /tmp/*  &&   echo "export VISIBLE=now" >> /etc/profile &&   echo "export USER=tigergraph" >> /home/tigergraph/.bash_tigergraph &&   rm -f /home/tigergraph/.gsql_fcgi/RESTPP.socket.1 &&   mkdir -p /home/tigergraph/.gsql_fcgi &&   touch /home/tigergraph/.gsql_fcgi/RESTPP.socket.1 &&   chmod 644 /home/tigergraph/.gsql_fcgi/RESTPP.socket.1 &&   chown -R tigergraph:tigergraph /home/tigergraph
 ---> Running in 1c49ff4678df
debconf: delaying package configuration, since apt-utils is not installed
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified

   _______                 ______                 __
  /_  __(_)___ ____  _____/ ____/________ _____  / /_
   / / / / __ `/ _ \/ ___/ / __/ ___/ __ `/ __ \/ __ \
  / / / / /_/ /  __/ /  / /_/ / /  / /_/ / /_/ / / / /
 /_/ /_/\__, /\___/_/   \____/_/   \__,_/ .___/_/ /_/
       /____/                          /_/


Welcome to the TigerGraph platform installer! 

[PROGRESS]: 02:13:48 Fresh install TigerGraph platform ... 
[PROGRESS]: 02:13:48 Read cluster config file from /home/tigergraph/tigergraph-3.1.0-offline/install_conf.json 
[NOTE    ]: Parsing config item: BasicConfig
[NOTE    ]: Parsing config item: TigerGraph
[NOTE    ]: Parsing config item: SSHPort
[NOTE    ]: Parsing config item: Username
[NOTE    ]: Parsing config item: Password
[NOTE    ]: Parsing config item: RootDir
[NOTE    ]: Parsing config item: License
[NOTE    ]: Parsing config item: NodeList
[NOTE    ]: Parsing config item: AdvancedConfig
[NOTE    ]: Parsing config item: ClusterConfig
[NOTE    ]: Parsing config item: LoginConfig
[PROGRESS]: 02:13:48 Checking sudo privilege... 

[PROGRESS]: 02:13:48 Checking the cluster/node environment and configuration ... 
------------------------------------------------------------
[PROGRESS]: 02:13:48 Checking login and scp functionality in the cluster 
------------------------------------------------------------
[PROGRESS]: 02:13:48 Waiting 'Checking login and scp functionality' to be done on nodes (m1), this may take a while ... 
[NOTE    ]: Job 'Checking login and scp functionality' on node m1 succeeded 
------------------------------------------------------------
[PROGRESS]: 02:13:48 Prechecking each node in background concurrently ... 
------------------------------------------------------------
[NOTE    ]: Retrieve the internal IP of m1 (127.0.0.1) 
[NOTE    ]: Internal IP obtained: 127.0.0.1 

[PROGRESS]: 02:13:48 Wait until Prechecking on each node to finish, this may take a while ... 

[NOTE    ]: Job Prechecking on node m1 done 
cp: cannot stat '/tmp/tigergraph_logs/precheck_res.log': No such file or directory
[ERROR   ]: Prechecking failed on node m1 (127.0.0.1), please check the following log:
      /home/tigergraph/tigergraph-3.1.0-offline/logs/precheck.log.m1 
------------------------------------------------------------
[ERROR   ]: Prechecking on one or more nodes failed 
Removing intermediate container 1c49ff4678df
 ---> fbdc921e8c16
Step 5/6 : EXPOSE 22
 ---> Running in b1df8e946e03
Removing intermediate container b1df8e946e03
 ---> 25f25feed292
Step 6/6 : ENTRYPOINT /usr/sbin/sshd && su - tigergraph bash -c "tail -f /dev/null"
 ---> Running in 5c66504e8c55
Removing intermediate container 5c66504e8c55
 ---> 88141821c710
Successfully built 88141821c710
Successfully tagged chenqianqiao/graph_app_dev:xrt_xrm_201_tg310

Hi @cqianqiao

as answered in our Github (https://github.com/tigergraph/ecosys/issues/126) please check the available disk space that docker can consume.

Btw. is there a specific reason why you are building your own image and not using existing images (i.e.
docker.tigergraph.com/tigergraph:latest or xpertmind/tigergraph:free_latest )?

Bruno

1 Like