Funkwhale celery worker not starting

My YunoHost server

Hardware: Raspberry Pi at home
YunoHost version: 11.2.27
I have access to my server : Through SSH | through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
If your request is related to an app, specify its name and version: Funkwhale 1.4.0~ynh1

Description of my issue

Hi,

I had a crash of my SD-Card so I had to set up my Raspberry Pi new. For the apps I used Backups, but the core YunoHost was set up new. Everything is like it was before, only the funkwhale celery worker refuses to start. I have already deleted Funkwhale and installed it new (without my backup), but this didn’t help. In the Logfile I can see an error in the last five lines (hastebin).
But I don’t know how I can stop sending or allow a content type “pickle”…

Best regards

I did a further test with a fresh installation of funkwhale and found out that there is already a problem with celery-worker while installing. Seems like the first start was interrupted by a predefined timeout of 300 seconds. Is there a possibility to give the service more time? This timeout is only in the installation process.

2024-08-12 18:46:48,340: INFO - The service funkwhale-server has correctly executed the action start.
2024-08-12 18:46:48,344: DEBUG - + break
2024-08-12 18:46:48,344: DEBUG - + set -x
2024-08-12 18:46:48,345: DEBUG - + '[' 13 -ge 3 ']'
2024-08-12 18:46:48,346: DEBUG - + echo ''
2024-08-12 18:46:48,348: DEBUG - + '[' 13 -eq 300 ']'
2024-08-12 18:46:48,349: DEBUG - + ynh_clean_check_starting
2024-08-12 18:46:48,353: DEBUG - + '[' -n 947398 ']'
2024-08-12 18:46:48,354: DEBUG - + kill -SIGTERM 947398
2024-08-12 18:46:48,356: DEBUG - + '[' -n /tmp/tmp.LhBUy7Hpb1 ']'
2024-08-12 18:46:48,356: DEBUG - + ynh_secure_remove --file=/tmp/tmp.LhBUy7Hpb1
2024-08-12 18:46:48,357: DEBUG - 
2024-08-12 18:46:48,358: DEBUG - + local legacy_args=f
2024-08-12 18:46:48,359: DEBUG - + args_array=(['f']='file=')
2024-08-12 18:46:48,360: DEBUG - + local -A args_array
2024-08-12 18:46:48,361: DEBUG - + local file
2024-08-12 18:46:48,361: DEBUG - + ynh_handle_getopts_args --file=/tmp/tmp.LhBUy7Hpb1
2024-08-12 18:46:48,362: DEBUG - + set +o xtrace
2024-08-12 18:46:48,397: DEBUG - + set +o xtrace
2024-08-12 18:46:48,441: DEBUG - + ynh_systemd_action --service_name=funkwhale-worker --action=start --log_path=systemd --line_match=ready
2024-08-12 18:46:48,443: DEBUG - + local legacy_args=nalpte
2024-08-12 18:46:48,444: DEBUG - + args_array=(['n']='service_name=' ['a']='action=' ['l']='line_match=' ['p']='log_path=' ['t']='timeout=' ['e']='length=')
2024-08-12 18:46:48,447: DEBUG - + local -A args_array
2024-08-12 18:46:48,448: DEBUG - + local service_name
2024-08-12 18:46:48,448: DEBUG - + local action
2024-08-12 18:46:48,449: DEBUG - + local line_match
2024-08-12 18:46:48,450: DEBUG - + local length
2024-08-12 18:46:48,450: DEBUG - + local log_path
2024-08-12 18:46:48,452: DEBUG - + local timeout
2024-08-12 18:46:48,452: DEBUG - + ynh_handle_getopts_args --service_name=funkwhale-worker --action=start --log_path=systemd --line_match=ready
2024-08-12 18:46:48,453: DEBUG - + set +o xtrace
2024-08-12 18:46:49,232: DEBUG - + service_name=funkwhale-worker
2024-08-12 18:46:49,233: DEBUG - + action=start
2024-08-12 18:46:49,234: DEBUG - + line_match=ready
2024-08-12 18:46:49,234: DEBUG - + length=20
2024-08-12 18:46:49,235: DEBUG - + log_path=systemd
2024-08-12 18:46:49,236: DEBUG - + timeout=300
2024-08-12 18:46:49,236: DEBUG - + '[' start == stop ']'
2024-08-12 18:46:49,236: DEBUG - + [[ -n ready ]]
2024-08-12 18:46:49,238: DEBUG - ++ mktemp
2024-08-12 18:46:49,244: DEBUG - + local templog=/tmp/tmp.rhm8fM8Vmb
2024-08-12 18:46:49,245: DEBUG - + '[' systemd == systemd ']'
2024-08-12 18:46:49,247: DEBUG - + local pid_tail=947814
2024-08-12 18:46:49,248: DEBUG - + journalctl --unit=funkwhale-worker --follow --since=-0 --quiet
2024-08-12 18:46:49,248: DEBUG - + '[' start == reload ']'
2024-08-12 18:46:49,253: DEBUG - ++ cut -d+ -f1
2024-08-12 18:46:49,254: DEBUG - ++ date --utc --rfc-3339=seconds
2024-08-12 18:46:49,268: DEBUG - + local 'time_start=2024-08-12 16:46:49 UTC'
2024-08-12 18:46:49,269: DEBUG - + systemctl start funkwhale-worker
2024-08-12 18:46:49,330: DEBUG - + [[ -n ready ]]
2024-08-12 18:46:49,331: DEBUG - + set +x
2024-08-12 18:47:19,864: WARNING - (this may take some time)
2024-08-12 18:51:50,105: DEBUG - + '[' 300 -ge 3 ']'
2024-08-12 18:51:50,106: DEBUG - + echo ''
2024-08-12 18:51:50,107: DEBUG - + '[' 300 -eq 300 ']'
2024-08-12 18:51:50,107: DEBUG - + ynh_print_warn '--message=The service funkwhale-worker didn'\''t fully executed the action start before the timeout.'
2024-08-12 18:51:50,108: DEBUG - + local legacy_args=m
2024-08-12 18:51:50,108: DEBUG - 
2024-08-12 18:51:50,108: DEBUG - + args_array=(['m']='message=')
2024-08-12 18:51:50,109: DEBUG - + local -A args_array
2024-08-12 18:51:50,109: DEBUG - + local message
2024-08-12 18:51:50,109: DEBUG - + ynh_handle_getopts_args '--message=The service funkwhale-worker didn'\''t fully executed the action start before the timeout.'
2024-08-12 18:51:50,110: DEBUG - + set +o xtrace
2024-08-12 18:51:50,137: DEBUG - + ynh_print_log 'The service funkwhale-worker didn'\''t fully executed the action start before the timeout.'
2024-08-12 18:51:50,137: DEBUG - + echo -e 'The service funkwhale-worker didn'\''t fully executed the action start before the timeout.'
2024-08-12 18:51:50,138: DEBUG - + ynh_print_warn '--message=Please find here an extract of the end of the log of the service funkwhale-worker:'
2024-08-12 18:51:50,139: DEBUG - + local legacy_args=m
2024-08-12 18:51:50,139: WARNING - The service funkwhale-worker didn't fully executed the action start before the timeout.
2024-08-12 18:51:50,140: DEBUG - + args_array=(['m']='message=')
2024-08-12 18:51:50,141: DEBUG - + local -A args_array
2024-08-12 18:51:50,141: DEBUG - + local message
2024-08-12 18:51:50,141: DEBUG - + ynh_handle_getopts_args '--message=Please find here an extract of the end of the log of the service funkwhale-worker:'
2024-08-12 18:51:50,142: DEBUG - + set +o xtrace
2024-08-12 18:51:50,170: DEBUG - + ynh_print_log 'Please find here an extract of the end of the log of the service funkwhale-worker:'
2024-08-12 18:51:50,171: DEBUG - + echo -e 'Please find here an extract of the end of the log of the service funkwhale-worker:'
2024-08-12 18:51:50,172: WARNING - Please find here an extract of the end of the log of the service funkwhale-worker:
2024-08-12 18:51:50,174: DEBUG - + ynh_exec_warn journalctl --quiet --no-hostname --no-pager --lines=20 --unit=funkwhale-worker
2024-08-12 18:51:50,175: DEBUG - + [[ 6 -eq 1 ]]
2024-08-12 18:51:50,175: DEBUG - ++ journalctl --quiet --no-hostname --no-pager --lines=20 --unit=funkwhale-worker
2024-08-12 18:51:50,356: DEBUG - + ynh_print_warn '--message=Aug 12 18:46:59 celery[947819]:     return self.on_readable(fileno), self
2024-08-12 18:51:50,357: DEBUG - Aug 12 18:46:59 celery[947819]:   File "/var/www/funkwhale/venv/lib/python3.9/site-packages/kombu/transport/redis.py", line 562, in on_readable
2024-08-12 18:51:50,357: DEBUG - Aug 12 18:46:59 celery[947819]:     chan.handlers[type]()
2024-08-12 18:51:50,358: DEBUG - Aug 12 18:46:59 celery[947819]:   File "/var/www/funkwhale/venv/lib/python3.9/site-packages/kombu/transport/redis.py", line 967, in _brpop_read
2024-08-12 18:51:50,359: DEBUG - Aug 12 18:46:59 celery[947819]:     self.connection._deliver(loads(bytes_to_str(item)), dest)
2024-08-12 18:51:50,359: DEBUG - Aug 12 18:46:59 celery[947819]:   File "/var/www/funkwhale/venv/lib/python3.9/site-packages/kombu/transport/virtual/base.py", line 991, in _deliver
2024-08-12 18:51:50,360: DEBUG - Aug 12 18:46:59 celery[947819]:     callback(message)
2024-08-12 18:51:50,361: DEBUG - Aug 12 18:46:59 celery[947819]:   File "/var/www/funkwhale/venv/lib/python3.9/site-packages/kombu/transport/virtual/base.py", line 624, in _callback
2024-08-12 18:51:50,361: DEBUG - Aug 12 18:46:59 celery[947819]:     return callback(message)
2024-08-12 18:51:50,362: DEBUG - Aug 12 18:46:59 celery[947819]:   File "/var/www/funkwhale/venv/lib/python3.9/site-packages/kombu/messaging.py", line 620, in _receive_callback
2024-08-12 18:51:50,363: DEBUG - Aug 12 18:46:59 celery[947819]:     decoded = None if on_m else message.decode()
2024-08-12 18:51:50,363: DEBUG - Aug 12 18:46:59 celery[947819]:   File "/var/www/funkwhale/venv/lib/python3.9/site-packages/kombu/message.py", line 194, in decode
2024-08-12 18:51:50,364: DEBUG - Aug 12 18:46:59 celery[947819]:     self._decoded_cache = self._decode()
2024-08-12 18:51:50,364: DEBUG - Aug 12 18:46:59 celery[947819]:   File "/var/www/funkwhale/venv/lib/python3.9/site-packages/kombu/message.py", line 198, in _decode
2024-08-12 18:51:50,365: DEBUG - Aug 12 18:46:59 celery[947819]:     return loads(self.body, self.content_type,
2024-08-12 18:51:50,365: DEBUG - Aug 12 18:46:59 celery[947819]:   File "/var/www/funkwhale/venv/lib/python3.9/site-packages/kombu/serialization.py", line 242, in loads
2024-08-12 18:51:50,365: DEBUG - Aug 12 18:46:59 celery[947819]:     raise self._for_untrusted_content(content_type, '\''untrusted'\'')
2024-08-12 18:51:50,366: DEBUG - Aug 12 18:46:59 celery[947819]: kombu.exceptions.ContentDisallowed: Refusing to deserialize untrusted content of type pickle (application/x-python-serialize)
2024-08-12 18:51:50,366: DEBUG - Aug 12 18:47:02 systemd[1]: funkwhale-worker.service: Succeeded.
2024-08-12 18:51:50,367: DEBUG - Aug 12 18:47:02 systemd[1]: funkwhale-worker.service: Consumed 11.402s CPU time.'
2024-08-12 18:51:50,368: DEBUG - + local legacy_args=m
2024-08-12 18:51:50,368: DEBUG - + args_array=(['m']='message=')
2024-08-12 18:51:50,369: DEBUG - + local -A args_array
2024-08-12 18:51:50,369: DEBUG - + local message
2024-08-12 18:51:50,369: DEBUG - + ynh_handle_getopts_args '--message=Aug 12 18:46:59 celery[947819]:     return self.on_readable(fileno), self
2024-08-12 18:51:50,369: DEBUG - Aug 12 18:46:59 celery[947819]:   File "/var/www/funkwhale/venv/lib/python3.9/site-packages/kombu/transport/redis.py", line 562, in on_readable
2024-08-12 18:51:50,370: DEBUG - Aug 12 18:46:59 celery[947819]:     chan.handlers[type]()
2024-08-12 18:51:50,370: DEBUG - Aug 12 18:46:59 celery[947819]:   File "/var/www/funkwhale/venv/lib/python3.9/site-packages/kombu/transport/redis.py", line 967, in _brpop_read
2024-08-12 18:51:50,371: DEBUG - Aug 12 18:46:59 celery[947819]:     self.connection._deliver(loads(bytes_to_str(item)), dest)
2024-08-12 18:51:50,371: DEBUG - Aug 12 18:46:59 celery[947819]:   File "/var/www/funkwhale/venv/lib/python3.9/site-packages/kombu/transport/virtual/base.py", line 991, in _deliver
2024-08-12 18:51:50,371: DEBUG - Aug 12 18:46:59 celery[947819]:     callback(message)
2024-08-12 18:51:50,372: DEBUG - Aug 12 18:46:59 celery[947819]:   File "/var/www/funkwhale/venv/lib/python3.9/site-packages/kombu/transport/virtual/base.py", line 624, in _callback
2024-08-12 18:51:50,372: DEBUG - Aug 12 18:46:59 celery[947819]:     return callback(message)
2024-08-12 18:51:50,372: DEBUG - Aug 12 18:46:59 celery[947819]:   File "/var/www/funkwhale/venv/lib/python3.9/site-packages/kombu/messaging.py", line 620, in _receive_callback
2024-08-12 18:51:50,373: DEBUG - Aug 12 18:46:59 celery[947819]:     decoded = None if on_m else message.decode()
2024-08-12 18:51:50,373: DEBUG - Aug 12 18:46:59 celery[947819]:   File "/var/www/funkwhale/venv/lib/python3.9/site-packages/kombu/message.py", line 194, in decode
2024-08-12 18:51:50,374: DEBUG - Aug 12 18:46:59 celery[947819]:     self._decoded_cache = self._decode()
2024-08-12 18:51:50,375: DEBUG - Aug 12 18:46:59 celery[947819]:   File "/var/www/funkwhale/venv/lib/python3.9/site-packages/kombu/message.py", line 198, in _decode
2024-08-12 18:51:50,376: DEBUG - Aug 12 18:46:59 celery[947819]:     return loads(self.body, self.content_type,
2024-08-12 18:51:50,376: DEBUG - Aug 12 18:46:59 celery[947819]:   File "/var/www/funkwhale/venv/lib/python3.9/site-packages/kombu/serialization.py", line 242, in loads
2024-08-12 18:51:50,377: DEBUG - Aug 12 18:46:59 celery[947819]:     raise self._for_untrusted_content(content_type, '\''untrusted'\'')
2024-08-12 18:51:50,377: DEBUG - Aug 12 18:46:59 celery[947819]: kombu.exceptions.ContentDisallowed: Refusing to deserialize untrusted content of type pickle (application/x-python-serialize)
2024-08-12 18:51:50,378: DEBUG - Aug 12 18:47:02 systemd[1]: funkwhale-worker.service: Succeeded.
2024-08-12 18:51:50,379: DEBUG - Aug 12 18:47:02 systemd[1]: funkwhale-worker.service: Consumed 11.402s CPU time.'
2024-08-12 18:51:50,379: DEBUG - + set +o xtrace
2024-08-12 18:51:50,392: DEBUG - + ynh_print_log 'Aug 12 18:46:59 celery[947819]:     return self.on_readable(fileno), self
2024-08-12 18:51:50,394: DEBUG - Aug 12 18:46:59 celery[947819]:   File "/var/www/funkwhale/venv/lib/python3.9/site-packages/kombu/transport/redis.py", line 562, in on_readable
2024-08-12 18:51:50,395: DEBUG - Aug 12 18:46:59 celery[947819]:     chan.handlers[type]()
2024-08-12 18:51:50,396: DEBUG - Aug 12 18:46:59 celery[947819]:   File "/var/www/funkwhale/venv/lib/python3.9/site-packages/kombu/transport/redis.py", line 967, in _brpop_read
2024-08-12 18:51:50,397: DEBUG - Aug 12 18:46:59 celery[947819]:     self.connection._deliver(loads(bytes_to_str(item)), dest)
2024-08-12 18:51:50,398: DEBUG - Aug 12 18:46:59 celery[947819]:   File "/var/www/funkwhale/venv/lib/python3.9/site-packages/kombu/transport/virtual/base.py", line 991, in _deliver
2024-08-12 18:51:50,398: DEBUG - Aug 12 18:46:59 celery[947819]:     callback(message)
2024-08-12 18:51:50,399: DEBUG - Aug 12 18:46:59 celery[947819]:   File "/var/www/funkwhale/venv/lib/python3.9/site-packages/kombu/transport/virtual/base.py", line 624, in _callback
2024-08-12 18:51:50,399: DEBUG - Aug 12 18:46:59 celery[947819]:     return callback(message)
2024-08-12 18:51:50,400: DEBUG - Aug 12 18:46:59 celery[947819]:   File "/var/www/funkwhale/venv/lib/python3.9/site-packages/kombu/messaging.py", line 620, in _receive_callback
2024-08-12 18:51:50,400: DEBUG - Aug 12 18:46:59 celery[947819]:     decoded = None if on_m else message.decode()
2024-08-12 18:51:50,401: DEBUG - Aug 12 18:46:59 celery[947819]:   File "/var/www/funkwhale/venv/lib/python3.9/site-packages/kombu/message.py", line 194, in decode
2024-08-12 18:51:50,401: DEBUG - Aug 12 18:46:59 celery[947819]:     self._decoded_cache = self._decode()
2024-08-12 18:51:50,401: DEBUG - Aug 12 18:46:59 celery[947819]:   File "/var/www/funkwhale/venv/lib/python3.9/site-packages/kombu/message.py", line 198, in _decode
2024-08-12 18:51:50,402: DEBUG - Aug 12 18:46:59 celery[947819]:     return loads(self.body, self.content_type,
2024-08-12 18:51:50,402: DEBUG - Aug 12 18:46:59 celery[947819]:   File "/var/www/funkwhale/venv/lib/python3.9/site-packages/kombu/serialization.py", line 242, in loads
2024-08-12 18:51:50,403: DEBUG - Aug 12 18:46:59 celery[947819]:     raise self._for_untrusted_content(content_type, '\''untrusted'\'')
2024-08-12 18:51:50,403: DEBUG - Aug 12 18:46:59 celery[947819]: kombu.exceptions.ContentDisallowed: Refusing to deserialize untrusted content of type pickle (application/x-python-serialize)
2024-08-12 18:51:50,404: DEBUG - Aug 12 18:47:02 systemd[1]: funkwhale-worker.service: Succeeded.
2024-08-12 18:51:50,404: DEBUG - Aug 12 18:47:02 systemd[1]: funkwhale-worker.service: Consumed 11.402s CPU time.'
2024-08-12 18:51:50,405: DEBUG - + echo -e 'Aug 12 18:46:59 celery[947819]:     return self.on_readable(fileno), self
2024-08-12 18:51:50,405: DEBUG - Aug 12 18:46:59 celery[947819]:   File "/var/www/funkwhale/venv/lib/python3.9/site-packages/kombu/transport/redis.py", line 562, in on_readable
2024-08-12 18:51:50,406: DEBUG - Aug 12 18:46:59 celery[947819]:     chan.handlers[type]()
2024-08-12 18:51:50,407: DEBUG - Aug 12 18:46:59 celery[947819]:   File "/var/www/funkwhale/venv/lib/python3.9/site-packages/kombu/transport/redis.py", line 967, in _brpop_read
2024-08-12 18:51:50,407: DEBUG - Aug 12 18:46:59 celery[947819]:     self.connection._deliver(loads(bytes_to_str(item)), dest)
2024-08-12 18:51:50,407: DEBUG - Aug 12 18:46:59 celery[947819]:   File "/var/www/funkwhale/venv/lib/python3.9/site-packages/kombu/transport/virtual/base.py", line 991, in _deliver
2024-08-12 18:51:50,408: DEBUG - Aug 12 18:46:59 celery[947819]:     callback(message)
2024-08-12 18:51:50,408: DEBUG - Aug 12 18:46:59 celery[947819]:   File "/var/www/funkwhale/venv/lib/python3.9/site-packages/kombu/transport/virtual/base.py", line 624, in _callback
2024-08-12 18:51:50,408: DEBUG - Aug 12 18:46:59 celery[947819]:     return callback(message)
2024-08-12 18:51:50,409: DEBUG - Aug 12 18:46:59 celery[947819]:   File "/var/www/funkwhale/venv/lib/python3.9/site-packages/kombu/messaging.py", line 620, in _receive_callback
2024-08-12 18:51:50,409: DEBUG - Aug 12 18:46:59 celery[947819]:     decoded = None if on_m else message.decode()
2024-08-12 18:51:50,410: DEBUG - Aug 12 18:46:59 celery[947819]:   File "/var/www/funkwhale/venv/lib/python3.9/site-packages/kombu/message.py", line 194, in decode
2024-08-12 18:51:50,410: DEBUG - Aug 12 18:46:59 celery[947819]:     self._decoded_cache = self._decode()
2024-08-12 18:51:50,411: DEBUG - Aug 12 18:46:59 celery[947819]:   File "/var/www/funkwhale/venv/lib/python3.9/site-packages/kombu/message.py", line 198, in _decode
2024-08-12 18:51:50,411: DEBUG - Aug 12 18:46:59 celery[947819]:     return loads(self.body, self.content_type,
2024-08-12 18:51:50,411: DEBUG - Aug 12 18:46:59 celery[947819]:   File "/var/www/funkwhale/venv/lib/python3.9/site-packages/kombu/serialization.py", line 242, in loads
2024-08-12 18:51:50,412: DEBUG - Aug 12 18:46:59 celery[947819]:     raise self._for_untrusted_content(content_type, '\''untrusted'\'')
2024-08-12 18:51:50,412: DEBUG - Aug 12 18:46:59 celery[947819]: kombu.exceptions.ContentDisallowed: Refusing to deserialize untrusted content of type pickle (application/x-python-serialize)
2024-08-12 18:51:50,413: DEBUG - Aug 12 18:47:02 systemd[1]: funkwhale-worker.service: Succeeded.
2024-08-12 18:51:50,413: DEBUG - Aug 12 18:47:02 systemd[1]: funkwhale-worker.service: Consumed 11.402s CPU time.'
2024-08-12 18:51:50,413: WARNING - Aug 12 18:46:59 celery[947819]:     return self.on_readable(fileno), self
2024-08-12 18:51:50,416: WARNING - Aug 12 18:46:59 celery[947819]:   File "/var/www/funkwhale/venv/lib/python3.9/site-packages/kombu/transport/redis.py", line 562, in on_readable
2024-08-12 18:51:50,418: WARNING - Aug 12 18:46:59 celery[947819]:     chan.handlers[type]()
2024-08-12 18:51:50,420: WARNING - Aug 12 18:46:59 celery[947819]:   File "/var/www/funkwhale/venv/lib/python3.9/site-packages/kombu/transport/redis.py", line 967, in _brpop_read
2024-08-12 18:51:50,422: WARNING - Aug 12 18:46:59 celery[947819]:     self.connection._deliver(loads(bytes_to_str(item)), dest)
2024-08-12 18:51:50,424: WARNING - Aug 12 18:46:59 celery[947819]:   File "/var/www/funkwhale/venv/lib/python3.9/site-packages/kombu/transport/virtual/base.py", line 991, in _deliver
2024-08-12 18:51:50,426: WARNING - Aug 12 18:46:59 celery[947819]:     callback(message)
2024-08-12 18:51:50,427: WARNING - Aug 12 18:46:59 celery[947819]:   File "/var/www/funkwhale/venv/lib/python3.9/site-packages/kombu/transport/virtual/base.py", line 624, in _callback
2024-08-12 18:51:50,429: WARNING - Aug 12 18:46:59 celery[947819]:     return callback(message)
2024-08-12 18:51:50,432: WARNING - Aug 12 18:46:59 celery[947819]:   File "/var/www/funkwhale/venv/lib/python3.9/site-packages/kombu/messaging.py", line 620, in _receive_callback
2024-08-12 18:51:50,434: WARNING - Aug 12 18:46:59 celery[947819]:     decoded = None if on_m else message.decode()
2024-08-12 18:51:50,436: WARNING - Aug 12 18:46:59 celery[947819]:   File "/var/www/funkwhale/venv/lib/python3.9/site-packages/kombu/message.py", line 194, in decode
2024-08-12 18:51:50,438: WARNING - Aug 12 18:46:59 celery[947819]:     self._decoded_cache = self._decode()
2024-08-12 18:51:50,440: WARNING - Aug 12 18:46:59 celery[947819]:   File "/var/www/funkwhale/venv/lib/python3.9/site-packages/kombu/message.py", line 198, in _decode
2024-08-12 18:51:50,442: WARNING - Aug 12 18:46:59 celery[947819]:     return loads(self.body, self.content_type,
2024-08-12 18:51:50,444: WARNING - Aug 12 18:46:59 celery[947819]:   File "/var/www/funkwhale/venv/lib/python3.9/site-packages/kombu/serialization.py", line 242, in loads
2024-08-12 18:51:50,446: WARNING - Aug 12 18:46:59 celery[947819]:     raise self._for_untrusted_content(content_type, 'untrusted')
2024-08-12 18:51:50,448: WARNING - Aug 12 18:46:59 celery[947819]: kombu.exceptions.ContentDisallowed: Refusing to deserialize untrusted content of type pickle (application/x-python-serialize)
2024-08-12 18:51:50,450: WARNING - Aug 12 18:47:02 systemd[1]: funkwhale-worker.service: Succeeded.
2024-08-12 18:51:50,452: WARNING - Aug 12 18:47:02 systemd[1]: funkwhale-worker.service: Consumed 11.402s CPU time.
2024-08-12 18:51:50,454: DEBUG - + '[' -e systemd ']'
2024-08-12 18:51:50,454: DEBUG - + ynh_clean_check_starting
2024-08-12 18:51:50,455: DEBUG - + '[' -n 947814 ']'
2024-08-12 18:51:50,455: DEBUG - + kill -SIGTERM 947814
2024-08-12 18:51:50,455: DEBUG - + '[' -n /tmp/tmp.rhm8fM8Vmb ']'
2024-08-12 18:51:50,456: DEBUG - + ynh_secure_remove --file=/tmp/tmp.rhm8fM8Vmb
2024-08-12 18:51:50,456: DEBUG - + local legacy_args=f
2024-08-12 18:51:50,456: DEBUG - + args_array=(['f']='file=')
2024-08-12 18:51:50,457: DEBUG - + local -A args_array
2024-08-12 18:51:50,457: DEBUG - + local file
2024-08-12 18:51:50,457: DEBUG - + ynh_handle_getopts_args --file=/tmp/tmp.rhm8fM8Vmb
2024-08-12 18:51:50,458: DEBUG - + set +o xtrace
2024-08-12 18:51:50,458: DEBUG - + set +o xtrace
2024-08-12 18:51:50,464: DEBUG - + ynh_script_progression '--message=Configuring Fail2Ban...' --weight=1
2024-08-12 18:51:50,465: DEBUG - + set +o xtrace
2024-08-12 18:51:50,658: DEBUG - + set +o xtrace
2024-08-12 18:51:50,693: DEBUG - + echo '! Helper used in legacy mode !'
2024-08-12 18:51:50,694: DEBUG - + set +x
2024-08-12 18:51:50,699: DEBUG - + echo '[################++..] > Configuring Fail2Ban...'
2024-08-12 18:51:50,700: INFO - [################++..] > Configuring Fail2Ban...

Because of the timeout problem at the installation on a Raspberry Pi I thought about turning off as many services from other apps as possible to get the best possible performance.
After that the installation ran without errors and celery worker started without problems. After that I turned all services on again.
Looking good so far - I’m in good hope it will survive a server reboot :wink:

Unfortunately not…
But I found something interesting by calling

sudo journalctl -u funkwhale-worker.service

When the service was running yesterday and the service didn’t stop after a few seconds I got this log:

Aug 12 20:42:13 yunohost.local celery[1022011]: [2024-08-12 18:42:13,590: INFO/MainProcess] Connected to redis://127.0.0.1:6379/1
Aug 12 20:42:13 yunohost.local celery[1022011]: [2024-08-12 18:42:13,605: INFO/MainProcess] mingle: searching for neighbors
Aug 12 20:42:14 yunohost.local celery[1022011]: [2024-08-12 18:42:14,625: INFO/MainProcess] mingle: all alone
Aug 12 20:42:14 yunohost.local celery[1022011]: [2024-08-12 18:42:14,660: INFO/MainProcess] celery@yunohost.local ready.
Aug 12 20:45:56 yunohost.local celery[1022011]: [2024-08-12 18:45:56,390: ERROR/MainProcess] Received unregistered task of type 'paperless_mail.tasks.process_mail_accounts'.
Aug 12 20:45:56 yunohost.local celery[1022011]: The message has been ignored and discarded.

And I have paperless-ngx installed on my YunoHost. And in the logs of paperless I can see that paperless also connects to redis://127.0.0.1:6379/1

I don’t know exactly what to do…

When I stop paperless-ngx-task-queue I can start funkwhale-worker. But not both together.

Finally solved by deleting and restoring the paperless app. in opposite to the funkwhale app the paperless app automatically set a new redis port/database 127.0.0.1:6379/4 :+1:

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