Parperless-ngx : Celery status - errors

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 12.0.16
How are you able to access your server: The webadmin
SSH
Direct access via physical keyboard/screen

Describe your issue

If i call
$ celery status
i got much python errors. I don’t know what this means and what the reason for this problems could be. Is celery important for yunohost or yunohost apps like paperless-ngx? What can I do to solve this problems?

Share relevant logs or error messages

$ celery status
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/kombu/connection.py”, line 446, in _reraise_as_library_errors
yield
File “/usr/lib/python3/dist-packages/kombu/connection.py”, line 433, in _ensure_connection
return retry_over_time(
^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/kombu/utils/functional.py”, line 312, in retry_over_time
return fun(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/kombu/connection.py”, line 877, in _connection_factory
self._connection = self._establish_connection()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/kombu/connection.py”, line 812, in _establish_connection
conn = self.transport.establish_connection()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/kombu/transport/pyamqp.py”, line 201, in establish_connection
conn.connect()
File “/usr/lib/python3/dist-packages/amqp/connection.py”, line 323, in connect
self.transport.connect()
File “/usr/lib/python3/dist-packages/amqp/transport.py”, line 129, in connect
self._connect(self.host, self.port, self.connect_timeout)
File “/usr/lib/python3/dist-packages/amqp/transport.py”, line 184, in _connect
self.sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File “/usr/bin/celery”, line 26, in
load_entry_point(“celery”, “console_scripts”, “celery”)()
File “/usr/lib/python3/dist-packages/celery/main.py”, line 15, in main
sys.exit(_main())
^^^^^^^
File “/usr/lib/python3/dist-packages/celery/bin/celery.py”, line 217, in main
return celery(auto_envvar_prefix=“CELERY”)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/click/core.py”, line 1130, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/click/core.py”, line 1055, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/click/core.py”, line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/click/core.py”, line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/click/core.py”, line 760, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/click/decorators.py”, line 26, in new_func
return f(get_current_context(), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/celery/bin/base.py”, line 134, in caller
return f(ctx, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/celery/bin/control.py”, line 82, in status
callback=callback).ping()
^^^^^^
File “/usr/lib/python3/dist-packages/celery/app/control.py”, line 294, in ping
return self._request(‘ping’)
^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/celery/app/control.py”, line 106, in _request
return self._prepare(self.app.control.broadcast(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/celery/app/control.py”, line 741, in broadcast
return self.mailbox(conn)._broadcast(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/kombu/pidbox.py”, line 328, in _broadcast
chan = channel or self.connection.default_channel
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/kombu/connection.py”, line 895, in default_channel
self._ensure_connection(**conn_opts)
File “/usr/lib/python3/dist-packages/kombu/connection.py”, line 432, in _ensure_connection
with ctx():
File “/usr/lib/python3.11/contextlib.py”, line 155, in exit
self.gen.throw(typ, value, traceback)
File “/usr/lib/python3/dist-packages/kombu/connection.py”, line 450, in _reraise_as_library_errors
raise ConnectionError(str(exc)) from exc
kombu.exceptions.OperationalError: [Errno 111] Connection refused

Celery is an asynchronous task scheduler, it is used to run batch jobs in the background on a regular schedule. It’s not shipped with yunohost, so some of your apps did install it.
Check in the webadmin >tools >services.

Thank you jarod5001,
in >tools >services is no celery service visible.
I suspect celery was installed by paperless-ngx. The reason why i checked it is, that paperless-ngx didn’t get the e-mail attachments. I will try to find a solution on the paperless-ngx forum.

I doubt it. Can you check systemctl list-unit-files | grep celery

On my server. there is no celery in the output of systemctl list-unit-files

But like why are you interested in Celery in the first place x_x

Can you share the output of sudo ps aux | grep celery

I am interested in celery, while searching for the reason why the cronjob of paperless-ngx did not work.

sudo ps aux | grep celery
paperle+    1573  0.0  0.2 1959684 89640 ?       Ssl  May06   0:03 [celery beat] --app paperless beat --loglevel INFO
paperle+    1577  0.0  0.3 1962640 125304 ?      Ssl  May06   7:08 [celeryd: celery@********.**:MainProcess] -active- (--app paperless worker --loglevel INFO)
paperle+ 2604435  0.0  0.3 1963040 121656 ?      S    03:59   0:00 [celeryd: celery@********.**:ForkPoolWorker-11]
root     2794583  0.0  0.0   6684  2104 pts/0    S+   18:04   0:00 grep --color=auto celery

(I have changed the domain name to *******.**)