#redis railway

28 messages · Page 1 of 1 (latest)

stuck crystalBOT
#

Project ID: N/A

broken sapphire
#

excuse me sir, i am trying to use redis celery for my flask app

#

and finally i get error

#
[2024-09-03 01:13:15,841: ERROR/MainProcess] consumer: Cannot connect to amqp://guest:**@127.0.0.1:5672//: [Errno 111] Connection refused.```

the error is like this
#
web: gunicorn main:app
worker: celery -A main.celery_app worker --loglevel=info```

this is my Procfile code
winged olive
#

first off, that Profile format is specific to Heroku and is not supported on railway, you would instead need two duplicate services, one to run gunicorn, and the other to run celery, you would define either command in the service settings.

secondly, amqp://guest:**@127.0.0.1:5672// is not the correct URL, make sure you are using environment variables set to the correct value.

broken sapphire
winged olive
#

you mean one for flask and one for celery

broken sapphire
broken sapphire
winged olive
broken sapphire
winged olive
#

celery needs redis, where is redis? are you hosting redis elsewhere?

broken sapphire
broken sapphire
winged olive
broken sapphire
#

left is redis right is flask, is this wrong sir?

winged olive
broken sapphire
#

okey sir

broken sapphire
winged olive
#

where is the worker service?

#

have you read the basics page?

broken sapphire
winged olive
#

please read the entire page

broken sapphire
#

this might be the log but i can only see this

winged olive
#

please read the basics page before we continue, it is a necessary read so that we can communicate with the correct terminology

broken sapphire