Nats StreamNotFound in dev

(#3483) Bug Open: Awaiting confirmation infra self-hosting

Reproduction steps

launch the source code with pnpm dev:tunnel

Observed behaviour

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

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]     }
  1. The pull request fluxer#3699 mentions this post Merged

2 comments

Sign in with Fluxer to comment and vote.
Comment by Rex
RexSystem 1 vote
Status changed from Needs triage to Awaiting confirmation
This should be fixed in self-hosted release 2026.1113.53223. Could you upgrade and tell us if it still happens?
Comment by glyph
glyph 1 vote
I am seeing the same error running under systemd:
Oct 14 16:07:37 moonlight fluxer-api-start[741327]: {"level":"debug","time":"2026-10-14T14:07:37.089Z","service":"fluxer-api","env":"production","err":{"type":"StreamNotFoundError","message":"stream not found","stack":"StreamNotFoundError: stream not found\n    at parseJsResponse (/nix/store/rkqmb3jw7h96x1hzq4ynmxh6l7hkvjkf-fluxer-api-2026.1010.xxx/lib/node_modules/.pnpm/@nats-io+jetstream@3.4.0/node_modules/@nats-io/jetstream/lib/jsbaseclient_api.js:33:23)\n    at StreamAPIImpl.parseJsResponse (/nix/store/rkqmb3jw7h96x1hzq4ynmxh6l7hkvjkf-fluxer-api-2026.1010.xxx/lib/node_modules/.pnpm/@nats-io+jetstream@3.4.0/node_modules/@nats-io/jetstream/lib/jsbaseclient_api.js:134:16)\n    at StreamAPIImpl._request (/nix/store/rkqmb3jw7h96x1hzq4ynmxh6l7hkvjkf-fluxer-api-2026.1010.xxx/lib/node_modules/.pnpm/@nats-io+jetstream@3.4.0/node_modules/@nats-io/jetstream/lib/jsbaseclient_api.js:103:29)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at async StreamAPIImpl.info (/nix/store/rkqmb3jw7h96x1hzq4ynmxh6l7hkvjkf-fluxer-api-2026.1010.xxx/lib/node_modules/.pnpm/@nats-io+jetstream@3.4.0/node_modules/@nats-io/jetstream/lib/jsmstream_api.js:389:19)\n    at async ConsumersImpl.ordered (/nix/store/rkqmb3jw7h96x1hzq4ynmxh6l7hkvjkf-fluxer-api-2026.1010.xxx/lib/node_modules/.pnpm/@nats-io+jetstream@3.4.0/node_modules/@nats-io/jetstream/lib/jsmstream_api.js:159:9)\n    at async watchOnce (file:///nix/store/rkqmb3jw7h96x1hzq4ynmxh6l7hkvjkf-fluxer-api-2026.1010.xxx/lib/fluxer-api/AppEntrypoint.js:93424:20)","name":"StreamNotFoundError"},"msg":"Shared list watch unavailable, retrying"}