JoshOnX
Railway backend Failing
am getting this errors when i push to my django backend
stage-0 8/10] RUN chmod u+x release.sh && ./release.sh:
11.39 self.connection = self.get_new_connection(conn_params)
11.39 File "/opt/venv/lib/python3.8/site-packages/django/utils/asyncio.py", line 33, in inner
11.39 return func(*args, kwargs)
11.39 File "/opt/venv/lib/python3.8/site-packages/django/db/backends/postgresql/base.py", line 187, in get_new_connection
11.39 connection = Database.connect(conn_params)
11.39 File "/opt/venv/lib/python3.8/site-packages/psycopg2/init.py", line 122, in connect
11.39 conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
11.39 django.db.utils.OperationalError: connection to server at "containers-us-west-198.railway.app" (34.127.24.176), port 6237 failed: Connection refused
11.39 Is the server running on that host and accepting TCP/IP connections?
11.39
-----
Dockerfile:24
-------------------
22 | # release phase
23 | COPY . /app/.
24 | >>> RUN chmod u+x release.sh && ./release.sh
25 |
26 |
-------------------
ERROR: failed to solve: process "/bin/bash -ol pipefail -c chmod u+x release.sh && ./release.sh" did not complete successfully: exit code: 1
Error: Docker build failed
12 replies
Pricing Explanation
my company is about to go live to production, while i was i dev mode i was paying up to 80 dollars per month now that i want to go live am scared how much railway will cost... because for some reason i dont understand railway pricing
21 replies
django keeps failing it say
[stage-0 8/10] RUN chmod u+x release.sh && ./release.sh:#12 1.649 ModuleNotFoundError: No module named 'django' #12 1.649 #12 1.649 The above exception was the direct cause of the following exception: #12 1.649 #12 1.649 Traceback (most recent call last): #12 1.649 File "manage.py", line 22, in <module> #12 1.649 main() #12 1.649 File "manage.py", line 13, in main #12 1.649 raise ImportError( #12 1.649 ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment?
20 replies