Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] exec format error building on arm64 #3924

Closed
hemna opened this issue Jun 16, 2023 · 4 comments
Closed

[Bug] exec format error building on arm64 #3924

hemna opened this issue Jun 16, 2023 · 4 comments
Labels
invalid This doesn't seem right

Comments

@hemna
Copy link

hemna commented Jun 16, 2023

I am trying to stand up an instance in my oracle cloud, which uses arm64. I have cloned the repository and edited the environment vars settings in the docker-compose.yml file and ran docker compose up.

└─> uname -a
Linux hemna 5.15.0-1036-oracle #42-Ubuntu SMP Thu May 18 17:58:30 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux
╭─waboring in 🌐 hemna in invidious on  master [!] is 📦 v0.20.1 via 🔮 ❯
└─> docker compose up
[+] Building 0.3s (16/33)
 => [invidious internal] load build definition from Dockerfile                                                                                                                                                            0.0s
 => => transferring dockerfile: 1.98kB                                                                                                                                                                                    0.0s
 => [invidious internal] load metadata for docker.io/crystallang/crystal:1.4.1-alpine                                                                                                                                     0.1s
 => [invidious internal] load metadata for docker.io/library/alpine:3.16                                                                                                                                                  0.1s
 => [invidious internal] load metadata for quay.io/invidious/lsquic-compiled:latest                                                                                                                                       0.1s
 => [invidious internal] load .dockerignore                                                                                                                                                                               0.0s
 => => transferring context: 2B                                                                                                                                                                                           0.0s
 => CACHED [invidious builder  1/14] FROM docker.io/crystallang/crystal:1.4.1-alpine@sha256:5291e3437e10ec096164c76f8f7ecc9748bae43a3aa3a455249593a83710f494                                                              0.0s
 => => resolve docker.io/crystallang/crystal:1.4.1-alpine@sha256:5291e3437e10ec096164c76f8f7ecc9748bae43a3aa3a455249593a83710f494                                                                                         0.0s
 => [invidious internal] load build context                                                                                                                                                                               0.0s
 => => transferring context: 16.07kB                                                                                                                                                                                      0.0s
 => [invidious] FROM quay.io/invidious/lsquic-compiled@sha256:04c07005b6c625aea9111536938db2aa7db37d50b42d031c0985aff929594e0c                                                                                            0.2s
 => => resolve quay.io/invidious/lsquic-compiled@sha256:04c07005b6c625aea9111536938db2aa7db37d50b42d031c0985aff929594e0c                                                                                                  0.0s
 => => sha256:f4c100a50a505e771e6e22dc454631a378048c6e42415dd373d7bfd5d4e73027 0B / 10.23MB                                                                                                                               0.1s
 => => sha256:86d18faadf837d481517fbae18b1848558675fb8687b0c84f2cc5b345d19d6ea 0B / 3.02MB                                                                                                                                0.1s
 => => sha256:f2b4f937a61e5a112136a3300a51f10ea8f08d3fc3c1b7dd9c165def2ef83420 0B / 5.74MB                                                                                                                                0.1s
 => => sha256:effdfa12eb4b0b28a0e10b729047422880aa665427243b92d1e006ca7abc4b40 0B / 1.00kB                                                                                                                                0.1s
 => => sha256:3f18db1a2bb595b858df86db8d5782209194bb0af870dee80c077883da2f5147 0B / 15.63MB                                                                                                                               0.1s
 => => sha256:aaba6d0b213b724202833f8fb39a0b5d0b2d53ae6abca9bce2183b3af801568d 0B / 8.22MB                                                                                                                                0.1s
 => => sha256:775b66e9397ecb18b6b726c33872a0a8ed7de97c55d148a82b6264b0e8855386 0B / 41.99MB                                                                                                                               0.1s
 => => sha256:7a0e0b87222f2d21bfeb1bd72fdf177cb843293059b3626b97d213bcf5b97c12 0B / 860B                                                                                                                                  0.1s
 => => sha256:44ed3c476b9208923a0c74c1c05eb2c5df02dcd7fa0ba80f47adf555f4c93353 0B / 1.95kB                                                                                                                                0.0s
 => => sha256:a917b2b57422633afc3276aeff01c2762a488f692342cddd39cba3baef7509f4 0B / 195.64MB                                                                                                                              0.0s
 => => sha256:863239114e4bd9eef9cdf736b57a7f9f349e18280a9d771cf0780288000cb0f9 0B / 2.71MB                                                                                                                                0.0s
 => [invidious stage-1  1/12] FROM docker.io/library/alpine:3.16@sha256:cbe5d5973103a2d03408d1689a6efde4ea4920bde9f4b51fe7872e60ce2d8e56                                                                                  0.2s
 => => resolve docker.io/library/alpine:3.16@sha256:cbe5d5973103a2d03408d1689a6efde4ea4920bde9f4b51fe7872e60ce2d8e56                                                                                                      0.0s
 => => extracting sha256:a880266d3b77f75696023df2da1ef66c3c565e0f70596242395c9e68de955c7c                                                                                                                                 0.1s
 => ERROR [invidious builder  2/14] RUN apk add --no-cache sqlite-static yaml-static                                                                                                                                      0.1s
 => CACHED [invidious builder  3/14] WORKDIR /invidious                                                                                                                                                                   0.0s
 => CACHED [invidious builder  4/14] COPY ./shard.yml ./shard.yml                                                                                                                                                         0.0s
 => CACHED [invidious builder  5/14] COPY ./shard.lock ./shard.lock                                                                                                                                                       0.0s
 => CACHED [invidious builder  6/14] RUN shards install --production                                                                                                                                                      0.0s
 => CANCELED [invidious builder  7/14] COPY --from=quay.io/invidious/lsquic-compiled /root/liblsquic.a ./lib/lsquic/src/lsquic/ext/liblsquic.a                                                                            0.0s
 => CANCELED [invidious stage-1  2/12] RUN apk add --no-cache librsvg ttf-opensans tini                                                                                                                                   0.0s
