diff --git a/packages/cli/src/executors/system/system.executors.ts b/packages/cli/src/executors/system/system.executors.ts index 2c8a99375f97d81ab3be5d69ce4672bdadcd1021..cb3598f25258a455f02bfc0376cc995d63f8d225 100644 --- a/packages/cli/src/executors/system/system.executors.ts +++ b/packages/cli/src/executors/system/system.executors.ts @@ -258,6 +258,13 @@ export class SystemExecutors { spinner.done('Watcher started'); + // Flush redis cache + this.logger.info('Flushing redis cache...'); + const cache = new Redis({ host: '127.0.0.1', port: 6379, password: envMap.get('REDIS_PASSWORD'), lazyConnect: true }); + await cache.connect(); + await cache.flushdb(); + await cache.quit(); + this.logger.info('Starting queue...'); const queue = new Queue('events', { connection: { host: '127.0.0.1', port: 6379, password: envMap.get('REDIS_PASSWORD') } }); this.logger.info('Obliterating queue...'); @@ -295,13 +302,6 @@ export class SystemExecutors { this.logger.info('Starting all apps...'); await appExecutor.startAllApps(); - // Flush redis cache - this.logger.info('Flushing redis cache...'); - const cache = new Redis({ host: '127.0.0.1', port: 6379, password: envMap.get('REDIS_PASSWORD'), lazyConnect: true }); - await cache.connect(); - await cache.flushdb(); - await cache.quit(); - console.log( boxen( `Visit: http://${envMap.get('INTERNAL_IP')}:${envMap.get( diff --git a/src/server/services/system/system.service.ts b/src/server/services/system/system.service.ts index cf13a6819ab8577f2d720c446b3e9e450da4b4c7..813876fdcd65cefd8c1477fa4e98cd57c8be1d8e 100644 --- a/src/server/services/system/system.service.ts +++ b/src/server/services/system/system.service.ts @@ -69,8 +69,6 @@ export class SystemServiceClass { const info = systemInfoSchema.safeParse(readJsonFile('/runtipi/state/system-info.json')); if (!info.success) { - Logger.error('Error parsing system info', info.error); - return { cpu: { load: 0 }, disk: { total: 0, used: 0, available: 0 }, memory: { total: 0, available: 0, used: 0 } }; }