Comments (13)
I found that modifying my .env
DATABASE_URL
to specify my user account name (instead of postgres
), seems to fix this:
- DATABASE_URL="postgresql://postgres:postgres@localhost:5432/postgres"
+ DATABASE_URL="postgresql://tom:postgres@localhost:5432/postgres"
But not entirely sure why? Would be nice is postgres
worked so any developer on my team could get up and running quickly.
from blues-stack.
I had this problem and it was related to having postgres installed and running on my mac separately from the remix instance inside Docker.
Killing the local install solved it for me.
from blues-stack.
I found that modifying my
.env
DATABASE_URL
to specify my user account name (instead ofpostgres
), seems to fix this:- DATABASE_URL="postgresql://postgres:postgres@localhost:5432/postgres" + DATABASE_URL="postgresql://tom:postgres@localhost:5432/postgres"But not entirely sure why? Would be nice is
postgres
worked so any developer on my team could get up and running quickly.
Same problem here. By the way, which user name do you mean?
from blues-stack.
I had this problem and it was related to having postgres installed and running on my mac separately from the remix instance inside Docker.
Killing the local install solved it for me.
This works for me. I had a separate instance of posgres running aside from the one running in my docker container. stoping the local postgres instance made resolve the issue.
from blues-stack.
This is on an M1 MacBook Pro, running Docker Desktop 4.6.1 (76265). Otherwise just followed exact setup in the README.
# psql -U postgres
psql (11.3 (Debian 11.3-1.pgdg90+1))
Type "help" for help.
postgres=# \l
List of databases
Name | Owner | Encoding | Collate | Ctype | Access privileges
-----------+----------+----------+------------+------------+-----------------------
postgres | postgres | UTF8 | en_US.utf8 | en_US.utf8 |
template0 | postgres | UTF8 | en_US.utf8 | en_US.utf8 | =c/postgres +
| | | | | postgres=CTc/postgres
template1 | postgres | UTF8 | en_US.utf8 | en_US.utf8 | =c/postgres +
| | | | | postgres=CTc/postgres
(3 rows)
postgres=# \du
List of roles
Role name | Attributes | Member of
-----------+------------------------------------------------------------+-----------
postgres | Superuser, Create role, Create DB, Replication, Bypass RLS | {}
from blues-stack.
Same issue. Same versions. Updating to user name in env DATABASE_URL also worked for me.
from blues-stack.
Same error here, just bootstrapped a new blues stack. strangely the one I bootstrapped couple of days ago (pretty sure less than 19 days) didn't fail 🤔
Also found prisma/prisma#6778
Update: Not sure what's the exact solution as I docker-compose down && docker-compose up --force-recreate
a bunch of times though I changed POSTGRES_USER
, POSTGRES_PASSWORD
& POSTGRES_DB
as well as DATABASE_URL
in .env
from blues-stack.
Same problem here. By the way, which user name do you mean?
@Saad29: I mean the name of your user account. What you see when you run this in your shell:
echo $USER
from blues-stack.
looking into this a bit, haven't found anything out of the ordinary in these set ups or during a bit of googling..
but in the interim, you should be able to do the following instead:
version: "3.7"
services:
postgres:
image: postgres:latest
restart: unless-stopped
- environment:
- - POSTGRES_USER=postgres
- - POSTGRES_PASSWORD=postgres
- - POSTGRES_DB=postgres
+ env_file:
+ — .env
ports:
- "5432:5432"
volumes:
- ./postgres-data:/var/lib/postgresql/data
then add the following to a .env file
POSTGRES_USER=myuser
POSTGRES_PASSWORD=postgres
POSTGRES_DB=postgres
you might also be able to keep the password/db in the compose env, but im not sure if those are a one or the other type of thing
from blues-stack.
Closing this issue as no response was provided.
Feel free to re-open it if it's still a problem.
from blues-stack.
My issue is related to postgres in another server, when I try it it shows
Error: Can't reach database server at `undefined.34.121.158.52`:`5432`
But just with this remix app, with nestjs and using local db it works normally
from blues-stack.
I have implemented all the above suggestions, but none helps. Also, I am pretty new to Postgres, so would be nice if any suggestion comes up.
Please reopen the issue
from blues-stack.
@postmeback did you eventually find a fix? I'm in the same shoes now
from blues-stack.
Related Issues (20)
- Hydration error: Initial UI does not match server HOT 3
- New Defer API does not work with blues-stack HOT 11
- When Using Express Adapter Throwing Responses will break the app HOT 1
- great repro
- Race condition in npm run dev HOT 5
- Base Repo OOMs on Fly.io HOT 7
- Fly.io -> Error: Can't reach database server HOT 7
- `npm run typecheck` fails on fresh project HOT 7
- blues-stack 2.0.0-pre.5 - LiveReload is not working HOT 2
- v2_dev leaves one node process behind after shutdown HOT 1
- Scripts variant in README to support the Yarn inclined
- Deployment issue. Node version >18 needed
- Update server.ts to watch version.txt
- Error when trying to run the docker image HOT 3
- Latest server.js code breaks HDR HOT 1
- Some URLs in the `/build` path were 404 not found after making changes in development mode HOT 1
- Vite support
- Build failed while running npm run build on blues stack HOT 2
- Install an esm package dependency
- Error Code 134 on Deploy of Base Repo HOT 2
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 blues-stack.