Closed DGideas closed 1 year ago
By the way, I fixed it by executing make install
as root user. However, this behavior has not been mentioned in DEVELOPER.md. I am curious if other users are able to start their development environment successfully without executing make install
?
Eventually I found the reason why Kong raises Error: ...azel-bin/build/kong-dev/share/lua/5.1/kong/cmd/start.lua:98: nginx: [error] init_by_lua error...
, you need to switch your working directory to ~/kong/
(or your kong source code directory) then execute kong start
If you meet exception from opentelemetry or PATH, you need to execute the following code:
echo 'PATH=$PATH:~/home/user/kong/bazel-bin/build/kong-dev/openresty/bin' | sudo tee -a ~/.bashrc
echo 'PATH=$PATH:~/home/user/kong/bazel-bin/build/kong-dev/openresty/nginx/sbin' | sudo tee -a ~/.bashrc
echo 'PATH=$PATH:~/home/user/kong/bazel-bin/build/kong-dev/bin' | sudo tee -a ~/.bashrc
The user
mentioned above could be /root
, these code from .github/workflows/perf.yml:63
Is there an existing issue for this?
Kong version (
$ kong version
)3.4.0
Current Behavior
I use a clean Ubuntu 22.04 LTS on a x86_64 machine. And I want to compile Kong from source code. The following bash script is majorly from DEVELOPER.md and I run them as root user:
When finish building Kong, I use the following code originally from DEVELOPER.md try to start Kong:
When executes on
kong start
, I met this exception:Expected Behavior
The Kong should start normally.
Steps To Reproduce
(Please see "Current Behavior" section, I have paste all the script I executed there)
Anything else?
n/a