------
 > [invidious builder  2/14] RUN apk add --no-cache sqlite-static yaml-static:
#0 0.097 exec /bin/sh: exec format error
------
failed to solve: process "/bin/sh -c apk add --no-cache sqlite-static yaml-static" did not complete successfully: exit code: 1
└─> docker compose up
[+] Running 14/14
 ✔ invidious-db 13 layers [⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]      0B/0B      Pulled                                                                                                                                                          6.0s
   ✔ 95039a22a7cc Pull complete                                                                                                                                                                                           1.8s
   ✔ 72b83e03b5c2 Pull complete                                                                                                                                                                                           1.8s
   ✔ de8ceb62b1b0 Pull complete                                                                                                                                                                                           1.9s
   ✔ 9e16ad653676 Pull complete                                                                                                                                                                                           2.0s
   ✔ 0757b59384e8 Pull complete                                                                                                                                                                                           2.3s
   ✔ e6eadf7bc48c Pull complete                                                                                                                                                                                           2.4s
   ✔ 6a99aa4659fc Pull complete                                                                                                                                                                                           2.4s
   ✔ 1e71d99c61ce Pull complete                                                                                                                                                                                           2.5s
   ✔ 9d303fb80e0a Pull complete                                                                                                                                                                                           5.6s
   ✔ 349fbe2dca38 Pull complete                                                                                                                                                                                           5.7s
   ✔ 39c73f71bae7 Pull complete                                                                                                                                                                                           5.7s
   ✔ f8d92ad5a103 Pull complete                                                                                                                                                                                           5.7s
   ✔ 56ca68391d9b Pull complete                                                                                                                                                                                           5.7s
[+] Building 216.8s (32/36)
[+] Building 218.3s (32/36)
[+] Building 434.3s (32/36)
[+] Building 434.6s (32/36)
[+] Building 434.7s (32/36)
[+] Building 898.4s (33/36)
 => [invidious internal] booting buildkit                                                                                                                                                                                 6.8s
 => => starting container buildx_buildkit_multiarch0                                                                                                                                                                      6.8s
 => [invidious internal] load build definition from Dockerfile                                                                                                                                                            0.1s
 => => transferring dockerfile: 1.98kB                                                                                                                                                                                    0.0s
 => [invidious internal] load metadata for quay.io/invidious/lsquic-compiled:latest                                                                                                                                       0.5s
 => [invidious internal] load metadata for docker.io/crystallang/crystal:1.4.1-alpine                                                                                                                                     0.4s
 => [invidious internal] load metadata for docker.io/library/alpine:3.16                                                                                                                                                  0.5s
 => [invidious auth] crystallang/crystal:pull token for registry-1.docker.io                                                                                                                                              0.0s
 => [invidious auth] library/alpine:pull token for registry-1.docker.io                                                                                                                                                   0.0s
 => [invidious internal] load .dockerignore                                                                                                                                                                               0.0s
 => => transferring context: 2B                                                                                                                                                                                           0.0s
 => [invidious builder  1/14] FROM docker.io/crystallang/crystal:1.4.1-alpine@sha256:5291e3437e10ec096164c76f8f7ecc9748bae43a3aa3a455249593a83710f494                                                                     7.4s
 => => resolve docker.io/crystallang/crystal:1.4.1-alpine@sha256:5291e3437e10ec096164c76f8f7ecc9748bae43a3aa3a455249593a83710f494                                                                                         0.0s
 => => sha256:12976a662fcfa6827c452a7f0b48ebdccc8748c4a2ca11df0bf64b9d836a7e05 80.31kB / 80.31kB                                                                                                                          0.1s
 => => sha256:59d4eec4a4a2adf175c073b66f29539778dbe56aad44d042d67529e238e26a72 30.20MB / 30.20MB                                                                                                                          0.4s
 => => sha256:5d3a49f7344b63ba9091529379a9372ff1fa278dd0fc53ad515fabba89cedaa6 29.53MB / 29.53MB                                                                                                                          0.5s
 => => sha256:fa80765625da48f89491aa6509fc162d488d60ffb8892f523fd96629a4de56b2 26.91MB / 26.91MB                                                                                                                          0.6s
 => => sha256:224b680b4689a743ce29bc5a4e25712e1989616e8115287685032898911042e7 84.91MB / 84.91MB                                                                                                                          1.2s
 => => sha256:1b7ca6aea1ddfe716f3694edb811ab35114db9e93f3ce38d7dab6b4d9270cb0c 2.81MB / 2.81MB                                                                                                                            0.3s
 => => extracting sha256:1b7ca6aea1ddfe716f3694edb811ab35114db9e93f3ce38d7dab6b4d9270cb0c                                                                                                                                 0.6s
 => => extracting sha256:224b680b4689a743ce29bc5a4e25712e1989616e8115287685032898911042e7                                                                                                                                 3.9s
 => => extracting sha256:fa80765625da48f89491aa6509fc162d488d60ffb8892f523fd96629a4de56b2                                                                                                                                 0.2s
 => => extracting sha256:12976a662fcfa6827c452a7f0b48ebdccc8748c4a2ca11df0bf64b9d836a7e05                                                                                                                                 0.0s
 => => extracting sha256:5d3a49f7344b63ba9091529379a9372ff1fa278dd0fc53ad515fabba89cedaa6                                                                                                                                 0.3s
 => => extracting sha256:59d4eec4a4a2adf175c073b66f29539778dbe56aad44d042d67529e238e26a72                                                                                                                                 1.3s
 => [invidious internal] load build context                                                                                                                                                                               1.0s
 => => transferring context: 28.02MB                                                                                                                                                                                      0.9s
 => [invidious] FROM quay.io/invidious/lsquic-compiled@sha256:04c07005b6c625aea9111536938db2aa7db37d50b42d031c0985aff929594e0c                                                                                           22.2s
 => => resolve quay.io/invidious/lsquic-compiled@sha256:04c07005b6c625aea9111536938db2aa7db37d50b42d031c0985aff929594e0c                                                                                                  0.0s
 => => sha256:19fc7236ee24499f6dc3ddfa9379455e8b2db72d88199bc74999b74c75abc1aa 3.26MB / 3.26MB                                                                                                                            0.5s
 => => sha256:153f9fb981340b4512b858635db0b62745788e8db1fd9968010d179fb21a4def 10.76MB / 10.76MB                                                                                                                          0.6s
 => => sha256:6e8e7456ea037d0c29eb535df44bd4ac3722241789a2df80b2467c0b933c67a7 6.02MB / 6.02MB                                                                                                                            0.2s
 => => sha256:473cf2d70524ddb725bf4ba0dedbbc822f909ad676532c4c6bf14b82332d3c62 1.00kB / 1.00kB                                                                                                                            0.1s
 => => sha256:7d557e52ae1eecd38ccf39423c77e35079514c39a8b25ded0a249bc7d9839e21 15.52MB / 15.52MB                                                                                                                          0.5s
 => => sha256:beb8e482b5a45f5eae62f2d496294781ec23eabca5b149f385d6ae4aa41f0e33 8.52MB / 8.52MB                                                                                                                            0.5s
 => => sha256:92c722ed78b792bca86c0bd8c86ea204f36147c9457ed54ebf325572ae153899 42.75MB / 42.75MB                                                                                                                          1.0s
 => => sha256:8a3e20511863eb1c5ca2a34f246b7c5c7eb5fc88bc1f11d0a02377949f674b2e 860B / 860B                                                                                                                                0.3s
 => => sha256:ef093e9a5d793fe5bbef2fa5e14fe5d1a2d77b17cfe7bfc6b4f94d33b8cdf503 1.95kB / 1.95kB                                                                                                                            0.3s
 => => sha256:23b977f4f50521b3ff818540b3c416ffebe2fb1be721e30761e0b311ff9aebf3 208.24MB / 208.24MB                                                                                                                        2.5s
 => => sha256:adabc12dcc7de3a936d2e5ab22b68fd96c7403c920c86a86fb1b4a14026cb46e 99B / 99B                                                                                                                                  0.1s
 => => sha256:41dcc117e123342ad8ade3073ce46b505baa04b6a19e2fed7758f086a102fa7b 2.81MB / 2.81MB                                                                                                                            0.1s
 => => extracting sha256:41dcc117e123342ad8ade3073ce46b505baa04b6a19e2fed7758f086a102fa7b                                                                                                                                 0.4s
 => => extracting sha256:adabc12dcc7de3a936d2e5ab22b68fd96c7403c920c86a86fb1b4a14026cb46e                                                                                                                                 0.0s
 => => extracting sha256:23b977f4f50521b3ff818540b3c416ffebe2fb1be721e30761e0b311ff9aebf3                                                                                                                                 8.6s
 => => extracting sha256:ef093e9a5d793fe5bbef2fa5e14fe5d1a2d77b17cfe7bfc6b4f94d33b8cdf503                                                                                                                                 0.2s
 => => extracting sha256:8a3e20511863eb1c5ca2a34f246b7c5c7eb5fc88bc1f11d0a02377949f674b2e                                                                                                                                 0.6s
 => => extracting sha256:92c722ed78b792bca86c0bd8c86ea204f36147c9457ed54ebf325572ae153899                                                                                                                                 2.2s
 => => extracting sha256:beb8e482b5a45f5eae62f2d496294781ec23eabca5b149f385d6ae4aa41f0e33                                                                                                                                 1.6s
 => => extracting sha256:7d557e52ae1eecd38ccf39423c77e35079514c39a8b25ded0a249bc7d9839e21                                                                                                                                 1.3s
 => => extracting sha256:473cf2d70524ddb725bf4ba0dedbbc822f909ad676532c4c6bf14b82332d3c62                                                                                                                                 0.1s
 => => extracting sha256:6e8e7456ea037d0c29eb535df44bd4ac3722241789a2df80b2467c0b933c67a7                                                                                                                                 1.4s
 => => extracting sha256:19fc7236ee24499f6dc3ddfa9379455e8b2db72d88199bc74999b74c75abc1aa                                                                                                                                 0.7s
 => => extracting sha256:153f9fb981340b4512b858635db0b62745788e8db1fd9968010d179fb21a4def                                                                                                                                 1.1s
 => [invidious stage-1  1/12] FROM docker.io/library/alpine:3.16@sha256:cbe5d5973103a2d03408d1689a6efde4ea4920bde9f4b51fe7872e60ce2d8e56                                                                                  0.4s
 => => resolve docker.io/library/alpine:3.16@sha256:cbe5d5973103a2d03408d1689a6efde4ea4920bde9f4b51fe7872e60ce2d8e56                                                                                                      0.0s
 => => sha256:c1d6d1b2d5a367259e6e51a7f4d1ccd66a28cc9940d6599d8a8ea9544dd4b4a8 2.81MB / 2.81MB                                                                                                                            0.1s
 => => extracting sha256:c1d6d1b2d5a367259e6e51a7f4d1ccd66a28cc9940d6599d8a8ea9544dd4b4a8                                                                                                                                 0.3s
 => [invidious stage-1  2/12] RUN apk add --no-cache librsvg ttf-opensans tini                                                                                                                                           23.1s
 => [invidious builder  2/14] RUN apk add --no-cache sqlite-static yaml-static                                                                                                                                           15.8s
 => [invidious builder  3/14] WORKDIR /invidious                                                                                                                                                                          0.1s
 => [invidious stage-1  3/12] WORKDIR /invidious                                                                                                                                                                          0.0s
 => [invidious builder  4/14] COPY ./shard.yml ./shard.yml                                                                                                                                                                0.1s
 => [invidious stage-1  4/12] RUN addgroup -g 1000 -S invidious &&     adduser -u 1000 -S invidious -G invidious                                                                                                          0.5s
 => [invidious builder  5/14] COPY ./shard.lock ./shard.lock                                                                                                                                                              0.1s
 => [invidious builder  6/14] RUN shards install --production                                                                                                                                                            25.2s
 => [invidious stage-1  5/12] COPY --chown=invidious ./config/config.* ./config/                                                                                                                                          0.1s
 => [invidious stage-1  6/12] RUN mv -n config/config.example.yml config/config.yml                                                                                                                                       0.3s
 => [invidious stage-1  7/12] RUN sed -i 's/host: \(127.0.0.1\|localhost\)/host: invidious-db/' config/config.yml                                                                                                         0.3s
 => [invidious stage-1  8/12] COPY ./config/sql/ ./config/sql/                                                                                                                                                            0.0s
 => [invidious stage-1  9/12] COPY ./locales/ ./locales/                                                                                                                                                                  0.0s
 => [invidious builder  7/14] COPY --from=quay.io/invidious/lsquic-compiled /root/liblsquic.a ./lib/lsquic/src/lsquic/ext/liblsquic.a                                                                                     0.2s
 => [invidious builder  8/14] COPY ./src/ ./src/                                                                                                                                                                          0.1s
 => [invidious builder  9/14] COPY ./.git/ ./.git/                                                                                                                                                                        0.1s
 => [invidious builder 10/14] COPY ./scripts/ ./scripts/                                                                                                                                                                  0.0s
 => [invidious builder 11/14] COPY ./assets/ ./assets/                                                                                                                                                                    0.0s
 => [invidious builder 12/14] COPY ./videojs-dependencies.yml ./videojs-dependencies.yml                                                                                                                                  0.0s
 => [invidious builder 13/14] RUN crystal spec --warnings all     --link-flags "-lxml2 -llzma"                                                                                                                           34.9s
 => CANCELED [invidious builder 14/14] RUN if [[ "${release}" == 1 && "${disable_quic}" == 1 ]] ; then         crystal build ./src/invidious.cr         --release         -Ddisable_quic         --static --warnings a  806.5s
failed to solve: Canceled: context canceled
@hemna hemna added the bug Something isn't working label Jun 16, 2023
@unixfox
Copy link
Member

unixfox commented Jun 16, 2023

Please follow the documentation: https://docs.invidious.io/installation/#docker-compose-method-production

@unixfox unixfox closed this as not planned Won't fix, can't repro, duplicate, stale Jun 16, 2023
@unixfox unixfox added invalid This doesn't seem right and removed bug Something isn't working labels Jun 16, 2023
@hemna
Copy link
Author

hemna commented Jun 16, 2023

I did follow the documentation. That message was not helpful. Still can't stand it up on arm64.

@unixfox
Copy link
Member

unixfox commented Jun 16, 2023

Make sure you are using the image quay.io/invidious/invidious:latest-arm64 like stated in the documentation: https://docs.invidious.io/installation/#docker-compose-method-production

@hemna
Copy link
Author

hemna commented Jun 16, 2023

Got it working thank you for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants