cartridge-cli icon indicating copy to clipboard operation
cartridge-cli copied to clipboard

Error when packing app with `--use-docker` flag

Open palage4a opened this issue 2 years ago • 0 comments

Have strange error /usr/share/tarantool/sdk/tarantool: /usr/share/tarantool/sdk/tarantool: cannot execute binary file when i trying pack app on local MacOS machine. Log:

➜  feedback git:(tag-deploy) ✗ cartridge pack tgz --use-docker --sdk-path ./sdk
   • Packing feedback into tgz
   • Temporary directory is set to /Users/i.palagecha/.cartridge/tmp/pack-rtesndjrke
   • Initialize application dir
   • Build application in /Users/i.palagecha/.cartridge/tmp/pack-rtesndjrke/package-files/feedback
   • Building base image feedback-build
   • Build application in feedback-build
   + '[' -f cartridge.pre-build ']'
   + . cartridge.pre-build
   + tarantoolctl rocks make
    /usr/share/tarantool/sdk/tarantool: /usr/share/tarantool/sdk/tarantool: cannot execute binary file
   • Remove container...
   ⨯ Failed to build application: Failed to run command on container: exited with code 126
Verbose log
➜  feedback git:(tag-deploy) ✗ cartridge pack tgz --use-docker --sdk-path ./sdk --verbose
   • Packing feedback into tgz
   • Default build Dockerfile is used: /Users/i.palagecha/code/feedback/Dockerfile.build.cartridge
   • Default runtime Dockerfile is used: /Users/i.palagecha/code/feedback/Dockerfile.cartridge
   • Temporary directory is set to /Users/i.palagecha/.cartridge/tmp/pack-5jri5qk3y9
   • Initialize application dir
   • Cleanup application files
   • Running `git clean`
   • Running `git clean` for submodules
   • Remove `.git` directory
   • Check filemodes
   • Creating cache directory
   • Build application in /Users/i.palagecha/.cartridge/tmp/pack-5jri5qk3y9/package-files/feedback
   • Check specified base build Dockerfile
   • Check specified SDK
   • Create build image Dockerfile
   • Building base image feedback-build
Step 1/7 : FROM centos:8
 ---> 5d0da3dc9764
Step 2/7 : RUN yum install -y curl curl-devel
 ---> Running in e6898f912db6
CentOS Linux 8 - AppStream                      3.3 MB/s | 9.3 MB     00:02
CentOS Linux 8 - BaseOS                         3.2 MB/s | 7.5 MB     00:02
CentOS Linux 8 - Extras                          26 kB/s |  10 kB     00:00
Last metadata expiration check: 0:00:01 ago on Wed Oct  6 08:34:30 2021.
Package curl-7.61.1-18.el8.x86_64 is already installed.
Dependencies resolved.
================================================================================
 Package                 Arch        Version                  Repository   Size
================================================================================
Installing:
 libcurl-devel           x86_64      7.61.1-18.el8_4.1        baseos      833 k
Upgrading:
 curl                    x86_64      7.61.1-18.el8_4.1        baseos      351 k
 libcurl-minimal         x86_64      7.61.1-18.el8_4.1        baseos      287 k
Installing dependencies:
 libpkgconf              x86_64      1.4.2-1.el8              baseos       35 k
 pkgconf                 x86_64      1.4.2-1.el8              baseos       38 k
 pkgconf-m4              noarch      1.4.2-1.el8              baseos       17 k
 pkgconf-pkg-config      x86_64      1.4.2-1.el8              baseos       15 k

Transaction Summary
================================================================================
Install  5 Packages
Upgrade  2 Packages

Total download size: 1.5 M
Downloading Packages:
(1/7): libpkgconf-1.4.2-1.el8.x86_64.rpm        180 kB/s |  35 kB     00:00
(2/7): pkgconf-1.4.2-1.el8.x86_64.rpm           179 kB/s |  38 kB     00:00
(3/7): pkgconf-m4-1.4.2-1.el8.noarch.rpm        237 kB/s |  17 kB     00:00
(4/7): pkgconf-pkg-config-1.4.2-1.el8.x86_64.rp 215 kB/s |  15 kB     00:00
(5/7): curl-7.61.1-18.el8_4.1.x86_64.rpm        1.3 MB/s | 351 kB     00:00
(6/7): libcurl-minimal-7.61.1-18.el8_4.1.x86_64 691 kB/s | 287 kB     00:00
(7/7): libcurl-devel-7.61.1-18.el8_4.1.x86_64.r 1.1 MB/s | 833 kB     00:00
--------------------------------------------------------------------------------
Total                                           1.8 MB/s | 1.5 MB     00:00
warning: /var/cache/dnf/baseos-f6a80ba95cf937f2/packages/libcurl-devel-7.61.1-18.el8_4.1.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 8483c65d: NOKEY
CentOS Linux 8 - BaseOS                         1.6 MB/s | 1.6 kB     00:00
Importing GPG key 0x8483C65D:
 Userid     : "CentOS (CentOS Official Signing Key) <[email protected]>"
 Fingerprint: 99DB 70FA E1D7 CE22 7FB6 4882 05B5 55B3 8483 C65D
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1
  Upgrading        : libcurl-minimal-7.61.1-18.el8_4.1.x86_64               1/9
  Installing       : pkgconf-m4-1.4.2-1.el8.noarch                          2/9
  Installing       : libpkgconf-1.4.2-1.el8.x86_64                          3/9
  Installing       : pkgconf-1.4.2-1.el8.x86_64                             4/9
  Installing       : pkgconf-pkg-config-1.4.2-1.el8.x86_64                  5/9
  Installing       : libcurl-devel-7.61.1-18.el8_4.1.x86_64                 6/9
  Upgrading        : curl-7.61.1-18.el8_4.1.x86_64                          7/9
  Cleanup          : curl-7.61.1-18.el8.x86_64                              8/9
  Cleanup          : libcurl-minimal-7.61.1-18.el8.x86_64                   9/9
  Running scriptlet: libcurl-minimal-7.61.1-18.el8.x86_64                   9/9
  Verifying        : libcurl-devel-7.61.1-18.el8_4.1.x86_64                 1/9
  Verifying        : libpkgconf-1.4.2-1.el8.x86_64                          2/9
  Verifying        : pkgconf-1.4.2-1.el8.x86_64                             3/9
  Verifying        : pkgconf-m4-1.4.2-1.el8.noarch                          4/9
  Verifying        : pkgconf-pkg-config-1.4.2-1.el8.x86_64                  5/9
  Verifying        : curl-7.61.1-18.el8_4.1.x86_64                          6/9
  Verifying        : curl-7.61.1-18.el8.x86_64                              7/9
  Verifying        : libcurl-minimal-7.61.1-18.el8_4.1.x86_64               8/9
  Verifying        : libcurl-minimal-7.61.1-18.el8.x86_64                   9/9

Upgraded:
  curl-7.61.1-18.el8_4.1.x86_64     libcurl-minimal-7.61.1-18.el8_4.1.x86_64
Installed:
  libcurl-devel-7.61.1-18.el8_4.1.x86_64      libpkgconf-1.4.2-1.el8.x86_64
  pkgconf-1.4.2-1.el8.x86_64                  pkgconf-m4-1.4.2-1.el8.noarch
  pkgconf-pkg-config-1.4.2-1.el8.x86_64

Complete!
Removing intermediate container e6898f912db6
 ---> fc656d3afedf
Step 3/7 : RUN yum install -y git-core gcc gcc-c++ make cmake unzip
 ---> Running in 6d9b22835dd0
Last metadata expiration check: 0:00:05 ago on Wed Oct  6 08:34:30 2021.
Dependencies resolved.
================================================================================
 Package              Arch       Version                    Repository     Size
================================================================================
Installing:
 cmake                x86_64     3.18.2-11.el8_4            appstream     9.8 M
 gcc                  x86_64     8.4.1-1.el8                appstream      23 M
 gcc-c++              x86_64     8.4.1-1.el8                appstream      12 M
 git-core             x86_64     2.27.0-1.el8               appstream     5.7 M
 make                 x86_64     1:4.2.1-10.el8             baseos        498 k
 unzip                x86_64     6.0-45.el8_4               baseos        195 k
