Nats StreamNotFound in dev

(#3483) Bug Needs triage infra self-hosting

Observed behaviour

randomly been getting this error in the server logs. i think the missing stream in question is ACTIONS or something.

Reproduction steps

launch the source code with pnpm dev:tunnel

Build information

Commit 6618a6b

Platform

Self-hosting

Evidence

[worker] [23:26:56.013] DEBUG: Account action consumer unavailable, retrying
[worker]     service: "fluxer-api"
[worker]     env: "development"
[worker]     partition: 63
[worker]     err: {
[worker]       "type": "StreamNotFoundError",
[worker]       "message": "stream not found",
[worker]       "stack":
[worker]           StreamNotFoundError: stream not found
[worker]               at parseJsResponse (/workspaces/fluxer/node_modules/.pnpm/@nats-io+jetstream@3.4.0/node_modules/@nats-io/jetstream/build/src/jsbaseclient_api.ts:54:15)
[worker]               at ConsumerAPIImpl.parseJsResponse (/workspaces/fluxer/node_modules/.pnpm/@nats-io+jetstream@3.4.0/node_modules/@nats-io/jetstream/build/src/jsbaseclient_api.ts:187:12)
[worker]               at ConsumerAPIImpl._request (/workspaces/fluxer/node_modules/.pnpm/@nats-io+jetstream@3.4.0/node_modules/@nats-io/jetstream/build/src/jsbaseclient_api.ts:153:21)
[worker]               at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
[worker]               at async ConsumerAPIImpl.info (/workspaces/fluxer/node_modules/.pnpm/@nats-io+jetstream@3.4.0/node_modules/@nats-io/jetstream/build/src/jsmconsumer_api.ts:238:15)
[worker]               at async ConsumersImpl.get (/workspaces/fluxer/node_modules/.pnpm/@nats-io+jetstream@3.4.0/node_modules/@nats-io/jetstream/build/src/jsmstream_api.ts:241:18)
[worker]               at async runActionPartition (/workspaces/fluxer/fluxer_api/src/api/worker/AccountActionConsumer.ts:121:21)
[worker]       "name": "StreamNotFoundError"
[worker]     }
[api] [23:39:15.404] DEBUG: Shared list watch unavailable, retrying                                                                                                                                              
[api]     service: "fluxer-api"                                                                                                                                                                                  
[api]     env: "development"                                                                                                                                                                                     
[api]     err: {                                                                                                                                                                                                 
[api]       "type": "StreamNotFoundError",                                                                                                                                                                       
[api]       "message": "stream not found",                                                                                                                                                                       
[api]       "stack":                                                                                                                                                                                             
[api]           StreamNotFoundError: stream not found                                                                                                                                                            
[api]               at parseJsResponse (/workspaces/fluxer/node_modules/.pnpm/@nats-io+jetstream@3.4.0/node_modules/@nats-io/jetstream/build/src/jsbaseclient_api.ts:54:15)                                      
[api]               at StreamAPIImpl.parseJsResponse (/workspaces/fluxer/node_modules/.pnpm/@nats-io+jetstream@3.4.0/node_modules/@nats-io/jetstream/build/src/jsbaseclient_api.ts:187:12)                       
[api]               at StreamAPIImpl._request (/workspaces/fluxer/node_modules/.pnpm/@nats-io+jetstream@3.4.0/node_modules/@nats-io/jetstream/build/src/jsbaseclient_api.ts:153:21)                              
[api]               at process.processTicksAndRejections (node:internal/process/task_queues:104:5)                                                                                                               
[api]               at async StreamAPIImpl.info (/workspaces/fluxer/node_modules/.pnpm/@nats-io+jetstream@3.4.0/node_modules/@nats-io/jetstream/build/src/jsmstream_api.ts:573:15)                               
[api]               at async ConsumersImpl.ordered (/workspaces/fluxer/node_modules/.pnpm/@nats-io+jetstream@3.4.0/node_modules/@nats-io/jetstream/build/src/jsmstream_api.ts:267:5)                             
[api]               at async watchOnce (/workspaces/fluxer/fluxer_api/src/api/infrastructure/activity/SharedLists.ts:75:19)                                                                                      
[api]       "name": "StreamNotFoundError"                                                                                                                                                                        
[api]     }

Comments

Sign in with Fluxer to comment and vote.

No comments yet.