kdimentionaltree / ton-proxy-docker

16 stars 7 forks source link

Build error when running docker compose #1

Open leksuss opened 1 year ago

leksuss commented 1 year ago

Fresh Debian 11 with 1gb RAM

Install docker, then run: docker compose build

After about a half hour I see errors, last strings:


#0 179.2 [ 33%] Building CXX object tl/CMakeFiles/tl_api.dir/generate/auto/tl/ton_api.cpp.o
#0 2903.7 make[3]: *** [tl/CMakeFiles/tl_api.dir/build.make:63: tl/CMakeFiles/tl_api.dir/generate/auto/tl/ton_api.cpp.o] Error 255
#0 2903.7 make[2]: *** [CMakeFiles/Makefile2:7245: tl/CMakeFiles/tl_api.dir/all] Error 2
#0 2903.7 make[1]: *** [CMakeFiles/Makefile2:12584: rldp-http-proxy/CMakeFiles/rldp-http-proxy.dir/rule] Error 2
#0 2903.7 make: *** [Makefile:2944: rldp-http-proxy] Error 2
------
failed to solve: executor failed running [/bin/sh -c cmake --build . -j$(nproc) --target rldp-http-proxy generate-random-id]: exit code: 2

Here is full log, if necessary.

kdimentionaltree commented 1 year ago

Hello, sorry for a long delay with answer. The problem may be in insufficient RAM memory: for building ton binaries required about 4GBs of RAM. But to be sure, could you please attach full build logs?

leksuss commented 1 year ago

Yes, I already figured it out. 2GB was enough for building TON binaries. I created a pull request with updated readme with this information. Anyway, thank you for your reply!