You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2020/12/25 14:30:43 UTC
[GitHub] [skywalking] linux-xiayun opened a new issue #6081: skywalking-nginx-lua:lua entry thread aborted: runtime error: /etc/nginx/skywalking-nginx-lua/lib/skywalking/client.lua:74: module 'skywalking.management' not found
linux-xiayun opened a new issue #6081:
URL: https://github.com/apache/skywalking/issues/6081
Please answer these questions before submitting your issue.
- Why do you submit this issue?
- [x] Question or discussion
- [ ] Bug
- [ ] Requirement
- [ ] Feature or performance improvement
___
### Question
- What do you want to know?
when skywalking-nginx-lua is used, nginx has error.log
```
# cat /var/log/nginx/error.log
2020/12/25 20:45:29 [error] 8#8: *17 lua entry thread aborted: runtime error: /etc/nginx/skywalking-nginx-lua/lib/skywalking/client.lua:74: module 'skywalking.management' not found:
no field package.preload['skywalking.management']
no file '/etc/nginx/skywalking-nginx-lua/lib/skywalking/skywalking/management.lua'
no file '/usr/local/openresty/site/lualib/skywalking/management.ljbc'
no file '/usr/local/openresty/site/lualib/skywalking/management/init.ljbc'
no file '/usr/local/openresty/lualib/skywalking/management.ljbc'
no file '/usr/local/openresty/lualib/skywalking/management/init.ljbc'
no file '/usr/local/openresty/site/lualib/skywalking/management.lua'
no file '/usr/local/openresty/site/lualib/skywalking/management/init.lua'
no file '/usr/local/openresty/lualib/skywalking/management.lua'
no file '/usr/local/openresty/lualib/skywalking/management/init.lua'
no file './skywalking/management.lua'
no file '/usr/local/openresty/luajit/share/luajit-2.1.0-beta3/skywalking/management.lua'
no file '/usr/local/share/lua/5.1/skywalking/management.lua'
no file '/usr/local/share/lua/5.1/skywalking/management/init.lua'
no file '/usr/local/openresty/luajit/share/lua/5.1/skywalking/management.lua'
no file '/usr/local/openresty/luajit/share/lua/5.1/skywalking/management/init.lua'
no file '/usr/local/openresty/site/lualib/skywalking/management.so'
no file '/usr/local/openresty/lualib/skywalking/management.so'
no file './skywalking/management.so'
no file '/usr/local/lib/lua/5.1/skywalking/management.so'
no file '/usr/local/openresty/luajit/lib/lua/5.1/skywalking/management.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file '/usr/local/openresty/site/lualib/skywalking.so'
no file '/usr/local/openresty/lualib/skywalking.so'
no file './skywalking.so'
no file '/usr/local/lib/lua/5.1/skywalking.so'
no file '/usr/local/openresty/luajit/lib/lua/5.1/skywalking.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
coroutine 0:
[C]: in function 'require'
/etc/nginx/skywalking-nginx-lua/lib/skywalking/client.lua:74: in function 'reportServiceInstance'
/etc/nginx/skywalking-nginx-lua/lib/skywalking/client.lua:40: in function </etc/nginx/skywalking-nginx-lua/lib/skywalking/client.lua:36>, context: ngx.timer
```
version:
SkyWalking8.3.0
openresty:1.19.3.1-2-alpine
skywalking-nginx-lua-0.3.0
Dockerfile:
```
FROM 172.16.10.13/library/openresty:1.19.3.1-2-alpine
COPY nginx.conf /usr/local/openresty/nginx/conf/nginx.conf
ADD https://mirrors.tuna.tsinghua.edu.cn/apache/skywalking/nginx-lua/0.3.0/skywalking-nginx-lua-0.3.0-src.tgz /etc/nginx/
RUN mkdir -p /var/log/nginx /etc/nginx/skywalking-nginx-lua && tar -zxvf /etc/nginx/skywalking-nginx-lua-0.3.0-src.tgz -C /etc/nginx/skywalking-nginx-lua && rm -rf /etc/nginx/skywalking-nginx-lua-0.3.0-src.tgz
```
nginx.conf
```
···
lua_package_path "/etc/nginx/skywalking-nginx-lua/lib/skywalking/?.lua;;";
lua_shared_dict tracing_buffer 100m;
init_worker_by_lua_block {
local metadata_buffer = ngx.shared.tracing_buffer
metadata_buffer:set('serviceName', os.getenv("SW_SERVICE_NAME"))
metadata_buffer:set('serviceInstanceName', os.getenv("SW_SERVICE_INSTANCE_NAME"))
require("client"):startBackendTimer(os.getenv("SW_BACKEND_SERVERS"))
}
···
```
How can i do to resolve this question?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng closed issue #6081: skywalking-nginx-lua:lua entry thread aborted: runtime error: /etc/nginx/skywalking-nginx-lua/lib/skywalking/client.lua:74: module 'skywalking.management' not found
Posted by GitBox <gi...@apache.org>.
wu-sheng closed issue #6081:
URL: https://github.com/apache/skywalking/issues/6081
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on issue #6081: skywalking-nginx-lua:lua entry thread aborted: runtime error: /etc/nginx/skywalking-nginx-lua/lib/skywalking/client.lua:74: module 'skywalking.management' not found
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #6081:
URL: https://github.com/apache/skywalking/issues/6081#issuecomment-751257740
Take a look at our e2e?
https://github.com/apache/skywalking-nginx-lua/blob/2aee11a7213017b1a1d9c5b90c7028498707b42b/test/e2e/e2e-with-mock-collector/docker/bin/startup.sh#L19-L22
You could easy run this locally. e2e is driven from here, https://github.com/apache/skywalking-nginx-lua/blob/master/.github/workflows/e2e.yaml
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org