selkies-project / selkies-vdi

WebRTC & Xpra desktops on Selkies
https://selkies.io
Apache License 2.0
66 stars 17 forks source link

ERROR: build step 34 "gcr.io/cloud-builders/docker" failed #12

Closed sezeristif closed 2 years ago

sezeristif commented 3 years ago

While trying to run selkies-vdi I got stuck in this step: gcloud builds submit --substitutions=_REGION=${REGION}

So far I have deployed Selkies to google cloud.

These are the build logs:

Step #0 - "build-images": Step #37 - "squid-proxy": /bin/bash ../../libtool  --tag=CXX   --mode=link g++ -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Woverloaded-virtual -Werror -Wno-deprecated-register -pipe -D_REENTRANT -g -O2 -march=native -std=c++11  -g -o libmgr.la  Action.lo ActionParams.lo ActionPasswordList.lo ActionWriter.lo BasicActions.lo Command.lo CountersAction.lo Filler.lo Forwarder.lo FunAction.lo InfoAction.lo Inquirer.lo IntervalAction.lo IoAction.lo Registration.lo Request.lo Response.lo ServiceTimesAction.lo StoreIoAction.lo StoreToCommWriter.lo QueryParams.lo IntParam.lo StringParam.lo
Step #0 - "build-images": Step #32 - "app-streaming-focal-cuda": Removing intermediate container 6e82746abf28
Step #0 - "build-images": Step #32 - "app-streaming-focal-cuda":  ac6f0f266d16
Step #0 - "build-images": Step #32 - "app-streaming-focal-cuda": Step 14/16 : COPY entrypoint.sh /entrypoint.sh
Step #0 - "build-images": Step #37 - "squid-proxy": libtool: link: /usr/bin/ar cru .libs/libmgr.a .libs/Action.o .libs/ActionParams.o .libs/ActionPasswordList.o .libs/ActionWriter.o .libs/BasicActions.o .libs/Command.o .libs/CountersAction.o .libs/Filler.o .libs/Forwarder.o .libs/FunAction.o .libs/InfoAction.o .libs/Inquirer.o .libs/IntervalAction.o .libs/IoAction.o .libs/Registration.o .libs/Request.o .libs/Response.o .libs/ServiceTimesAction.o .libs/StoreIoAction.o .libs/StoreToCommWriter.o .libs/QueryParams.o .libs/IntParam.o .libs/StringParam.o
Step #0 - "build-images": Step #37 - "squid-proxy": libtool: link: ranlib .libs/libmgr.a
Step #0 - "build-images": Step #37 - "squid-proxy": libtool: link: ( cd ".libs" && rm -f "libmgr.la" && ln -s "../libmgr.la" "libmgr.la" )
Step #0 - "build-images": Step #37 - "squid-proxy": make[3]: Leaving directory '/apps/squid-peer-ssl-bump/src/mgr'
Step #0 - "build-images": Step #37 - "squid-proxy": Making all in ssl
Step #0 - "build-images": Step #37 - "squid-proxy": make[3]: Entering directory '/apps/squid-peer-ssl-bump/src/ssl'
Step #0 - "build-images": Step #37 - "squid-proxy": depbase=`echo bio.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
Step #0 - "build-images": Step #37 - "squid-proxy": /bin/bash ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/apps/squid/etc/squid.conf\" -DDEFAULT_SQUID_DATA_DIR=\"/apps/squid/share\" -DDEFAULT_SQUID_CONFIG_DIR=\"/apps/squid/etc\"   -I../.. -I../../include -I../../lib -I../../src -I../../include     -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Woverloaded-virtual -Werror -Wno-deprecated-register -pipe -D_REENTRANT -g -O2 -march=native -std=c++11 -MT bio.lo -MD -MP -MF $depbase.Tpo -c -o bio.lo bio.cc &&\
Step #0 - "build-images": Step #37 - "squid-proxy": mv -f $depbase.Tpo $depbase.Plo
Step #0 - "build-images": Step #37 - "squid-proxy": depbase=`echo cert_validate_message.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
Step #0 - "build-images": Step #37 - "squid-proxy": /bin/bash ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/apps/squid/etc/squid.conf\" -DDEFAULT_SQUID_DATA_DIR=\"/apps/squid/share\" -DDEFAULT_SQUID_CONFIG_DIR=\"/apps/squid/etc\"   -I../.. -I../../include -I../../lib -I../../src -I../../include     -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Woverloaded-virtual -Werror -Wno-deprecated-register -pipe -D_REENTRANT -g -O2 -march=native -std=c++11 -MT cert_validate_message.lo -MD -MP -MF $depbase.Tpo -c -o cert_validate_message.lo cert_validate_message.cc &&\
Step #0 - "build-images": Step #37 - "squid-proxy": mv -f $depbase.Tpo $depbase.Plo
Step #0 - "build-images": Finished Step #34 - "xpra"
Step #0 - "build-images": ERROR
Step #0 - "build-images": ERROR: build step 34 "gcr.io/cloud-builders/docker" failed: step exited with non-zero status: 1
Step #0 - "build-images": Step #37 - "squid-proxy": depbase=`echo context_storage.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
Step #0 - "build-images": Step #37 - "squid-proxy": /bin/bash ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/apps/squid/etc/squid.conf\" -DDEFAULT_SQUID_DATA_DIR=\"/apps/squid/share\" -DDEFAULT_SQUID_CONFIG_DIR=\"/apps/squid/etc\"   -I../.. -I../../include -I../../lib -I../../src -I../../include     -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Woverloaded-virtual -Werror -Wno-deprecated-register -pipe -D_REENTRANT -g -O2 -march=native -std=c++11 -MT context_storage.lo -MD -MP -MF $depbase.Tpo -c -o context_storage.lo context_storage.cc &&\
Step #0 - "build-images": Step #37 - "squid-proxy": mv -f $depbase.Tpo $depbase.Plo
Step #0 - "build-images": Step #37 - "squid-proxy": depbase=`echo Config.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
Step #0 - "build-images": Step #37 - "squid-proxy": /bin/bash ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/apps/squid/etc/squid.conf\" -DDEFAULT_SQUID_DATA_DIR=\"/apps/squid/share\" -DDEFAULT_SQUID_CONFIG_DIR=\"/apps/squid/etc\"   -I../.. -I../../include -I../../lib -I../../src -I../../include     -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Woverloaded-virtual -Werror -Wno-deprecated-register -pipe -D_REENTRANT -g -O2 -march=native -std=c++11 -MT Config.lo -MD -MP -MF $depbase.Tpo -c -o Config.lo Config.cc &&\
Step #0 - "build-images": Step #37 - "squid-proxy": mv -f $depbase.Tpo $depbase.Plo
Step #0 - "build-images": Step #37 - "squid-proxy": depbase=`echo ErrorDetail.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
Step #0 - "build-images": Step #37 - "squid-proxy": /bin/bash ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/apps/squid/etc/squid.conf\" -DDEFAULT_SQUID_DATA_DIR=\"/apps/squid/share\" -DDEFAULT_SQUID_CONFIG_DIR=\"/apps/squid/etc\"   -I../.. -I../../include -I../../lib -I../../src -I../../include     -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Woverloaded-virtual -Werror -Wno-deprecated-register -pipe -D_REENTRANT -g -O2 -march=native -std=c++11 -MT ErrorDetail.lo -MD -MP -MF $depbase.Tpo -c -o ErrorDetail.lo ErrorDetail.cc &&\
Step #0 - "build-images": Step #37 - "squid-proxy": mv -f $depbase.Tpo $depbase.Plo
Step #0 - "build-images": Step #37 - "squid-proxy": depbase=`echo ErrorDetailManager.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
Step #0 - "build-images": Step #37 - "squid-proxy": /bin/bash ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/apps/squid/etc/squid.conf\" -DDEFAULT_SQUID_DATA_DIR=\"/apps/squid/share\" -DDEFAULT_SQUID_CONFIG_DIR=\"/apps/squid/etc\"   -I../.. -I../../include -I../../lib -I../../src -I../../include     -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Woverloaded-virtual -Werror -Wno-deprecated-register -pipe -D_REENTRANT -g -O2 -march=native -std=c++11 -MT ErrorDetailManager.lo -MD -MP -MF $depbase.Tpo -c -o ErrorDetailManager.lo ErrorDetailManager.cc &&\
Step #0 - "build-images": Step #37 - "squid-proxy": mv -f $depbase.Tpo $depbase.Plo
Step #0 - "build-images": Step #37 - "squid-proxy": depbase=`echo PeekingPeerConnector.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
Step #0 - "build-images": Step #37 - "squid-proxy": /bin/bash ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/apps/squid/etc/squid.conf\" -DDEFAULT_SQUID_DATA_DIR=\"/apps/squid/share\" -DDEFAULT_SQUID_CONFIG_DIR=\"/apps/squid/etc\"   -I../.. -I../../include -I../../lib -I../../src -I../../include     -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Woverloaded-virtual -Werror -Wno-deprecated-register -pipe -D_REENTRANT -g -O2 -march=native -std=c++11 -MT PeekingPeerConnector.lo -MD -MP -MF $depbase.Tpo -c -o PeekingPeerConnector.lo PeekingPeerConnector.cc &&\
Step #0 - "build-images": Step #37 - "squid-proxy": mv -f $depbase.Tpo $depbase.Plo
Step #0 - "build-images": Step #37 - "squid-proxy": depbase=`echo ServerBump.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
Step #0 - "build-images": Step #37 - "squid-proxy": /bin/bash ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/apps/squid/etc/squid.conf\" -DDEFAULT_SQUID_DATA_DIR=\"/apps/squid/share\" -DDEFAULT_SQUID_CONFIG_DIR=\"/apps/squid/etc\"   -I../.. -I../../include -I../../lib -I../../src -I../../include     -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Woverloaded-virtual -Werror -Wno-deprecated-register -pipe -D_REENTRANT -g -O2 -march=native -std=c++11 -MT ServerBump.lo -MD -MP -MF $depbase.Tpo -c -o ServerBump.lo ServerBump.cc &&\
Step #0 - "build-images": Step #37 - "squid-proxy": mv -f $depbase.Tpo $depbase.Plo
Step #0 - "build-images": Step #37 - "squid-proxy": depbase=`echo support.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
Step #0 - "build-images": Step #37 - "squid-proxy": /bin/bash ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/apps/squid/etc/squid.conf\" -DDEFAULT_SQUID_DATA_DIR=\"/apps/squid/share\" -DDEFAULT_SQUID_CONFIG_DIR=\"/apps/squid/etc\"   -I../.. -I../../include -I../../lib -I../../src -I../../include     -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Woverloaded-virtual -Werror -Wno-deprecated-register -pipe -D_REENTRANT -g -O2 -march=native -std=c++11 -MT support.lo -MD -MP -MF $depbase.Tpo -c -o support.lo support.cc &&\
Step #0 - "build-images": Step #37 - "squid-proxy": mv -f $depbase.Tpo $depbase.Plo
Step #0 - "build-images": Step #37 - "squid-proxy": depbase=`echo helper.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
Step #0 - "build-images": Step #37 - "squid-proxy": /bin/bash ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/apps/squid/etc/squid.conf\" -DDEFAULT_SQUID_DATA_DIR=\"/apps/squid/share\" -DDEFAULT_SQUID_CONFIG_DIR=\"/apps/squid/etc\"   -I../.. -I../../include -I../../lib -I../../src -I../../include     -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Woverloaded-virtual -Werror -Wno-deprecated-register -pipe -D_REENTRANT -g -O2 -march=native -std=c++11 -MT helper.lo -MD -MP -MF $depbase.Tpo -c -o helper.lo helper.cc &&\
Step #0 - "build-images": Step #37 - "squid-proxy": mv -f $depbase.Tpo $depbase.Plo
Step #0 - "build-images": Step #37 - "squid-proxy": depbase=`echo gadgets.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
Step #0 - "build-images": Step #37 - "squid-proxy": /bin/bash ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/apps/squid/etc/squid.conf\" -DDEFAULT_SQUID_DATA_DIR=\"/apps/squid/share\" -DDEFAULT_SQUID_CONFIG_DIR=\"/apps/squid/etc\"   -I../.. -I../../include -I../../lib -I../../src -I../../include     -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Woverloaded-virtual -Werror -Wno-deprecated-register -pipe -D_REENTRANT -g -O2 -march=native -std=c++11 -MT gadgets.lo -MD -MP -MF $depbase.Tpo -c -o gadgets.lo gadgets.cc &&\
Step #0 - "build-images": Step #37 - "squid-proxy": mv -f $depbase.Tpo $depbase.Plo
Step #0 - "build-images": Step #37 - "squid-proxy": depbase=`echo crtd_message.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
Step #0 - "build-images": Step #37 - "squid-proxy": /bin/bash ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/apps/squid/etc/squid.conf\" -DDEFAULT_SQUID_DATA_DIR=\"/apps/squid/share\" -DDEFAULT_SQUID_CONFIG_DIR=\"/apps/squid/etc\"   -I../.. -I../../include -I../../lib -I../../src -I../../include     -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Woverloaded-virtual -Werror -Wno-deprecated-register -pipe -D_REENTRANT -g -O2 -march=native -std=c++11 -MT crtd_message.lo -MD -MP -MF $depbase.Tpo -c -o crtd_message.lo crtd_message.cc &&\
Step #0 - "build-images": Step #37 - "squid-proxy": mv -f $depbase.Tpo $depbase.Plo
Step #0 - "build-images": Step #32 - "app-streaming-focal-cuda":  768572396cf1
Step #0 - "build-images": Step #32 - "app-streaming-focal-cuda": Step 15/16 : RUN chmod +x /entrypoint.sh
Reading state information... 99%16 - "desktop":
Step #0 - "build-images":
Step #0 - "build-images": BUILD FAILURE: Build step failure: build step 34 "gcr.io/cloud-builders/docker" failed: step exited with non-zero status: 1
Step #0 - "build-images": --------------------------------------------------------------------------------
Step #0 - "build-images": ERROR: (gcloud.builds.submit) build 9c46a1d6-ec4a-4c33-915b-3b42b6af26e1 completed with status "FAILURE"
Finished Step #0 - "build-images"
ERROR
ERROR: build step 0 "gcr.io/cloud-builders/gcloud" failed: step exited with non-zero status: 1
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

BUILD FAILURE: Build step failure: build step 0 "gcr.io/cloud-builders/gcloud" failed: step exited with non-zero status: 1
ERROR: (gcloud.builds.submit) build 0d034876-40fe-471a-a9d4-05c4a52fda23 completed with status "FAILURE"

Looks like it fails on step 34 xpra image building. I would really appreciate it if someone could help me figure out what this problem is caused by.

danisla commented 3 years ago

@sezeristif the repo has some submodules. The README is missing the step to init and update the submodules.

Run this from the root of the selkies-vdi repo:

git submodule update --init

After that you can re-run the cloud build submit and it should work.