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

Building kong deb package failed behind proxy for version3.5.0 and above #13515

Closed
1 task done
shusriva opened this issue Aug 19, 2024 · 8 comments
Closed
1 task done
Labels
pending author feedback Waiting for the issue author to get back to a maintainer with findings, more details, etc... stale

Comments

@shusriva
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Kong version ($ kong version)

kong 3.5.0 >=

Current Behavior

When building kong(3.5.0 or above) debian package behind proxy, build failed with the error
image

While building kong (3.4.2) debian package behind proxy. build is successful
image

Expected Behavior

All the version of kong debian package should be build successfully behind the proxy.

Steps To Reproduce

No response

Anything else?

Without proxy, all the version of kong is getting build successfully

@chobits
Copy link
Contributor

chobits commented Aug 20, 2024

hi, could you try this command to verify whether the file could be downloaded as the error log mentioned.

$ curl https://luafr.org/luarocks/manifest-5.1

You could also try accessing other manifiest mirror links provided by the error.log

The error logs indicated that the bazel building system attempted to download these necessary files, but it failed finally.

image

@chobits chobits added the pending author feedback Waiting for the issue author to get back to a maintainer with findings, more details, etc... label Aug 20, 2024
@Water-Melon
Copy link
Contributor

Hi @shusriva, thanks for your report. Could you provide us with the commands you executed and details about your system environment where the issue occurred?
I just tried running make package/deb on Linux, and everything worked fine.

@shusriva
Copy link
Author

Hi @Water-Melon ,
I am using this command
bazel build --config release //build:kong --verbose_failures --action_env=http_proxy=${CODE_PROXY} --action_env=https_proxy=${CODE_PROXY}

This command works fine till version 3.4.2 but the same command failed if I tried to build version 3.5.0.
Attached the log
log.txt

@chronolaw chronolaw removed the pending author feedback Waiting for the issue author to get back to a maintainer with findings, more details, etc... label Aug 22, 2024
@Water-Melon
Copy link
Contributor

Sorry for the late reply. Could you provide more information about your development environment? Or which operating system and distribution can reproduce this issue? I just ran the commands you provided on Kong version 3.5.0 on Ubuntu 22.04, and it worked fine.

@shusriva
Copy link
Author

@Water-Melon I am using bookworm debian 12 to build the kong debian package.
when I pull this image locally and install all the build tools inside the container and try to build the kong debian package. it works fine. But when I try to build the kong debian package in the gitlab ci pipeline it fails. Strange part is same proxy, same dev environment works fine till version 3.4.2 but not above that.

@Water-Melon
Copy link
Contributor

I also tried it in a Bookworm Debian 12 container, and couldn't reproduce the issue.
Have you compared the $CODE_PROXY values between the two environments? Is http_proxy enabled? The error seems to occur when running ./src/bin/luarocks install "luarocks 3.9.2", failing during download and check manifest. It looks like a network issue.

@nowNick nowNick added the pending author feedback Waiting for the issue author to get back to a maintainer with findings, more details, etc... label Sep 9, 2024
Copy link
Contributor

This issue is marked as stale because it has been open for 14 days with no activity.

@github-actions github-actions bot added the stale label Sep 24, 2024
Copy link
Contributor

github-actions bot commented Oct 1, 2024

Dear contributor,

We are automatically closing this issue because it has not seen any activity for three weeks.
We're sorry that your issue could not be resolved. If any new information comes up that could
help resolving it, please feel free to reopen it.

Your contribution is greatly appreciated!

Please have a look
our pledge to the community
for more information.

Sincerely,
Your Kong Gateway team

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending author feedback Waiting for the issue author to get back to a maintainer with findings, more details, etc... stale
Projects
None yet
Development

No branches or pull requests

5 participants