question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

spilo-2.1-p5 build raising error : is protobuf related ?

See original GitHub issue

G’day you all,

Have one of you faced this while building up spilo-2.1-p5 docker image from its source?

Part of the error:

 => ERROR [builder-false 7/8] RUN export DEBIAN_FRONTEND=noninteractive     && set -ex     && BUILD_PACKAGES="python3-pip python3-wheel python3-dev git patchutils binutils"     && apt-get update     && apt-cache depends patroni             243.7s
------
**#21 243.7 protobuf requires Python '>=3.7' but the running Python is 3.6.9**
------
executor failed running [/bin/sh -c export DEBIAN_FRONTEND=noninteractive     && set -ex     && BUILD_PACKAGES="python3-pip python3-wheel python3-dev git patchutils binutils"     && apt-get update     && apt-cache depends patroni             | sed -n -e 's/.* Depends: \(python3-.\+\)$/\1/p'             | grep -Ev '^python3-(sphinx|etcd|consul|kazoo|kubernetes)'             | xargs apt-get install -y ${BUILD_PACKAGES}                         python3-pystache python3-requests     && pip3 install setuptools     && if [ "$DEMO" != "true" ]; then         EXTRAS=",etcd,consul,zookeeper,aws"         && apt-get install -y python3-etcd python3-consul python3-kazoo python3-meld3                         python3-boto python3-gevent python3-greenlet python3-cachetools                         python3-rsa python3-pyasn1-modules python3-swiftclient python3-cffi         && find /usr/share/python-babel-localedata/locale-data -type f ! -name 'en_US*.dat' -delete         && pip3 install filechunkio wal-e[aws,google,swift]==$WALE_VERSION google-crc32c==1.1.2                 'git+https://github.com/zalando/pg_view.git@master#egg=pg-view'         && curl -sL https://github.com/CyberDem0n/wal-e/commit/dad4d53969b93c56f1eaa5243ffa8e9051fd7eb7.diff                 | patch -d /usr/local/lib/python3.6/dist-packages/wal_e -p2         && curl -sL https://github.com/CyberDem0n/wal-e/commit/0309317d33d252fcd968b3eb97313a9fdf022c65.diff                 | patch -d /usr/local/lib/python3.6/dist-packages/wal_e -p2         && curl -sL https://github.com/wal-e/wal-e/commit/485d834a18c9b0d97115d95f89e16bdc564e9a18.diff                 | patch -d /usr/local/lib/python3.6/dist-packages/wal_e -Rp2         && sed -i 's/^\(    for i in range(0,\) num_retries):.*/\1 100):/g'                     /usr/lib/python3/dist-packages/boto/utils.py;     fi     && pip3 install patroni[kubernetes$EXTRAS]==$PATRONIVERSION     && for d in /usr/local/lib/python3.6 /usr/lib/python3; do         cd $d/dist-packages         && find . -type d -name tests | xargs rm -fr         && find . -type f -name 'test_*.py*' -delete;     done     && find . -type f -name 'unittest_*.py*' -delete     && find . -type f -name '*_test.py' -delete     && find . -type f -name '*_test.cpython*.pyc' -delete     && apt-get purge -y ${BUILD_PACKAGES}     && apt-get autoremove -y     && apt-get clean     && rm -rf /var/lib/apt/lists/*             /var/cache/debconf/*             /root/.cache             /usr/share/doc             /usr/share/man             /usr/share/locale/??             /usr/share/locale/??_??             /usr/share/info     && find /var/log -type f -exec truncate --size 0 {} \;]: exit code: 1

Thanks

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
CyberDem0ncommented, Jun 9, 2022

Shouldn’t it be postgresql-${version}-${pkg}

It was intentionally set to 13, because there were no packages for the latest version back then.

1reaction
CyberDem0ncommented, Jun 9, 2022

We use tags only to mark already built and tested docker images. Implementing the real reproducible builds would require pinning all possible dependencies, which is too much work.

The issue is already fixed in the master branch: https://github.com/zalando/spilo/pull/732/files#diff-8918d403d0c48088cebb6ed78df4fecd856e211f7522e06ee423383b17bd8453R426 Please just always use the master branch.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Overview | Protocol Buffers - Google Developers
The proto compiler is invoked at build time on .proto files to generate code in various programming languages (covered in Cross-language ...
Read more >
Exception handling in Protocol Buffers C++ - Stack Overflow
In your release builds (when NDEBUG is defined), this check will be skipped and the message will be written even though it is...
Read more >
google.protobuf.message — Protocol Buffers 4.21.1 ...
Contains an abstract base class for protocol messages. exception google.protobuf.message. DecodeError ¶. Exception raised when deserializing messages.
Read more >
protobufjs/protobuf.js: Protocol Buffers for JavaScript ... - GitHub
verifies that a plain JavaScript object satisfies the requirements of a valid message and thus can be encoded without issues. Instead of throwing,...
Read more >
Error Handling in gRPC - Baeldung
This error model has the advantage that it is supported independently of the data encoding used (protocol buffers, REST, etc.). However, it is ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found