docker build issue #94

Closed
opened 2021-05-07 12:14:50 +00:00 by bobinson · 11 comments
bobinson commented 2021-05-07 12:14:50 +00:00 (Migrated from gitlab.com)

reported by bitcoinsig

I'm getting vtor.count_left == 0: when trying to execute a command that should work...

using: 'docker build .' from the Dockerfile in the github repo.

reported by `bitcoinsig` I'm getting vtor.count_left == 0: when trying to execute a command that should work... using: 'docker build .' from the Dockerfile in the github repo.
bobinson commented 2021-05-10 12:38:16 +00:00 (Migrated from gitlab.com)

additional errors in Ubuntu 20.10

Bitcoinsig, [10.05.21 18:03]
docker run -it peerplays-network:1.5.11 /bin/bash

"
root@c457ff2041fb:/peerplays-core# ./programs/cli_wallet/cli_wallet -s wss://api.mainnet.peerblock.trade
./programs/cli_wallet/cli_wallet: error while loading shared libraries: libreadline.so.8: cannot open shared object file: No such file or directory

root@c457ff2041fb:/peerplays-core# ln -s /lib/x86_64-linux-gnu/libreadline.so.7 /usr/lib/libreadline.so.8
root@c457ff2041fb:/peerplays-core# ./programs/cli_wallet/cli_wallet -s wss://api.mainnet.peerblock.trade
./programs/cli_wallet/cli_wallet: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by ./programs/cli_wallet/cli_wallet)
./programs/cli_wallet/cli_wallet: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by ./programs/cli_wallet/cli_wallet)
./programs/cli_wallet/cli_wallet: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ./programs/cli_wallet/cli_wallet)
root@c457ff2041fb:/peerplays-core# exit
"
additional errors in Ubuntu 20.10 ``` Bitcoinsig, [10.05.21 18:03] docker run -it peerplays-network:1.5.11 /bin/bash " root@c457ff2041fb:/peerplays-core# ./programs/cli_wallet/cli_wallet -s wss://api.mainnet.peerblock.trade ./programs/cli_wallet/cli_wallet: error while loading shared libraries: libreadline.so.8: cannot open shared object file: No such file or directory root@c457ff2041fb:/peerplays-core# ln -s /lib/x86_64-linux-gnu/libreadline.so.7 /usr/lib/libreadline.so.8 root@c457ff2041fb:/peerplays-core# ./programs/cli_wallet/cli_wallet -s wss://api.mainnet.peerblock.trade ./programs/cli_wallet/cli_wallet: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by ./programs/cli_wallet/cli_wallet) ./programs/cli_wallet/cli_wallet: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by ./programs/cli_wallet/cli_wallet) ./programs/cli_wallet/cli_wallet: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ./programs/cli_wallet/cli_wallet) root@c457ff2041fb:/peerplays-core# exit " ```
RoshanSyed commented 2021-05-10 17:30:51 +00:00 (Migrated from gitlab.com)

@bobinson Need more information for:

  • Which repository and branch (URL would be helpful) was the Dockerfile located?
  • Exact steps for building the image and running the image.
  • Which CLI Wallet commands are throwing the error? Which chain and endpoint is it connected to?

I was able to successfully build and run the image from peerplays#master and was able to execute the cli_wallet successfully within the image through bash and received the expected output from the wallet commands I had run.

@bobinson Need more information for: - Which repository and branch (URL would be helpful) was the Dockerfile located? - Exact steps for building the image and running the image. - Which CLI Wallet commands are throwing the error? Which chain and endpoint is it connected to? I was able to successfully build and run the image from peerplays#master and was able to execute the cli_wallet successfully within the image through bash and received the expected output from the wallet commands I had run.
cryptosig commented 2021-05-11 21:09:54 +00:00 (Migrated from gitlab.com)

This is actually an accumulation of several issues regarding the cli_wallet, several of the builds were done on bare server and docker, and suffer from several issues. The wallet that I have that works, but is throwing vtor errors, does so on several commands not just one.

  • For cli_wallet that is throwing vtor:

Unknown which exact version but 1.5.x, cli_wallet NEEDS a version command like we have in witness_node to keep track of which version is being used. I can only tell you that the sha256sum is 0cd177ac0356f49bbc706fa847c3a68f3ffe75862e68fe1e497af3077673eef3
Fails with many commands, here is just one example:

>get_global_properties

get_global_properties

10 assert_exception: Assert Exception
vtor.count_left == 0: 
    {}
    th_a  ext.hpp:188 from_variant

>info

info
10 assert_exception: Assert Exception
vtor.count_left == 0: 
    {}
    th_a  ext.hpp:188 from_variant
  • cli_wallet built from version 1.5.11 on bare metal, no docker, has the following error when trying to connect:

./cli_wallet -s wss://api.mainnet.peerblock.trade

Logging RPC to file: logs/rpc/rpc.log
0 exception: unspecified
TLS handshake failed
    {"message":"TLS handshake failed"}
    asio  websocket.cpp:436 operator()

    {"uri":"wss://api.mainnet.peerblock.trade"}
    th_a  websocket.cpp:661 secure_connect

    {"uri":"wss://api.mainnet.peerblock.trade"}
    th_a  websocket.cpp:634 connect
  • For docker error with readline:

Which repository and branch (URL would be helpful) was the Dockerfile located?

docker run -it peerplays-network:1.5.11 /bin/bash

Exact steps for building the image and running the image.

git checkout tags/1.5.11

docker build . -t peerplays-network:1.5.11

Which CLI Wallet commands are throwing the error? Which chain and endpoint is it connected to?

cli_wallet doesn't work from docker, because of libreadline-dev version 7 & 8 mismatch and glibc version mismatch

This is actually an accumulation of several issues regarding the cli_wallet, several of the builds were done on bare server and docker, and suffer from several issues. The wallet that I have that works, but is throwing vtor errors, does so on several commands not just one. - For cli_wallet that is throwing vtor: Unknown which exact version but 1.5.x, **cli_wallet NEEDS a version command** like we have in witness_node to keep track of which version is being used. I can only tell you that the sha256sum is 0cd177ac0356f49bbc706fa847c3a68f3ffe75862e68fe1e497af3077673eef3 Fails with many commands, here is just one example: `>get_global_properties` ``` get_global_properties 10 assert_exception: Assert Exception vtor.count_left == 0: {} th_a ext.hpp:188 from_variant ``` `>info` ``` info 10 assert_exception: Assert Exception vtor.count_left == 0: {} th_a ext.hpp:188 from_variant ``` - cli_wallet built from version 1.5.11 on bare metal, no docker, has the following error when trying to connect: `./cli_wallet -s wss://api.mainnet.peerblock.trade` ``` Logging RPC to file: logs/rpc/rpc.log 0 exception: unspecified TLS handshake failed {"message":"TLS handshake failed"} asio websocket.cpp:436 operator() {"uri":"wss://api.mainnet.peerblock.trade"} th_a websocket.cpp:661 secure_connect {"uri":"wss://api.mainnet.peerblock.trade"} th_a websocket.cpp:634 connect ``` - For docker error with readline: _Which repository and branch (URL would be helpful) was the Dockerfile located?_ docker run -it **peerplays-network:1.5.11** /bin/bash _Exact steps for building the image and running the image._ `git checkout tags/1.5.11` `docker build . -t peerplays-network:1.5.11` _Which CLI Wallet commands are throwing the error? Which chain and endpoint is it connected to?_ cli_wallet doesn't work from docker, because of libreadline-dev version 7 & 8 mismatch and glibc version mismatch
hbelakon commented 2021-10-13 11:37:48 +00:00 (Migrated from gitlab.com)

assigned to @rilesdun

assigned to @rilesdun
hbelakon commented 2021-10-13 11:37:59 +00:00 (Migrated from gitlab.com)

unassigned @RoshanSyed

unassigned @RoshanSyed
bobinson commented 2021-11-03 19:30:15 +00:00 (Migrated from gitlab.com)

mentioned in issue PBSA/tools-libs/peerplays-utils#5

mentioned in issue PBSA/tools-libs/peerplays-utils#5
bobinson commented 2021-11-03 21:03:06 +00:00 (Migrated from gitlab.com)

unassigned @rilesdun

unassigned @rilesdun
bobinson commented 2021-11-03 21:03:14 +00:00 (Migrated from gitlab.com)

assigned to @serkixenos

assigned to @serkixenos
serkixenos commented 2021-12-02 15:52:29 +00:00 (Migrated from gitlab.com)

assigned to @pavel.baykov

assigned to @pavel.baykov
serkixenos commented 2021-12-14 14:33:12 +00:00 (Migrated from gitlab.com)
Track here: https://gitlab.com/PBSA/peerplays/-/jobs/1883168379
serkixenos commented 2021-12-14 14:57:43 +00:00 (Migrated from gitlab.com)

Docker job completed, image pushed to docker.io, can be pulled with

docker pull peerplays/peerplays:develop

Docker job completed, image pushed to docker.io, can be pulled with docker pull peerplays/peerplays:develop
serkixenos (Migrated from gitlab.com) closed this issue 2021-12-14 14:57:43 +00:00
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Peerplays_Blockchain/peerplays_migrated#94
No description provided.