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

[Argus] unhandled exception when QN is unavailable #4762

Closed
kdembler opened this issue May 18, 2023 · 1 comment
Closed

[Argus] unhandled exception when QN is unavailable #4762

kdembler opened this issue May 18, 2023 · 1 comment
Labels
argus Argus distributor node bug Something isn't working

Comments

@kdembler
Copy link
Collaborator

This error was reported by one of the distributors when his QN was having issues

2023-05-17 15:36:44:3644 QueryNodeApi error: Error when trying to execute a query!
{
    "err": {
        "message": "Graphql syntax errors found",
        "graphQLErrors": [
            {
                "message": "getaddrinfo EAI_AGAIN db",
                "locations": [
                    {
                        "line": 2,
                        "column": 3
                    }
                ],
                "path": [
                    "storageBucketsConnection"
                ],
                "extensions": {
                    "code": "INTERNAL_SERVER_ERROR",
                    "exception": {
                        "errno": -3001,
                        "code": "EAI_AGAIN",
                        "syscall": "getaddrinfo",
                        "hostname": "db"
                    }
                }
            }
        ]
    }
}
2023-05-17 15:36:44:3644 NetworkingManager error: Couldn't check active storage node endpooints
{
    "err": {
        "message": "Cannot read property 'storageBucketsConnection' of null",
        "stack": "TypeError: Cannot read property 'storageBucketsConnection' of null\n    at QueryNodeApi.multipleEntitiesWithPagination (/root/joystream/distributor-node/src/services/networking/query-node/api.ts:152:13)\n    at runMicrotasks (<anonymous>)\n    at processTicksAndRejections (internal/process/task_queues.js:95:5)\n    at async NetworkingService.checkActiveStorageNodeEndpoints (/root/joystream/distributor-node/src/services/networking/NetworkingService.ts:398:38)"
    }
}
(node:3358105) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'distributionBuckets' of null
    at QueryNodeApi.multipleEntitiesQuery (/root/joystream/distributor-node/src/services/networking/query-node/api.ts:128:90)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async NetworkingService.fetchSupportedDataObjects (/root/joystream/distributor-node/src/services/networking/NetworkingService.ts:376:9)
    at async ContentService.cacheCleanup (/root/joystream/distributor-node/src/services/content/ContentService.ts:48:30)
(node:3358105) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1339)
@zeeshanakram3
Copy link
Contributor

Fixed in #4769

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
argus Argus distributor node bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants