CommanderStorm created an issue (openstreetmap/openstreetmap-website#6747)

I cannot use the native rails environment, since that seems to be broken on my 
machine as I discussed in a previous issue.

I tried to use the following commands to setup an development environment, but 
I am doing something wrong.

```
docker compose up -d
```

```
docker ps
CONTAINER ID   IMAGE             COMMAND                  CREATED         
STATUS                   PORTS                                           NAMES
7cb0bb0f853c   ohm-website-web   "/entrypoint.sh bund…"   4 minutes ago   Up 4 
minutes             0.0.0.0:3000->3000/tcp, [::]:3000->3000/tcp     
ohm-website-web-1
3567cd6d34fb   ohm-website-db    "docker-entrypoint.s…"   4 minutes ago   Up 4 
minutes (healthy)   0.0.0.0:54321->5432/tcp, [::]:54321->5432/tcp   
ohm-website-db-1
```

```
docker compose run --rm web bundle exec rails db:migrate
WARN[0000] No services to build
 ✔ Container ohm-website-db-1 Running                                           
                                                                                
                                                                       0.0s 
WARN[0000] No services to build                         
Container ohm-website-db-1 Waiting 
Container ohm-website-db-1 Healthy 
Container ohm-website-web-run-755c16996539 Creating 
Container ohm-website-web-run-755c16996539 Created 
To use retry middleware with Faraday v2.0+, install `faraday-retry` gem
bin/rails aborted!
ActiveRecord::ConnectionNotEstablished: connection to server on socket 
"/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory 
(ActiveRecord::ConnectionNotEstablished)
        Is the server running locally and accepting connections on that socket?
connection to server on socket "/run/postgresql/.s.PGSQL.5432" failed: No such 
file or directory
        Is the server running locally and accepting connections on that socket?
connection to server on socket "/tmp/.s.PGSQL.5432" failed: No such file or 
directory
        Is the server running locally and accepting connections on that socket?


Caused by:
PG::ConnectionBad: connection to server on socket 
"/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory 
(PG::ConnectionBad)
        Is the server running locally and accepting connections on that socket?
connection to server on socket "/run/postgresql/.s.PGSQL.5432" failed: No such 
file or directory
        Is the server running locally and accepting connections on that socket?
connection to server on socket "/tmp/.s.PGSQL.5432" failed: No such file or 
directory
        Is the server running locally and accepting connections on that socket?

Tasks: TOP => db:migrate
(See full trace by running task with --trace)
```

I don't see any changes to the environment in the last few months that could 
really affect this, which is a bit strange.
Anyone faced this before?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/6747
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/issues/[email protected]>
_______________________________________________
rails-dev mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to