meaniebeanie22
meaniebeanie22
RRailway
Created by meaniebeanie22 on 2/9/2024 in #✋|help
How can I periodically run a management command on railway?
I need to cd into the project's folder, and then run
python manage.py recurpayments
python manage.py recurpayments
, but i can't seem to figure out how to do this (the only option that there seems to be is running a start command on a cron schedule) Thanks!
17 replies
RRailway
Created by meaniebeanie22 on 1/30/2024 in #✋|help
Able to make request to public URL but not private
I have a rest API deployed as a service in the same environment as my main service - i can send requests to it over the public network using requests, but if i try to use the private network link I get the following trace: https://pastebin.com/1a2Tkrt1
52 replies
RRailway
Created by meaniebeanie22 on 1/29/2024 in #✋|help
Flask API crashing shortly after deploy (waitress)
Traceback (most recent call last):

File "/venv/lib/python3.12/site-packages/waitress/adjustments.py", line 374, in __init__

for s in socket.getaddrinfo(

^^^^^^^^^^^^^^^^^^^

File "/usr/local/lib/python3.12/socket.py", line 963, in getaddrinfo

for res in _socket.getaddrinfo(host, port, family, type, proto, flags):

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

socket.gaierror: [Errno -8] Servname not supported for ai_socktype

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/venv/bin/waitress-serve", line 8, in <module>

sys.exit(run())

^^^^^

File "/venv/lib/python3.12/site-packages/waitress/runner.py", line 298, in run

_serve(app, **kw)

File "/venv/lib/python3.12/site-packages/waitress/__init__.py", line 13, in serve

server = _server(app, **kw)

^^^^^^^^^^^^^^^^^^

File "/venv/lib/python3.12/site-packages/waitress/server.py", line 49, in create_server

adj = Adjustments(**kw)

^^^^^^^^^^^^^^^^^

File "/venv/lib/python3.12/site-packages/waitress/adjustments.py", line 401, in __init__

raise ValueError("Invalid host/port specified.")

ValueError: Invalid host/port specified.
Traceback (most recent call last):

File "/venv/lib/python3.12/site-packages/waitress/adjustments.py", line 374, in __init__

for s in socket.getaddrinfo(

^^^^^^^^^^^^^^^^^^^

File "/usr/local/lib/python3.12/socket.py", line 963, in getaddrinfo

for res in _socket.getaddrinfo(host, port, family, type, proto, flags):

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

socket.gaierror: [Errno -8] Servname not supported for ai_socktype

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/venv/bin/waitress-serve", line 8, in <module>

sys.exit(run())

^^^^^

File "/venv/lib/python3.12/site-packages/waitress/runner.py", line 298, in run

_serve(app, **kw)

File "/venv/lib/python3.12/site-packages/waitress/__init__.py", line 13, in serve

server = _server(app, **kw)

^^^^^^^^^^^^^^^^^^

File "/venv/lib/python3.12/site-packages/waitress/server.py", line 49, in create_server

adj = Adjustments(**kw)

^^^^^^^^^^^^^^^^^

File "/venv/lib/python3.12/site-packages/waitress/adjustments.py", line 401, in __init__

raise ValueError("Invalid host/port specified.")

ValueError: Invalid host/port specified.
18 replies
RRailway
Created by meaniebeanie22 on 1/14/2024 in #✋|help
Cannot communicate with server in private network
Traceback: https://pastebin.com/czArL7Rp Django is trying to talk to the database, but cannot connect and is as such throwing a 500
40 replies
RRailway
Created by meaniebeanie22 on 1/2/2024 in #✋|help
absolute newbie: how can I use python 3.12 and django 5.0 when I deploy my app?
project ID: 6ec4e69f-153c-42b1-8399-d4fbd6db04fb I have a django app that runs happily on my computer but when I try and deploy to railway I get errors saying that it is using python38, despite having a runtime.txt file with "Python 3.12.1" in it (I have no idea if that is the right thing to do, but it was what one of the few recent-ish youtube tutorials I could find suggested). Would someone be able to tell me/link to a way for me to use the latest version of python? Thanks!
66 replies