Comments (20)
yes , after running the commands you provided , now I can login with admin/voiduser
/void # export DATABASE_URL=postgres://postgres:postgres@postgres/postgres
/void # yarn prisma db seed
yarn run v1.22.15
$ /void/node_modules/.bin/prisma db seed
Running seed command `ts-node --compiler-options {"module":"commonjs"} prisma/seed.ts` ...
12:41:15 PM INFO/SEED Created default user with username "admin" and password "voiduser"
🌱 The seed command has been executed.
Done in 4.92s.
/void #
and I also want to point out the $PWD variable in docker-compose was not working. I had to update $PWD to .
like
volumes:
- './uploads:/void/uploads'
- './public:/void/public'
- './config.toml:/void/config.toml'
hope these problems can be solved in next release.
from void.
Username: admin
Password: voiduser
from void.
Please create a new issue.
from void.
Check whether void_postgres
is running.
from void.
admin:voiduser not working
from void.
from void.
admin:voiduser
is the default credential. If you can't login, try admin:draconicuser
from void.
@AlphaNecron > User not found
from void.
Are you using docker
?
from void.
from void.
sudo -u postgres psql
\x
TABLE "User";
The output is the username.
from void.
from void.
Use yarn prisma db seed
if you are using yarn
or npx prisma db seed
if you are using npm
.
from void.
admin:voiduser
or admin:draconicuser
are both wrong .
I'm using docker-compose, and here is the docker-compose.yml
I change the expose port only.
version: '3'
services:
postgres:
image: postgres
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DATABASE=postgres
volumes:
- pg_data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres']
interval: 10s
timeout: 5s
retries: 5
void:
image: ghcr.io/alphanecron/void/void:v0
ports:
- '805:3000'
restart: unless-stopped
volumes:
- './uploads:/void/uploads'
- './public:/void/public'
- './config.toml:/void/config.toml'
depends_on:
- 'postgres'
volumes:
pg_data:
from void.
Try executing yarn prisma db seed
in the docker container.
from void.
from void.
Do export DATABASE_URL=postgres://postgres:postgres@postgres/postgres
first.
from void.
Or whatever you put in your config.
from void.
Is the issue fixed?
from void.
Hi @AlphaNecron , I'm encountering an error when attempting this (docker-compose). Any ideas?
/void # export DATABASE_URL=postgres://postgres:<password>@postgres/postgres
/void # yarn prisma db seed
yarn run v1.22.15
$ /void/node_modules/.bin/prisma db seed
Running seed command `ts-node --compiler-options {"module":"commonjs"} prisma/seed.ts` ...
PrismaClientKnownRequestError:
Invalid `prisma.user.aggregate()` invocation:
The table `public.User` does not exist in the current database.
at cb (/void/node_modules/@prisma/client/runtime/index.js:38537:17)
at async main (/void/prisma/seed.ts:8:17) {
code: 'P2021',
clientVersion: '3.3.0',
meta: { table: 'public.User' }
}
An error occured while running the seed command:
Error: Command failed with exit code 1: ts-node --compiler-options {"module":"commonjs"} prisma/seed.ts
I've also tried npx...
with the same result.
Thank you,
from void.
Related Issues (20)
- What is the default login? HOT 1
- Database_URL on Yarn Build HOT 4
- Reverse proxy breaks file links HOT 1
- Add default login info to README HOT 1
- Wont start v1 HOT 3
- When pulling v0 the default credentials are not working. IE. User not found HOT 23
- Sometimes uploaded photos will not embed and will load infinitely when trying to navigate to them. HOT 12
- Files taking a very long time to upload suddenly. HOT 9
- yarn build error HOT 3
- Error building HOT 2
- Cant download prisma engines HOT 2
- Upload link error timeout HOT 6
- Installing via Docker-compose doesn't allow logins. HOT 24
- Upload from terminal HOT 2
- user logged in shows as an admin HOT 1
- Default user not created with docker-compose HOT 3
- codes HOT 9
- help HOT 3
- Failed to compile. HOT 1
- SyntaxError: Cannot use import statement outside a module HOT 1
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 void.