You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/03/27 07:50:13 UTC

[GitHub] [apisix] soulbird removed a comment on issue #6719: bug: load opentelemetry so, curl /apisix/prometheus/metrics coredump

soulbird removed a comment on issue #6719:
URL: https://github.com/apache/apisix/issues/6719#issuecomment-1079874368


   hi, according to your error log, I found two problems, one is coredumps, related errorlog:
   ```bash
   [alert] 1#1: worker process 46 exited on signal 11
   ```
   I reproduced the problem with your steps, using gdb to view the stack information:
   ```bash
   Core was generated by `nginx: worker process                                                 '.
   Program terminated with signal SIGSEGV, Segmentation fault.
   #0  0x00007f714cd9859c in CreateTraceContext(ngx_http_request_s*, ngx_variable_value_t*) () from /usr/local/openresty/nginx/modules/otel_ngx_module.so
   [Current thread is 1 (LWP 107)]
   (gdb) bt
   #0  0x00007f714cd9859c in CreateTraceContext(ngx_http_request_s*, ngx_variable_value_t*) () from /usr/local/openresty/nginx/modules/otel_ngx_module.so
   #1  0x00007f714cd98856 in StartNgxSpan(ngx_http_request_s*) () from /usr/local/openresty/nginx/modules/otel_ngx_module.so
   #2  0x000055b01c46902d in ngx_http_core_rewrite_phase (r=0x7f713a3d1840, ph=<optimized out>) at src/http/ngx_http_core_module.c:935
   #3  0x000055b01c4648f5 in ngx_http_core_run_phases (r=0x7f713a3d1840) at src/http/ngx_http_core_module.c:881
   #4  0x000055b01c46d5d0 in ngx_http_run_posted_requests (c=0x7f713aa4ecb0) at src/http/ngx_http_request.c:2435
   #5  0x000055b01c470184 in ngx_http_process_request_line (rev=0x7f713a954810) at src/http/ngx_http_request.c:1175
   #6  0x000055b01c4558c8 in ngx_epoll_process_events (cycle=<optimized out>, timer=<optimized out>, flags=<optimized out>) at src/event/modules/ngx_epoll_module.c:901
   #7  0x000055b01c44b7e4 in ngx_process_events_and_timers (cycle=cycle@entry=0x7f714ce291e0) at src/event/ngx_event.c:257
   #8  0x000055b01c453778 in ngx_worker_process_cycle (cycle=cycle@entry=0x7f714ce291e0, data=data@entry=0x1) at src/os/unix/ngx_process_cycle.c:782
   #9  0x000055b01c451df9 in ngx_spawn_process (cycle=cycle@entry=0x7f714ce291e0, proc=0x55b01c453700 <ngx_worker_process_cycle>, data=0x1, 
       name=0x55b01c584cf3 "worker process", respawn=respawn@entry=1) at src/os/unix/ngx_process.c:199
   #10 0x000055b01c45467f in ngx_reap_children (cycle=0x7f714ce291e0) at src/os/unix/ngx_process_cycle.c:654
   #11 ngx_master_process_cycle (cycle=<optimized out>) at src/os/unix/ngx_process_cycle.c:180
   #12 0x000055b01c42991e in main (argc=<optimized out>, argv=<optimized out>) at src/core/nginx.c:386
   ```
   It seems that coredumps occur in external dynamic libraries, you may need to check this yourself first
   
   Another question is about ldap, the related errorlog is:
   ```bash
   [error] 93#93: *768 [lua] plugin.lua:109: load_plugin(): failed to load plugin [ldap-auth] err: error loading module 'lualdap' from file '/usr/local/apisix//deps/lib/lua/5.1/lua
           Error loading shared library libldap-2.4.so.2: No such file or directory (needed by /usr/local/apisix//deps/lib/lua/5.1/lualdap.so), context: init_worker_by_lua*
   ```
   It looks like it's because libldap-2.4.so.2 is missing from the system. I noticed that you replaced the system's depot version in the Dockfile:
   ```bash
   RUN echo 'https://mirrors.ustc.edu.cn/alpine/v3.15/main' > /etc/apk/repositories \
       && echo 'https://mirrors.ustc.edu.cn/alpine/v3.15/community' >> /etc/apk/repositories\
       ......
   ```
   This seems to be the cause of the problem. The base image of apisix-2.12.0 is based on alpine 3.12. apisix works fine after I use the command below:
   ```bash
   $ echo 'https://mirrors.ustc.edu.cn/alpine/v3.15/main' > /etc/apk/repositories
   $ echo 'https://mirrors.ustc.edu.cn/alpine/v3.15/community' >> /etc/apk/repositories
   
   $ apk update
   $ apk add apache2-ldap
   ```
   I will continue to investigate why ldap is missing after you adjust the version of alpine


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org