Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.2.7 版本下 socket 连接拒绝是为什么? #46

Closed
Slairmy opened this issue Aug 3, 2021 · 1 comment
Closed

2.2.7 版本下 socket 连接拒绝是为什么? #46

Slairmy opened this issue Aug 3, 2021 · 1 comment

Comments

@Slairmy
Copy link
Contributor

Slairmy commented Aug 3, 2021

想通过 fastmongo 这个组件包来操作mongo 安装和配置gotask 按照这个文档来的: https://github.com/Hyperf/gotask/wiki/Installation-&-Configuration

然后写demo的时候出现:

unable to establish connection unix:///xxx_61093a9f7fb39.sock: Connection refused (61)[137] in /xxx/vendor/hyperf/gotask/src/Relay/CoroutineSocketRelay.php

trace 信息如下:

#0 /xxx/vendor/hyperf/gotask/src/Relay/SocketTransporter.php(35): Hyperf\GoTask\Relay\CoroutineSocketRelay->connect()
#1 /xxx/vendor/spiral/goridge/src/RPC.php(48): Hyperf\GoTask\Relay\CoroutineSocketRelay->send('MongoProxy.Inse...', 20)
#2 /xxx/vendor/hyperf/gotask/src/IPC/SocketIPCSender.php(55): Spiral\Goridge\RPC->call('MongoProxy.Inse...', '.\v\x00\x00\x03Records\x00\xEB\n...', 4)
#3 /xxx/vendor/hyperf/gotask/src/GoTaskConnection.php(89): Hyperf\GoTask\IPC\SocketIPCSender->call('MongoProxy.Inse...', '.\v\x00\x00\x03Records\x00\xEB\n...', 4)
#4 /xxx/vendor/hyperf/gotask/src/GoTaskConnection.php(50): Hyperf\GoTask\GoTaskConnection->retry('call', Array, Object(Spiral\Goridge\Exceptions\PrefixException))
#5 /xxx/vendor/hyperf/gotask/src/SocketGoTask.php(41): Hyperf\GoTask\GoTaskConnection->__call('call', Array)
#6 /xxx/vendor/hyperf/gotask/src/GoTaskProxy.php(39): Hyperf\GoTask\SocketGoTask->call('MongoProxy.Inse...', '.\v\x00\x00\x03Records\x00\xEB\n...', 4)
#7 /xxx/vendor/hyperf/gotask/src/MongoClient/MongoProxy.php(101): Hyperf\GoTask\GoTaskProxy->call('MongoProxy.Inse...', '.\v\x00\x00\x03Records\x00\xEB\n...', 4)
#8 /xxx/vendor/hyperf/gotask/src/MongoClient/Collection.php(75): Hyperf\GoTask\MongoClient\MongoProxy->insertMany('.\v\x00\x00\x03Records\x00\xEB\n...')
#9 /xxx/runtime/container/proxy/App_Controller_Ab_MongoController.proxy.php(38): Hyperf\GoTask\MongoClient\Collection->insertMany(Array)
#10 /xxx/vendor/hyperf/http-server/src/CoreMiddleware.php(161): App\Controller\Ab\MongoController->index()
#11 /xxx/vendor/hyperf/http-server/src/CoreMiddleware.php(113): Hyperf\HttpServer\CoreMiddleware->handleFound(Object(Hyperf\HttpServer\Router\Dispatched), Object(Hyperf\HttpMessage\Server\Request))
#12 /xxx/vendor/hyperf/dispatcher/src/AbstractRequestHandler.php(65): Hyperf\HttpServer\CoreMiddleware->process(Object(Hyperf\HttpMessage\Server\Request), Object(Hyperf\Dispatcher\HttpRequestHandler))
#13 /xxx/vendor/hyperf/dispatcher/src/HttpRequestHandler.php(26): Hyperf\Dispatcher\AbstractRequestHandler->handleRequest(Object(Hyperf\HttpMessage\Server\Request))
#14 /xxx/vendor/hyperf/validation/src/Middleware/ValidationMiddleware.php(81): Hyperf\Dispatcher\HttpRequestHandler->handle(Object(Hyperf\HttpMessage\Server\Request))
#15 /xxx/vendor/hyperf/dispatcher/src/AbstractRequestHandler.php(65): Hyperf\Validation\Middleware\ValidationMiddleware->process(Object(Hyperf\HttpMessage\Server\Request), Object(Hyperf\Dispatcher\HttpRequestHandler))
#16 /xxx/vendor/hyperf/dispatcher/src/HttpRequestHandler.php(26): Hyperf\Dispatcher\AbstractRequestHandler->handleRequest(Object(Hyperf\HttpMessage\Server\Request))
#17 /xxx/vendor/hyperf/dispatcher/src/HttpDispatcher.php(40): Hyperf\Dispatcher\HttpRequestHandler->handle(Object(Hyperf\HttpMessage\Server\Request))
#18 /xxx/vendor/hyperf/http-server/src/Server.php(118): Hyperf\Dispatcher\HttpDispatcher->dispatch(Object(Hyperf\HttpMessage\Server\Request), Array, Object(Hyperf\HttpServer\CoreMiddleware))

看到issues 里面也有同样的错误,但是说试试新版本,2.2.7应该是目前最新的版本了。还请大佬帮忙解答下

@Slairmy Slairmy closed this as completed Aug 4, 2021
@siwazeng
Copy link

哈喽,请问你问题解决了吗,能提供一下解决思路吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants