New AiiDA/AiiDAlab Docker container termination issue

Both my AiiDA (aiida-core-with-services) and AiiDAlab (full-stack) containers suddenly give this on start then terminate.

aiida.common.exceptions.MissingEntryPointError: Entry point 'core.rabbitmq' not found in group 'aiida.brokers'

Full traceback

2024-04-14 08:23:06 ERROR conda.cli.main_run:execute(49): `conda run pg_ctl -D /home/jovyan/.postgresql status` failed. (See above for error)
2024-04-14 08:23:09 waiting for server to start.... done
2024-04-14 08:23:09 server started
2024-04-14 08:23:09 
2024-04-14 08:23:09 /usr/local/bin/start.sh: running script /usr/local/bin/before-notebook.d/30_start-rabbitmq-amd64.sh
2024-04-14 08:23:11 /usr/local/bin/start.sh: running script /usr/local/bin/before-notebook.d/40_prepare-aiida.sh
2024-04-14 08:23:11 ++ export SHELL=/bin/bash
2024-04-14 08:23:11 ++ SHELL=/bin/bash
2024-04-14 08:23:11 ++ [[ true == true ]]
2024-04-14 08:23:11 ++ verdi profile show default
2024-04-14 08:23:12 ++ NEED_SETUP_PROFILE=false
2024-04-14 08:23:12 ++ [[ false == true ]]
2024-04-14 08:23:12 ++ verdi profile show
2024-04-14 08:23:12 Report: Profile: default
2024-04-14 08:23:12 PROFILE_UUID: 12c3ae5c896e42f792d837883e9b03ee
2024-04-14 08:23:12 default_user_email: aiida@localhost
2024-04-14 08:23:12 options: {}
2024-04-14 08:23:12 process_control:
2024-04-14 08:23:12   backend: rabbitmq
2024-04-14 08:23:12   config:
2024-04-14 08:23:12     broker_host: 127.0.0.1
2024-04-14 08:23:12     broker_password: guest
2024-04-14 08:23:12     broker_port: 5672
2024-04-14 08:23:12     broker_protocol: amqp
2024-04-14 08:23:12     broker_username: guest
2024-04-14 08:23:12     broker_virtual_host: ''
2024-04-14 08:23:12 storage:
2024-04-14 08:23:12   backend: core.psql_dos
2024-04-14 08:23:12   config:
2024-04-14 08:23:12     database_engine: postgresql_psycopg2
2024-04-14 08:23:12     database_hostname: localhost
2024-04-14 08:23:12     database_name: aiida_db
2024-04-14 08:23:12     database_password: Vg1UMp6tVIwQJw5Q
2024-04-14 08:23:12     database_port: 5432
2024-04-14 08:23:12     database_username: aiida
2024-04-14 08:23:12     repository_uri: file:///home/jovyan/.aiida/repository/default
2024-04-14 08:23:12 test_profile: false
2024-04-14 08:23:12 
2024-04-14 08:23:12 ++ verdi daemon stop
2024-04-14 08:23:13 Traceback (most recent call last):
2024-04-14 08:23:13   File "/opt/conda/bin/verdi", line 8, in <module>
2024-04-14 08:23:13     sys.exit(verdi())
2024-04-14 08:23:13   File "/opt/conda/lib/python3.9/site-packages/click/core.py", line 1157, in __call__
2024-04-14 08:23:13     return self.main(*args, **kwargs)
2024-04-14 08:23:13   File "/opt/conda/lib/python3.9/site-packages/click/core.py", line 1078, in main
2024-04-14 08:23:13     rv = self.invoke(ctx)
2024-04-14 08:23:13   File "/opt/conda/lib/python3.9/site-packages/click/core.py", line 1688, in invoke
2024-04-14 08:23:13     return _process_result(sub_ctx.command.invoke(sub_ctx))
2024-04-14 08:23:13   File "/opt/conda/lib/python3.9/site-packages/click/core.py", line 1688, in invoke
2024-04-14 08:23:13     return _process_result(sub_ctx.command.invoke(sub_ctx))
2024-04-14 08:23:13   File "/opt/conda/lib/python3.9/site-packages/click/core.py", line 1434, in invoke
2024-04-14 08:23:13     return ctx.invoke(self.callback, **ctx.params)
2024-04-14 08:23:13   File "/opt/conda/lib/python3.9/site-packages/click/core.py", line 783, in invoke
2024-04-14 08:23:13     return __callback(*args, **kwargs)
2024-04-14 08:23:13   File "/home/jovyan/src/aiida-core/src/aiida/cmdline/utils/decorators.py", line 316, in requires_broker
2024-04-14 08:23:13     if manager.get_broker() is None:
2024-04-14 08:23:13   File "/home/jovyan/src/aiida-core/src/aiida/manage/manager.py", line 299, in get_broker
2024-04-14 08:23:13     broker_cls = BrokerFactory(entry_point)
2024-04-14 08:23:13   File "/home/jovyan/src/aiida-core/src/aiida/plugins/factories.py", line 101, in BrokerFactory
2024-04-14 08:23:13     entry_point = BaseFactory(entry_point_group, entry_point_name, load=load)
2024-04-14 08:23:13   File "/home/jovyan/src/aiida-core/src/aiida/plugins/factories.py", line 75, in BaseFactory
2024-04-14 08:23:13     return load_entry_point(group, name)
2024-04-14 08:23:13   File "/home/jovyan/src/aiida-core/src/aiida/plugins/entry_point.py", line 276, in load_entry_point
2024-04-14 08:23:13     entry_point = get_entry_point(group, name)
2024-04-14 08:23:13   File "/home/jovyan/src/aiida-core/src/aiida/plugins/entry_point.py", line 324, in get_entry_point
2024-04-14 08:23:13     raise MissingEntryPointError(f"Entry point '{name}' not found in group '{group}'")
2024-04-14 08:23:13 aiida.common.exceptions.MissingEntryPointError: Entry point 'core.rabbitmq' not found in group 'aiida.brokers'

Any ideas?

@sphuber could this have anything to do with your recent changes to the broker system? Is core.rabbitmq still an entry point? If this is an issue, I’m a bit confused at how it just now affected my containers, seeing as your commits were a few weeks back.

The code that even checks for the broker has not been released yet, so I think you are working of the main branch? If you switch commits, it is probably important that you reinstall the package to register the entry points.

Right, had to terminal my way into the container and restart the daemon. Works now. @jusong.yu mentioned the images are designed to do this cleanly on container shutdown. Too bad I shut down my computer without first shutting down the containers, effectively bypassing that mechanism.

Anyhow, all is well. Thanks.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.