Arcus 설치 중 Error 발생..

145 views
Skip to first unread message

sann...@gmail.com

unread,
Dec 14, 2017, 1:30:54 AM12/14/17
to openarcus
# yum install gcc gcc-c++ autoconf automake libtool pkgconfig cppunit-devel python-setuptools python-devel
# git clone https://github.com/naver/arcus
# cd arcus/
# git submodule add https://github.com/naver/arcus-memcached arcus-memcached
# git submodule add https://github.com/naver/arcus-zookeeper arcus-zookeeper
# cd scripts
# ./build.sh

ARCUS BUILD PROCESS: START
--------------------------
Working directory is /opt/arcus.
Detailed build log is recorded to scripts/build.log.
--------------------------
[git submodule init] .. SUCCEED
[git submodule update] .. START
[git submodule update] .. SUCCEED
[server/config/autorun.sh] .. SUCCEED
[clients/c/config/autorun.sh] .. SUCCEED
[zookeeper/ant clean compile_jute bin-package] .. START
Error has occurred. /opt/arcus/scripts/etc/autorun.sh has failed.
Error has occurred. ./build.sh has failed.
Check /opt/arcus/scripts/build.log


다른 서버에서 submodule 없이 arcus만 clone 하고 build 시도..

# yum install gcc gcc-c++ autoconf automake libtool pkgconfig cppunit-devel python-setuptools python-devel
# git clone https://github.com/naver/arcus
# cd arcus/scripts/
# ./build.sh
ARCUS BUILD PROCESS: START
--------------------------
Working directory is /opt/arcus.
Detailed build log is recorded to scripts/build.log.
--------------------------
[git submodule init] .. SUCCEED
[git submodule update] .. SUCCEED
[server/config/autorun.sh] .. SUCCEED
[clients/c/config/autorun.sh] .. SUCCEED
[zookeeper/ant clean compile_jute bin-package] .. START
Error has occurred. /opt/arcus/scripts/etc/autorun.sh has failed.
Error has occurred. ./build.sh has failed.
Check /opt/arcus/scripts/build.log

양 서버 모두 build.log에
===== zookeeper ======
/opt/arcus/zookeeper /opt/arcus/scripts/etc
./autorun.sh: line 72: ant: command not found


===== zookeeper ======
/opt/arcus/zookeeper /opt/arcus/scripts
/opt/arcus/scripts/etc/autorun.sh: line 72: ant: command not found


위와 같이 ant 를 찾을 수 없어서
# yum install ant
이후 다시 build를 시도 했습니다.

......
[python jinja2 library install] .. SUCCEED
[python fabric library install] .. SUCCEED
--------------------------
ARCUS BUILD PROCESS: END



위 메시지 출력 후,
# ./arcus.sh quicksetup conf/local.sample.json
=>
./arcus.sh: line 148: /opt/arcus/scripts/fab: No such file or directory
와 같은 상황이 됩니다...

fab -> ../lib/python/site-packages/fab
는 대상(..../site-packages/fab)이 없네요..

계속 진행 해 볼 수 있게 도움 부탁드립니다.

sann...@gmail.com

unread,
Dec 14, 2017, 2:19:27 AM12/14/17
to openarcus
언급되지 않았던 서버 포함 3대의 서버 모두
# rm -rf /opt/arcus
# git clone https://github.com/naver/arcus
# cd arcus/scripts/
# ./build.sh

build 이후

# ./arcus.sh quicksetup conf/local.sample.json

여전히 이전과 동일하게
./arcus.sh: line 148: /opt/arcus/scripts/fab: No such file or directory
메시지가 출력됩니다.

build.log를 보면
# tail build.log
=>
make[3]: Leaving directory `/opt/arcus/server'
make[2]: Leaving directory `/opt/arcus/server'
make[1]: Leaving directory `/opt/arcus/server'
/opt/arcus/scripts
Creating /opt/arcus/lib/python/site-packages/site.py
Searching for kazoo
Reading http://pypi.python.org/simple/kazoo/
Couldn't find index page for 'kazoo' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
No local packages or download links found for kazoo
error: Could not find suitable distribution for Requirement.parse('kazoo') (--always-copy skips system and development eggs)
Searching for jinja2
Reading http://pypi.python.org/simple/jinja2/
Couldn't find index page for 'jinja2' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
No local packages or download links found for jinja2
error: Could not find suitable distribution for Requirement.parse('jinja2') (--always-copy skips system and development eggs)
Searching for pycrypto==2.4.1
Skipping development or system egg: pycrypto 2.6.1
Reading http://pypi.python.org/simple/pycrypto/
Couldn't retrieve index page for 'pycrypto'
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
No local packages or download links found for pycrypto==2.4.1
error: Could not find suitable distribution for Requirement.parse('pycrypto==2.4.1') (--always-copy skips system and development eggs)
Searching for fabric==1.8.3
Reading http://pypi.python.org/simple/fabric/
Couldn't find index page for 'fabric' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
No local packages or download links found for fabric==1.8.3
error: Could not find suitable distribution for Requirement.parse('fabric==1.8.3') (--always-copy skips system and development eggs)
/opt/arcus/scripts /opt/arcus/scripts
/opt/arcus/scripts


서버는 3대 모두 CentOS 6.9 (Final) 이며,
git clone ~ quickstart까지 root로 진행하였습니다.

minki...@gmail.com

unread,
Dec 14, 2017, 3:06:28 AM12/14/17
to openarcus
안녕하세요.

centos 장비에서 동일하게 root 계정으로 설치 진행해본 결과
같은 에러가 발생함을 확인했습니다.
root 계정으로 설치가 안되는 이유에 대해서는 확인해보아야하지만,
ARCUS 자체가 root 계정으로 현재 실행이 되지 않도록 되어있기 때문에
사용자 계정을 추가하셔서 설치 후 실행해주시기 바랍니다.

감사합니다.

sann...@gmail.com

unread,
Dec 14, 2017, 3:55:50 AM12/14/17
to openarcus
유저 계정으로 git clone부터 다시 진행 했습니다만
여전히 동일한 현상이 발생 합니다.
build.log는 여전히 python 관련 패키지를 찾을 수 없다는 로그가 남아 있고
arcus/lib/python/site-packages 에는 fab이 없습니다.
site.py와 site.pyc만 존재하네요.

# ls -alR /work/arcus/lib/python/site-packages
/work/arcus/lib/python/site-packages:
total 16
drwxrwxr-x 2 jhpark3 jhpark3 4096 Dec 14 17:16 .
drwxrwxr-x 3 jhpark3 jhpark3 4096 Dec 14 17:16 ..
-rw-rw-r-- 1 jhpark3 jhpark3 2362 Dec 14 17:16 site.py
-rw-rw-r-- 1 jhpark3 jhpark3 1779 Dec 14 17:16 site.pyc

minki kim

unread,
Dec 14, 2017, 5:34:13 AM12/14/17
to openarcus
easy_install 이상이었네요. 코드 수정을 해야할 것 같습니다.(https://bugzilla.redhat.com/show_bug.cgi?id=1510444)



104, 107, 112 라인에 있는 코드들을 수정해주세요.
$pythonpath와 모듈 사이에 -i https://pypi.python.org/simple 를 추가하는 형태입니다.

104: easy_install -a -d $pythonpath kazoo 1>> $arcus_directory/scripts/build.log 2>&1
=> easy_install -a -d $pythonpath -i https://pypi.python.org/simple kazoo 1>> $arcus_directory/scripts/build.log 2>&1

107: easy_install -a -d $pythonpath jinja2 1>> $arcus_directory/scripts/build.log 2>&1
=> easy_install -a -d $pythonpath -i https://pypi.python.org/simple jinja2 1>> $arcus_directory/scripts/build.log 2>&1

112: easy_install -a -d $pythonpath fabric==1.8.3 1>> $arcus_directory/scripts/build.log 2>&1
=> easy_install -a -d $pythonpath -i https://pypi.python.org/simple fabric==1.8.3 1>> $arcus_directory/scripts/build.log 2>&1

sann...@gmail.com

unread,
Dec 14, 2017, 7:39:03 AM12/14/17
to openarcus
해결되었습니다.

감사합니다.

Reply all
Reply to author
Forward
0 new messages