You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by "clement-jiao (via GitHub)" <gi...@apache.org> on 2023/01/28 09:33:58 UTC

[GitHub] [skywalking] clement-jiao opened a new issue, #10310: [Bug] skywalking-php agent report (No such file or directory (os error 2))

clement-jiao opened a new issue, #10310:
URL: https://github.com/apache/skywalking/issues/10310

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/skywalking/issues?q=is%3Aissue) 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 ?**
   
   ```text
   2023-01-28T08:28:59.751062Z  INFO skywalking_agent::module: Starting skywalking agent service_name="jc-staging02" service_instance="238350872903372219077544372484508371378@10.0.0.18" 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
   ```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
   ```bash
   [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?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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@skywalking.apache.org.apache.org

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


[GitHub] [skywalking] clement-jiao commented on issue #10310: [Bug] skywalking-php agent report (No such file or directory (os error 2))

Posted by "clement-jiao (via GitHub)" <gi...@apache.org>.
clement-jiao commented on issue #10310:
URL: https://github.com/apache/skywalking/issues/10310#issuecomment-1505265167

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


-- 
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@skywalking.apache.org

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


[GitHub] [skywalking] jmjoy commented on issue #10310: [Bug] skywalking-php agent report (No such file or directory (os error 2))

Posted by "jmjoy (via GitHub)" <gi...@apache.org>.
jmjoy commented on issue #10310:
URL: https://github.com/apache/skywalking/issues/10310#issuecomment-1407360884

   Fixed by https://github.com/apache/skywalking-php/pull/42.


-- 
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@skywalking.apache.org

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


[GitHub] [skywalking] wu-sheng commented on issue #10310: [Bug] skywalking-php agent report (No such file or directory (os error 2))

Posted by "wu-sheng (via GitHub)" <gi...@apache.org>.
wu-sheng commented on issue #10310:
URL: https://github.com/apache/skywalking/issues/10310#issuecomment-1407373062

   > > Fixed by [apache/skywalking-php#42](https://github.com/apache/skywalking-php/pull/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.


-- 
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@skywalking.apache.org

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


[GitHub] [skywalking] clement-jiao commented on issue #10310: [Bug] skywalking-php agent report (No such file or directory (os error 2))

Posted by "clement-jiao (via GitHub)" <gi...@apache.org>.
clement-jiao commented on issue #10310:
URL: https://github.com/apache/skywalking/issues/10310#issuecomment-1407363956

   > Fixed by [apache/skywalking-php#42](https://github.com/apache/skywalking-php/pull/42).
   so i need to wait for the agent to update right?


-- 
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@skywalking.apache.org

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


[GitHub] [skywalking] wu-sheng closed issue #10310: [Bug] skywalking-php agent report (No such file or directory (os error 2))

Posted by "wu-sheng (via GitHub)" <gi...@apache.org>.
wu-sheng closed issue #10310: [Bug] skywalking-php agent report (No such file or directory (os error 2))
URL: https://github.com/apache/skywalking/issues/10310


-- 
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@skywalking.apache.org

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


[GitHub] [skywalking] hwz9612 commented on issue #10310: [Bug] skywalking-php agent report (No such file or directory (os error 2))

Posted by "hwz9612 (via GitHub)" <gi...@apache.org>.
hwz9612 commented on issue #10310:
URL: https://github.com/apache/skywalking/issues/10310#issuecomment-1486345887

   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?


-- 
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@skywalking.apache.org

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


[GitHub] [skywalking] clement-jiao commented on issue #10310: [Bug] skywalking-php agent report (No such file or directory (os error 2))

Posted by "clement-jiao (via GitHub)" <gi...@apache.org>.
clement-jiao commented on issue #10310:
URL: https://github.com/apache/skywalking/issues/10310#issuecomment-1486419748

   I don't know why, but updating your PHP version will be fine :)


-- 
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@skywalking.apache.org

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