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

Failed to build 9.4.0.5 on Mac #577

Open
gkwan-ibm opened this issue Sep 10, 2024 · 14 comments
Open

Failed to build 9.4.0.5 on Mac #577

gkwan-ibm opened this issue Sep 10, 2024 · 14 comments

Comments

@gkwan-ibm
Copy link

We followed this instruction to build a docker image for Mac ARM-based. We had no problem when built the 9.4.0.0 . But recently, when we built 9.4.0.5, we got error:

Downloading IBM MQ Advanced for Developers 9.4.0.5
mkdir -p downloads
curl --fail --location https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messaging/mqadv/9.4.0.5-IBM-MQ-Advanced-for-Developers-Non-Install-LinuxARM64.tar.gz --output downloads/9.4.0.5-IBM-MQ-Advanced-for-Developers-Non-Install-LinuxARM64.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0   196    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404
make: *** [downloads/9.4.0.5-IBM-MQ-Advanced-for-Developers-Non-Install-LinuxARM64.tar.gz] Error 22
@gkwan-ibm
Copy link
Author

Looks like DHE does not have 9.4.0.5-IBM-MQ-Advanced-for-Developers-Non-Install-LinuxARM64.tar.gz

@vgavinash
Copy link
Contributor

vgavinash commented Sep 11, 2024

@gkwan-ibm I am not sure if the LTS fix-pack developer editions are published or not. I will try to get it confirmed.

@gkwan-ibm
Copy link
Author

for workaround, yep, we used 9.4.0.0

git clone https://github.com/ibm-messaging/mq-container.git -b 9.4.0.0-r3

@momzilla
Copy link

momzilla commented Sep 17, 2024

Hi @gkwan-ibm I tried
git clone https://github.com/ibm-messaging/mq-container.git -b 9.4.0.0-r3

getting below. Any help please?

`=> CACHED [mq-server 2/12] COPY --from=mq-redux /opt/mqm-redux/ /opt/mqm/ 0.0s
=> CACHED [mq-server 3/12] COPY setup-image.sh /usr/local/bin/ 0.0s
=> CACHED [mq-server 4/12] COPY install-mq-server-prereqs.sh /usr/local/bin/ 0.0s
=> ERROR [mq-server 5/12] RUN env && chmod u+x /usr/local/bin/install-*.sh && chmod u+x /usr/local/bin/setup-image.sh && install-mq-server-prereqs.sh && setup-image.sh && /opt/mqm/bin/security/amqpamcf && c 0.7s

[mq-server 5/12] RUN env && chmod u+x /usr/local/bin/install-.sh && chmod u+x /usr/local/bin/setup-image.sh && install-mq-server-prereqs.sh && setup-image.sh && /opt/mqm/bin/security/amqpamcf && chown -R 1001:root /opt/mqm/:
0.110 GO_WORKDIR=/opt/app-root/src/go/src/github.com/ibm-messaging/mq-container
0.110 PWD=/
0.110 container=oci
0.110 HOME=/root
0.110 BASE_TAG=9.4-1134
0.110 SHLVL=1
0.110 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
0.110 BASE_IMAGE=registry.access.redhat.com/ubi9/ubi-minimal
0.110 _=/usr/bin/env
0.114 + test -f /usr/bin/yum
0.114 + YUM=false
0.114 + test -f /usr/bin/microdnf
0.114 + MICRODNF=true
0.114 + test -f /usr/bin/rpm
0.114 + RPM=true
0.114 + test -f /usr/bin/apt-get
0.114 + UBUNTU=false
0.114 ++ uname -m
0.115 + CPU_ARCH=aarch64
0.115 + false
0.116 + true
0.116 + EXTRA_RPMS='bash bc ca-certificates file findutils gawk glibc-common grep ncurses-libs passwd procps-ng sed shadow-utils tar util-linux which'
0.116 + false
0.116 + true
0.116 + microdnf --disableplugin=subscription-manager -y install bash bc ca-certificates file findutils gawk glibc-common grep ncurses-libs passwd procps-ng sed shadow-utils tar util-linux which
0.164 Downloading metadata...
0.666 error: cannot update repo 'ubi-9-baseos-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried; Last error: Curl error (60): SSL peer certificate or SSH remote key was not OK for https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/aarch64/baseos/os/repodata/repomd.xml [SSL certificate problem: self-signed certificate in certificate chain]


2 warnings found (use docker --debug to expand):

  • FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 25)
  • FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 157)
    Dockerfile-server:114

113 | COPY install-mq-server-prereqs.sh /usr/local/bin/
114 | >>> RUN env
115 | >>> && chmod u+x /usr/local/bin/install-.sh
116 | >>> && chmod u+x /usr/local/bin/setup-image.sh
117 | >>> && install-mq-server-prereqs.sh
118 | >>> && setup-image.sh
119 | >>> && /opt/mqm/bin/security/amqpamcf
120 | >>> && chown -R 1001:root /opt/mqm/

121 | COPY --from=builder $GO_WORKDIR/runmqserver /usr/local/bin/

ERROR: failed to solve: process "/bin/sh -c env && chmod u+x /usr/local/bin/install-.sh && chmod u+x /usr/local/bin/setup-image.sh && install-mq-server-prereqs.sh && setup-image.sh && /opt/mqm/bin/security/amqpamcf && chown -R 1001:root /opt/mqm/" did not complete successfully: exit code: 1
`

@gkwan-ibm
Copy link
Author

hi @momzilla

  • are you using Mac ARM-based?
  • which docker you are using? DockerDesktop, RancherDesktop, Colima, or other?

@momzilla
Copy link

Hi @gkwan-ibm yes, using Mac ARM-based, and using docker desktop.

@gkwan-ibm
Copy link
Author

did you run make build-devserver COMMAND=docker or other command to build?

I have no problem.

@gkwan-ibm
Copy link
Author

@momzilla
Copy link

I have tried running both
make build-devserver COMMAND=docker
And
make build-devserver

But got that same error.
Also, I am able to access the file https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/aarch64/baseos/os/repodata/repomd.xml from browser or curl it from command line.

@arvest-bjoneson
Copy link

Curious if there's any update on the availability of the 9.4.0.5 ARM64 package? It looks like historically they've released them all at the same time.

@vgavinash
Copy link
Contributor

@gkwan-ibm please note images only for the supported platforms for production, i.e., LinuxPPC64LE, LinuxS390X & LinuxX64 have been made available for v9.4.0.5 as of now. The decision is yet to be made about ARM. Until then ARM images would be available for CD only. Or you can continue using the 9.4.0.0 LTS.

Cc: @arthurbarr

@gkwan-ibm
Copy link
Author

Does it mean the "building mq container for Mac development is not supported anymore"?

@arthurbarr
Copy link
Member

No, it just means that the arm64 build in the 9.4.0.x code stream is not being produced, as that code stream gets special treatment due to it being part of a longer support cycle. When the next CD release of MQ is produced, it will include the arm64 build for MQ Advanced for Developers as usual.

@arvest-bjoneson
Copy link

arvest-bjoneson commented Oct 1, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants