RabbitMQ - Unable to connect to rabbitmq with URL: <NOT SET>

Hello there,

I am currently getting started with Aiida, and set up some profiles on my workstation. Everything worked, I was able to submit some calculations, but at one point, I lost my connection to RabbitMQ:

verdi status
 ✔ version:     AiiDA v2.5.2
 ✔ config:      /home/schaeren-s/.aiida
 ✔ profile:     nasicon
 ✔ storage:     Storage for 'nasicon' [open] @ postgresql://aiida_nasicon:***@localhost:5432/aiida_nasicon_db / DiskObjectStoreRepository: 7c6a260c828042589a2e1ec3e4f25552 | /home/schaeren-s/PycharmProjects/V_NASICON/aiida_repo/container
 ✘ rabbitmq:    Unable to connect to rabbitmq with URL: <NOT SET>
Error: ConfigurationError: invalid process control backend, only 'rabbitmq' is supported: core.rabbitmq

Do you know how Aiida looks for the URL of rabbitmq? I am quite sure RabbitMQ is running and has open ports 25672 and 5672.

Additionally, the .aiida/config file for the profile looks as follows:

 "nasicon": {
            "storage": {
                "backend": "core.psql_dos",
                "config": {
                    "database_engine": "postgresql_psycopg2",
                    "database_hostname": "localhost",
                    ...
                }
            },
            "process_control": {
                "backend": "core.rabbitmq",
                "config": {
                    "broker_protocol": "amqp",
                    "broker_username": "guest",
                    "broker_password": "guest",
                    "broker_host": "127.0.0.1",
                    "broker_port": 5672,
                    "broker_virtual_host": ""
                }
            },
...

To my eye, this looks correct in so far as the port matches, and we use core.rabbitmq as backend – so, I do not really understand what the error

"ConfigurationError: invalid process control backend, only 'rabbitmq' is supported: core.rabbitmq"

tries to tell me.

Does anybody have an idea why my profile suddenly lost access to RabbitMQ?

Thanks for your support and all the best
Stefan

Hi Stefan !

This is Muhammad Rebaal , one of the contributors from AiiDA’s org.
Have you checked that the rabbitMQ is running if not check using
sudo systemctl status rabbitmq-server
and if it isn’t running run it using this command
sudo systemctl start rabbitmq-server
and the best way to set things up of AiiDA environment is to go through this video on youtube : AiiDA Environment Setup

After going through the following steps I hope your issue would be resolved.

Thank You !

Hi @Schastef,

I think the issue might be that you created your profile with a more recent version of AiiDA, and now you have v2.5.2 installed? At least I managed to reproduce it on my machine like this. The core.rabbitmq entry_point was only added in v2.6.0, more specifically in this PR:

There is a small hack implemented that if a profile was created with an older version of AiiDA, it still works with a more recent version, see here:

Also, this comment by @sphuber.

However, this is not implemented in the other direction. Could you try to install the latest released version, v2.6.3, and see if things start working again?

Best,
Julian

1 Like

Thanks for the quick support!

Indeed, the root of the problem was an accidental down-grade of my aiida-core package, caused when I installed the aiida_hubbard package (it requires aiida to be older than 2.6).

Updating aiida-core fixes the issue with RabbitMQ. All I have to hope now is that aiida_hubbard is still compatible with aiida-core on the newest version :crossed_fingers:.

Thanks and all the best

1 Like