Skip to content

nacos 修改redis配置出现QueueConsumer进程报错 #713

Open
@atonemi

Description

@atonemi
  • 我的问题、建议:(必填)
    环境:本地单机部署nacos并在项目配置使用
    运行:启动项目无报错
    项目:使用了imi-queue 组件 & QueueConsumer 自带进程
    问题简述:当项目启动后在nacos控制台修改redis config 配置会有log下面的报错
    修改mysql等其它配置没有类似问题

  • 错误日志:(可选)
    Image

# 如有报错日志请贴到这里


Nacos listen failed: RuntimeException: Unable to connect to /tmp/imi.process.9ad900337c13cf02ef39941d40803d22.1166.sock (No such file or directory) in /home/Deepin20-5/projects/php/xxx/vendor/imiphp/imi-swoole/src/Process/Process.php:68
  • 请执行下面的命令获取环境信息。

php -v & php --ri swoole & composer info | grep -a imi

# 粘贴到这里(必填)
Swoole 5.1.3 (cli) (built: Jun  7 2024 07:19:27) (NTS)

swoole

Swoole => enabled
Author => Swoole Team <[email protected]>
Version => 5.1.3
Built => Jun  7 2024 07:17:50
coroutine => enabled with boost asm context
epoll => enabled
eventfd => enabled
signalfd => enabled
cpu_affinity => enabled
spinlock => enabled
rwlock => enabled
sockets => enabled
openssl => OpenSSL 3.1.4+quic 24 Oct 2023
dtls => enabled
http2 => enabled
json => enabled
curl-native => enabled
c-ares => 1.24.0
zlib => 1.3.1
brotli => E16777225/D16777225
mutex_timedlock => enabled
pthread_barrier => enabled
futex => enabled
mysqlnd => enabled
async_redis => enabled
coroutine_pgsql => enabled
coroutine_odbc => enabled
coroutine_sqlite => enabled

Directive => Local Value => Master Value
swoole.enable_coroutine => On => On
swoole.enable_library => On => On
swoole.enable_fiber_mock => Off => Off
swoole.enable_preemptive_scheduler => Off => Off
swoole.display_errors => On => On
swoole.use_shortname => On => On
swoole.unixsock_buffer_size => 8388608 => 8388608
imiphp/imi                         2.1.64            imi 是一款支持长连接微服务分布式的 PHP 开发框架,可在 PHP-FPM、Swoole、Workerman 和 RoadRunner 等多种容器环境下运行。它支持 HttpApi、WebSocket、TCP、UDP、MQTT 服务的开发。
imiphp/imi-config-center           2.1.x-dev bc3bfcd imi 框架配置中心组件。imi configuration center.
imiphp/imi-nacos                   2.1.x-dev 17cf770 imi 框架 Nacos 组件。imi Nacos component.
imiphp/imi-phar                    2.1.13            imi phar component
imiphp/imi-queue                   2.1.23            imi 框架的队列组件,使用 Redis 作为持久化
imiphp/imi-rate-limit              2.1.8             imi 框架的限流组件,可以针对方法、接口设置限流,通过设置总容量、单位时间内生成填充的数量、每次扣除数量实现限流。QQ群:17916227
imiphp/imi-swoole                  2.1.51            imi swoole component

  • 提供最小可复现代码:(可选)

在项目中 nacos 的 配置
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions