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

gRPC issues when backfilling shuttle #2380

Closed
aagoldberg opened this issue Oct 24, 2024 · 1 comment
Closed

gRPC issues when backfilling shuttle #2380

aagoldberg opened this issue Oct 24, 2024 · 1 comment
Labels
s-triage Needs to be reviewed, designed and prioritized

Comments

@aagoldberg
Copy link

aagoldberg commented Oct 24, 2024

What is the bug?
I'm having gRPC issues that stop me from backfilling the shuttle.

How can it be reproduced? (optional)
aagoldberg@shuttle:~/hub-monorepo/packages/shuttle$ POSTGRES_URL=postgres://shuttle:password@0.0.0.0:6541 REDIS_URL=0.0.0.0:16379 HUB_HOST=0.0.0.0:2281 HUB_SSL=false MAX_FID=100 yarn start backfill
yarn run v1.22.22
$ tsx src/example-app/index.ts backfill
[21:05:07.708] INFO (105610): Creating app connecting to: postgres://shuttle:password@0.0.0.0:6541, 0.0.0.0:16379, 0.0.0.0:2281
[21:05:07.760] INFO (105610): Backfilling fids:
[21:05:07.832] ERROR (105610): Failed to get max fid
/home/aagoldberg/hub-monorepo/packages/hub-nodejs/dist/index.js:10177
return new import_core.HubError(err2.metadata.get("errCode")[0], context);
^

HubError: Received RST_STREAM with code 2 triggered by internal client error: Protocol error
at fromServiceError (/home/aagoldberg/hub-monorepo/packages/hub-nodejs/dist/index.js:10177:10)
at Object.callback (/home/aagoldberg/hub-monorepo/packages/hub-nodejs/dist/index.js:10194:66)
at Object.onReceiveStatus (/home/aagoldberg/hub-monorepo/node_modules/@grpc/grpc-js/src/client.ts:360:26)
at Object.onReceiveStatus (/home/aagoldberg/hub-monorepo/node_modules/@grpc/grpc-js/src/client-interceptors.ts:458:34)
at Object.onReceiveStatus (/home/aagoldberg/hub-monorepo/node_modules/@grpc/grpc-js/src/client-interceptors.ts:419:48)
at (/home/aagoldberg/hub-monorepo/node_modules/@grpc/grpc-js/src/resolving-call.ts:163:24)
at process.processTicksAndRejections (node:internal/process/task_queues:77:11) {
errCode: undefined,
presentable: false,
[cause]: undefined
}

Node.js v21.7.3
error Command failed with exit code 1.

Additional context (optional)

Shuttle installation steps:
https://github.com/farcasterxyz/hub-monorepo/tree/main/packages/shuttle

Also, a problem with 'NVM Install 21':
There is a requirement of 'install nvm 21' in the shuttle install. The version of rimraf, v6, used in the hub-monorepo only works with NVM 20 and 22. Though, when I set the version rimraf to v5, NVM 21 was usable, but still gave me the gRPC bug.

@github-actions github-actions bot added the s-triage Needs to be reviewed, designed and prioritized label Oct 24, 2024
@aagoldberg aagoldberg changed the title Node Version 21 or 22 gRPC issues when installing shuttle Oct 25, 2024
@aagoldberg aagoldberg changed the title gRPC issues when installing shuttle gRPC issues when backfilling shuttle Oct 25, 2024
@aagoldberg
Copy link
Author

gRPC is 2283, whereas rest is usually 2281!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s-triage Needs to be reviewed, designed and prioritized
Projects
None yet
Development

No branches or pull requests

1 participant