-
Notifications
You must be signed in to change notification settings - Fork 104
php-fpm下访问502,无数据上报OAP #505
Comments
service是中文? |
|
我测试一下。 |
把导致502的代码发一下 |
routes/web.php app/Http/Controllers/HomeController.php
resources/views/version.blade.php
|
这怎么会502呢。。 |
之前我编译过debug版本,日志如下,但是dubug编译的虽然有报错,但是页面无502,数据也可以上报;重新no debug编译就会出现502: debug版本下php-fpm日志: |
方便把这个502的打包一个docker吗?删除内部代码 |
docker pull registry.cn-guangzhou.aliyuncs.com/oyrming/php8.1-base:skyapm5 日志记录目录:/data/wwwlog/ |
怎么运行?容器内PHP和nginx都没启动 |
curl http://127.0.0.1/version |
运行一段时间后出现502的情况 |
I notice that this issue happens when your endpoint has particular length. in my case, some last lines of strace log - attached to php-fpm worker process (always stopped at loading
gdb full stack trace
|
我也遇到此问题 |
OAP:8.6.0
SkyAPM-php-sdk:master (220719)
php: 8.1.8 (NTS)
Laravel:9.0
[root@wechat-new-v2-web-659b9d7d58-g6qmz wwwroot]# gdb /usr/local/php/sbin/php-fpm -c core.28
GNU gdb (GDB) Red Hat Enterprise Linux 8.2-18.el8
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/local/php/sbin/php-fpm...done.
warning: Can't open file (null) during file-backed mapping note processing
warning: Can't open file (null) during file-backed mapping note processing
[New LWP 28]
Missing separate debuginfo for /usr/lib64/libpng16.so.16
Try: yum --enablerepo='debug' install /usr/lib/debug/.build-id/31/bae13afed80d57aa8c4c236d252cb599672c47.debug
Missing separate debuginfo for /usr/lib64/libjpeg.so.62
Try: yum --enablerepo='debug' install /usr/lib/debug/.build-id/47/91ca4e7c88ca1315f87c36157076c6828be6f5.debug
Missing separate debuginfo for /usr/lib64/libfreetype.so.6
Try: yum --enablerepo='debug' install /usr/lib/debug/.build-id/dd/fc06c4e6b5af7e32613447e4a7a34e0ceb7721.debug
Missing separate debuginfo for /usr/lib64/libxslt.so.1
Try: yum --enablerepo='debug' install /usr/lib/debug/.build-id/b3/5ddab500e06d83a1b59a1a5877f883ab3dd327.debug
Missing separate debuginfo for /usr/lib64/libexslt.so.0
Try: yum --enablerepo='debug' install /usr/lib/debug/.build-id/87/f21a964317ec569cc2ccd144749f1deac1b2ae.debug
Missing separate debuginfo for /usr/lib64/libzip.so.5
Try: yum --enablerepo='debug' install /usr/lib/debug/.build-id/b9/10342e2904c88f4c63c9668efae6832741c889.debug
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Missing separate debuginfo for /usr/lib64/libtiff.so.5
Try: yum --enablerepo='debug' install /usr/lib/debug/.build-id/22/f62b250df74203783732a2f8d69d8f51190b90.debug
Missing separate debuginfo for /usr/lib64/libfontconfig.so.1
Try: yum --enablerepo='debug' install /usr/lib/debug/.build-id/02/f21936a10e876faf363fe26b06274549e72372.debug
Missing separate debuginfo for /usr/lib64/libwebpmux.so.3
Try: yum --enablerepo='debug' install /usr/lib/debug/.build-id/06/998393ae53f67d0ec018d59c46365a6a9034cb.debug
Missing separate debuginfo for /usr/lib64/libwebpdemux.so.2
Try: yum --enablerepo='debug' install /usr/lib/debug/.build-id/63/2d3c421128337a838338ab12c44d0352876d23.debug
Missing separate debuginfo for /usr/lib64/libwebp.so.7
Try: yum --enablerepo='debug' install /usr/lib/debug/.build-id/c4/75596e3e645e3faec6f7be19ee5a804d986900.debug
Missing separate debuginfo for /usr/lib64/libX11.so.6
Try: yum --enablerepo='debug' install /usr/lib/debug/.build-id/28/d2acfd4e3f3fef18ee17c8492b7d7ed1539ce4.debug
Missing separate debuginfo for /usr/lib64/libjbig.so.2.1
Try: yum --enablerepo='debug' install /usr/lib/debug/.build-id/77/4122c1f94f8239fbc3ad2485bc928547047cff.debug
Missing separate debuginfo for /usr/lib64/libxcb.so.1
Try: yum --enablerepo='debug' install /usr/lib/debug/.build-id/12/80aa7d248e87160ee8ace5ed22824e5381f465.debug
Missing separate debuginfo for /usr/lib64/libXau.so.6
Try: yum --enablerepo='debug' install /usr/lib/debug/.build-id/31/207101ca01974ba406b3c442ee1232c7738269.debug
Core was generated by `php-fpm: pool www '.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 zend_mm_alloc_small (bin_num=0, heap=0x7f2175000040) at /root/src/php-8.1.8/Zend/zend_alloc.c:1256
1256 /root/src/php-8.1.8/Zend/zend_alloc.c: No such file or directory.
Missing separate debuginfos, use: yum debuginfo-install bzip2-libs-1.0.6-26.el8.x86_64 expat-2.2.5-8.el8_6.2.x86_64 glibc-2.28-189.5.el8_6.x86_64 keyutils-libs-1.5.10-9.el8.x86_64 krb5-libs-1.18.2-14.el8.x86_64 libcom_err-1.45.6-4.el8.x86_64 libcurl-minimal-7.61.1-22.el8_6.3.x86_64 libgcc-8.5.0-10.1.el8_6.x86_64 libgcrypt-1.8.5-7.el8_6.x86_64 libgomp-8.5.0-10.1.el8_6.x86_64 libgpg-error-1.31-1.el8.x86_64 libnghttp2-1.33.0-3.el8_3.1.x86_64 libselinux-2.9-5.el8.x86_64 libuuid-2.32.1-35.el8.x86_64 libxcrypt-4.1.1-6.el8.x86_64 libxml2-2.9.7-13.el8_6.1.x86_64 openssl-libs-1.1.1k-6.el8_5.x86_64 pcre2-10.32-2.el8.x86_64 sqlite-libs-3.26.0-15.el8.x86_64 xz-libs-5.2.4-4.el8_6.x86_64 zlib-1.2.11-18.el8_5.x86_64
(gdb) bt
#0 zend_mm_alloc_small (bin_num=0, heap=0x7f2175000040) at /root/src/php-8.1.8/Zend/zend_alloc.c:1256
#1 _emalloc_8 () at /root/src/php-8.1.8/Zend/zend_alloc.c:2468
#2 0x0000000000839d25 in tsrm_realpath (path=path@entry=0x7f2175058298 "/data/wwwroot/wechat_sfy_new/public/index.php", real_path=real_path@entry=0x0) at /root/src/php-8.1.8/Zend/zend_virtual_cwd.c:1728
#3 0x000000000075d59b in tsrm_realpath_str (path=path@entry=0x7f2175058298 "/data/wwwroot/wechat_sfy_new/public/index.php") at /root/src/php-8.1.8/main/fopen_wrappers.c:462
#4 0x000000000075dcae in php_resolve_path (filename=0x7f2175058298 "/data/wwwroot/wechat_sfy_new/public/index.php", filename_length=45, path=0x2198358 ".:") at /root/src/php-8.1.8/main/fopen_wrappers.c:512
#5 0x000000000075d6c1 in php_fopen_primary_script (file_handle=file_handle@entry=0x7fff699dd970) at /root/src/php-8.1.8/main/fopen_wrappers.c:421
#6 0x000000000047c12e in main (argc=, argv=) at /root/src/php-8.1.8/sapi/fpm/fpm/fpm_main.c:1893
[root@wechat-new-v2-web-659b9d7d58-g6qmz wwwroot]# php --ri skywalking
skywalking
Directive => Local Value => Master Value
skywalking.enable => On => On
skywalking.service => 全屋定制服务号v2-web => 全屋定制服务号v2-web
skywalking.service_instance => no value => no value
skywalking.oap_version => 8.6.0 => 8.6.0
skywalking.oap_cross_process_protocol => 3.0 => 3.0
skywalking.oap_authentication => no value => no value
skywalking.grpc_address => 10.10.20.240:20185 => 10.10.20.240:20185
skywalking.grpc_tls_enable => Off => Off
skywalking.grpc_tls_pem_root_certs => no value => no value
skywalking.grpc_tls_pem_private_key => no value => no value
skywalking.grpc_tls_pem_cert_chain => no value => no value
skywalking.log_level => debug => debug
skywalking.log_path => /data/wwwlogs/skywalking-php.log => /data/wwwlogs/skywalking-php.log
skywalking.curl_response_enable => Off => Off
skywalking.error_handler_enable => Off => Off
skywalking.mq_max_message_length => 20480 => 20480
skywalking.mq_unique => 0 => 0
skywalking.sample_n_per_3_secs => -1 => -1
The text was updated successfully, but these errors were encountered: