Comments (3)
I forgot to mention. It seems that this is the commit causing the problem.
from directus.
Thanks for opening this issue! However this is a duplicate of an existing issue #21828, so I'll proceed to close this but if you think this is actually a different issue, then please do not hesitate to comment. The existing issue #21828 has been fixed by #22019 which will be available with the next release.
from directus.
Migration error on fresh install pulling from docker hub
Database is cockroachdb
Instance created. Preparing to start...
Network configuration propagated
Instance is starting. Propagating network configuration...
[00:28:15.788] ERROR: Database migrations cannot be found
[00:28:15.789] ERROR: select "version" from "directus_migrations" - relation "directus_migrations" does not exist
err: {
"type": "DatabaseError",
"message": "select \"version\" from \"directus_migrations\" - relation \"directus_migrations\" does not exist",
"stack":
error: select "version" from "directus_migrations" - relation "directus_migrations" does not exist
at Parser.parseErrorMessage (/directus/node_modules/.pnpm/[email protected]/node_modules/pg-protocol/dist/parser.js:283:98)
at Parser.handlePacket (/directus/node_modules/.pnpm/[email protected]/node_modules/pg-protocol/dist/parser.js:122:29)
at Parser.parse (/directus/node_modules/.pnpm/[email protected]/node_modules/pg-protocol/dist/parser.js:35:38)
at TLSSocket.<anonymous> (/directus/node_modules/.pnpm/[email protected]/node_modules/pg-protocol/dist/index.js:11:42)
at TLSSocket.emit (node:events:517:28)
at addChunk (node:internal/streams/readable:368:12)
at readableAddChunk (node:internal/streams/readable:341:9)
at Readable.push (node:internal/streams/readable:278:10)
at TLSWrap.onStreamRead (node:internal/stream_base_commons:190:23)
"length": 116,
"name": "error",
"severity": "ERROR",
"code": "42P01",
"file": "errors.go",
"line": "172",
"routine": "NewUndefinedRelationError"
}
[00:28:27.558] ERROR: Database migrations cannot be found
[00:28:27.558] ERROR: select "version" from "directus_migrations" - relation "directus_migrations" does not exist
err: {
"type": "DatabaseError",
"message": "select \"version\" from \"directus_migrations\" - relation \"directus_migrations\" does not exist",
"stack":
error: select "version" from "directus_migrations" - relation "directus_migrations" does not exist
at Parser.parseErrorMessage (/directus/node_modules/.pnpm/[email protected]/node_modules/pg-protocol/dist/parser.js:283:98)
at Parser.handlePacket (/directus/node_modules/.pnpm/[email protected]/node_modules/pg-protocol/dist/parser.js:122:29)
at Parser.parse (/directus/node_modules/.pnpm/[email protected]/node_modules/pg-protocol/dist/parser.js:35:38)
at TLSSocket.<anonymous> (/directus/node_modules/.pnpm/[email protected]/node_modules/pg-protocol/dist/index.js:11:42)
at TLSSocket.emit (node:events:517:28)
at addChunk (node:internal/streams/readable:368:12)
at readableAddChunk (node:internal/streams/readable:341:9)
at Readable.push (node:internal/streams/readable:278:10)
at TLSWrap.onStreamRead (node:internal/stream_base_commons:190:23)
"length": 116,
"name": "error",
Application exited with code 1. This usually indicates an application failure. Check that the command used to launch your application is correct.
Instance stopped
Instance created. Preparing to start...
Network configuration propagated
Instance is starting. Propagating network configuration...
[00:29:21.037] ERROR: Database migrations cannot be found
[00:29:21.038] ERROR: select "version" from "directus_migrations" - relation "directus_migrations" does not exist
err: {
"type": "DatabaseError",
"message": "select \"version\" from \"directus_migrations\" - relation \"directus_migrations\" does not exist",
"stack":
error: select "version" from "directus_migrations" - relation "directus_migrations" does not exist
at Parser.parseErrorMessage (/directus/node_modules/.pnpm/[email protected]/node_modules/pg-protocol/dist/parser.js:283:98)
at Parser.handlePacket (/directus/node_modules/.pnpm/[email protected]/node_modules/pg-protocol/dist/parser.js:122:29)
at Parser.parse (/directus/node_modules/.pnpm/[email protected]/node_modules/pg-protocol/dist/parser.js:35:38)
at TLSSocket.<anonymous> (/directus/node_modules/.pnpm/[email protected]/node_modules/pg-protocol/dist/index.js:11:42)
at TLSSocket.emit (node:events:517:28)
at addChunk (node:internal/streams/readable:368:12)
at readableAddChunk (node:internal/streams/readable:341:9)
at Readable.push (node:internal/streams/readable:278:10)
at TLSWrap.onStreamRead (node:internal/stream_base_commons:190:23)
"length": 116,
"name": "error",
"severity": "ERROR",
"code": "42P01",
"file": "errors.go",
"line": "172",
"routine": "NewUndefinedRelationError"
}
[00:29:32.150] ERROR: Database migrations cannot be found
Application exited with code 1. This usually indicates an application failure. Check that the command used to launch your application is correct.
Instance stopped
from directus.
Related Issues (20)
- OpenAPI spec has a duplicate operationId HOT 3
- Difficult to update permissions with a long list and long collection names
- Rich text - open link new tab label is confusing HOT 3
- Update Extensions SDK Boilerplates to use Composition API
- Unexpected error in content page HOT 9
- Delete notifications from App HOT 2
- V-Color select interface doesn't support CSS-Variables HOT 2
- Generated OpenAPI schema uses the same `operationId` for two different operations HOT 1
- OpenApi Spec only returns GET paths HOT 1
- Local Directus doesn't show Permissions and Roles HOT 5
- ENV-Variables Security table not rendered correctly HOT 1
- Link to "Good first issues" is broken HOT 2
- Boolean field default value `false` is not stored HOT 2
- Policies cannot be added to Role using SDK
- Directus SSO Support for Native Apps - PKCE OAuth2 HOT 1
- 'w is undefined' in insights HOT 1
- CRON Interface HOT 1
- CORS Missing Allow Origin With AgencyOS and Directus HOT 1
- Boolean default value = false is not working HOT 2
- Hard refresh on Admin App logout session and breaks app until container restart HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from directus.