-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
pgmoon openssl.rand not found #8533
Comments
@rs-joe, yes it was decided in a last minute to remove this from release. I tried to oppose the removal, but it was too late. The decision had to do with the issues that were caused to our sibling commercial release, and we didn't have time to resolve it properly. Thus we postponed the fix to next release, hopefully we can release a patch release soon. The Basically you can just use |
@bungle, I've used |
@rs-joe, This is the line in I feel like you are still hitting to: You may have two versions installed. Try removing |
@bungle, I am currently working to develop a POC and utilizing the Open Source Kong. I did found a work-around until this can resolved in a future release. The issue is, as you stated, In my case, I am using the Homebrew Kong formulae. So, the install of In order to force the reference from I figure if I upgrade Kong using Homebrew it will overwrite these files. So, I'll keep them as they are for now until the resolution is released. Also, I found that if I only copied the files newer files in the Kong shared directory path I passed the original issue, but encountered a new one (#4933). So, this is why it was necessary to overwrite the files in both the Homebrew and Kong shared directories. |
Hi, I have the same error but with docker compose with postgresql version 14.2 kong-migrations:
image: kong:2.8.0-alpine
command: kong migrations bootstrap
depends_on:
- postgres
environment:
KONG_DATABASE: postgres
KONG_PG_HOST: postgres
KONG_PG_PASSWORD: min0s
KONG_PG_DATABASE: kong
KONG_PG_USER: minos
restart: on-failure
kong-migrations-up:
image: kong:2.8.0-alpine
command: kong migrations up && kong migrations finish
depends_on:
- postgres
environment:
KONG_DATABASE: postgres
KONG_PG_HOST: postgres
KONG_PG_PASSWORD: min0s
KONG_PG_DATABASE: kong
KONG_PG_USER: minos
restart: on-failure
kong:
image: kong:2.8.0-alpine
user: "kong"
environment:
KONG_DATABASE: postgres
KONG_PG_HOST: postgres
KONG_PG_PASSWORD: min0s
KONG_PG_DATABASE: kong
KONG_PG_USER: minos
KONG_ADMIN_ACCESS_LOG: /dev/stdout
KONG_ADMIN_ERROR_LOG: /dev/stderr
KONG_PROXY_LISTEN: 0.0.0.0:8000
KONG_ADMIN_LISTEN: 0.0.0.0:8001
KONG_PROXY_ACCESS_LOG: /dev/stdout
KONG_PROXY_ERROR_LOG: /dev/stderr
KONG_PREFIX: /var/run/kong
KONG_DECLARATIVE_CONFIG: "/opt/kong/kong.yaml"
ports:
- "0.0.0.0:8000:8000/tcp"
- "0.0.0.0:8443:8443/tcp"
- "127.0.0.1:8001:8001/tcp"
- "127.0.0.1:8444:8444/tcp"
healthcheck:
test: ["CMD", "kong", "health"]
interval: 10s
timeout: 10s
retries: 10
restart: on-failure:5
read_only: true
volumes:
- kong_prefix_vol:/var/run/kong
- kong_tmp_vol:/tmp
- ./config:/opt/kong
security_opt:
- no-new-privileges
and this is the error log
|
With Kong 2.8.1, Kong/kong#8533 is resolved and this default is no longer necessary.
Yay! When building the docker container, adding: |
Seems that the issue is resolved. Closing for now. |
Is there an existing issue for this?
Kong version (
$ kong version
)2.8.0
Current Behavior
As I started the Install Kong Gateway on macOS guide, I attempted to execute the
kong migrations bootstrap
and encountered the error/opt/homebrew/share/lua/5.1/pgmoon/init.lua:273: module 'openssl.rand' not found
.I noticed there was a previous issue reported and has since been closed with release 2.8.0. #8259
I expected that Kong v2.8.0 resolved this issue with updates associated with pgmoon dependency.
Expected Behavior
kong migrations bootstrap
completes without error.Steps To Reproduce
Have PostgreSQL 14 installed and running
Create Kong user and Kong Database
Install via Homebrew
Execute
kong migrations bootstrap
[Optional] Create kong.conf and adjust the Postgres DB values, such as password and copy it to /etc/kong/kong.conf
Anything else?
https://docs.konghq.com/gateway/2.8.x/install-and-run/macos/
The text was updated successfully, but these errors were encountered: