Open SHUFIL opened 3 weeks ago
Hi, @SHUFIL
Thanks for the reply!
error: downloading 'https://dl.bintray.com/boostorg/release/1.69.0/source/boost_1_69_0.tar.bz2' failed
status_code: 22
status_string: "HTTP response code said error"
or
error: downloading 'http://pegasus-thirdparties.oss-cn-beijing.aliyuncs.com/boost_1_69_0.tar.bz2' failed
status_code: 22
status_string: "HTTP response code said error"
Some thirdparty links are broken in old versions. You can
Update OSS_URL_PREFIX
value in rdsn/thirdparty/CMakeLists.txt
from http://pegasus-thirdparties.oss-cn-beijing.aliyuncs.com
to http://pegasus-thirdparty-package.oss-cn-beijing.aliyuncs.com
if you insist on Pegasus 2.1.
Or
Try to use new Pegasus versions (say https://github.com/apache/incubator-pegasus/releases/tag/v2.5.0) instead.
Hey @acelyc111 , Thanks for reply.
I tried 2.5.0 both way compile and docker , unfortunately I got below error , This is for compiled way.
This time I did not get any reason , just though out a error , that is
-- Installing: /home/ubuntu/apache-pegasus-2.5.0/thirdparty/output/include/thrift/config.h
[ 29%] Completed 'thrift'
[ 29%] Built target thrift
make: *** [Makefile:91: all] Error 2
-- Installing: /root/pegasus/thirdparty/output/bin/arc
-- Set non-toolchain portion of runtime path of "/root/pegasus/thirdparty/output/bin/arc" to ""
[ 94%] Completed 'poco'
[ 94%] Built target poco
make: *** [Makefile:91: all] Error 2
This is docker method , can you please check that error . Thanks
@acelyc111 @ke4qqq @gmcdonald
Hey @acelyc111 , Thanks for reply.
I tried 2.5.0 both way compile and docker , unfortunately I got below error , This is for compiled way.
This time I did not get any reason , just though out a error , that is
-- Installing: /home/ubuntu/apache-pegasus-2.5.0/thirdparty/output/include/thrift/config.h [ 29%] Completed 'thrift' [ 29%] Built target thrift make: *** [Makefile:91: all] Error 2
-- Installing: /root/pegasus/thirdparty/output/bin/arc -- Set non-toolchain portion of runtime path of "/root/pegasus/thirdparty/output/bin/arc" to "" [ 94%] Completed 'poco' [ 94%] Built target poco make: *** [Makefile:91: all] Error 2
This is docker method , can you please check that error . Thanks
@SHUFIL Did you see any other error messages?
I try to reproduce it according to the doc https://github.com/apache/incubator-pegasus-website/blob/master/_docs/en/2.5.0/compile-by-docker.md, but everything goes well. My steps are:
...
-- Installing: /root/pegasus/build/release/output/lib/libdsn.replication.tool.a
-- Installing: /root/pegasus/build/release/output/lib/libdsn_utils.so
-- Set runtime path of "/root/pegasus/build/release/output/lib/libdsn_utils.so" to ""
-- Installing: /root/pegasus/build/release/output/bin/long_adder_bench/long_adder_bench
-- Set runtime path of "/root/pegasus/build/release/output/bin/long_adder_bench/long_adder_bench" to ""
-- Installing: /root/pegasus/build/release/output/bin/nth_element_bench/nth_element_bench
-- Set runtime path of "/root/pegasus/build/release/output/bin/nth_element_bench/nth_element_bench" to ""
-- Installing: /root/pegasus/build/release/output/lib/libdsn.replication.zookeeper_provider.a
Build finish time: Wed Jul 10 16:28:26 CST 2024
Build elapsed time: 16m 58s
I also checked the apache/pegasus:build-env-ubuntu2204-v2.5
image, it's OK too.
@acelyc111 I dont know why it is getting me , is it is any dependency issue ? I have tried the same version docker image but getting below error . I have used below commands for run docker ,
sudo docker run -v /home/ubuntu/apache-pegasus-2.5.0:/root/pegasus apache/pegasus:build-env-ubuntu2004-master /bin/bash -c "cd /root/pegasus; ./run.sh build -c --clear_thirdparty -j $(nproc)"
Error
[ 85%] Building CXX object src/replica/CMakeFiles/dsn_replica_server.dir/duplication/replica_duplicator_manager.cpp.o
make[2]: *** [src/replica/CMakeFiles/dsn_replica_server.dir/build.make:384: src/replica/CMakeFiles/dsn_replica_server.dir/replica_stub.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:1967: src/replica/CMakeFiles/dsn_replica_server.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
@SHUFIL I guess some important error message is missed, could you please try:
apache/pegasus:build-env-ubuntu2204-v2.5
not apache/pegasus:build-env-ubuntu2004-master
, because some software packages are different in different version.1
instaed of $(nproc)
.So run as:
sudo docker run -v /home/ubuntu/apache-pegasus-2.5.0:/root/pegasus apache/pegasus:build-env-ubuntu2004-v2.5 /bin/bash -c "cd /root/pegasus; ./run.sh build -c --clear_thirdparty -j 1"
This is worked for me , and build finished without error. Thanks
Next I need to run test
command, for this I run below command ,
docker run -v /home/ubuntu/pegasus:/root/pegasus \
apache/pegasus:build-env-ubuntu2004-v2.5 \
/bin/bash -c "cd /root/pegasus; ./run.sh test"
But I got below error ,
Cluster becomes healthy.
sed: can't read /root/pegasus/build/latest/src/server/test/config.ini: No such file or directory
Next I need to
run test
command, for this I run below command ,docker run -v /home/ubuntu/pegasus:/root/pegasus \ apache/pegasus:build-env-ubuntu2004-v2.5 \ /bin/bash -c "cd /root/pegasus; ./run.sh test"
But I got below error ,
Cluster becomes healthy. sed: can't read /root/pegasus/build/latest/src/server/test/config.ini: No such file or directory
I see, it's needed to add --test
when build the project by ./run.sh build ...
if you want to run tests.
Please try this at first:
sudo docker run -v /home/ubuntu/apache-pegasus-2.5.0:/root/pegasus apache/pegasus:build-env-ubuntu2004-v2.5 /bin/bash -c "cd /root/pegasus; ./run.sh build -c --clear_thirdparty -j 1 --test"
Please keep in mind that some tests maybe flaky, don't be worry about that 😄 .
Ok, that is fine, but I did not get any error this time, I have completed pack_server , pack_client (C/C++) ,and pack_tools,
As per this doc it is explain for pack_client C/C++ development , I need to run for Golang client , for this I need to run client separately or here I can do that ? how it is
Congrats!
For Golang client, please see docs here: https://github.com/apache/incubator-pegasus/tree/master/go-client
I have clone again for go-client, but it is already there in main folder , anyway I tried in both folder with make build
command , but I getting always below error .
For resolving this issue I have done below steps
added this values
ulimit -c unlimited
export GOBACTRACE=crash
thrift --version
Thrift version 0.16.0
go version
go version go1.22.0 linux/386
Error
go mod tidy
go mod verify
all modules verified
go build -o ./bin/echo ./rpc/main/echo.go
# runtime/cgo
In file included from _cgo_export.c:3:
/usr/include/stdlib.h:26:10: fatal error: bits/libc-header-start.h: No such file or directory
26 | #include <bits/libc-header-start.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:34: build] Error 1
@SHUFIL According to the go-client CI job, it works well on certain thrift and golang versions. Could you try thrift 0.13.0 and golang-1.14?
ok, I think this will check later , because I getting thrift-0.13.0 build error
./configure: line 19838: syntax error near unexpected token `QT5,'
./configure: line 19838: ` PKG_CHECK_MODULES(QT5, Qt5Core >= 5.0, Qt5Network >= 5.0,'
I am trying to start pegasus service after build, but below error blocking me, Can you please.
./run.sh start_onebox ERROR: file /home/ubuntu/pegasus/build/latest/output/bin/pegasus_server/pegasus_server not exist
./run.sh start_onebox ERROR: file /home/ubuntu/pegasus/build/latest/output/bin/pegasus_server/pegasus_server not exist
@SHUFIL Has the Pegasus been successfully built before starting the onebox? Are you starting the onebox in the docker?
Bug Report
Please answer these questions before submitting your issue. Thanks!
build rdsn failed
I have installed below dependence's
gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04)
,cmake version 3.30.0
also installed all packages in mentioned Dockerfile Dockerfile