Closed mattheworris closed 2 weeks ago
The content-watcher-service fails to execute when used with social-app-template because it can't find /usr/bin/tini.
content-watcher-service
social-app-template
/usr/bin/tini
tini on Alpine lives at /sbin/tini.
tini
/sbin/tini
This results in the following error:
2024-07-02 16:22:04 [Nest] 7 - 07/02/2024, 10:22:04 PM LOG [NestFactory] Starting Nest application... 2024-07-02 16:22:04 [Nest] 7 - 07/02/2024, 10:22:04 PM LOG [InstanceLoader] EventEmitterModule dependencies initialized +22ms 2024-07-02 16:22:04 [Nest] 7 - 07/02/2024, 10:22:04 PM LOG [InstanceLoader] BullBoardModule dependencies initialized +0ms 2024-07-02 16:22:04 [Nest] 7 - 07/02/2024, 10:22:04 PM LOG [InstanceLoader] ConfigHostModule dependencies initialized +0ms 2024-07-02 16:22:04 [Nest] 7 - 07/02/2024, 10:22:04 PM LOG [InstanceLoader] BullBoardFeatureModule dependencies initialized +1ms 2024-07-02 16:22:04 [Nest] 7 - 07/02/2024, 10:22:04 PM LOG [InstanceLoader] BullBoardFeatureModule dependencies initialized +0ms 2024-07-02 16:22:04 [Nest] 7 - 07/02/2024, 10:22:04 PM LOG [InstanceLoader] BullBoardFeatureModule dependencies initialized +0ms 2024-07-02 16:22:04 [Nest] 7 - 07/02/2024, 10:22:04 PM LOG [InstanceLoader] BullBoardFeatureModule dependencies initialized +0ms 2024-07-02 16:22:04 [Nest] 7 - 07/02/2024, 10:22:04 PM LOG [InstanceLoader] BullBoardFeatureModule dependencies initialized +0ms 2024-07-02 16:22:04 [Nest] 7 - 07/02/2024, 10:22:04 PM LOG [InstanceLoader] BullBoardFeatureModule dependencies initialized +0ms 2024-07-02 16:22:04 [Nest] 7 - 07/02/2024, 10:22:04 PM LOG [InstanceLoader] BullBoardFeatureModule dependencies initialized +0ms 2024-07-02 16:22:04 [Nest] 7 - 07/02/2024, 10:22:04 PM LOG [InstanceLoader] BullBoardFeatureModule dependencies initialized +0ms 2024-07-02 16:22:04 [Nest] 7 - 07/02/2024, 10:22:04 PM LOG [InstanceLoader] DiscoveryModule dependencies initialized +0ms 2024-07-02 16:22:04 [Nest] 7 - 07/02/2024, 10:22:04 PM LOG [InstanceLoader] BullBoardRootModule dependencies initialized +0ms 2024-07-02 16:22:04 [Nest] 7 - 07/02/2024, 10:22:04 PM LOG [InstanceLoader] ConfigModule dependencies initialized +0ms 2024-07-02 16:22:04 [Nest] 7 - 07/02/2024, 10:22:04 PM LOG [InstanceLoader] ScheduleModule dependencies initialized +0ms 2024-07-02 16:22:04 [Nest] 7 - 07/02/2024, 10:22:04 PM LOG [InstanceLoader] EventEmitterModule dependencies initialized +0ms 2024-07-02 16:22:04 [Nest] 7 - 07/02/2024, 10:22:04 PM LOG [InstanceLoader] BullModule dependencies initialized +0ms 2024-07-02 16:22:04 [Nest] 7 - 07/02/2024, 10:22:04 PM LOG [InstanceLoader] ConfigModule dependencies initialized +1ms 2024-07-02 16:22:04 [Nest] 7 - 07/02/2024, 10:22:04 PM LOG [InstanceLoader] BullModule dependencies initialized +0ms 2024-07-02 16:22:04 [Nest] 7 - 07/02/2024, 10:22:04 PM LOG [InstanceLoader] BlockchainModule dependencies initialized +2ms 2024-07-02 16:22:04 [Nest] 7 - 07/02/2024, 10:22:04 PM LOG [InstanceLoader] BullModule dependencies initialized +3ms 2024-07-02 16:22:04 [Nest] 7 - 07/02/2024, 10:22:04 PM LOG [InstanceLoader] BullModule dependencies initialized +0ms 2024-07-02 16:22:04 [Nest] 7 - 07/02/2024, 10:22:04 PM LOG [InstanceLoader] BullModule dependencies initialized +0ms 2024-07-02 16:22:04 [Nest] 7 - 07/02/2024, 10:22:04 PM LOG [InstanceLoader] BullModule dependencies initialized +0ms 2024-07-02 16:22:04 [Nest] 7 - 07/02/2024, 10:22:04 PM LOG [InstanceLoader] BullModule dependencies initialized +0ms 2024-07-02 16:22:04 [Nest] 7 - 07/02/2024, 10:22:04 PM LOG [InstanceLoader] BullModule dependencies initialized +0ms 2024-07-02 16:22:04 [Nest] 7 - 07/02/2024, 10:22:04 PM LOG [InstanceLoader] RedisModule dependencies initialized +0ms 2024-07-02 16:22:04 [Nest] 7 - 07/02/2024, 10:22:04 PM LOG [InstanceLoader] IPFSProcessorModule dependencies initialized +0ms 2024-07-02 16:22:04 [Nest] 7 - 07/02/2024, 10:22:04 PM LOG [InstanceLoader] ScannerModule dependencies initialized +0ms 2024-07-02 16:22:04 [Nest] 7 - 07/02/2024, 10:22:04 PM LOG [InstanceLoader] CrawlerModule dependencies initialized +0ms 2024-07-02 16:22:04 [Nest] 7 - 07/02/2024, 10:22:04 PM LOG [InstanceLoader] PubSubModule dependencies initialized +0ms 2024-07-02 16:22:04 [Nest] 7 - 07/02/2024, 10:22:04 PM LOG [InstanceLoader] ApiModule dependencies initialized +0ms 2024-07-02 16:22:04 /app/node_modules/@nestjs/bullmq/dist/hosts/worker-host.class.js:7 2024-07-02 16:22:04 throw new Error('"Worker" has not yet been initialized. Make sure to interact with worker instances after the "onModuleInit" lifecycle hook is triggered, for example, in the "onApplicationBootstrap" hook.'); 2024-07-02 16:22:04 ^ 2024-07-02 16:22:04 2024-07-02 16:22:04 Error: "Worker" has not yet been initialized. Make sure to interact with worker instances after the "onModuleInit" lifecycle hook is triggered, for example, in the "onApplicationBootstrap" hook. 2024-07-02 16:22:04 at get worker [as worker] (/app/node_modules/@nestjs/bullmq/dist/hosts/worker-host.class.js:7:19) 2024-07-02 16:22:04 at CrawlerService.onModuleDestroy (/app/dist/apps/api/main.js:2602:20) 2024-07-02 16:22:04 at MapIterator.iteratee (/app/node_modules/@nestjs/core/hooks/on-module-destroy.hook.js:22:43) 2024-07-02 16:22:04 at MapIterator.next (/app/node_modules/iterare/lib/map.js:13:39) 2024-07-02 16:22:04 at IteratorWithOperators.next (/app/node_modules/iterare/lib/iterate.js:21:28) 2024-07-02 16:22:04 at Function.from (<anonymous>) 2024-07-02 16:22:04 at IteratorWithOperators.toArray (/app/node_modules/iterare/lib/iterate.js:180:22) 2024-07-02 16:22:04 at callOperator (/app/node_modules/@nestjs/core/hooks/on-module-destroy.hook.js:23:10) 2024-07-02 16:22:04 at callModuleDestroyHook (/app/node_modules/@nestjs/core/hooks/on-module-destroy.hook.js:43:23) 2024-07-02 16:22:04 at NestApplication.callDestroyHook (/app/node_modules/@nestjs/core/nest-application-context.js:233:53) 2024-07-02 16:22:04 2024-07-02 16:22:04 Node.js v20.12.2
Dockerfile
docker-compose.yaml
The
content-watcher-service
fails to execute when used withsocial-app-template
because it can't find/usr/bin/tini
.Solution:
tini
on Alpine lives at/sbin/tini
.This results in the following error:
Changes:
Dockerfile
rolled back to Node:Ubuntu/Debian base imagedocker-compose.yaml