Installing dependencies:
 cmake-data           noarch     3.18.2-11.el8_4            appstream     1.6 M
 cmake-filesystem     x86_64     3.18.2-11.el8_4            appstream      44 k
 cmake-rpm-macros     noarch     3.18.2-11.el8_4            appstream      44 k
 cpp                  x86_64     8.4.1-1.el8                appstream      10 M
 emacs-filesystem     noarch     1:26.1-5.el8               baseos         69 k
 glibc-devel          x86_64     2.28-151.el8               baseos        1.0 M
 glibc-headers        x86_64     2.28-151.el8               baseos        478 k
 isl                  x86_64     0.16.1-6.el8               appstream     841 k
 kernel-headers       x86_64     4.18.0-305.19.1.el8_4      baseos        7.1 M
 libedit              x86_64     3.1-23.20170329cvs.el8     baseos        102 k
 libgomp              x86_64     8.4.1-1.el8                baseos        204 k
 libmpc               x86_64     1.1.0-9.1.el8              appstream      61 k
 libstdc++-devel      x86_64     8.4.1-1.el8                appstream     2.0 M
 libuv                x86_64     1:1.41.1-1.el8_4           appstream     156 k
 libxcrypt-devel      x86_64     4.1.1-4.el8                baseos         25 k
 openssh              x86_64     8.0p1-6.el8_4.2            baseos        521 k
 openssh-clients      x86_64     8.0p1-6.el8_4.2            baseos        667 k
 vim-filesystem       noarch     2:8.0.1763-15.el8          appstream      48 k

Transaction Summary
================================================================================
Install  24 Packages

Total download size: 77 M
Installed size: 212 M
Downloading Packages:
(1/24): cmake-filesystem-3.18.2-11.el8_4.x86_64 507 kB/s |  44 kB     00:00
(2/24): cmake-rpm-macros-3.18.2-11.el8_4.noarch 1.1 MB/s |  44 kB     00:00
(3/24): cmake-data-3.18.2-11.el8_4.noarch.rpm   1.9 MB/s | 1.6 MB     00:00
(4/24): cmake-3.18.2-11.el8_4.x86_64.rpm        2.1 MB/s | 9.8 MB     00:04
(5/24): cpp-8.4.1-1.el8.x86_64.rpm              1.4 MB/s |  10 MB     00:07
(6/24): git-core-2.27.0-1.el8.x86_64.rpm        1.7 MB/s | 5.7 MB     00:03
(7/24): isl-0.16.1-6.el8.x86_64.rpm             1.4 MB/s | 841 kB     00:00
(8/24): libmpc-1.1.0-9.1.el8.x86_64.rpm         1.2 MB/s |  61 kB     00:00
(9/24): gcc-c++-8.4.1-1.el8.x86_64.rpm          1.6 MB/s |  12 MB     00:07
(10/24): libuv-1.41.1-1.el8_4.x86_64.rpm        845 kB/s | 156 kB     00:00
(11/24): vim-filesystem-8.0.1763-15.el8.noarch. 742 kB/s |  48 kB     00:00
(12/24): emacs-filesystem-26.1-5.el8.noarch.rpm 242 kB/s |  69 kB     00:00
(13/24): libstdc++-devel-8.4.1-1.el8.x86_64.rpm 1.3 MB/s | 2.0 MB     00:01
(14/24): glibc-devel-2.28-151.el8.x86_64.rpm    1.7 MB/s | 1.0 MB     00:00
(15/24): gcc-8.4.1-1.el8.x86_64.rpm             1.9 MB/s |  23 MB     00:12
(16/24): glibc-headers-2.28-151.el8.x86_64.rpm  797 kB/s | 478 kB     00:00
(17/24): libedit-3.1-23.20170329cvs.el8.x86_64. 308 kB/s | 102 kB     00:00
(18/24): libxcrypt-devel-4.1.1-4.el8.x86_64.rpm 300 kB/s |  25 kB     00:00
(19/24): libgomp-8.4.1-1.el8.x86_64.rpm         921 kB/s | 204 kB     00:00
(20/24): make-4.2.1-10.el8.x86_64.rpm           1.2 MB/s | 498 kB     00:00
(21/24): openssh-8.0p1-6.el8_4.2.x86_64.rpm     1.0 MB/s | 521 kB     00:00
(22/24): unzip-6.0-45.el8_4.x86_64.rpm          967 kB/s | 195 kB     00:00
(23/24): openssh-clients-8.0p1-6.el8_4.2.x86_64 1.7 MB/s | 667 kB     00:00
(24/24): kernel-headers-4.18.0-305.19.1.el8_4.x 3.7 MB/s | 7.1 MB     00:01
--------------------------------------------------------------------------------
Total                                           5.0 MB/s |  77 MB     00:15
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1
  Installing       : libmpc-1.1.0-9.1.el8.x86_64                           1/24
  Installing       : cmake-rpm-macros-3.18.2-11.el8_4.noarch               2/24
  Installing       : cmake-filesystem-3.18.2-11.el8_4.x86_64               3/24
  Installing       : cpp-8.4.1-1.el8.x86_64                                4/24
  Running scriptlet: cpp-8.4.1-1.el8.x86_64                                4/24
  Running scriptlet: openssh-8.0p1-6.el8_4.2.x86_64                        5/24
  Installing       : openssh-8.0p1-6.el8_4.2.x86_64                        5/24
  Installing       : libgomp-8.4.1-1.el8.x86_64                            6/24
  Running scriptlet: libgomp-8.4.1-1.el8.x86_64                            6/24
  Installing       : libedit-3.1-23.20170329cvs.el8.x86_64                 7/24
  Installing       : openssh-clients-8.0p1-6.el8_4.2.x86_64                8/24
  Installing       : kernel-headers-4.18.0-305.19.1.el8_4.x86_64           9/24
  Running scriptlet: glibc-headers-2.28-151.el8.x86_64                    10/24
  Installing       : glibc-headers-2.28-151.el8.x86_64                    10/24
  Installing       : libxcrypt-devel-4.1.1-4.el8.x86_64                   11/24
  Installing       : glibc-devel-2.28-151.el8.x86_64                      12/24
  Running scriptlet: glibc-devel-2.28-151.el8.x86_64                      12/24
  Installing       : emacs-filesystem-1:26.1-5.el8.noarch                 13/24
  Installing       : vim-filesystem-2:8.0.1763-15.el8.noarch              14/24
  Installing       : libuv-1:1.41.1-1.el8_4.x86_64                        15/24
  Installing       : cmake-data-3.18.2-11.el8_4.noarch                    16/24
  Installing       : cmake-3.18.2-11.el8_4.x86_64                         17/24
  Installing       : libstdc++-devel-8.4.1-1.el8.x86_64                   18/24
  Installing       : isl-0.16.1-6.el8.x86_64                              19/24
  Running scriptlet: isl-0.16.1-6.el8.x86_64                              19/24
  Installing       : gcc-8.4.1-1.el8.x86_64                               20/24
  Running scriptlet: gcc-8.4.1-1.el8.x86_64                               20/24
  Installing       : gcc-c++-8.4.1-1.el8.x86_64                           21/24
  Installing       : git-core-2.27.0-1.el8.x86_64                         22/24
  Installing       : unzip-6.0-45.el8_4.x86_64                            23/24
  Installing       : make-1:4.2.1-10.el8.x86_64                           24/24
  Running scriptlet: make-1:4.2.1-10.el8.x86_64                           24/24
  Verifying        : cmake-3.18.2-11.el8_4.x86_64                          1/24
  Verifying        : cmake-data-3.18.2-11.el8_4.noarch                     2/24
  Verifying        : cmake-filesystem-3.18.2-11.el8_4.x86_64               3/24
  Verifying        : cmake-rpm-macros-3.18.2-11.el8_4.noarch               4/24
  Verifying        : cpp-8.4.1-1.el8.x86_64                                5/24
  Verifying        : gcc-8.4.1-1.el8.x86_64                                6/24
  Verifying        : gcc-c++-8.4.1-1.el8.x86_64                            7/24
  Verifying        : git-core-2.27.0-1.el8.x86_64                          8/24
  Verifying        : isl-0.16.1-6.el8.x86_64                               9/24
  Verifying        : libmpc-1.1.0-9.1.el8.x86_64                          10/24
  Verifying        : libstdc++-devel-8.4.1-1.el8.x86_64                   11/24
  Verifying        : libuv-1:1.41.1-1.el8_4.x86_64                        12/24
  Verifying        : vim-filesystem-2:8.0.1763-15.el8.noarch              13/24
  Verifying        : emacs-filesystem-1:26.1-5.el8.noarch                 14/24
  Verifying        : glibc-devel-2.28-151.el8.x86_64                      15/24
  Verifying        : glibc-headers-2.28-151.el8.x86_64                    16/24
  Verifying        : kernel-headers-4.18.0-305.19.1.el8_4.x86_64          17/24
  Verifying        : libedit-3.1-23.20170329cvs.el8.x86_64                18/24
  Verifying        : libgomp-8.4.1-1.el8.x86_64                           19/24
  Verifying        : libxcrypt-devel-4.1.1-4.el8.x86_64                   20/24
  Verifying        : make-1:4.2.1-10.el8.x86_64                           21/24
  Verifying        : openssh-8.0p1-6.el8_4.2.x86_64                       22/24
  Verifying        : openssh-clients-8.0p1-6.el8_4.2.x86_64               23/24
  Verifying        : unzip-6.0-45.el8_4.x86_64                            24/24

Installed:
  cmake-3.18.2-11.el8_4.x86_64
  cmake-data-3.18.2-11.el8_4.noarch
  cmake-filesystem-3.18.2-11.el8_4.x86_64
  cmake-rpm-macros-3.18.2-11.el8_4.noarch
  cpp-8.4.1-1.el8.x86_64
  emacs-filesystem-1:26.1-5.el8.noarch
  gcc-8.4.1-1.el8.x86_64
  gcc-c++-8.4.1-1.el8.x86_64
  git-core-2.27.0-1.el8.x86_64
  glibc-devel-2.28-151.el8.x86_64
  glibc-headers-2.28-151.el8.x86_64
  isl-0.16.1-6.el8.x86_64
  kernel-headers-4.18.0-305.19.1.el8_4.x86_64
  libedit-3.1-23.20170329cvs.el8.x86_64
  libgomp-8.4.1-1.el8.x86_64
  libmpc-1.1.0-9.1.el8.x86_64
  libstdc++-devel-8.4.1-1.el8.x86_64
  libuv-1:1.41.1-1.el8_4.x86_64
  libxcrypt-devel-4.1.1-4.el8.x86_64
  make-1:4.2.1-10.el8.x86_64
  openssh-8.0p1-6.el8_4.2.x86_64
  openssh-clients-8.0p1-6.el8_4.2.x86_64
  unzip-6.0-45.el8_4.x86_64
  vim-filesystem-2:8.0.1763-15.el8.noarch

Complete!
Removing intermediate container 6d9b22835dd0
 ---> 4cfa0fe70678
Step 4/7 : COPY sdk-5jri5qk3y9 /usr/share/tarantool/sdk
 ---> 7902d006f59a
Step 5/7 : ENV PATH="/usr/share/tarantool/sdk:${PATH}"
 ---> Running in 28203267ccf2
Removing intermediate container 28203267ccf2
 ---> 7fc791c7171e
Step 6/7 : RUN if id -u 502 2>/dev/null; then         USERNAME=$(id -nu 502);     else         USERNAME=cartridge;         useradd -l -u 502 ${USERNAME};     fi     && (usermod -a -G sudo ${USERNAME} 2>/dev/null || :)     && (usermod -a -G wheel ${USERNAME} 2>/dev/null || :)     && (usermod -a -G adm ${USERNAME} 2>/dev/null || :)
 ---> Running in 000d8cfa52aa
Removing intermediate container 000d8cfa52aa
 ---> 918763623fc0
Step 7/7 : USER 502
 ---> Running in bf9d3bb9b665
Removing intermediate container bf9d3bb9b665
 ---> e098279c8082
 ---> e098279c8082
Successfully built e098279c8082
Successfully tagged feedback-build:latest
   • Create build script
   • Build application in feedback-build
+ '[' -f cartridge.pre-build ']'
+ . cartridge.pre-build
+ tarantoolctl rocks make
/usr/share/tarantool/sdk/tarantool: /usr/share/tarantool/sdk/tarantool: cannot execute binary file
   • Remove container...
   ⨯ Failed to build application: Failed to run command on container: exited with code 126

palage4a avatar Oct 06 '21 08:10 palage4a