Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Exporting hostname...
- Migrating database...
- yarn run v1.22.19
- $ ts-node ./migrate.ts
- DrizzleError: Failed to run the query '
- CREATE TABLE IF NOT EXISTS "__drizzle_migrations" (
- id SERIAL PRIMARY KEY,
- hash text NOT NULL,
- created_at numeric
- )
- ': database is locked
- at Function.wrap (/app/migrate/node_modules/src/errors.ts:13:6)
- at BetterSQLiteSession.run (/app/migrate/node_modules/src/sqlite-core/session.ts:110:23)
- at SQLiteSyncDialect.migrate (/app/migrate/node_modules/src/sqlite-core/dialect.ts:629:11)
- at migrate (/app/migrate/node_modules/src/better-sqlite3/migrator.ts:10:13)
- at /app/migrate/migrate.ts:17:16
- at Generator.next (<anonymous>)
- at /app/migrate/migrate.ts:8:71
- at new Promise (<anonymous>)
- at __awaiter (/app/migrate/migrate.ts:4:12)
- at migrateDatabase (/app/migrate/migrate.ts:16:36)
- error Command failed with exit code 1.
- info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
- Starting production server...
- Listening on port 7575 url: http://5ba0726e55cd:7575
- << query #1 user.count {
- input: undefined,
- result: [TRPCClientError: no such table: user] {
- {
- response: Response {
- [Symbol(realm)]: { settingsObject: {} },
- [Symbol(state)]: {
- aborted: false,
- rangeRequested: false,
- timingAllowPassed: false,
- requestIncludesCredentials: false,
- type: 'default',
- status: 500,
- timingInfo: null,
- cacheState: '',
- statusText: 'Internal Server Error',
- headersList: HeadersList {
- cookies: [
- 'next-auth.csrf-token=521de38daf85ff16b450d476c40afb88ea96e9cf1b0d3b6a505482087a1d507e%7Cfa7c803d42c44259097e9d51eca2ae54f89de6d8586c1e51a33e356afe2f3561; Path=/; HttpOnly; SameSite=Lax, next-auth.callback-url=http%3A%2F%2Flocalhost%3A7575; Path=/; HttpOnly; SameSite=Lax'
- ],
- [Symbol(headers map)]: Map(8) {
- 'connection' => { name: 'connection', value: 'close' },
- 'content-encoding' => { name: 'content-encoding', value: 'gzip' },
- 'content-type' => { name: 'content-type', value: 'application/json' },
- 'date' => { name: 'date', value: 'Sat, 23 Dec 2023 10:10:56 GMT' },
- 'keep-alive' => { name: 'keep-alive', value: 'timeout=5' },
- 'set-cookie' => {
- name: 'set-cookie',
- value: 'next-auth.csrf-token=521de38daf85ff16b450d476c40afb88ea96e9cf1b0d3b6a505482087a1d507e%7Cfa7c803d42c44259097e9d51eca2ae54f89de6d8586c1e51a33e356afe2f3561; Path=/; HttpOnly; SameSite=Lax, next-auth.callback-url=http%3A%2F%2Flocalhost%3A7575; Path=/; HttpOnly; SameSite=Lax'
- },
- 'transfer-encoding' => { name: 'transfer-encoding', value: 'chunked' },
- 'vary' => { name: 'vary', value: 'Accept-Encoding' }
- },
- [Symbol(headers map sorted)]: null
- },
- urlList: [],
- {
- stream: <ref *1> ReadableStream {
- _state: 'closed',
- _reader: ReadableStreamDefaultReader {
- _ownerReadableStream: [Circular *1],
- _closedPromise_resolve: undefined,
- _closedPromise_reject: undefined,
- _closedPromise: Promise { },
- _readRequests: S {
- _cursor: 0,
- _size: 0,
- _front: { _elements: [], _next: undefined },
- _back: { _elements: [], _next: undefined }
- }
- },
- _storedError: undefined,
- _disturbed: true,
- _readableStreamController: ReadableStreamDefaultController {
- _controlledReadableStream: [Circular *1],
- _queue: S {
- _cursor: 0,
- _size: 0,
- _front: { _elements: [], _next: undefined },
- _back: { _elements: [], _next: undefined }
- },
- _queueTotalSize: 0,
- _started: true,
- _closeRequested: true,
- _pullAgain: false,
- _pulling: true,
- _strategySizeAlgorithm: undefined,
- _strategyHWM: 0,
- _pullAlgorithm: undefined,
- _cancelAlgorithm: undefined
- }
- },
- source: null,
- length: null
- }
- },
- [Symbol(headers)]: Headers {
- [Symbol(headers list)]: HeadersList {
- cookies: [
- 'next-auth.csrf-token=521de38daf85ff16b450d476c40afb88ea96e9cf1b0d3b6a505482087a1d507e%7Cfa7c803d42c44259097e9d51eca2ae54f89de6d8586c1e51a33e356afe2f3561; Path=/; HttpOnly; SameSite=Lax, next-auth.callback-url=http%3A%2F%2Flocalhost%3A7575; Path=/; HttpOnly; SameSite=Lax'
- ],
- [Symbol(headers map)]: Map(8) {
- 'connection' => { name: 'connection', value: 'close' },
- 'content-encoding' => { name: 'content-encoding', value: 'gzip' },
- 'content-type' => { name: 'content-type', value: 'application/json' },
- 'date' => { name: 'date', value: 'Sat, 23 Dec 2023 10:10:56 GMT' },
- 'keep-alive' => { name: 'keep-alive', value: 'timeout=5' },
- 'set-cookie' => {
- name: 'set-cookie',
- value: 'next-auth.csrf-token=521de38daf85ff16b450d476c40afb88ea96e9cf1b0d3b6a505482087a1d507e%7Cfa7c803d42c44259097e9d51eca2ae54f89de6d8586c1e51a33e356afe2f3561; Path=/; HttpOnly; SameSite=Lax, next-auth.callback-url=http%3A%2F%2Flocalhost%3A7575; Path=/; HttpOnly; SameSite=Lax'
- },
- 'transfer-encoding' => { name: 'transfer-encoding', value: 'chunked' },
- 'vary' => { name: 'vary', value: 'Accept-Encoding' }
- },
- [Symbol(headers map sorted)]: null
- },
- [Symbol(guard)]: 'response',
- [Symbol(realm)]: { settingsObject: {} }
- }
- },
- responseJSON: [
- {
- error: {
- {
- message: 'no such table: user',
- code: -32603,
- {
- code: 'INTERNAL_SERVER_ERROR',
- httpStatus: 500,
- path: 'user.count',
- zodError: null
- }
- }
- }
- }
- ]
- },
- shape: {
- message: 'no such table: user',
- code: -32603,
- {
- code: 'INTERNAL_SERVER_ERROR',
- httpStatus: 500,
- path: 'user.count',
- zodError: null
- }
- },
- {
- code: 'INTERNAL_SERVER_ERROR',
- httpStatus: 500,
- path: 'user.count',
- zodError: null
- },
- name: 'TRPCClientError'
- },
- elapsedMs: 786
- }
- Error [TRPCClientError]: no such table: user
- at TRPCClientError.from (file:///app/.next/server/src/middleware.js:1718:20)
- at <unknown> (file:///app/.next/server/src/middleware.js:2273:60)
- at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement