Unable to add / deploy any database
hrwise89
FREEOP

6 months ago

If I right click in my project, add Database, (and select say PostgreSQL), i get an icon in the bottom right saying it is "spinning up" but then invetibly it says "Unable to deploy PostgreSQL." Any other Databases are the same story.

I don't know how useful it is, but here is the build log for my Web service.

[Region: us-west1]

==============

Using Nixpacks

==============

context: 564f-9pXt

╔══════════════════════════════ Nixpacks v1.38.0 ══════════════════════════════╗

║ setup │ python3, postgresql_16.dev, gcc ║

║──────────────────────────────────────────────────────────────────────────────║

║ install │ python -m venv --copies /opt/venv && . /opt/venv/bin/activate ║

║ │ && pip install -r requirements.txt ║

║──────────────────────────────────────────────────────────────────────────────║

║ start │ gunicorn app:app ║

╚══════════════════════════════════════════════════════════════════════════════╝

internal

load build definition from Dockerfile

0ms

internal

load metadata for ghcr.io/railwayapp/nixpacks:ubuntu-1745885067

122ms

internal

load .dockerignore

0ms

internal

load build context

0ms

stage-0

COPY .nixpacks/nixpkgs-bc8f8d1be58e8c8383e683a06e1e1e57893fff87.nix .nixpacks/nixpkgs-bc8f8d1be58e8c8383e683a06e1e1e57893fff87.nix cached

0ms

stage-0

RUN nix-env -if .nixpacks/nixpkgs-bc8f8d1be58e8c8383e683a06e1e1e57893fff87.nix && nix-collect-garbage -d cached

0ms

stage-0

COPY . /app/.

33ms

stage-0

RUN python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt

10s

Successfully installed Flask-3.1.2 Flask-Login-0.6.3 Flask-Migrate-4.1.0 Flask-SQLAlchemy-3.1.1 Flask-SocketIO-5.5.1 Jinja2-3.1.6 Mako-1.3.10 MarkupSafe-3.0.2 SQLAlchemy-2.0.43 Werkzeug-3.1.3 alembic-1.16.5 bidict-0.23.1 blinker-1.9.0 click-8.1.8 ecdsa-0.19.1 et_xmlfile-2.0.0 greenlet-3.2.4 gunicorn-20.1.0 h11-0.16.0 importlib_metadata-8.7.0 itsdangerous-2.2.0 openpyxl-3.1.5 psycopg2-binary-2.9.10 python-dotenv-1.1.1 python-engineio-4.12.2 python-http-client-3.3.7 python-socketio-5.13.0 sendgrid-6.12.4 setuptools-80.9.0 simple-websocket-1.1.0 six-1.17.0 tomli-2.2.1 typing_extensions-4.15.0 wsproto-1.2.0 zipp-3.23.0

stage-0

RUN printf '\nPATH=/opt/venv/bin:$PATH' >> /root/.profile

168ms

stage-0

COPY . /app

19ms

auth

sharing credentials for production-us-west2.railway-registry.com

0ms

importing to docker

12s

=== Successfully Built! ===

Run:

docker run -it production-us-west2.railway-registry.com/c165589a-09b2-473b-89b1-a83ea89e7ed2:a5b6cb70-77b4-463e-88f5-05578af96aa2

Build time: 53.48 seconds

====================

Starting Healthcheck

====================

Path: /

Retry window: 10s

[1/1] Healthcheck succeeded!

Any ideas? I saw another comment suggesting in someone elses particular case, upgrading to the paid $5 plan might help. If that's the case here, fine, I can try that, but I would like to keep this as a free trial until I'm sure it will work for my purposes. (but if it WILL definitely work, that is, adding PostgreSQL, I could be willing).

Sorry, quite new to web development, so if anything is wonky or misstated, feel free to ask for clarification or ask me for any other information.

Closed

3 Replies

Railway
BOT

6 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


6 months ago

Apologies but this looks like an issue with the application level code. Due to volume, we can only answer platform level issues.

I've made this thread public so that the community might be able to help with you query.


Status changed to Awaiting User Response Railway 6 months ago


hrwise89
FREEOP

6 months ago

Fair enough. It worked fine on Heroku, no problems adding PostgreSQL / getting things up and running. I see other people across the web having this same issue of being unable to add any Database or really anything. But moving on to Heroku so that is fine


Status changed to Awaiting Railway Response Railway 6 months ago


Status changed to Closed jake 6 months ago


Loading...