[Bug] skywalking-php agent report (No such file or directory (os error 2))
Search before asking
- [X] I had searched in the issues and found no similar issues.
Apache SkyWalking Component
PHP (apache/skywalking-php)
What happened
When I successfully installed the SkyWalking PHP Agent extension and restarted the php-fpm , an error was reported, I don't have grpc installed, is it related to grpc ?
2023-01-28T08:28:59.751062Z INFO skywalking_agent::module: Starting skywalking agent service_name="jc-staging02" service_instance="[email protected]" skywalking_version=9
2023-01-28T08:28:59.752123Z DEBUG skywalking_agent::worker: Starting worker...
2023-01-28T08:28:59.752190Z DEBUG skywalking_agent::worker: Bind unix stream socket_file="/tmp/skywalking_agent_5f34ec613fec6.sock"
2023-01-28T08:28:59.752557Z DEBUG connect: hyper::client::connect::http: connecting to 10.0.0.18:11800
2023-01-28T08:28:59.752697Z DEBUG connect: hyper::client::connect::http: connected to 10.0.0.18:11800
2023-01-28T08:28:59.752730Z DEBUG connect: h2::client: binding client connection
2023-01-28T08:28:59.752752Z DEBUG connect: h2::client: client connection bound
2023-01-28T08:28:59.752774Z DEBUG connect: h2::codec::framed_write: send frame=Settings { flags: (0x0), enable_push: 0, initial_window_size: 2097152, max_frame_size: 16384 }
2023-01-28T08:28:59.752887Z DEBUG connect:Connection{peer=Client}: h2::codec::framed_write: send frame=WindowUpdate { stream_id: StreamId(0), size_increment: 5177345 }
2023-01-28T08:28:59.752909Z INFO connect: skywalking_agent::worker: Skywalking server connected uri="http://10.0.0.18:11800/"
2023-01-28T08:28:59.752918Z INFO skywalking_agent::worker: Worker is ready...
2023-01-28T08:28:59.755371Z DEBUG connect:Connection{peer=Client}: h2::codec::framed_read: received frame=Settings { flags: (0x0), max_concurrent_streams: 4, initial_window_size: 1048576, max_header_list_size: 8192 }
2023-01-28T08:28:59.755413Z DEBUG connect:Connection{peer=Client}: h2::codec::framed_write: send frame=Settings { flags: (0x1: ACK) }
2023-01-28T08:28:59.755422Z DEBUG connect:Connection{peer=Client}: h2::codec::framed_read: received frame=WindowUpdate { stream_id: StreamId(0), size_increment: 983041 }
2023-01-28T08:28:59.755967Z DEBUG connect:Connection{peer=Client}: h2::codec::framed_read: received frame=Settings { flags: (0x1: ACK) }
2023-01-28T08:28:59.755979Z DEBUG connect:Connection{peer=Client}: h2::proto::settings: received settings ACK; applying Settings { flags: (0x0), enable_push: 0, initial_window_size: 2097152, max_frame_size: 16384 }
2023-01-28T08:28:59.758895Z INFO skywalking_agent::worker: Start to shutdown skywalking grpc reporter
2023-01-28T08:28:59.758906Z INFO skywalking_agent::worker: Remove socket file socket_file="/tmp/skywalking_agent_5f34ec613fec6.sock"
2023-01-28T08:30:03.440975Z DEBUG skywalking_agent::plugin::plugin_redis: Get redis peer addr="10.0.0.17:22222"
2023-01-28T08:30:03.441395Z DEBUG skywalking_agent::plugin::plugin_redis: call redis method handle=88 function_name="auth"
2023-01-28T08:30:03.441408Z DEBUG skywalking_agent::plugin::plugin_redis: call redis command handle=88 cmd="auth"
...
2023-01-28T08:30:04.062621Z DEBUG skywalking_agent::plugin::plugin_pdo: call PDO method handle=283 function_name="prepare"
2023-01-28T08:30:04.062653Z DEBUG skywalking_agent::plugin::plugin_pdo: call PDOStatement method handle=1791 function_name="execute"
2023-01-28T08:30:04.062666Z DEBUG skywalking_agent::plugin::plugin_redis: call Redis free
2023-01-28T08:30:04.062657Z ERROR shutdown: skywalking_agent::channel: channel send failed err=No such file or directory (os error 2)
What you expected to happen
I expected no error
How to reproduce
os: centos7.9 PHP 8.1.8 sky: 9.2.0 # https://github.com/apache/skywalking/blob/master/docker/docker-compose.yml sky_agent: 0.2.0 # https://github.com/apache/skywalking-php/releases/tag/v0.2.0
php.ini
[skywalking]
extension=skywalking_agent.so
skywalking_agent.enable = On
skywalking_agent.log_file = /usr/local/php/var/log/skywalking_agent.log
skywalking_agent.log_level = DEBUG
skywalking_agent.server_addr = http://10.0.0.18:11800
skywalking_agent.service_name = staging02
skywalking_agent.skywalking_version = 9
socket dir
[root@Staging02 etc]# ll /tmp/ -d
drwxrwxrwt. 9 root root 172K 2023-01-28 17:26:19 /tmp/
Anything else
还需要提供其他的信息吗
Are you willing to submit PR?
- [x] Yes I am willing to submit a PR!
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
Fixed by https://github.com/apache/skywalking-php/pull/42.
Fixed by apache/skywalking-php#42. so i need to wait for the agent to update right?
Fixed by apache/skywalking-php#42.
so i need to wait for the agent to update right?
You could wait for 0.3 or build from source codes by yourself.
Hi,
Now I also encountered the problem.
2023-03-28T07:16:58.890655Z ERROR shutdown: skywalking_agent::channel: channel send failed err=No such file or directory (os error 2)
I used the version of skywalking agent is 0.3.0. The oap server can not receive any data and UI cannot display the data.
What should I do?
Hi, Now I also encountered the problem.
2023-03-28T07:16:58.890655Z ERROR shutdown: skywalking_agent::channel: channel send failed err=No such file or directory (os error 2)I used the version of skywalking agent is 0.3.0. The oap server can not receive any data and UI cannot display the data. What should I do?
Perhaps upgrading your PHP version to 8.17 will make it succeed!