Skip to content

[Bug] BookOrbit startup failed with last update #270

Description

@9acca9

What went wrong?

After update to the last version cant run the app.
I have to delete my database????? is a big db of 110000 epubs... i mean a long time to reconstruct that (i dont speak esperanto)
Thanks!

Steps to reproduce

docker compose up -d with last version...

Expected vs actual behavior

i hate this templates.

Your setup

last version of bookOrbit
docker

Relevant logs (optional)

root@biblioteca-epub:~/bookorbit# docker logs -f bookorbit-app
Migrations applied successfully from /app/migrations
(node:7) [FSTDEP022] FastifyWarning: The router options for maxParamLength property access is deprecated. Please use "options.routerOptions" instead for accessing router options. The router options will be removed in `fastify@6`.
(Use `node --trace-warnings ...` to show where the warning was created)
BookOrbit startup failed:
Error: Failed query: 
      INSERT INTO book_series (name, normalized_name)
      SELECT min(btrim("book_metadata"."series_name")), lower(btrim("book_metadata"."series_name"))
      FROM "book_metadata"
      WHERE "book_metadata"."series_name" IS NOT NULL
        AND btrim("book_metadata"."series_name") != ''
      GROUP BY lower(btrim("book_metadata"."series_name"))
      ON CONFLICT (normalized_name)
      DO NOTHING
    
params: 
    at NodePgPreparedQuery.queryWithCache (/app/node_modules/.pnpm/[email protected]_@[email protected][email protected]_@[email protected][email protected]/node_modules/drizzle-orm/pg-core/session.cjs:66:15)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async SeriesIdentityService.backfillMissingSeriesIds (/app/dist/common/services/series-identity.service.js:71:9)
    at async SeriesIdentityService.onModuleInit (/app/dist/common/services/series-identity.service.js:31:9)
    at async Promise.all (index 0)
    at async callModuleInitHook (/app/node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]_09e3abf6df966484a696d505282497b9/node_modules/@nestjs/core/hooks/on-module-init.hook.js:43:5)
    at async NestApplication.callInitHook (/app/node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]_09e3abf6df966484a696d505282497b9/node_modules/@nestjs/core/nest-application-context.js:252:13)
    at async NestApplication.init (/app/node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]_09e3abf6df966484a696d505282497b9/node_modules/@nestjs/core/nest-application.js:105:9)
    at async NestApplication.listen (/app/node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]_09e3abf6df966484a696d505282497b9/node_modules/@nestjs/core/nest-application.js:177:13)
    at async bootstrap (/app/dist/main.js:121:5)
root@biblioteca-epub:~/bookorbit#

Screenshots (optional)

No response

Before submitting

  • I've searched existing issues and this hasn't been reported yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreleasedIssue or PR is included in a released version.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions