Closed ireaml closed 11 months ago
Thanks for this well-written bug report, and sorry that it did not receive any follow-up.
I suspect part of the reason may be that it is difficult to know what exactly changed. I guess ps -ef | grep -i rabbitmq
shows the server running?
To disentangle the issue from AiiDA you could consider trying to connect via a Python script, something like
import asyncio
import aio_pika
async def main():
try:
# Connect to RabbitMQ running on localhost
connection = await aio_pika.connect_robust(
"amqp://guest:guest@127.0.0.1:5672/"
)
# Create a channel
channel = await connection.channel()
print("Successfully connected as guest via the AMQP interface.")
await channel.close()
await connection.close()
except Exception as e:
print(f"Failed to connect as guest via the AMQP interface. Error: {e}")
if __name__ == "__main__":
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
I am going to close this issue now in the assumption it is related to the rabbitmq installation. However, feel free to reopen if there is indeed an issue with AiiDA's connection to rabbitmq (or if the AiiDA documentation should be updated to include more details on how to install rabbitmq on MacOS).
Describe the bug
I had a working installation of
aiida
which haven't used in the last ~3 weeks, but today when I tried to use it,aiida
couldn't connect torabbitmq
(version3.11.12
, with the configuration file modified as described in the documentation). It used to work fine a couple of weeks ago so not sure what happened.Output of
verdi status
:I tried to uninstall and reinstall
rabbitmq
usinghomebrew
butaiida
still couldn't connect. When runningrabbitmq-diagnostics status
, everything seems ok to me (output below). Also tried to create a new conda environment, and installaiida-core
but still the same issue.Thanks in advance!
Your environment
Mac
3.10
2.2.2
3.11.12
Additional context
Output of
rabbitmq-diagnostics status
: