Advertisement
Guest User

Untitled

a guest
Dec 23rd, 2023
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.79 KB | None | 0 0
  1. Exporting hostname...
  2. Migrating database...
  3. yarn run v1.22.19
  4. $ ts-node ./migrate.ts
  5. DrizzleError: Failed to run the query '
  6. CREATE TABLE IF NOT EXISTS "__drizzle_migrations" (
  7. id SERIAL PRIMARY KEY,
  8. hash text NOT NULL,
  9. created_at numeric
  10. )
  11. ': database is locked
  12. at Function.wrap (/app/migrate/node_modules/src/errors.ts:13:6)
  13. at BetterSQLiteSession.run (/app/migrate/node_modules/src/sqlite-core/session.ts:110:23)
  14. at SQLiteSyncDialect.migrate (/app/migrate/node_modules/src/sqlite-core/dialect.ts:629:11)
  15. at migrate (/app/migrate/node_modules/src/better-sqlite3/migrator.ts:10:13)
  16. at /app/migrate/migrate.ts:17:16
  17. at Generator.next (<anonymous>)
  18. at /app/migrate/migrate.ts:8:71
  19. at new Promise (<anonymous>)
  20. at __awaiter (/app/migrate/migrate.ts:4:12)
  21. at migrateDatabase (/app/migrate/migrate.ts:16:36)
  22. error Command failed with exit code 1.
  23. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
  24. Starting production server...
  25. Listening on port 7575 url: http://5ba0726e55cd:7575
  26. << query #1 user.count {
  27. input: undefined,
  28. result: [TRPCClientError: no such table: user] {
  29. 
  30. {
  31. response: Response {
  32. [Symbol(realm)]: { settingsObject: {} },
  33. [Symbol(state)]: {
  34. aborted: false,
  35. rangeRequested: false,
  36. timingAllowPassed: false,
  37. requestIncludesCredentials: false,
  38. type: 'default',
  39. status: 500,
  40. timingInfo: null,
  41. cacheState: '',
  42. statusText: 'Internal Server Error',
  43. headersList: HeadersList {
  44. 
  45. cookies: [
  46. 'next-auth.csrf-token=521de38daf85ff16b450d476c40afb88ea96e9cf1b0d3b6a505482087a1d507e%7Cfa7c803d42c44259097e9d51eca2ae54f89de6d8586c1e51a33e356afe2f3561; Path=/; HttpOnly; SameSite=Lax, next-auth.callback-url=http%3A%2F%2Flocalhost%3A7575; Path=/; HttpOnly; SameSite=Lax'
  47. ],
  48. [Symbol(headers map)]: Map(8) {
  49. 'connection' => { name: 'connection', value: 'close' },
  50. 'content-encoding' => { name: 'content-encoding', value: 'gzip' },
  51. 'content-type' => { name: 'content-type', value: 'application/json' },
  52. 'date' => { name: 'date', value: 'Sat, 23 Dec 2023 10:10:56 GMT' },
  53. 'keep-alive' => { name: 'keep-alive', value: 'timeout=5' },
  54. 'set-cookie' => {
  55. name: 'set-cookie',
  56. value: 'next-auth.csrf-token=521de38daf85ff16b450d476c40afb88ea96e9cf1b0d3b6a505482087a1d507e%7Cfa7c803d42c44259097e9d51eca2ae54f89de6d8586c1e51a33e356afe2f3561; Path=/; HttpOnly; SameSite=Lax, next-auth.callback-url=http%3A%2F%2Flocalhost%3A7575; Path=/; HttpOnly; SameSite=Lax'
  57. },
  58. 'transfer-encoding' => { name: 'transfer-encoding', value: 'chunked' },
  59. 'vary' => { name: 'vary', value: 'Accept-Encoding' }
  60. },
  61. [Symbol(headers map sorted)]: null
  62. },
  63. urlList: [],
  64. 
  65. {
  66. stream: <ref *1> ReadableStream {
  67. _state: 'closed',
  68. _reader: ReadableStreamDefaultReader {
  69. _ownerReadableStream: [Circular *1],
  70. _closedPromise_resolve: undefined,
  71. _closedPromise_reject: undefined,
  72. _closedPromise: Promise { },
  73. _readRequests: S {
  74. _cursor: 0,
  75. _size: 0,
  76. _front: { _elements: [], _next: undefined },
  77. _back: { _elements: [], _next: undefined }
  78. }
  79. },
  80. _storedError: undefined,
  81. _disturbed: true,
  82. _readableStreamController: ReadableStreamDefaultController {
  83. _controlledReadableStream: [Circular *1],
  84. _queue: S {
  85. _cursor: 0,
  86. _size: 0,
  87. _front: { _elements: [], _next: undefined },
  88. _back: { _elements: [], _next: undefined }
  89. },
  90. _queueTotalSize: 0,
  91. _started: true,
  92. _closeRequested: true,
  93. _pullAgain: false,
  94. _pulling: true,
  95. _strategySizeAlgorithm: undefined,
  96. _strategyHWM: 0,
  97. _pullAlgorithm: undefined,
  98. _cancelAlgorithm: undefined
  99. }
  100. },
  101. source: null,
  102. length: null
  103. }
  104. },
  105. [Symbol(headers)]: Headers {
  106. [Symbol(headers list)]: HeadersList {
  107. 
  108. cookies: [
  109. 'next-auth.csrf-token=521de38daf85ff16b450d476c40afb88ea96e9cf1b0d3b6a505482087a1d507e%7Cfa7c803d42c44259097e9d51eca2ae54f89de6d8586c1e51a33e356afe2f3561; Path=/; HttpOnly; SameSite=Lax, next-auth.callback-url=http%3A%2F%2Flocalhost%3A7575; Path=/; HttpOnly; SameSite=Lax'
  110. ],
  111. [Symbol(headers map)]: Map(8) {
  112. 'connection' => { name: 'connection', value: 'close' },
  113. 'content-encoding' => { name: 'content-encoding', value: 'gzip' },
  114. 'content-type' => { name: 'content-type', value: 'application/json' },
  115. 'date' => { name: 'date', value: 'Sat, 23 Dec 2023 10:10:56 GMT' },
  116. 'keep-alive' => { name: 'keep-alive', value: 'timeout=5' },
  117. 'set-cookie' => {
  118. name: 'set-cookie',
  119. value: 'next-auth.csrf-token=521de38daf85ff16b450d476c40afb88ea96e9cf1b0d3b6a505482087a1d507e%7Cfa7c803d42c44259097e9d51eca2ae54f89de6d8586c1e51a33e356afe2f3561; Path=/; HttpOnly; SameSite=Lax, next-auth.callback-url=http%3A%2F%2Flocalhost%3A7575; Path=/; HttpOnly; SameSite=Lax'
  120. },
  121. 'transfer-encoding' => { name: 'transfer-encoding', value: 'chunked' },
  122. 'vary' => { name: 'vary', value: 'Accept-Encoding' }
  123. },
  124. [Symbol(headers map sorted)]: null
  125. },
  126. [Symbol(guard)]: 'response',
  127. [Symbol(realm)]: { settingsObject: {} }
  128. }
  129. },
  130. responseJSON: [
  131. {
  132. error: {
  133. 
  134. {
  135. message: 'no such table: user',
  136. code: -32603,
  137. 
  138. {
  139. code: 'INTERNAL_SERVER_ERROR',
  140. httpStatus: 500,
  141. path: 'user.count',
  142. zodError: null
  143. }
  144. }
  145. }
  146. }
  147. ]
  148. },
  149. shape: {
  150. message: 'no such table: user',
  151. code: -32603,
  152. 
  153. {
  154. code: 'INTERNAL_SERVER_ERROR',
  155. httpStatus: 500,
  156. path: 'user.count',
  157. zodError: null
  158. }
  159. },
  160. 
  161. {
  162. code: 'INTERNAL_SERVER_ERROR',
  163. httpStatus: 500,
  164. path: 'user.count',
  165. zodError: null
  166. },
  167. name: 'TRPCClientError'
  168. },
  169. elapsedMs: 786
  170. }
  171. Error [TRPCClientError]: no such table: user
  172. at TRPCClientError.from (file:///app/.next/server/src/middleware.js:1718:20)
  173. at <unknown> (file:///app/.next/server/src/middleware.js:2273:60)
  174. at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement