jorenn92 / Maintainerr

Looks and smells like Overseerr, does the opposite. Maintenance tool for the Plex ecosystem
https://maintainerr.info
MIT License
858 stars 19 forks source link

[BUG] QueryFailedError: SQLITE_ERROR: no such table: settings on fresh install #679

Closed bcurran3 closed 10 months ago

bcurran3 commented 11 months ago

App looks very useful, anxious to try it out!

Describe the bug New install, SQL errors. Please see below pasted logs.

To Reproduce Steps to reproduce the behavior: Installed basically following instructions, using Ansible instead of Docker Compose. Diffs are memory restraint of 512mb and a bunch of traefik labels.

Expected behavior webserver start and access app

Screenshots n/a

Device (please complete the following information):

Additional context LOGS:

2023-12-23 22:40:34,072 INFO success: server entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [NestFactory] Starting Nest application...
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [PlexApiService] Plex API isn't fully initialized, required settings aren't set
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [InstanceLoader] ExternalApiModule dependencies initialized +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [InstanceLoader] DiscoveryModule dependencies initialized +58ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [InstanceLoader] TasksModule dependencies initialized +2ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [InstanceLoader] PlexApiModule dependencies initialized +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [InstanceLoader] ServarrApiModule dependencies initialized +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [InstanceLoader] OverseerrApiModule dependencies initialized +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [InstanceLoader] InternalApiModule dependencies initialized +1ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [InstanceLoader] TmdbApiModule dependencies initialized +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [InstanceLoader] ScheduleModule dependencies initialized +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [InstanceLoader] AppModule dependencies initialized +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [InstanceLoader] TypeOrmCoreModule dependencies initialized +21ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [InstanceLoader] SettingsModule dependencies initialized +1ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [InstanceLoader] CollectionsModule dependencies initialized +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [InstanceLoader] RulesModule dependencies initialized +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RoutesResolver] AppController {/}: +9ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RoutesResolver] SettingsController {/api/settings}: +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/settings, GET} route +3ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/settings/version, GET} route +1ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/settings/api/generate, GET} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/settings/plex/auth, DELETE} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/settings, POST} route +1ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/settings/test/setup, GET} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/settings/test/overseerr, GET} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/settings/test/radarr, GET} route +1ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/settings/test/sonarr, GET} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/settings/test/plex, GET} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/settings/cron/validate, POST} route +1ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RoutesResolver] PlexApiController {/api/plex}: +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/plex, GET} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/plex/libraries, GET} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/plex/library/:id/content/:page?, GET} route +1ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/plex/meta/:id, GET} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/plex/meta/:id/seen, GET} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/plex/users, GET} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/plex/meta/:id/children, GET} route +1ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/plex/library/:id/recent, GET} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/plex/library/:id/collections, GET} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/:collectionId, GET} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/:collectionId/children, GET} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/plex/search/:input, GET} route +1ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/:collectionId/child/:childId, PUT} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/:collectionId/child/:childId, DELETE} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/update, PUT} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/create, POST} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/:collectionId, DELETE} route +1ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/settings, PUT} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RoutesResolver] RadarrController {/api/radarr}: +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/radarr, GET} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/radarr/test, GET} route +1ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RoutesResolver] OverseerrApiController {/api/overseerr}: +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/overseerr/movie/:id, GET} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/overseerr/show/:id, GET} route +1ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/overseerr/request/:requestId, DELETE} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/overseerr/media/:mediaId, DELETE} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/overseerr/media/tmdb/:mediaId, DELETE} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RoutesResolver] InternalApiController {/api/maintainerr}: +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RoutesResolver] TmdbApiController {/api/moviedb}: +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/moviedb/person/:personId, GET} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/moviedb/movie/imdb/:id, GET} route +1ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/moviedb/image/:type/:tmdbId, GET} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RoutesResolver] RulesController {/api/rules}: +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/rules/constants, GET} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/rules/schedule/update, PUT} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/rules/community, GET} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/rules/community/karma/history, GET} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/rules/exclusion, GET} route +1ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/rules/:id, GET} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/rules, GET} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/rules/:id, DELETE} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/rules/execute, POST} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/rules, POST} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/rules/exclusion, POST} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/rules/exclusion/:id, DELETE} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/rules/exclusions/:plexId, DELETE} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/rules, PUT} route +1ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/rules, POST} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/rules/community, POST} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/rules/community/karma, POST} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RoutesResolver] CollectionsController {/api/collections}: +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/collections, POST} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/collections/add, POST} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/collections/remove, POST} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/collections/removeCollection, POST} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/collections, PUT} route +1ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/collections/handle, POST} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/collections/schedule/update, PUT} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/collections/deactivate/:id, GET} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/collections/activate/:id, GET} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/collections, GET} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/collections/collection/:id, GET} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/collections/media/add, POST} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/collections/media, DELETE} route +0ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/collections/media, GET} route +1ms
[Nest] 2491  - 12/23/2023, 2:40:34 PM     LOG [RouterExplorer] Mapped {/api/collections/media/:id/content/:page, GET} route +0ms
/opt/node_modules/typeorm/driver/sqlite/SqliteQueryRunner.js:81
                    fail(new QueryFailedError_1.QueryFailedError(query, parameters, err));
                         ^
QueryFailedError: SQLITE_ERROR: no such table: settings
    at handler (/opt/node_modules/typeorm/driver/sqlite/SqliteQueryRunner.js:81:26)
    at replacement (/opt/node_modules/sqlite3/lib/trace.js:25:27)
    at Statement.errBack (/opt/node_modules/sqlite3/lib/sqlite3.js:15:21) {
  query: 'SELECT "Settings"."id" AS "Settings_id", "Settings"."clientId" AS "Settings_clientId", "Settings"."applicationTitle" AS "Settings_applicationTitle", "Settings"."applicationUrl" AS "Settings_applicationUrl", "Settings"."apikey" AS "Settings_apikey", "Settings"."overseerr_url" AS "Settings_overseerr_url", "Settings"."locale" AS "Settings_locale", "Settings"."cacheImages" AS "Settings_cacheImages", "Settings"."plex_name" AS "Settings_plex_name", "Settings"."plex_hostname" AS "Settings_plex_hostname", "Settings"."plex_port" AS "Settings_plex_port", "Settings"."plex_ssl" AS "Settings_plex_ssl", "Settings"."plex_auth_token" AS "Settings_plex_auth_token", "Settings"."overseerr_api_key" AS "Settings_overseerr_api_key", "Settings"."radarr_url" AS "Settings_radarr_url", "Settings"."radarr_api_key" AS "Settings_radarr_api_key", "Settings"."sonarr_url" AS "Settings_sonarr_url", "Settings"."sonarr_api_key" AS "Settings_sonarr_api_key", "Settings"."collection_handler_job_cron" AS "Settings_collection_handler_job_cron", "Settings"."rules_handler_job_cron" AS "Settings_rules_handler_job_cron" FROM "settings" "Settings" LIMIT 1',
  parameters: [],
  driverError: Error: SQLITE_ERROR: no such table: settings
  --> in Database#all('SELECT "Settings"."id" AS "Settings_id", "Settings"."clientId" AS "Settings_clientId", "Settings"."applicationTitle" AS "Settings_applicationTitle", "Settings"."applicationUrl" AS "Settings_applicationUrl", "Settings"."apikey" AS "Settings_apikey", "Settings"."overseerr_url" AS "Settings_overseerr_url", "Settings"."locale" AS "Settings_locale", "Settings"."cacheImages" AS "Settings_cacheImages", "Settings"."plex_name" AS "Settings_plex_name", "Settings"."plex_hostname" AS "Settings_plex_hostname", "Settings"."plex_port" AS "Settings_plex_port", "Settings"."plex_ssl" AS "Settings_plex_ssl", "Settings"."plex_auth_token" AS "Settings_plex_auth_token", "Settings"."overseerr_api_key" AS "Settings_overseerr_api_key", "Settings"."radarr_url" AS "Settings_radarr_url", "Settings"."radarr_api_key" AS "Settings_radarr_api_key", "Settings"."sonarr_url" AS "Settings_sonarr_url", "Settings"."sonarr_api_key" AS "Settings_sonarr_api_key", "Settings"."collection_handler_job_cron" AS "Settings_collection_handler_job_cron", "Settings"."rules_handler_job_cron" AS "Settings_rules_handler_job_cron" FROM "settings" "Settings" LIMIT 1', [], [Function: handler])
      at execute (/opt/node_modules/typeorm/driver/sqlite/SqliteQueryRunner.js:62:46)
      at /opt/node_modules/typeorm/driver/sqlite/SqliteQueryRunner.js:103:19 {
    errno: 1,
    code: 'SQLITE_ERROR',
    __augmented: true
  },
  errno: 1,
  code: 'SQLITE_ERROR',
  __augmented: true
}
Node.js v20.10.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
2023-12-23 22:40:34,374 WARN exited: server (exit status 1; not expected)
2023-12-23 22:40:35,376 INFO spawned: 'docs' with pid 2506
2023-12-23 22:40:35,378 INFO spawned: 'server' with pid 2507
yarn run v1.22.19
$ cd server && node dist/main
2023-12-23 22:40:35,690 WARN exited: docs (exit status 126; not expected)
jorenn92 commented 11 months ago

Hey, i’m not exactly sure what i’m looking at. Is this the full log? Before starting the ui & server process, there should be database migrations. These migrations create the table you’re missing.

Does it say anything else before booting the server?

Is it possible you’re not booting the container with the correct entrypoint script when using ansible?

bcurran3 commented 11 months ago

Hi. Yes, full log - or more precisely the part the repeats itself. I didn't see anything else. The log just continuously loops the same info.

Shouldn't be a migration as there's nothing to migrate from, it's a brand new install.

RE: entrypoint. Um, I don't see any defined entrypoint. I'm working off the docker compose file shown in the instructions.

version: '3'

services:
  maintainerr:
    image: jorenn92/maintainerr:latest
    container_name: maintainerr
    volumes:
      - <persistent-local-volume>:/opt/data
    environment:
      - TZ=Europe/Brussels
    ports:
      - 8154:80
    restart: unless-stopped

With Ansible just becomes: (variables are self explanatory)

- name: Create Maintainerr Docker Container
  docker_container:
    name: maintainerr
    image: "{{ maintainerr_docker_image }}"
    pull: true
    ports:
      - "{{ maintainerr_port }}:80"
    volumes:
      - "{{ maintainerr_data_directory }}/data:/opt/data"
    env:
      TZ: "{{ ansible_timezone }}"
    restart_policy: unless-stopped

End result is I get a 0 byte maintainerr.sqlite file in persistent data directory. I chmod +777'd it for testing and no difference.

Did I miss something in the instructions? Are the instructions missing something?

jorenn92 commented 11 months ago

There’s no instruction missing. It should perform all migrations before starting anything else. When there’s no database file present, the process should create the file and run all migrations.

The migration log would be the very first thing logged. Perhaps something else went wrong ( folder permissions?)

Could you try to run the container without Ansible (just with normal compose)?

bcurran3 commented 11 months ago

Sure.

version: '3'

services:
  maintainerr:
    image: jorenn92/maintainerr:latest
    container_name: maintainerr
    volumes:
      - /data/docker/maintainerr/data:/opt/data
    environment:
      - TZ=America/Los_Angeles
    ports:
      - 8154:80
    restart: unless-stopped

result:

$ cd server && node dist/main
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [NestFactory] Starting Nest application...
2023-12-28 20:54:39,289 INFO success: server entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [PlexApiService] Plex API isn't fully initialized, required settings aren't set
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [InstanceLoader] ExternalApiModule dependencies initialized +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [InstanceLoader] DiscoveryModule dependencies initialized +38ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [InstanceLoader] TasksModule dependencies initialized +1ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [InstanceLoader] PlexApiModule dependencies initialized +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [InstanceLoader] ServarrApiModule dependencies initialized +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [InstanceLoader] OverseerrApiModule dependencies initialized +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [InstanceLoader] InternalApiModule dependencies initialized +1ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [InstanceLoader] TmdbApiModule dependencies initialized +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [InstanceLoader] ScheduleModule dependencies initialized +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [InstanceLoader] AppModule dependencies initialized +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [InstanceLoader] TypeOrmCoreModule dependencies initialized +17ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [InstanceLoader] SettingsModule dependencies initialized +1ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [InstanceLoader] CollectionsModule dependencies initialized +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [InstanceLoader] RulesModule dependencies initialized +1ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RoutesResolver] AppController {/}: +8ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RoutesResolver] SettingsController {/api/settings}: +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/settings, GET} route +3ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/settings/version, GET} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/settings/api/generate, GET} route +1ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/settings/plex/auth, DELETE} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/settings, POST} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/settings/test/setup, GET} route +1ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/settings/test/overseerr, GET} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/settings/test/radarr, GET} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/settings/test/sonarr, GET} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/settings/test/plex, GET} route +1ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/settings/cron/validate, POST} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RoutesResolver] PlexApiController {/api/plex}: +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/plex, GET} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/plex/libraries, GET} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/plex/library/:id/content/:page?, GET} route +1ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/plex/meta/:id, GET} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/plex/meta/:id/seen, GET} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/plex/users, GET} route +1ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/plex/meta/:id/children, GET} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/plex/library/:id/recent, GET} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/plex/library/:id/collections, GET} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/:collectionId, GET} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/:collectionId/children, GET} route +1ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/plex/search/:input, GET} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/:collectionId/child/:childId, PUT} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/:collectionId/child/:childId, DELETE} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/update, PUT} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/create, POST} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/:collectionId, DELETE} route +1ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/settings, PUT} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RoutesResolver] RadarrController {/api/radarr}: +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/radarr, GET} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/radarr/test, GET} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RoutesResolver] OverseerrApiController {/api/overseerr}: +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/overseerr/movie/:id, GET} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/overseerr/show/:id, GET} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/overseerr/request/:requestId, DELETE} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/overseerr/media/:mediaId, DELETE} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/overseerr/media/tmdb/:mediaId, DELETE} route +1ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RoutesResolver] InternalApiController {/api/maintainerr}: +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RoutesResolver] TmdbApiController {/api/moviedb}: +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/moviedb/person/:personId, GET} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/moviedb/movie/imdb/:id, GET} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/moviedb/image/:type/:tmdbId, GET} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RoutesResolver] RulesController {/api/rules}: +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/rules/constants, GET} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/rules/schedule/update, PUT} route +1ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/rules/community, GET} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/rules/community/karma/history, GET} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/rules/exclusion, GET} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/rules/:id, GET} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/rules, GET} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/rules/:id, DELETE} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/rules/execute, POST} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/rules, POST} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/rules/exclusion, POST} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/rules/exclusion/:id, DELETE} route +1ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/rules/exclusions/:plexId, DELETE} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/rules, PUT} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/rules, POST} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/rules/community, POST} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/rules/community/karma, POST} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RoutesResolver] CollectionsController {/api/collections}: +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/collections, POST} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/collections/add, POST} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/collections/remove, POST} route +1ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/collections/removeCollection, POST} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/collections, PUT} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/collections/handle, POST} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/collections/schedule/update, PUT} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/collections/deactivate/:id, GET} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/collections/activate/:id, GET} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/collections, GET} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/collections/collection/:id, GET} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/collections/media/add, POST} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/collections/media, DELETE} route +1ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/collections/media, GET} route +0ms
[Nest] 2667  - 12/28/2023, 12:54:39 PM     LOG [RouterExplorer] Mapped {/api/collections/media/:id/content/:page, GET} route +0ms
/opt/node_modules/typeorm/driver/sqlite/SqliteQueryRunner.js:81
                    fail(new QueryFailedError_1.QueryFailedError(query, parameters, err));
                         ^
QueryFailedError: SQLITE_ERROR: no such table: settings
    at handler (/opt/node_modules/typeorm/driver/sqlite/SqliteQueryRunner.js:81:26)
    at replacement (/opt/node_modules/sqlite3/lib/trace.js:25:27)
    at Statement.errBack (/opt/node_modules/sqlite3/lib/sqlite3.js:15:21) {
  query: 'SELECT "Settings"."id" AS "Settings_id", "Settings"."clientId" AS "Settings_clientId", "Settings"."applicationTitle" AS "Settings_applicationTitle", "Settings"."applicationUrl" AS "Settings_applicationUrl", "Settings"."apikey" AS "Settings_apikey", "Settings"."overseerr_url" AS "Settings_overseerr_url", "Settings"."locale" AS "Settings_locale", "Settings"."cacheImages" AS "Settings_cacheImages", "Settings"."plex_name" AS "Settings_plex_name", "Settings"."plex_hostname" AS "Settings_plex_hostname", "Settings"."plex_port" AS "Settings_plex_port", "Settings"."plex_ssl" AS "Settings_plex_ssl", "Settings"."plex_auth_token" AS "Settings_plex_auth_token", "Settings"."overseerr_api_key" AS "Settings_overseerr_api_key", "Settings"."radarr_url" AS "Settings_radarr_url", "Settings"."radarr_api_key" AS "Settings_radarr_api_key", "Settings"."sonarr_url" AS "Settings_sonarr_url", "Settings"."sonarr_api_key" AS "Settings_sonarr_api_key", "Settings"."collection_handler_job_cron" AS "Settings_collection_handler_job_cron", "Settings"."rules_handler_job_cron" AS "Settings_rules_handler_job_cron" FROM "settings" "Settings" LIMIT 1',
  parameters: [],
  driverError: Error: SQLITE_ERROR: no such table: settings
  --> in Database#all('SELECT "Settings"."id" AS "Settings_id", "Settings"."clientId" AS "Settings_clientId", "Settings"."applicationTitle" AS "Settings_applicationTitle", "Settings"."applicationUrl" AS "Settings_applicationUrl", "Settings"."apikey" AS "Settings_apikey", "Settings"."overseerr_url" AS "Settings_overseerr_url", "Settings"."locale" AS "Settings_locale", "Settings"."cacheImages" AS "Settings_cacheImages", "Settings"."plex_name" AS "Settings_plex_name", "Settings"."plex_hostname" AS "Settings_plex_hostname", "Settings"."plex_port" AS "Settings_plex_port", "Settings"."plex_ssl" AS "Settings_plex_ssl", "Settings"."plex_auth_token" AS "Settings_plex_auth_token", "Settings"."overseerr_api_key" AS "Settings_overseerr_api_key", "Settings"."radarr_url" AS "Settings_radarr_url", "Settings"."radarr_api_key" AS "Settings_radarr_api_key", "Settings"."sonarr_url" AS "Settings_sonarr_url", "Settings"."sonarr_api_key" AS "Settings_sonarr_api_key", "Settings"."collection_handler_job_cron" AS "Settings_collection_handler_job_cron", "Settings"."rules_handler_job_cron" AS "Settings_rules_handler_job_cron" FROM "settings" "Settings" LIMIT 1', [], [Function: handler])
      at execute (/opt/node_modules/typeorm/driver/sqlite/SqliteQueryRunner.js:62:46)
      at /opt/node_modules/typeorm/driver/sqlite/SqliteQueryRunner.js:103:19 {
    errno: 1,
    code: 'SQLITE_ERROR',
    __augmented: true
  },
  errno: 1,
  code: 'SQLITE_ERROR',
  __augmented: true
}
Node.js v20.10.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
2023-12-28 20:54:39,465 WARN exited: server (exit status 1; not expected)
2023-12-28 20:54:40,467 INFO spawned: 'server' with pid 2682
yarn run v1.22.19
$ cd server && node dist/main
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [NestFactory] Starting Nest application...
2023-12-28 20:54:41,699 INFO success: server entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [PlexApiService] Plex API isn't fully initialized, required settings aren't set
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +1ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [InstanceLoader] ExternalApiModule dependencies initialized +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [InstanceLoader] DiscoveryModule dependencies initialized +46ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [InstanceLoader] TasksModule dependencies initialized +1ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [InstanceLoader] PlexApiModule dependencies initialized +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [InstanceLoader] ServarrApiModule dependencies initialized +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [InstanceLoader] OverseerrApiModule dependencies initialized +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [InstanceLoader] InternalApiModule dependencies initialized +1ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [InstanceLoader] TmdbApiModule dependencies initialized +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [InstanceLoader] ScheduleModule dependencies initialized +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [InstanceLoader] AppModule dependencies initialized +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [InstanceLoader] TypeOrmCoreModule dependencies initialized +16ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +1ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [InstanceLoader] SettingsModule dependencies initialized +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [InstanceLoader] CollectionsModule dependencies initialized +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [InstanceLoader] RulesModule dependencies initialized +1ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RoutesResolver] AppController {/}: +8ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RoutesResolver] SettingsController {/api/settings}: +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/settings, GET} route +2ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/settings/version, GET} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/settings/api/generate, GET} route +1ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/settings/plex/auth, DELETE} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/settings, POST} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/settings/test/setup, GET} route +1ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/settings/test/overseerr, GET} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/settings/test/radarr, GET} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/settings/test/sonarr, GET} route +1ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/settings/test/plex, GET} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/settings/cron/validate, POST} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RoutesResolver] PlexApiController {/api/plex}: +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/plex, GET} route +1ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/plex/libraries, GET} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/plex/library/:id/content/:page?, GET} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/plex/meta/:id, GET} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/plex/meta/:id/seen, GET} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/plex/users, GET} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/plex/meta/:id/children, GET} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/plex/library/:id/recent, GET} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/plex/library/:id/collections, GET} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/:collectionId, GET} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/:collectionId/children, GET} route +1ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/plex/search/:input, GET} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/:collectionId/child/:childId, PUT} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/:collectionId/child/:childId, DELETE} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/update, PUT} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/create, POST} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/:collectionId, DELETE} route +1ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/settings, PUT} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RoutesResolver] RadarrController {/api/radarr}: +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/radarr, GET} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/radarr/test, GET} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RoutesResolver] OverseerrApiController {/api/overseerr}: +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/overseerr/movie/:id, GET} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/overseerr/show/:id, GET} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/overseerr/request/:requestId, DELETE} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/overseerr/media/:mediaId, DELETE} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/overseerr/media/tmdb/:mediaId, DELETE} route +1ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RoutesResolver] InternalApiController {/api/maintainerr}: +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RoutesResolver] TmdbApiController {/api/moviedb}: +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/moviedb/person/:personId, GET} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/moviedb/movie/imdb/:id, GET} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/moviedb/image/:type/:tmdbId, GET} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RoutesResolver] RulesController {/api/rules}: +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/rules/constants, GET} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/rules/schedule/update, PUT} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/rules/community, GET} route +1ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/rules/community/karma/history, GET} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/rules/exclusion, GET} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/rules/:id, GET} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/rules, GET} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/rules/:id, DELETE} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/rules/execute, POST} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/rules, POST} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/rules/exclusion, POST} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/rules/exclusion/:id, DELETE} route +1ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/rules/exclusions/:plexId, DELETE} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/rules, PUT} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/rules, POST} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/rules/community, POST} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/rules/community/karma, POST} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RoutesResolver] CollectionsController {/api/collections}: +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/collections, POST} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/collections/add, POST} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/collections/remove, POST} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/collections/removeCollection, POST} route +1ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/collections, PUT} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/collections/handle, POST} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/collections/schedule/update, PUT} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/collections/deactivate/:id, GET} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/collections/activate/:id, GET} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/collections, GET} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/collections/collection/:id, GET} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/collections/media/add, POST} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/collections/media, DELETE} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/collections/media, GET} route +0ms
[Nest] 2707  - 12/28/2023, 12:54:41 PM     LOG [RouterExplorer] Mapped {/api/collections/media/:id/content/:page, GET} route +1ms
/opt/node_modules/typeorm/driver/sqlite/SqliteQueryRunner.js:81
                    fail(new QueryFailedError_1.QueryFailedError(query, parameters, err));
                         ^
QueryFailedError: SQLITE_ERROR: no such table: settings
    at handler (/opt/node_modules/typeorm/driver/sqlite/SqliteQueryRunner.js:81:26)
    at replacement (/opt/node_modules/sqlite3/lib/trace.js:25:27)
    at Statement.errBack (/opt/node_modules/sqlite3/lib/sqlite3.js:15:21) {
  query: 'SELECT "Settings"."id" AS "Settings_id", "Settings"."clientId" AS "Settings_clientId", "Settings"."applicationTitle" AS "Settings_applicationTitle", "Settings"."applicationUrl" AS "Settings_applicationUrl", "Settings"."apikey" AS "Settings_apikey", "Settings"."overseerr_url" AS "Settings_overseerr_url", "Settings"."locale" AS "Settings_locale", "Settings"."cacheImages" AS "Settings_cacheImages", "Settings"."plex_name" AS "Settings_plex_name", "Settings"."plex_hostname" AS "Settings_plex_hostname", "Settings"."plex_port" AS "Settings_plex_port", "Settings"."plex_ssl" AS "Settings_plex_ssl", "Settings"."plex_auth_token" AS "Settings_plex_auth_token", "Settings"."overseerr_api_key" AS "Settings_overseerr_api_key", "Settings"."radarr_url" AS "Settings_radarr_url", "Settings"."radarr_api_key" AS "Settings_radarr_api_key", "Settings"."sonarr_url" AS "Settings_sonarr_url", "Settings"."sonarr_api_key" AS "Settings_sonarr_api_key", "Settings"."collection_handler_job_cron" AS "Settings_collection_handler_job_cron", "Settings"."rules_handler_job_cron" AS "Settings_rules_handler_job_cron" FROM "settings" "Settings" LIMIT 1',
  parameters: [],
  driverError: Error: SQLITE_ERROR: no such table: settings
  --> in Database#all('SELECT "Settings"."id" AS "Settings_id", "Settings"."clientId" AS "Settings_clientId", "Settings"."applicationTitle" AS "Settings_applicationTitle", "Settings"."applicationUrl" AS "Settings_applicationUrl", "Settings"."apikey" AS "Settings_apikey", "Settings"."overseerr_url" AS "Settings_overseerr_url", "Settings"."locale" AS "Settings_locale", "Settings"."cacheImages" AS "Settings_cacheImages", "Settings"."plex_name" AS "Settings_plex_name", "Settings"."plex_hostname" AS "Settings_plex_hostname", "Settings"."plex_port" AS "Settings_plex_port", "Settings"."plex_ssl" AS "Settings_plex_ssl", "Settings"."plex_auth_token" AS "Settings_plex_auth_token", "Settings"."overseerr_api_key" AS "Settings_overseerr_api_key", "Settings"."radarr_url" AS "Settings_radarr_url", "Settings"."radarr_api_key" AS "Settings_radarr_api_key", "Settings"."sonarr_url" AS "Settings_sonarr_url", "Settings"."sonarr_api_key" AS "Settings_sonarr_api_key", "Settings"."collection_handler_job_cron" AS "Settings_collection_handler_job_cron", "Settings"."rules_handler_job_cron" AS "Settings_rules_handler_job_cron" FROM "settings" "Settings" LIMIT 1', [], [Function: handler])
      at execute (/opt/node_modules/typeorm/driver/sqlite/SqliteQueryRunner.js:62:46)
      at /opt/node_modules/typeorm/driver/sqlite/SqliteQueryRunner.js:103:19 {
    errno: 1,
    code: 'SQLITE_ERROR',
    __augmented: true
  },
  errno: 1,
  code: 'SQLITE_ERROR',
  __augmented: true
}
Node.js v20.10.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
2023-12-28 20:54:41,867 WARN exited: server (exit status 1; not expected)
2023-12-28 20:54:42,869 INFO spawned: 'server' with pid 2722
yarn run v1.22.19
$ cd server && node dist/main

I also deleted the existing 0 byte maintainerr.sqlite file and the same looping errors continue.

sudo chmod +777 * -R 'd the data dir and same results.

tree

.
├── data
│   └── maintainerr.sqlite
└── docker-compose.yml

1 directory, 2 files
bcurran3 commented 11 months ago

So for shits and giggles I ran

version: '3'

services:
  maintainerr:
    image: jorenn92/maintainerr:latest
    container_name: maintainerr
#    volumes:
#      - /data/docker/maintainerr/data:/opt/data
    environment:
      - TZ=America/Los_Angeles
    ports:
      - 8154:80
    restart: unless-stopped

...and I have the exact same problem.

$ cd server && node dist/main
2023-12-28 21:07:20,267 INFO spawned: 'docs' with pid 2579
2023-12-28 21:07:20,268 INFO success: server entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [NestFactory] Starting Nest application...
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [PlexApiService] Plex API isn't fully initialized, required settings aren't set
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +1ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [InstanceLoader] ExternalApiModule dependencies initialized +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [InstanceLoader] DiscoveryModule dependencies initialized +89ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [InstanceLoader] TasksModule dependencies initialized +3ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [InstanceLoader] PlexApiModule dependencies initialized +1ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [InstanceLoader] ServarrApiModule dependencies initialized +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [InstanceLoader] OverseerrApiModule dependencies initialized +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [InstanceLoader] InternalApiModule dependencies initialized +1ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [InstanceLoader] TmdbApiModule dependencies initialized +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [InstanceLoader] ScheduleModule dependencies initialized +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [InstanceLoader] AppModule dependencies initialized +1ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [InstanceLoader] TypeOrmCoreModule dependencies initialized +45ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [InstanceLoader] SettingsModule dependencies initialized +1ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [InstanceLoader] CollectionsModule dependencies initialized +1ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [InstanceLoader] RulesModule dependencies initialized +0ms
2023-12-28 21:07:20,750 WARN exited: docs (exit status 126; not expected)
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RoutesResolver] AppController {/}: +14ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RoutesResolver] SettingsController {/api/settings}: +1ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/settings, GET} route +3ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/settings/version, GET} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/settings/api/generate, GET} route +1ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/settings/plex/auth, DELETE} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/settings, POST} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/settings/test/setup, GET} route +1ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/settings/test/overseerr, GET} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/settings/test/radarr, GET} route +1ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/settings/test/sonarr, GET} route +1ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/settings/test/plex, GET} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/settings/cron/validate, POST} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RoutesResolver] PlexApiController {/api/plex}: +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/plex, GET} route +1ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/plex/libraries, GET} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/plex/library/:id/content/:page?, GET} route +1ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/plex/meta/:id, GET} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/plex/meta/:id/seen, GET} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/plex/users, GET} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/plex/meta/:id/children, GET} route +1ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/plex/library/:id/recent, GET} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/plex/library/:id/collections, GET} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/:collectionId, GET} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/:collectionId/children, GET} route +1ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/plex/search/:input, GET} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/:collectionId/child/:childId, PUT} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/:collectionId/child/:childId, DELETE} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/update, PUT} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/create, POST} route +1ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/:collectionId, DELETE} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/settings, PUT} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RoutesResolver] RadarrController {/api/radarr}: +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/radarr, GET} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/radarr/test, GET} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RoutesResolver] OverseerrApiController {/api/overseerr}: +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/overseerr/movie/:id, GET} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/overseerr/show/:id, GET} route +1ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/overseerr/request/:requestId, DELETE} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/overseerr/media/:mediaId, DELETE} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/overseerr/media/tmdb/:mediaId, DELETE} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RoutesResolver] InternalApiController {/api/maintainerr}: +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RoutesResolver] TmdbApiController {/api/moviedb}: +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/moviedb/person/:personId, GET} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/moviedb/movie/imdb/:id, GET} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/moviedb/image/:type/:tmdbId, GET} route +1ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RoutesResolver] RulesController {/api/rules}: +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/rules/constants, GET} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/rules/schedule/update, PUT} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/rules/community, GET} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/rules/community/karma/history, GET} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/rules/exclusion, GET} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/rules/:id, GET} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/rules, GET} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/rules/:id, DELETE} route +1ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/rules/execute, POST} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/rules, POST} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/rules/exclusion, POST} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/rules/exclusion/:id, DELETE} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/rules/exclusions/:plexId, DELETE} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/rules, PUT} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/rules, POST} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/rules/community, POST} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/rules/community/karma, POST} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RoutesResolver] CollectionsController {/api/collections}: +1ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/collections, POST} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/collections/add, POST} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/collections/remove, POST} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/collections/removeCollection, POST} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/collections, PUT} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/collections/handle, POST} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/collections/schedule/update, PUT} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/collections/deactivate/:id, GET} route +1ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/collections/activate/:id, GET} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/collections, GET} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/collections/collection/:id, GET} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/collections/media/add, POST} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/collections/media, DELETE} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/collections/media, GET} route +0ms
[Nest] 2569  - 12/28/2023, 1:07:20 PM     LOG [RouterExplorer] Mapped {/api/collections/media/:id/content/:page, GET} route +0ms
/opt/node_modules/typeorm/driver/sqlite/SqliteQueryRunner.js:81
                    fail(new QueryFailedError_1.QueryFailedError(query, parameters, err));
                         ^
QueryFailedError: SQLITE_ERROR: no such table: settings
    at handler (/opt/node_modules/typeorm/driver/sqlite/SqliteQueryRunner.js:81:26)
    at replacement (/opt/node_modules/sqlite3/lib/trace.js:25:27)
    at Statement.errBack (/opt/node_modules/sqlite3/lib/sqlite3.js:15:21) {
  query: 'SELECT "Settings"."id" AS "Settings_id", "Settings"."clientId" AS "Settings_clientId", "Settings"."applicationTitle" AS "Settings_applicationTitle", "Settings"."applicationUrl" AS "Settings_applicationUrl", "Settings"."apikey" AS "Settings_apikey", "Settings"."overseerr_url" AS "Settings_overseerr_url", "Settings"."locale" AS "Settings_locale", "Settings"."cacheImages" AS "Settings_cacheImages", "Settings"."plex_name" AS "Settings_plex_name", "Settings"."plex_hostname" AS "Settings_plex_hostname", "Settings"."plex_port" AS "Settings_plex_port", "Settings"."plex_ssl" AS "Settings_plex_ssl", "Settings"."plex_auth_token" AS "Settings_plex_auth_token", "Settings"."overseerr_api_key" AS "Settings_overseerr_api_key", "Settings"."radarr_url" AS "Settings_radarr_url", "Settings"."radarr_api_key" AS "Settings_radarr_api_key", "Settings"."sonarr_url" AS "Settings_sonarr_url", "Settings"."sonarr_api_key" AS "Settings_sonarr_api_key", "Settings"."collection_handler_job_cron" AS "Settings_collection_handler_job_cron", "Settings"."rules_handler_job_cron" AS "Settings_rules_handler_job_cron" FROM "settings" "Settings" LIMIT 1',
  parameters: [],
  driverError: Error: SQLITE_ERROR: no such table: settings
  --> in Database#all('SELECT "Settings"."id" AS "Settings_id", "Settings"."clientId" AS "Settings_clientId", "Settings"."applicationTitle" AS "Settings_applicationTitle", "Settings"."applicationUrl" AS "Settings_applicationUrl", "Settings"."apikey" AS "Settings_apikey", "Settings"."overseerr_url" AS "Settings_overseerr_url", "Settings"."locale" AS "Settings_locale", "Settings"."cacheImages" AS "Settings_cacheImages", "Settings"."plex_name" AS "Settings_plex_name", "Settings"."plex_hostname" AS "Settings_plex_hostname", "Settings"."plex_port" AS "Settings_plex_port", "Settings"."plex_ssl" AS "Settings_plex_ssl", "Settings"."plex_auth_token" AS "Settings_plex_auth_token", "Settings"."overseerr_api_key" AS "Settings_overseerr_api_key", "Settings"."radarr_url" AS "Settings_radarr_url", "Settings"."radarr_api_key" AS "Settings_radarr_api_key", "Settings"."sonarr_url" AS "Settings_sonarr_url", "Settings"."sonarr_api_key" AS "Settings_sonarr_api_key", "Settings"."collection_handler_job_cron" AS "Settings_collection_handler_job_cron", "Settings"."rules_handler_job_cron" AS "Settings_rules_handler_job_cron" FROM "settings" "Settings" LIMIT 1', [], [Function: handler])
      at execute (/opt/node_modules/typeorm/driver/sqlite/SqliteQueryRunner.js:62:46)
      at /opt/node_modules/typeorm/driver/sqlite/SqliteQueryRunner.js:103:19 {
    errno: 1,
    code: 'SQLITE_ERROR',
    __augmented: true
  },
  errno: 1,
  code: 'SQLITE_ERROR',
  __augmented: true
}
Node.js v20.10.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
2023-12-28 21:07:20,852 WARN exited: server (exit status 1; not expected)
2023-12-28 21:07:21,854 INFO spawned: 'server' with pid 2610
yarn run v1.22.19
$ cd server && node dist/main
jorenn92 commented 10 months ago

This is what a correct log should look like. The migration:run command has to be executed; otherwise, the errors you're encountering are expected. The entry point used in the Docker image should handle this. I'm puzzled as to why your log doesn't include this. Are you certain it doesn't mention this anywhere?

maintainerr  | yarn run v1.22.19
maintainerr  | $ ts-node node_modules/typeorm/cli.js migration:run -d ./datasource-config.ts
maintainerr  | Data Source has been initialized
maintainerr  | query: SELECT * FROM "sqlite_master" WHERE "type" = 'table' AND "name" = 'migrations'
maintainerr  | query: SELECT * FROM "migrations" "migrations" ORDER BY "id" DESC
maintainerr  | No migrations are pending
maintainerr  | Done in 3.46s.
maintainerr  | 2024-01-02 09:51:13,135 INFO Set uid to user 0 succeeded
maintainerr  | 2024-01-02 09:51:13,140 INFO supervisord started with pid 51
maintainerr  | 2024-01-02 09:51:14,146 INFO spawned: 'docs' with pid 52
maintainerr  | 2024-01-02 09:51:14,153 INFO spawned: 'server' with pid 53
maintainerr  | 2024-01-02 09:51:14,162 INFO spawned: 'ui' with pid 56
maintainerr  | yarn run v1.22.19
maintainerr  | yarn run v1.22.19
maintainerr  | $ cd server && node dist/main
maintainerr  | $ cd ui && next start -p 80
maintainerr  |    ▲ Next.js 14.0.3
maintainerr  |    - Local:        http://localhost:80
maintainerr  |
maintainerr  |  ✓ Ready in 994ms
maintainerr  | 2024-01-02 09:51:15,727 INFO success: docs entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
maintainerr  | 2024-01-02 09:51:15,727 INFO success: server entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
maintainerr  | 2024-01-02 09:51:15,727 INFO success: ui entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [NestFactory] Starting Nest application...
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [PlexApiService] Plex API isn't fully initialized, required settings aren't set
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +1ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [InstanceLoader] ExternalApiModule dependencies initialized +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [InstanceLoader] DiscoveryModule dependencies initialized +53ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [InstanceLoader] TasksModule dependencies initialized +1ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [InstanceLoader] PlexApiModule dependencies initialized +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [InstanceLoader] ServarrApiModule dependencies initialized +1ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [InstanceLoader] OverseerrApiModule dependencies initialized +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [InstanceLoader] InternalApiModule dependencies initialized +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [InstanceLoader] TmdbApiModule dependencies initialized +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [InstanceLoader] ScheduleModule dependencies initialized +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [InstanceLoader] AppModule dependencies initialized +1ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [InstanceLoader] TypeOrmCoreModule dependencies initialized +18ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [InstanceLoader] SettingsModule dependencies initialized +1ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [InstanceLoader] CollectionsModule dependencies initialized +1ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [InstanceLoader] RulesModule dependencies initialized +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RoutesResolver] AppController {/}: +21ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RoutesResolver] SettingsController {/api/settings}: +1ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/settings, GET} route +3ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/settings/version, GET} route +1ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/settings/api/generate, GET} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/settings/plex/auth, DELETE} route +1ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/settings, POST} route +1ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/settings/test/setup, GET} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/settings/test/overseerr, GET} route +1ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/settings/test/radarr, GET} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/settings/test/sonarr, GET} route +1ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/settings/test/plex, GET} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/settings/cron/validate, POST} route +1ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RoutesResolver] PlexApiController {/api/plex}: +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/plex, GET} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/plex/libraries, GET} route +1ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/plex/library/:id/content/:page?, GET} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/plex/meta/:id, GET} route +1ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/plex/meta/:id/seen, GET} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/plex/users, GET} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/plex/meta/:id/children, GET} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/plex/library/:id/recent, GET} route +1ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/plex/library/:id/collections, GET} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/:collectionId, GET} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/:collectionId/children, GET} route +1ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/plex/search/:input, GET} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/:collectionId/child/:childId, PUT} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/:collectionId/child/:childId, DELETE} route +1ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/update, PUT} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/create, POST} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/:collectionId, DELETE} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/settings, PUT} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RoutesResolver] RadarrController {/api/radarr}: +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/radarr, GET} route +1ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/radarr/test, GET} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RoutesResolver] OverseerrApiController {/api/overseerr}: +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/overseerr/movie/:id, GET} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/overseerr/show/:id, GET} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/overseerr/request/:requestId, DELETE} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/overseerr/media/:mediaId, DELETE} route +1ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/overseerr/media/tmdb/:mediaId, DELETE} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RoutesResolver] InternalApiController {/api/maintainerr}: +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RoutesResolver] TmdbApiController {/api/moviedb}: +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/moviedb/person/:personId, GET} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/moviedb/movie/imdb/:id, GET} route +1ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/moviedb/image/:type/:tmdbId, GET} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RoutesResolver] RulesController {/api/rules}: +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/rules/constants, GET} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/rules/schedule/update, PUT} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/rules/community, GET} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/rules/community/karma/history, GET} route +1ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/rules/exclusion, GET} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/rules/:id, GET} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/rules, GET} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/rules/:id, DELETE} route +1ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/rules/execute, POST} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/rules, POST} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/rules/exclusion, POST} route +1ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/rules/exclusion/:id, DELETE} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/rules/exclusions/:plexId, DELETE} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/rules, PUT} route +1ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/rules, POST} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/rules/community, POST} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/rules/community/karma, POST} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RoutesResolver] CollectionsController {/api/collections}: +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/collections, POST} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/collections/add, POST} route +1ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/collections/remove, POST} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/collections/removeCollection, POST} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/collections, PUT} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/collections/handle, POST} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/collections/schedule/update, PUT} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/collections/deactivate/:id, GET} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/collections/activate/:id, GET} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/collections, GET} route +1ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/collections/collection/:id, GET} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/collections/media/add, POST} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/collections/media, DELETE} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/collections/media, GET} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [RouterExplorer] Mapped {/api/collections/media/:id/content/:page, GET} route +0ms
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [TasksService] Task CollectionHandler created successfully
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [TasksService] Task RuleHandler created successfully
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [TasksService] Task RuleMaintenance created successfully
maintainerr  | [Nest] 128  - 01/02/2024, 10:51:16 AM     LOG [NestApplication] Nest application successfully started +0ms
bcurran3 commented 10 months ago

The logs were so big that I just copied and pasted what I found to be looping from the tail and obviously missed some stuff for the head.

Here is the complete log after removing everything, re-pulling, and running for 10 seconds:

yarn run v1.22.19
$ ts-node node_modules/typeorm/cli.js migration:run -d ./datasource-config.ts
env: can't execute 'node': Text file busy
error Command failed with exit code 126.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
2024-01-07 23:42:10,398 INFO Set uid to user 0 succeeded
2024-01-07 23:42:10,402 INFO supervisord started with pid 32
2024-01-07 23:42:11,404 INFO spawned: 'docs' with pid 33
2024-01-07 23:42:11,407 INFO spawned: 'server' with pid 34
2024-01-07 23:42:11,409 INFO spawned: 'ui' with pid 40
yarn run v1.22.19
yarn run v1.22.19
$ cd server && node dist/main
$ cd ui && next start -p 80
env: can't execute 'node': Text file busy
2024-01-07 23:42:11,885 WARN exited: docs (exit status 126; not expected)
error Command failed with exit code 126.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
2024-01-07 23:42:11,940 WARN exited: ui (exit status 126; not expected)
2024-01-07 23:42:12,942 INFO spawned: 'docs' with pid 120
2024-01-07 23:42:12,942 INFO success: server entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-01-07 23:42:12,944 INFO spawned: 'ui' with pid 121
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [NestFactory] Starting Nest application...
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [PlexApiService] Plex API isn't fully initialized, required settings aren't set
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +1ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [InstanceLoader] ExternalApiModule dependencies initialized +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [InstanceLoader] DiscoveryModule dependencies initialized +78ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [InstanceLoader] TasksModule dependencies initialized +1ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [InstanceLoader] PlexApiModule dependencies initialized +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [InstanceLoader] ServarrApiModule dependencies initialized +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [InstanceLoader] OverseerrApiModule dependencies initialized +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [InstanceLoader] InternalApiModule dependencies initialized +1ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [InstanceLoader] TmdbApiModule dependencies initialized +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [InstanceLoader] ScheduleModule dependencies initialized +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [InstanceLoader] AppModule dependencies initialized +0ms
yarn run v1.22.19
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [InstanceLoader] TypeOrmCoreModule dependencies initialized +22ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [InstanceLoader] SettingsModule dependencies initialized +1ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [InstanceLoader] CollectionsModule dependencies initialized +1ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [InstanceLoader] RulesModule dependencies initialized +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RoutesResolver] AppController {/}: +14ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RoutesResolver] SettingsController {/api/settings}: +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/settings, GET} route +4ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/settings/version, GET} route +1ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/settings/api/generate, GET} route +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/settings/plex/auth, DELETE} route +1ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/settings, POST} route +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/settings/test/setup, GET} route +1ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/settings/test/overseerr, GET} route +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/settings/test/radarr, GET} route +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/settings/test/sonarr, GET} route +1ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/settings/test/plex, GET} route +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/settings/cron/validate, POST} route +1ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RoutesResolver] PlexApiController {/api/plex}: +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/plex, GET} route +1ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/plex/libraries, GET} route +1ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/plex/library/:id/content/:page?, GET} route +1ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/plex/meta/:id, GET} route +1ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/plex/meta/:id/seen, GET} route +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/plex/users, GET} route +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/plex/meta/:id/children, GET} route +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/plex/library/:id/recent, GET} route +1ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/plex/library/:id/collections, GET} route +1ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/:collectionId, GET} route +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/:collectionId/children, GET} route +1ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/plex/search/:input, GET} route +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/:collectionId/child/:childId, PUT} route +1ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/:collectionId/child/:childId, DELETE} route +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/update, PUT} route +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/create, POST} route +1ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/:collectionId, DELETE} route +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/settings, PUT} route +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RoutesResolver] RadarrController {/api/radarr}: +2ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/radarr, GET} route +2ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/radarr/test, GET} route +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RoutesResolver] OverseerrApiController {/api/overseerr}: +1ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/overseerr/movie/:id, GET} route +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/overseerr/show/:id, GET} route +1ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/overseerr/request/:requestId, DELETE} route +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/overseerr/media/:mediaId, DELETE} route +1ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/overseerr/media/tmdb/:mediaId, DELETE} route +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RoutesResolver] InternalApiController {/api/maintainerr}: +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RoutesResolver] TmdbApiController {/api/moviedb}: +1ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/moviedb/person/:personId, GET} route +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/moviedb/movie/imdb/:id, GET} route +1ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/moviedb/image/:type/:tmdbId, GET} route +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RoutesResolver] RulesController {/api/rules}: +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/rules/constants, GET} route +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/rules/schedule/update, PUT} route +1ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/rules/community, GET} route +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/rules/community/karma/history, GET} route +1ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/rules/exclusion, GET} route +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/rules/:id, GET} route +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/rules, GET} route +1ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/rules/:id, DELETE} route +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/rules/execute, POST} route +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/rules, POST} route +1ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/rules/exclusion, POST} route +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/rules/exclusion/:id, DELETE} route +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/rules/exclusions/:plexId, DELETE} route +1ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/rules, PUT} route +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/rules, POST} route +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/rules/community, POST} route +1ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/rules/community/karma, POST} route +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RoutesResolver] CollectionsController {/api/collections}: +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/collections, POST} route +1ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/collections/add, POST} route +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/collections/remove, POST} route +1ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/collections/removeCollection, POST} route +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/collections, PUT} route +0ms
$ cd ui && next start -p 80
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/collections/handle, POST} route +1ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/collections/schedule/update, PUT} route +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/collections/deactivate/:id, GET} route +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/collections/activate/:id, GET} route +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/collections, GET} route +1ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/collections/collection/:id, GET} route +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/collections/media/add, POST} route +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/collections/media, DELETE} route +1ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/collections/media, GET} route +0ms
[Nest] 109  - 01/07/2024, 3:42:13 PM     LOG [RouterExplorer] Mapped {/api/collections/media/:id/content/:page, GET} route +0ms
env: can't execute 'node': Text file busy
/opt/node_modules/typeorm/driver/sqlite/SqliteQueryRunner.js:81
                    fail(new QueryFailedError_1.QueryFailedError(query, parameters, err));
                         ^
QueryFailedError: SQLITE_ERROR: no such table: settings
    at handler (/opt/node_modules/typeorm/driver/sqlite/SqliteQueryRunner.js:81:26)
    at replacement (/opt/node_modules/sqlite3/lib/trace.js:25:27)
    at Statement.errBack (/opt/node_modules/sqlite3/lib/sqlite3.js:15:21) {
  query: 'SELECT "Settings"."id" AS "Settings_id", "Settings"."clientId" AS "Settings_clientId", "Settings"."applicationTitle" AS "Settings_applicationTitle", "Settings"."applicationUrl" AS "Settings_applicationUrl", "Settings"."apikey" AS "Settings_apikey", "Settings"."overseerr_url" AS "Settings_overseerr_url", "Settings"."locale" AS "Settings_locale", "Settings"."cacheImages" AS "Settings_cacheImages", "Settings"."plex_name" AS "Settings_plex_name", "Settings"."plex_hostname" AS "Settings_plex_hostname", "Settings"."plex_port" AS "Settings_plex_port", "Settings"."plex_ssl" AS "Settings_plex_ssl", "Settings"."plex_auth_token" AS "Settings_plex_auth_token", "Settings"."overseerr_api_key" AS "Settings_overseerr_api_key", "Settings"."radarr_url" AS "Settings_radarr_url", "Settings"."radarr_api_key" AS "Settings_radarr_api_key", "Settings"."sonarr_url" AS "Settings_sonarr_url", "Settings"."sonarr_api_key" AS "Settings_sonarr_api_key", "Settings"."collection_handler_job_cron" AS "Settings_collection_handler_job_cron", "Settings"."rules_handler_job_cron" AS "Settings_rules_handler_job_cron" FROM "settings" "Settings" LIMIT 1',
  parameters: [],
  driverError: Error: SQLITE_ERROR: no such table: settings
  --> in Database#all('SELECT "Settings"."id" AS "Settings_id", "Settings"."clientId" AS "Settings_clientId", "Settings"."applicationTitle" AS "Settings_applicationTitle", "Settings"."applicationUrl" AS "Settings_applicationUrl", "Settings"."apikey" AS "Settings_apikey", "Settings"."overseerr_url" AS "Settings_overseerr_url", "Settings"."locale" AS "Settings_locale", "Settings"."cacheImages" AS "Settings_cacheImages", "Settings"."plex_name" AS "Settings_plex_name", "Settings"."plex_hostname" AS "Settings_plex_hostname", "Settings"."plex_port" AS "Settings_plex_port", "Settings"."plex_ssl" AS "Settings_plex_ssl", "Settings"."plex_auth_token" AS "Settings_plex_auth_token", "Settings"."overseerr_api_key" AS "Settings_overseerr_api_key", "Settings"."radarr_url" AS "Settings_radarr_url", "Settings"."radarr_api_key" AS "Settings_radarr_api_key", "Settings"."sonarr_url" AS "Settings_sonarr_url", "Settings"."sonarr_api_key" AS "Settings_sonarr_api_key", "Settings"."collection_handler_job_cron" AS "Settings_collection_handler_job_cron", "Settings"."rules_handler_job_cron" AS "Settings_rules_handler_job_cron" FROM "settings" "Settings" LIMIT 1', [], [Function: handler])
      at execute (/opt/node_modules/typeorm/driver/sqlite/SqliteQueryRunner.js:62:46)
      at /opt/node_modules/typeorm/driver/sqlite/SqliteQueryRunner.js:103:19 {
    errno: 1,
    code: 'SQLITE_ERROR',
    __augmented: true
  },
  errno: 1,
  code: 'SQLITE_ERROR',
  __augmented: true
}
Node.js v20.10.0
error Command failed with exit code 126.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
2024-01-07 23:42:13,309 WARN exited: docs (exit status 126; not expected)
2024-01-07 23:42:13,323 WARN exited: ui (exit status 126; not expected)
2024-01-07 23:42:13,325 WARN exited: server (exit status 1; not expected)
2024-01-07 23:42:14,327 INFO spawned: 'server' with pid 177
yarn run v1.22.19
$ cd server && node dist/main
2024-01-07 23:42:15,572 INFO spawned: 'docs' with pid 212
2024-01-07 23:42:15,572 INFO success: server entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-01-07 23:42:15,574 INFO spawned: 'ui' with pid 213
yarn run v1.22.19
$ cd ui && next start -p 80
env: can't execute 'node': Text file busy
2024-01-07 23:42:15,906 WARN exited: docs (exit status 126; not expected)
[Nest] 202  - 01/07/2024, 3:42:15 PM     LOG [NestFactory] Starting Nest application...
error Command failed with exit code 126.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
2024-01-07 23:42:15,928 WARN exited: ui (exit status 126; not expected)
[Nest] 202  - 01/07/2024, 3:42:15 PM     LOG [PlexApiService] Plex API isn't fully initialized, required settings aren't set
[Nest] 202  - 01/07/2024, 3:42:15 PM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
[Nest] 202  - 01/07/2024, 3:42:15 PM     LOG [InstanceLoader] ExternalApiModule dependencies initialized +1ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [InstanceLoader] DiscoveryModule dependencies initialized +64ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [InstanceLoader] TasksModule dependencies initialized +2ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [InstanceLoader] PlexApiModule dependencies initialized +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [InstanceLoader] ServarrApiModule dependencies initialized +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [InstanceLoader] OverseerrApiModule dependencies initialized +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [InstanceLoader] InternalApiModule dependencies initialized +1ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [InstanceLoader] TmdbApiModule dependencies initialized +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [InstanceLoader] ScheduleModule dependencies initialized +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [InstanceLoader] AppModule dependencies initialized +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [InstanceLoader] TypeOrmCoreModule dependencies initialized +23ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [InstanceLoader] SettingsModule dependencies initialized +1ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [InstanceLoader] CollectionsModule dependencies initialized +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [InstanceLoader] RulesModule dependencies initialized +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RoutesResolver] AppController {/}: +10ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RoutesResolver] SettingsController {/api/settings}: +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/settings, GET} route +2ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/settings/version, GET} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/settings/api/generate, GET} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/settings/plex/auth, DELETE} route +1ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/settings, POST} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/settings/test/setup, GET} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/settings/test/overseerr, GET} route +1ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/settings/test/radarr, GET} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/settings/test/sonarr, GET} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/settings/test/plex, GET} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/settings/cron/validate, POST} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RoutesResolver] PlexApiController {/api/plex}: +1ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/plex, GET} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/plex/libraries, GET} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/plex/library/:id/content/:page?, GET} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/plex/meta/:id, GET} route +1ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/plex/meta/:id/seen, GET} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/plex/users, GET} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/plex/meta/:id/children, GET} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/plex/library/:id/recent, GET} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/plex/library/:id/collections, GET} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/:collectionId, GET} route +1ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/:collectionId/children, GET} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/plex/search/:input, GET} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/:collectionId/child/:childId, PUT} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/:collectionId/child/:childId, DELETE} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/update, PUT} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/create, POST} route +1ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/:collectionId, DELETE} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/settings, PUT} route +1ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RoutesResolver] RadarrController {/api/radarr}: +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/radarr, GET} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/radarr/test, GET} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RoutesResolver] OverseerrApiController {/api/overseerr}: +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/overseerr/movie/:id, GET} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/overseerr/show/:id, GET} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/overseerr/request/:requestId, DELETE} route +1ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/overseerr/media/:mediaId, DELETE} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/overseerr/media/tmdb/:mediaId, DELETE} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RoutesResolver] InternalApiController {/api/maintainerr}: +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RoutesResolver] TmdbApiController {/api/moviedb}: +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/moviedb/person/:personId, GET} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/moviedb/movie/imdb/:id, GET} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/moviedb/image/:type/:tmdbId, GET} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RoutesResolver] RulesController {/api/rules}: +1ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/rules/constants, GET} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/rules/schedule/update, PUT} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/rules/community, GET} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/rules/community/karma/history, GET} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/rules/exclusion, GET} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/rules/:id, GET} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/rules, GET} route +1ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/rules/:id, DELETE} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/rules/execute, POST} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/rules, POST} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/rules/exclusion, POST} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/rules/exclusion/:id, DELETE} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/rules/exclusions/:plexId, DELETE} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/rules, PUT} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/rules, POST} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/rules/community, POST} route +1ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/rules/community/karma, POST} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RoutesResolver] CollectionsController {/api/collections}: +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/collections, POST} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/collections/add, POST} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/collections/remove, POST} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/collections/removeCollection, POST} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/collections, PUT} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/collections/handle, POST} route +1ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/collections/schedule/update, PUT} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/collections/deactivate/:id, GET} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/collections/activate/:id, GET} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/collections, GET} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/collections/collection/:id, GET} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/collections/media/add, POST} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/collections/media, DELETE} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/collections/media, GET} route +0ms
[Nest] 202  - 01/07/2024, 3:42:16 PM     LOG [RouterExplorer] Mapped {/api/collections/media/:id/content/:page, GET} route +0ms
/opt/node_modules/typeorm/driver/sqlite/SqliteQueryRunner.js:81
                    fail(new QueryFailedError_1.QueryFailedError(query, parameters, err));
                         ^
QueryFailedError: SQLITE_ERROR: no such table: settings
    at handler (/opt/node_modules/typeorm/driver/sqlite/SqliteQueryRunner.js:81:26)
    at replacement (/opt/node_modules/sqlite3/lib/trace.js:25:27)
    at Statement.errBack (/opt/node_modules/sqlite3/lib/sqlite3.js:15:21) {
  query: 'SELECT "Settings"."id" AS "Settings_id", "Settings"."clientId" AS "Settings_clientId", "Settings"."applicationTitle" AS "Settings_applicationTitle", "Settings"."applicationUrl" AS "Settings_applicationUrl", "Settings"."apikey" AS "Settings_apikey", "Settings"."overseerr_url" AS "Settings_overseerr_url", "Settings"."locale" AS "Settings_locale", "Settings"."cacheImages" AS "Settings_cacheImages", "Settings"."plex_name" AS "Settings_plex_name", "Settings"."plex_hostname" AS "Settings_plex_hostname", "Settings"."plex_port" AS "Settings_plex_port", "Settings"."plex_ssl" AS "Settings_plex_ssl", "Settings"."plex_auth_token" AS "Settings_plex_auth_token", "Settings"."overseerr_api_key" AS "Settings_overseerr_api_key", "Settings"."radarr_url" AS "Settings_radarr_url", "Settings"."radarr_api_key" AS "Settings_radarr_api_key", "Settings"."sonarr_url" AS "Settings_sonarr_url", "Settings"."sonarr_api_key" AS "Settings_sonarr_api_key", "Settings"."collection_handler_job_cron" AS "Settings_collection_handler_job_cron", "Settings"."rules_handler_job_cron" AS "Settings_rules_handler_job_cron" FROM "settings" "Settings" LIMIT 1',
  parameters: [],
  driverError: Error: SQLITE_ERROR: no such table: settings
  --> in Database#all('SELECT "Settings"."id" AS "Settings_id", "Settings"."clientId" AS "Settings_clientId", "Settings"."applicationTitle" AS "Settings_applicationTitle", "Settings"."applicationUrl" AS "Settings_applicationUrl", "Settings"."apikey" AS "Settings_apikey", "Settings"."overseerr_url" AS "Settings_overseerr_url", "Settings"."locale" AS "Settings_locale", "Settings"."cacheImages" AS "Settings_cacheImages", "Settings"."plex_name" AS "Settings_plex_name", "Settings"."plex_hostname" AS "Settings_plex_hostname", "Settings"."plex_port" AS "Settings_plex_port", "Settings"."plex_ssl" AS "Settings_plex_ssl", "Settings"."plex_auth_token" AS "Settings_plex_auth_token", "Settings"."overseerr_api_key" AS "Settings_overseerr_api_key", "Settings"."radarr_url" AS "Settings_radarr_url", "Settings"."radarr_api_key" AS "Settings_radarr_api_key", "Settings"."sonarr_url" AS "Settings_sonarr_url", "Settings"."sonarr_api_key" AS "Settings_sonarr_api_key", "Settings"."collection_handler_job_cron" AS "Settings_collection_handler_job_cron", "Settings"."rules_handler_job_cron" AS "Settings_rules_handler_job_cron" FROM "settings" "Settings" LIMIT 1', [], [Function: handler])
      at execute (/opt/node_modules/typeorm/driver/sqlite/SqliteQueryRunner.js:62:46)
      at /opt/node_modules/typeorm/driver/sqlite/SqliteQueryRunner.js:103:19 {
    errno: 1,
    code: 'SQLITE_ERROR',
    __augmented: true
  },
  errno: 1,
  code: 'SQLITE_ERROR',
  __augmented: true
}
Node.js v20.10.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
2024-01-07 23:42:16,114 WARN exited: server (exit status 1; not expected)
2024-01-07 23:42:17,116 INFO spawned: 'server' with pid 269
yarn run v1.22.19
$ cd server && node dist/main
2024-01-07 23:42:18,363 INFO success: server entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [NestFactory] Starting Nest application...
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [PlexApiService] Plex API isn't fully initialized, required settings aren't set
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +1ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [InstanceLoader] ExternalApiModule dependencies initialized +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [InstanceLoader] DiscoveryModule dependencies initialized +46ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [InstanceLoader] TasksModule dependencies initialized +1ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [InstanceLoader] PlexApiModule dependencies initialized +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [InstanceLoader] ServarrApiModule dependencies initialized +1ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [InstanceLoader] OverseerrApiModule dependencies initialized +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [InstanceLoader] InternalApiModule dependencies initialized +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [InstanceLoader] TmdbApiModule dependencies initialized +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [InstanceLoader] ScheduleModule dependencies initialized +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [InstanceLoader] AppModule dependencies initialized +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [InstanceLoader] TypeOrmCoreModule dependencies initialized +36ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [InstanceLoader] SettingsModule dependencies initialized +2ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [InstanceLoader] CollectionsModule dependencies initialized +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [InstanceLoader] RulesModule dependencies initialized +1ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RoutesResolver] AppController {/}: +13ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RoutesResolver] SettingsController {/api/settings}: +1ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/settings, GET} route +4ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/settings/version, GET} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/settings/api/generate, GET} route +1ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/settings/plex/auth, DELETE} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/settings, POST} route +1ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/settings/test/setup, GET} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/settings/test/overseerr, GET} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/settings/test/radarr, GET} route +1ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/settings/test/sonarr, GET} route +2ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/settings/test/plex, GET} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/settings/cron/validate, POST} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RoutesResolver] PlexApiController {/api/plex}: +1ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/plex, GET} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/plex/libraries, GET} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/plex/library/:id/content/:page?, GET} route +1ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/plex/meta/:id, GET} route +1ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/plex/meta/:id/seen, GET} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/plex/users, GET} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/plex/meta/:id/children, GET} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/plex/library/:id/recent, GET} route +1ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/plex/library/:id/collections, GET} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/:collectionId, GET} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/:collectionId/children, GET} route +1ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/plex/search/:input, GET} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/:collectionId/child/:childId, PUT} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/:collectionId/child/:childId, DELETE} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/update, PUT} route +1ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/create, POST} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/:collectionId, DELETE} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/settings, PUT} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RoutesResolver] RadarrController {/api/radarr}: +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/radarr, GET} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/radarr/test, GET} route +1ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RoutesResolver] OverseerrApiController {/api/overseerr}: +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/overseerr/movie/:id, GET} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/overseerr/show/:id, GET} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/overseerr/request/:requestId, DELETE} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/overseerr/media/:mediaId, DELETE} route +1ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/overseerr/media/tmdb/:mediaId, DELETE} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RoutesResolver] InternalApiController {/api/maintainerr}: +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RoutesResolver] TmdbApiController {/api/moviedb}: +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/moviedb/person/:personId, GET} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/moviedb/movie/imdb/:id, GET} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/moviedb/image/:type/:tmdbId, GET} route +1ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RoutesResolver] RulesController {/api/rules}: +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/rules/constants, GET} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/rules/schedule/update, PUT} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/rules/community, GET} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/rules/community/karma/history, GET} route +1ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/rules/exclusion, GET} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/rules/:id, GET} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/rules, GET} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/rules/:id, DELETE} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/rules/execute, POST} route +1ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/rules, POST} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/rules/exclusion, POST} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/rules/exclusion/:id, DELETE} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/rules/exclusions/:plexId, DELETE} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/rules, PUT} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/rules, POST} route +1ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/rules/community, POST} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/rules/community/karma, POST} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RoutesResolver] CollectionsController {/api/collections}: +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/collections, POST} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/collections/add, POST} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/collections/remove, POST} route +2ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/collections/removeCollection, POST} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/collections, PUT} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/collections/handle, POST} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/collections/schedule/update, PUT} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/collections/deactivate/:id, GET} route +1ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/collections/activate/:id, GET} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/collections, GET} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/collections/collection/:id, GET} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/collections/media/add, POST} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/collections/media, DELETE} route +0ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/collections/media, GET} route +4ms
[Nest] 294  - 01/07/2024, 3:42:18 PM     LOG [RouterExplorer] Mapped {/api/collections/media/:id/content/:page, GET} route +0ms
/opt/node_modules/typeorm/driver/sqlite/SqliteQueryRunner.js:81
                    fail(new QueryFailedError_1.QueryFailedError(query, parameters, err));
                         ^
QueryFailedError: SQLITE_ERROR: no such table: settings
    at handler (/opt/node_modules/typeorm/driver/sqlite/SqliteQueryRunner.js:81:26)
    at replacement (/opt/node_modules/sqlite3/lib/trace.js:25:27)
    at Statement.errBack (/opt/node_modules/sqlite3/lib/sqlite3.js:15:21) {
  query: 'SELECT "Settings"."id" AS "Settings_id", "Settings"."clientId" AS "Settings_clientId", "Settings"."applicationTitle" AS "Settings_applicationTitle", "Settings"."applicationUrl" AS "Settings_applicationUrl", "Settings"."apikey" AS "Settings_apikey", "Settings"."overseerr_url" AS "Settings_overseerr_url", "Settings"."locale" AS "Settings_locale", "Settings"."cacheImages" AS "Settings_cacheImages", "Settings"."plex_name" AS "Settings_plex_name", "Settings"."plex_hostname" AS "Settings_plex_hostname", "Settings"."plex_port" AS "Settings_plex_port", "Settings"."plex_ssl" AS "Settings_plex_ssl", "Settings"."plex_auth_token" AS "Settings_plex_auth_token", "Settings"."overseerr_api_key" AS "Settings_overseerr_api_key", "Settings"."radarr_url" AS "Settings_radarr_url", "Settings"."radarr_api_key" AS "Settings_radarr_api_key", "Settings"."sonarr_url" AS "Settings_sonarr_url", "Settings"."sonarr_api_key" AS "Settings_sonarr_api_key", "Settings"."collection_handler_job_cron" AS "Settings_collection_handler_job_cron", "Settings"."rules_handler_job_cron" AS "Settings_rules_handler_job_cron" FROM "settings" "Settings" LIMIT 1',
  parameters: [],
  driverError: Error: SQLITE_ERROR: no such table: settings
  --> in Database#all('SELECT "Settings"."id" AS "Settings_id", "Settings"."clientId" AS "Settings_clientId", "Settings"."applicationTitle" AS "Settings_applicationTitle", "Settings"."applicationUrl" AS "Settings_applicationUrl", "Settings"."apikey" AS "Settings_apikey", "Settings"."overseerr_url" AS "Settings_overseerr_url", "Settings"."locale" AS "Settings_locale", "Settings"."cacheImages" AS "Settings_cacheImages", "Settings"."plex_name" AS "Settings_plex_name", "Settings"."plex_hostname" AS "Settings_plex_hostname", "Settings"."plex_port" AS "Settings_plex_port", "Settings"."plex_ssl" AS "Settings_plex_ssl", "Settings"."plex_auth_token" AS "Settings_plex_auth_token", "Settings"."overseerr_api_key" AS "Settings_overseerr_api_key", "Settings"."radarr_url" AS "Settings_radarr_url", "Settings"."radarr_api_key" AS "Settings_radarr_api_key", "Settings"."sonarr_url" AS "Settings_sonarr_url", "Settings"."sonarr_api_key" AS "Settings_sonarr_api_key", "Settings"."collection_handler_job_cron" AS "Settings_collection_handler_job_cron", "Settings"."rules_handler_job_cron" AS "Settings_rules_handler_job_cron" FROM "settings" "Settings" LIMIT 1', [], [Function: handler])
      at execute (/opt/node_modules/typeorm/driver/sqlite/SqliteQueryRunner.js:62:46)
      at /opt/node_modules/typeorm/driver/sqlite/SqliteQueryRunner.js:103:19 {
    errno: 1,
    code: 'SQLITE_ERROR',
    __augmented: true
  },
  errno: 1,
  code: 'SQLITE_ERROR',
  __augmented: true
}
Node.js v20.10.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
2024-01-07 23:42:18,627 WARN exited: server (exit status 1; not expected)
2024-01-07 23:42:19,629 INFO spawned: 'docs' with pid 309
2024-01-07 23:42:19,632 INFO spawned: 'server' with pid 310
2024-01-07 23:42:19,634 INFO spawned: 'ui' with pid 311
yarn run v1.22.19
yarn run v1.22.19
$ cd server && node dist/main
$ cd ui && next start -p 80
env: can't execute 'node': Text file busy
error Command failed with exit code 126.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
2024-01-07 23:42:20,031 WARN exited: docs (exit status 126; not expected)
2024-01-07 23:42:20,045 WARN exited: ui (exit status 126; not expected)
2024-01-07 23:42:21,046 INFO success: server entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [NestFactory] Starting Nest application...
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [PlexApiService] Plex API isn't fully initialized, required settings aren't set
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [InstanceLoader] ExternalApiModule dependencies initialized +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [InstanceLoader] DiscoveryModule dependencies initialized +65ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [InstanceLoader] TasksModule dependencies initialized +1ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [InstanceLoader] PlexApiModule dependencies initialized +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [InstanceLoader] ServarrApiModule dependencies initialized +1ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [InstanceLoader] OverseerrApiModule dependencies initialized +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [InstanceLoader] InternalApiModule dependencies initialized +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [InstanceLoader] TmdbApiModule dependencies initialized +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [InstanceLoader] ScheduleModule dependencies initialized +1ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [InstanceLoader] AppModule dependencies initialized +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [InstanceLoader] TypeOrmCoreModule dependencies initialized +20ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +1ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [InstanceLoader] SettingsModule dependencies initialized +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [InstanceLoader] CollectionsModule dependencies initialized +1ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [InstanceLoader] RulesModule dependencies initialized +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RoutesResolver] AppController {/}: +8ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RoutesResolver] SettingsController {/api/settings}: +1ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/settings, GET} route +2ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/settings/version, GET} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/settings/api/generate, GET} route +1ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/settings/plex/auth, DELETE} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/settings, POST} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/settings/test/setup, GET} route +1ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/settings/test/overseerr, GET} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/settings/test/radarr, GET} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/settings/test/sonarr, GET} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/settings/test/plex, GET} route +1ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/settings/cron/validate, POST} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RoutesResolver] PlexApiController {/api/plex}: +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/plex, GET} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/plex/libraries, GET} route +1ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/plex/library/:id/content/:page?, GET} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/plex/meta/:id, GET} route +1ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/plex/meta/:id/seen, GET} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/plex/users, GET} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/plex/meta/:id/children, GET} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/plex/library/:id/recent, GET} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/plex/library/:id/collections, GET} route +1ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/:collectionId, GET} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/:collectionId/children, GET} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/plex/search/:input, GET} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/:collectionId/child/:childId, PUT} route +1ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/:collectionId/child/:childId, DELETE} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/update, PUT} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/create, POST} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/:collectionId, DELETE} route +1ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/plex/library/collection/settings, PUT} route +1ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RoutesResolver] RadarrController {/api/radarr}: +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/radarr, GET} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/radarr/test, GET} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RoutesResolver] OverseerrApiController {/api/overseerr}: +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/overseerr/movie/:id, GET} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/overseerr/show/:id, GET} route +1ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/overseerr/request/:requestId, DELETE} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/overseerr/media/:mediaId, DELETE} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/overseerr/media/tmdb/:mediaId, DELETE} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RoutesResolver] InternalApiController {/api/maintainerr}: +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RoutesResolver] TmdbApiController {/api/moviedb}: +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/moviedb/person/:personId, GET} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/moviedb/movie/imdb/:id, GET} route +1ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/moviedb/image/:type/:tmdbId, GET} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RoutesResolver] RulesController {/api/rules}: +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/rules/constants, GET} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/rules/schedule/update, PUT} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/rules/community, GET} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/rules/community/karma/history, GET} route +1ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/rules/exclusion, GET} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/rules/:id, GET} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/rules, GET} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/rules/:id, DELETE} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/rules/execute, POST} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/rules, POST} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/rules/exclusion, POST} route +1ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/rules/exclusion/:id, DELETE} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/rules/exclusions/:plexId, DELETE} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/rules, PUT} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/rules, POST} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/rules/community, POST} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/rules/community/karma, POST} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RoutesResolver] CollectionsController {/api/collections}: +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/collections, POST} route +1ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/collections/add, POST} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/collections/remove, POST} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/collections/removeCollection, POST} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/collections, PUT} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/collections/handle, POST} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/collections/schedule/update, PUT} route +1ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/collections/deactivate/:id, GET} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/collections/activate/:id, GET} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/collections, GET} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/collections/collection/:id, GET} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/collections/media/add, POST} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/collections/media, DELETE} route +0ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/collections/media, GET} route +1ms
[Nest] 384  - 01/07/2024, 3:42:21 PM     LOG [RouterExplorer] Mapped {/api/collections/media/:id/content/:page, GET} route +0ms
/opt/node_modules/typeorm/driver/sqlite/SqliteQueryRunner.js:81
                    fail(new QueryFailedError_1.QueryFailedError(query, parameters, err));
                         ^
QueryFailedError: SQLITE_ERROR: no such table: settings
    at handler (/opt/node_modules/typeorm/driver/sqlite/SqliteQueryRunner.js:81:26)
    at replacement (/opt/node_modules/sqlite3/lib/trace.js:25:27)
    at Statement.errBack (/opt/node_modules/sqlite3/lib/sqlite3.js:15:21) {
  query: 'SELECT "Settings"."id" AS "Settings_id", "Settings"."clientId" AS "Settings_clientId", "Settings"."applicationTitle" AS "Settings_applicationTitle", "Settings"."applicationUrl" AS "Settings_applicationUrl", "Settings"."apikey" AS "Settings_apikey", "Settings"."overseerr_url" AS "Settings_overseerr_url", "Settings"."locale" AS "Settings_locale", "Settings"."cacheImages" AS "Settings_cacheImages", "Settings"."plex_name" AS "Settings_plex_name", "Settings"."plex_hostname" AS "Settings_plex_hostname", "Settings"."plex_port" AS "Settings_plex_port", "Settings"."plex_ssl" AS "Settings_plex_ssl", "Settings"."plex_auth_token" AS "Settings_plex_auth_token", "Settings"."overseerr_api_key" AS "Settings_overseerr_api_key", "Settings"."radarr_url" AS "Settings_radarr_url", "Settings"."radarr_api_key" AS "Settings_radarr_api_key", "Settings"."sonarr_url" AS "Settings_sonarr_url", "Settings"."sonarr_api_key" AS "Settings_sonarr_api_key", "Settings"."collection_handler_job_cron" AS "Settings_collection_handler_job_cron", "Settings"."rules_handler_job_cron" AS "Settings_rules_handler_job_cron" FROM "settings" "Settings" LIMIT 1',
  parameters: [],
  driverError: Error: SQLITE_ERROR: no such table: settings
  --> in Database#all('SELECT "Settings"."id" AS "Settings_id", "Settings"."clientId" AS "Settings_clientId", "Settings"."applicationTitle" AS "Settings_applicationTitle", "Settings"."applicationUrl" AS "Settings_applicationUrl", "Settings"."apikey" AS "Settings_apikey", "Settings"."overseerr_url" AS "Settings_overseerr_url", "Settings"."locale" AS "Settings_locale", "Settings"."cacheImages" AS "Settings_cacheImages", "Settings"."plex_name" AS "Settings_plex_name", "Settings"."plex_hostname" AS "Settings_plex_hostname", "Settings"."plex_port" AS "Settings_plex_port", "Settings"."plex_ssl" AS "Settings_plex_ssl", "Settings"."plex_auth_token" AS "Settings_plex_auth_token", "Settings"."overseerr_api_key" AS "Settings_overseerr_api_key", "Settings"."radarr_url" AS "Settings_radarr_url", "Settings"."radarr_api_key" AS "Settings_radarr_api_key", "Settings"."sonarr_url" AS "Settings_sonarr_url", "Settings"."sonarr_api_key" AS "Settings_sonarr_api_key", "Settings"."collection_handler_job_cron" AS "Settings_collection_handler_job_cron", "Settings"."rules_handler_job_cron" AS "Settings_rules_handler_job_cron" FROM "settings" "Settings" LIMIT 1', [], [Function: handler])
      at execute (/opt/node_modules/typeorm/driver/sqlite/SqliteQueryRunner.js:62:46)
      at /opt/node_modules/typeorm/driver/sqlite/SqliteQueryRunner.js:103:19 {
    errno: 1,
    code: 'SQLITE_ERROR',
    __augmented: true
  },
  errno: 1,
  code: 'SQLITE_ERROR',
  __augmented: true
}
Node.js v20.10.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
2024-01-07 23:42:21,281 WARN exited: server (exit status 1; not expected)
2024-01-07 23:42:22,283 INFO spawned: 'server' with pid 401
yarn run v1.22.19
$ cd server && node dist/main
bcurran3 commented 10 months ago

Doesn't make sense to me as the app obviously works for you and others, but Googling "env: can't execute 'node': Text file busy" will show others with that error where it was resolved by downgrading to node 20.2 and earlier.

EDIT: This issue might be of interest. If I read it right linuxserver.io rebased a bunch of their images related to this issue: https://github.com/nodejs/docker-node/issues/1912

jorenn92 commented 10 months ago

Well, this isn't a Maintainerr issue. It's a bug between Node.js 20+ and older Linux kernels. https://github.com/libuv/libuv/pull/4141

The solution is to update your kernel. You'll likely encounter this issue with other apps that use Node.js 20 as well.

You could try to add the 'UV_USE_IO_URING=0' environment variable to your docker compose. This should also mitigate the issue.

I've added the flag by default in #725.

bcurran3 commented 10 months ago

Yeppers. That did the trick. Thank you.

github-actions[bot] commented 9 months ago

:tada: This issue has been resolved in version 2.0.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: