Docker build fails for Ubuntu 18.04 as a base image #487

Closed
opened 2022-12-01 03:58:36 +00:00 by serkixenos · 8 comments
serkixenos commented 2022-12-01 03:58:36 +00:00 (Migrated from gitlab.com)

Error message:

Generating Perl module output...
lookup cache used 699/65536 hits=22053 misses=700
finished...
[ 95%] Generating api_documentation.cpp
Not a HASH reference at /home/peerplays/peerplays/libraries/wallet/generate_api_documentation.pl line 154.
libraries/wallet/CMakeFiles/graphene_wallet.dir/build.make:74: recipe for target 'libraries/wallet/api_documentation.cpp' failed
make[3]: *** [libraries/wallet/api_documentation.cpp] Error 25
CMakeFiles/Makefile2:2037: recipe for target 'libraries/wallet/CMakeFiles/graphene_wallet.dir/all' failed
make[2]: *** [libraries/wallet/CMakeFiles/graphene_wallet.dir/all] Error 2

How to reproduce: Start docker image build with the following command:

# Checkout the code
git clone https://gitlab.com/PBSA/peerplays.git
cd peerplays

# Checkout the develop branch
git checkout develop

git submodule update --init --recursive

# Execute from the project root, must be a docker group member

# Build docker image, using Ubuntu 18.04 base
docker build --no-cache -f Dockerfile.18.04 -t peerplays-18-04 .

Looks like the problem is related to the recent changes in libraries/wallet/generate_api_documentation.pl

Note that this error is present only on Ubuntu 18.04, 20.04 and 22.04 builds are fine.

Error message: ``` Generating Perl module output... lookup cache used 699/65536 hits=22053 misses=700 finished... [ 95%] Generating api_documentation.cpp Not a HASH reference at /home/peerplays/peerplays/libraries/wallet/generate_api_documentation.pl line 154. libraries/wallet/CMakeFiles/graphene_wallet.dir/build.make:74: recipe for target 'libraries/wallet/api_documentation.cpp' failed make[3]: *** [libraries/wallet/api_documentation.cpp] Error 25 CMakeFiles/Makefile2:2037: recipe for target 'libraries/wallet/CMakeFiles/graphene_wallet.dir/all' failed make[2]: *** [libraries/wallet/CMakeFiles/graphene_wallet.dir/all] Error 2 ``` How to reproduce: Start docker image build with the following command: ``` # Checkout the code git clone https://gitlab.com/PBSA/peerplays.git cd peerplays # Checkout the develop branch git checkout develop git submodule update --init --recursive # Execute from the project root, must be a docker group member # Build docker image, using Ubuntu 18.04 base docker build --no-cache -f Dockerfile.18.04 -t peerplays-18-04 . ``` Looks like the problem is related to the recent changes in libraries/wallet/generate_api_documentation.pl Note that this error is present only on Ubuntu 18.04, 20.04 and 22.04 builds are fine.
serkixenos commented 2022-12-01 03:58:36 +00:00 (Migrated from gitlab.com)

assigned to @timur.5

assigned to @timur.5
serkixenos commented 2022-12-01 04:04:38 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
timur.5 commented 2022-12-02 02:43:32 +00:00 (Migrated from gitlab.com)

!185

The above is only hotfix,
seems that Doxygen version differs on Ubuntu 18.

!185 The above is only hotfix, seems that Doxygen version differs on Ubuntu 18.
timur.5 commented 2022-12-02 02:45:36 +00:00 (Migrated from gitlab.com)

Do we have any Ubuntu 18.04 machines to try on?

Do we have any Ubuntu 18.04 machines to try on?
timur.5 commented 2022-12-12 16:34:06 +00:00 (Migrated from gitlab.com)

Now !185 is a real fix.

Now !185 is a real fix.
serkixenos commented 2022-12-16 17:36:57 +00:00 (Migrated from gitlab.com)

assigned to @wsalloum

assigned to @wsalloum
serkixenos commented 2022-12-16 17:40:00 +00:00 (Migrated from gitlab.com)

Test instructions: Checkout the latest develop branch, and follow the instructions in README file for building the docker container for 18.04. Verify that the docker container build completes without errors.

https://gitlab.com/PBSA/peerplays/-/tree/master#building-docker-images-manually

Test instructions: Checkout the latest develop branch, and follow the instructions in README file for building the docker container for 18.04. Verify that the docker container build completes without errors. https://gitlab.com/PBSA/peerplays/-/tree/master#building-docker-images-manually
prandnum commented 2022-12-16 19:41:30 +00:00 (Migrated from gitlab.com)

17122022-DOCKER-1804.txt

kiran@warpspeed:~/DOCKER-17122022/peerplays$ docker images
REPOSITORY                       TAG       IMAGE ID       CREATED          SIZE
peerplays-18-04                  latest    05b6949d1388   18 minutes ago   3.61GB
peerplays02                      latest    280549273fa6   2 days ago       20GB
faucet-for-peerplays             latest    75fcb4a89d41   2 days ago       1.55GB
peerplays15                      latest    ed8c0ef07bc3   2 days ago       20GB
peerplays16                      latest    e848fce1831f   2 days ago       20GB
libbitcoinserver-for-peerplays   latest    13488cb64a71   2 days ago       6.87GB
peerplays01                      latest    6e9c64ec1d59   2 days ago       20GB
peerplays03                      latest    dbb430759f97   2 days ago       20GB
hive-for-peerplays               latest    a72d02405df6   2 days ago       4.71GB
ethereum-for-peerplays           latest    5e98b3453cc8   2 days ago       1.42GB
peerplays04                      latest    f502f162f634   2 days ago       20GB
peerplays05                      latest    b69ea20dd8d0   2 days ago       20GB
peerplays10                      latest    07f4bb940852   2 days ago       20GB
peerplays11                      latest    a6c19e8d6533   2 days ago       20GB
peerplays08                      latest    8e0005047d61   2 days ago       20GB
peerplays-mainnet                latest    18c74a12e609   2 days ago       2.38GB
peerplays-all-in-one             latest    a49295bfaac1   2 days ago       20GB
peerplays09                      latest    ed08066267ca   2 days ago       20GB
peerplays13                      latest    b8adbddcb0cd   2 days ago       20GB
peerplays12                      latest    f37064b8a665   2 days ago       20GB
peerplays07                      latest    7f13e35b53a0   2 days ago       20GB
peerplays06                      latest    39fac464f4f7   2 days ago       20GB
peerplays14                      latest    970934533255   2 days ago       20GB
peerplays-base                   latest    ff18fe5af6b3   2 days ago       20GB
bitcoin-for-peerplays            latest    6c0f846626cf   2 days ago       1.5GB
ubuntu-for-peerplays             latest    c245dfab72b2   2 days ago       1.33GB
ubuntu                           20.04     d5447fc01ae6   7 days ago       72.8MB
ubuntu                           18.04     251b86c83674   7 days ago       63.1MB
kiran@warpspeed:~/DOCKER-17122022/peerplays$ 
[17122022-DOCKER-1804.txt](/uploads/597b96d5e19e4001f4d1bb80595e4a87/17122022-DOCKER-1804.txt) ``` kiran@warpspeed:~/DOCKER-17122022/peerplays$ docker images REPOSITORY TAG IMAGE ID CREATED SIZE peerplays-18-04 latest 05b6949d1388 18 minutes ago 3.61GB peerplays02 latest 280549273fa6 2 days ago 20GB faucet-for-peerplays latest 75fcb4a89d41 2 days ago 1.55GB peerplays15 latest ed8c0ef07bc3 2 days ago 20GB peerplays16 latest e848fce1831f 2 days ago 20GB libbitcoinserver-for-peerplays latest 13488cb64a71 2 days ago 6.87GB peerplays01 latest 6e9c64ec1d59 2 days ago 20GB peerplays03 latest dbb430759f97 2 days ago 20GB hive-for-peerplays latest a72d02405df6 2 days ago 4.71GB ethereum-for-peerplays latest 5e98b3453cc8 2 days ago 1.42GB peerplays04 latest f502f162f634 2 days ago 20GB peerplays05 latest b69ea20dd8d0 2 days ago 20GB peerplays10 latest 07f4bb940852 2 days ago 20GB peerplays11 latest a6c19e8d6533 2 days ago 20GB peerplays08 latest 8e0005047d61 2 days ago 20GB peerplays-mainnet latest 18c74a12e609 2 days ago 2.38GB peerplays-all-in-one latest a49295bfaac1 2 days ago 20GB peerplays09 latest ed08066267ca 2 days ago 20GB peerplays13 latest b8adbddcb0cd 2 days ago 20GB peerplays12 latest f37064b8a665 2 days ago 20GB peerplays07 latest 7f13e35b53a0 2 days ago 20GB peerplays06 latest 39fac464f4f7 2 days ago 20GB peerplays14 latest 970934533255 2 days ago 20GB peerplays-base latest ff18fe5af6b3 2 days ago 20GB bitcoin-for-peerplays latest 6c0f846626cf 2 days ago 1.5GB ubuntu-for-peerplays latest c245dfab72b2 2 days ago 1.33GB ubuntu 20.04 d5447fc01ae6 7 days ago 72.8MB ubuntu 18.04 251b86c83674 7 days ago 63.1MB kiran@warpspeed:~/DOCKER-17122022/peerplays$ ```
prandnum (Migrated from gitlab.com) closed this issue 2022-12-16 19:41:31 +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#487
No description provided.