Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile for installing tigergraph 3.1.0 is not working #126

Open
cqianqiao opened this issue Feb 4, 2021 · 4 comments
Open

Dockerfile for installing tigergraph 3.1.0 is not working #126

cqianqiao opened this issue Feb 4, 2021 · 4 comments

Comments

@cqianqiao
Copy link

cqianqiao commented Feb 4, 2021

When I try to build the image with the following docker file:
ecosys/demos/guru_scripts/docker/dockerfile

It report me:

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 

==========================================================================

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 is:

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
 ---> Running in d245ff200c42
Removing intermediate container d245ff200c42
 ---> d63d5d8c8a33
Step 3/6 : RUN useradd -ms /bin/bash tigergraph
 ---> Running in b1d426ff30a4
Removing intermediate container b1d426ff30a4
 ---> 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-${TG_VERSION}-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 fb4e8958de4f
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]: 01:19:31 Fresh install TigerGraph platform ... 
[PROGRESS]: 01:19:31 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]: 01:19:31 Checking sudo privilege... 

[PROGRESS]: 01:19:31 Checking the cluster/node environment and configuration ... 
------------------------------------------------------------
[PROGRESS]: 01:19:31 Checking login and scp functionality in the cluster 
------------------------------------------------------------
[PROGRESS]: 01:19:31 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]: 01:19:31 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]: 01:19:31 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 fb4e8958de4f
 ---> 9a58fafe291d
Step 5/6 : EXPOSE 22
 ---> Running in 06a3cfbf70cb
Removing intermediate container 06a3cfbf70cb
 ---> 59ac9b5341ff
Step 6/6 : ENTRYPOINT /usr/sbin/sshd && su - tigergraph bash -c "tail -f /dev/null"
 ---> Running in db85a7b84149
Removing intermediate container db85a7b84149
 ---> b937811f6716
Successfully built b937811f6716
Successfully tagged chenqianqiao/graph_app_dev:xrt_xrm_201_tg310
@xpertmind
Copy link

Please check the disk image size you reserved for your docker instances:
docker system df -v

Maybe you would need to reclaim some space.

@IvanaXu
Copy link

IvanaXu commented Mar 23, 2021

+1

[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:
      /data/tigergraph-3.1.0-offline/logs/precheck.log.m1 
------------------------------------------------------------
[ERROR   ]: Prechecking on one or more nodes failed 

@JonHerke-TG
Copy link
Collaborator

@IvanaXu did @xpertmind suggestion help? Or is there still the issue as shown in your screen capture?

@IvanaXu
Copy link

IvanaXu commented Mar 24, 2021

@HerkTG I got it by docker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants