Webserver bleibt beim Starten von Celery Beat hängen

Hallo.

[Vorwort]
Nachdem ich mir mit der Konfigurationsdatei bereits paperless-ngx erfolgreich auf meinem Raspberry Pi 4 installieren konnte, wollte ich nun das ganze auf meinem NAS machen.
Ich habe einen DS223J NAS (ich weiß, nicht der Schnellste für paperless-ngx, aber für die paar Dateien OK.)

[Problem]
Der webserver bleibt immer beim Starten von celery beat hängen. Er geht einfach nicht weiter. Hat hier jemand Rat? Ich habe stellenweise bereits 40 min gewartet.

Was wurde bereits gemacht?

LOG vom Synology

paperless-webserver-1

date stream content
2024/04/11 13:12:42 stdout celery beat v5.3.6 (emerald-rush) is starting.
2024/04/11 13:12:29 stdout 2024-04-11 11:12:29,761 INFO success: consumer entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024/04/11 13:12:29 stdout 2024-04-11 11:12:29,761 INFO success: celery-beat entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024/04/11 13:12:29 stdout 2024-04-11 11:12:29,761 INFO success: celery entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024/04/11 13:12:29 stdout 2024-04-11 11:12:29,760 INFO success: gunicorn entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024/04/11 13:12:28 stdout 2024-04-11 11:12:28,758 INFO exited: celery-flower (exit status 0; expected)
2024/04/11 13:12:28 stdout 2024-04-11 11:12:28,758 INFO success: celery-flower entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2024/04/11 13:12:28 stdout Not starting flower
2024/04/11 13:12:28 stdout Checking if we should start flower…
2024/04/11 13:12:28 stdout 2024-04-11 11:12:28,714 INFO spawned: ‚celery-flower‘ with pid 98
2024/04/11 13:12:28 stdout 2024-04-11 11:12:28,709 INFO spawned: ‚consumer‘ with pid 97
2024/04/11 13:12:28 stdout 2024-04-11 11:12:28,703 INFO spawned: ‚celery-beat‘ with pid 96
2024/04/11 13:12:28 stdout 2024-04-11 11:12:28,697 INFO spawned: ‚celery‘ with pid 95
2024/04/11 13:12:28 stdout 2024-04-11 11:12:28,692 INFO spawned: ‚gunicorn‘ with pid 94
2024/04/11 13:12:27 stdout 2024-04-11 11:12:27,686 INFO supervisord started with pid 1
2024/04/11 13:12:27 stdout 2024-04-11 11:12:27,657 INFO Set uid to user 0 succeeded
2024/04/11 13:12:19 stdout Executing /usr/local/bin/paperless_cmd.sh
2024/04/11 13:12:11 stdout System check identified no issues (0 silenced).
2024/04/11 13:11:36 stdout Running Django checks
2024/04/11 13:11:32 stdout No migrations to apply.
2024/04/11 13:11:32 stdout Running migrations:
2024/04/11 13:11:32 stdout Apply all migrations: account, admin, auditlog, auth, authtoken, contenttypes, django_celery_results, documents, guardian, paperless, paperless_mail, sessions, socialaccount
2024/04/11 13:11:32 stdout Operations to perform:
2024/04/11 13:11:05 stdout Apply database migrations…
2024/04/11 13:11:04 stdout Connected to Redis broker.
2024/04/11 13:11:04 stdout Waiting for Redis…
2024/04/11 13:10:58 stdout Waiting for PostgreSQL to start…
2024/04/11 13:10:58 stdout Adjusting permissions of paperless files. This may take a while.
2024/04/11 13:10:58 stdout Creating directory scratch directory /tmp/paperless
2024/04/11 13:10:58 stdout Paperless-ngx docker container starting…
2024/04/11 12:52:14 stdout celery beat v5.3.6 (emerald-rush) is starting.
2024/04/11 12:51:57 stdout 2024-04-11 10:51:56,928 INFO exited: celery-flower (exit status 0; expected)
2024/04/11 12:51:57 stdout 2024-04-11 10:51:56,928 INFO success: consumer entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024/04/11 12:51:57 stdout 2024-04-11 10:51:56,928 INFO success: celery-beat entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024/04/11 12:51:57 stdout 2024-04-11 10:51:56,928 INFO success: celery entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024/04/11 12:51:56 stdout 2024-04-11 10:51:56,925 INFO success: gunicorn entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024/04/11 12:51:55 stdout Not starting flower
2024/04/11 12:51:55 stdout 2024-04-11 10:51:55,922 INFO success: celery-flower entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2024/04/11 12:51:55 stdout Checking if we should start flower…
2024/04/11 12:51:55 stdout 2024-04-11 10:51:55,877 INFO spawned: ‚celery-flower‘ with pid 158
2024/04/11 12:51:55 stdout 2024-04-11 10:51:55,871 INFO spawned: ‚consumer‘ with pid 157
2024/04/11 12:51:55 stdout 2024-04-11 10:51:55,864 INFO spawned: ‚celery-beat‘ with pid 156
2024/04/11 12:51:55 stdout 2024-04-11 10:51:55,858 INFO spawned: ‚celery‘ with pid 155
2024/04/11 12:51:55 stdout 2024-04-11 10:51:55,853 INFO spawned: ‚gunicorn‘ with pid 154
2024/04/11 12:51:54 stdout 2024-04-11 10:51:54,837 INFO supervisord started with pid 1
2024/04/11 12:51:54 stdout 2024-04-11 10:51:54,763 INFO Set uid to user 0 succeeded
2024/04/11 12:51:50 stdout Executing /usr/local/bin/paperless_cmd.sh
2024/04/11 12:51:25 stdout Search index out of date. Updating…
2024/04/11 12:51:24 stdout System check identified no issues (0 silenced).
2024/04/11 12:51:01 stdout Running Django checks
2024/04/11 12:50:55 stdout Applying socialaccount.0006_alter_socialaccount_extra_data… OK
2024/04/11 12:50:54 stdout Applying socialaccount.0005_socialtoken_nullable_app… OK
2024/04/11 12:50:53 stdout Applying socialaccount.0004_app_provider_id_settings… OK
2024/04/11 12:50:53 stdout Applying socialaccount.0003_extra_data_default_dict… OK
2024/04/11 12:50:53 stdout Applying socialaccount.0002_token_max_lengths… OK
2024/04/11 12:50:52 stdout Applying socialaccount.0001_initial… OK
2024/04/11 12:50:51 stdout Applying sessions.0001_initial… OK
2024/04/11 12:50:50 stdout Applying paperless.0003_alter_applicationconfiguration_max_image_pixels… OK
2024/04/11 12:50:50 stdout Applying paperless.0002_applicationconfiguration_app_logo_and_more… OK
2024/04/11 12:50:50 stdout Applying paperless.0001_initial… OK
2024/04/11 12:50:49 stdout Applying guardian.0002_generic_permissions_index… OK
2024/04/11 12:50:48 stdout Applying guardian.0001_initial… OK
2024/04/11 12:50:47 stdout Applying documents.1046_workflowaction_remove_all_correspondents_and_more… OK
2024/04/11 12:50:40 stdout Applying documents.1045_alter_customfieldinstance_value_monetary… OK
2024/04/11 12:50:40 stdout Applying documents.1044_workflow_workflowaction_workflowtrigger_and_more… OK
2024/04/11 12:50:34 stdout Applying documents.1043_alter_savedviewfilterrule_rule_type… OK
2024/04/11 12:50:34 stdout Applying documents.1042_consumptiontemplate_assign_custom_fields_and_more… OK
2024/04/11 12:50:33 stdout Applying documents.1041_alter_consumptiontemplate_sources… OK
2024/04/11 12:50:33 stdout Applying documents.1040_customfield_customfieldinstance_and_more… OK
2024/04/11 12:50:32 stdout Applying documents.1039_consumptiontemplate… OK
2024/04/11 12:50:28 stdout Applying documents.1038_sharelink… OK
2024/04/11 12:50:25 stdout Applying documents.1037_webp_encrypted_thumbnail_conversion… OK
2024/04/11 12:50:25 stdout Applying documents.1036_alter_savedviewfilterrule_rule_type… OK
2024/04/11 12:50:25 stdout Applying documents.1035_rename_comment_note… OK
2024/04/11 12:50:23 stdout Applying documents.1034_alter_savedviewfilterrule_rule_type… OK
2024/04/11 12:50:23 stdout Applying documents.1033_alter_documenttype_options_alter_tag_options_and_more… OK
2024/04/11 12:50:21 stdout Applying documents.1032_alter_correspondent_matching_algorithm_and_more… OK
2024/04/11 12:50:21 stdout Applying documents.1031_remove_savedview_user_correspondent_owner_and_more… OK
2024/04/11 12:50:20 stdout Applying documents.1030_alter_paperlesstask_task_file_name… OK
2024/04/11 12:50:20 stdout Applying documents.1029_alter_document_archive_serial_number… OK
2024/04/11 12:50:19 stdout Applying documents.1028_remove_paperlesstask_task_args_and_more… OK
2024/04/11 12:50:19 stdout Applying documents.1027_remove_paperlesstask_attempted_task_and_more… OK
2024/04/11 12:50:19 stdout Applying documents.1026_transition_to_celery… OK
2024/04/11 12:50:18 stdout Applying documents.1025_alter_savedviewfilterrule_rule_type… OK
2024/04/11 12:50:18 stdout Applying documents.1024_document_original_filename… OK
2024/04/11 12:50:18 stdout Applying documents.1023_add_comments… OK
2024/04/11 12:50:18 stdout Applying documents.1022_paperlesstask… OK
2024/04/11 12:50:17 stdout Applying documents.1021_webp_thumbnail_conversion… OK
2024/04/11 12:50:17 stdout Applying documents.1020_merge_20220518_1839… OK
2024/04/11 12:50:17 stdout Applying documents.1019_storagepath_document_storage_path… OK
2024/04/11 12:50:16 stdout Applying documents.1019_uisettings… OK
2024/04/11 12:50:15 stdout Applying documents.1018_alter_savedviewfilterrule_value… OK
2024/04/11 12:50:15 stdout Applying documents.1017_alter_savedviewfilterrule_rule_type… OK
2024/04/11 12:50:15 stdout Applying documents.1016_auto_20210317_1351… OK
2024/04/11 12:50:15 stdout Applying documents.1015_remove_null_characters… OK
2024/04/11 12:50:15 stdout Applying documents.1014_auto_20210228_1614… OK
2024/04/11 12:50:15 stdout Applying documents.1013_migrate_tag_colour… OK
2024/04/11 12:50:14 stdout Applying documents.1012_fix_archive_files… OK
2024/04/11 12:50:13 stdout Applying paperless_mail.0023_remove_mailrule_filter_attachment_filename_and_more… OK
2024/04/11 12:50:13 stdout Applying paperless_mail.0022_mailrule_assign_owner_from_rule_and_more… OK
2024/04/11 12:50:13 stdout Applying paperless_mail.0021_alter_mailaccount_password… OK
2024/04/11 12:50:13 stdout Applying paperless_mail.0020_mailaccount_is_token… OK
2024/04/11 12:50:13 stdout Applying paperless_mail.0019_mailrule_filter_to… OK
2024/04/11 12:50:13 stdout Applying paperless_mail.0018_processedmail… OK
2024/04/11 12:50:12 stdout Applying paperless_mail.0017_mailaccount_owner_mailrule_owner… OK
2024/04/11 12:50:11 stdout Applying paperless_mail.0016_mailrule_consumption_scope… OK
2024/04/11 12:50:11 stdout Applying paperless_mail.0015_alter_mailrule_action… OK
2024/04/11 12:50:11 stdout Applying paperless_mail.0014_alter_mailrule_action… OK
2024/04/11 12:50:11 stdout Applying paperless_mail.0013_merge_20220412_1051… OK
2024/04/11 12:50:11 stdout Applying paperless_mail.0009_alter_mailrule_action_alter_mailrule_folder… OK
2024/04/11 12:50:11 stdout Applying paperless_mail.0012_alter_mailrule_assign_tags… OK
2024/04/11 12:50:11 stdout Applying paperless_mail.0011_remove_mailrule_assign_tag… OK
2024/04/11 12:50:10 stdout Applying paperless_mail.0010_auto_20220311_1602… OK
2024/04/11 12:50:10 stdout Applying paperless_mail.0009_mailrule_assign_tags… OK
2024/04/11 12:50:10 stdout Applying paperless_mail.0008_auto_20210516_0940… OK
2024/04/11 12:50:09 stdout Applying paperless_mail.0007_auto_20210106_0138… OK
2024/04/11 12:50:09 stdout Applying paperless_mail.0006_auto_20210101_2340… OK
2024/04/11 12:50:09 stdout Applying documents.1011_auto_20210101_2340… OK
2024/04/11 12:50:07 stdout Applying documents.1010_auto_20210101_2159… OK
2024/04/11 12:50:07 stdout Applying documents.1009_auto_20201216_2005… OK
2024/04/11 12:50:07 stdout Applying documents.1008_auto_20201216_1736… OK
2024/04/11 12:50:07 stdout Applying documents.1007_savedview_savedviewfilterrule… OK
2024/04/11 12:50:06 stdout Applying documents.1006_auto_20201208_2209… OK
2024/04/11 12:50:06 stdout Applying documents.1005_checksums… OK
2024/04/11 12:50:06 stdout Applying documents.1004_sanity_check_schedule… OK
2024/04/11 12:50:06 stdout Applying documents.1003_mime_types… OK
2024/04/11 12:50:05 stdout Applying paperless_mail.0005_help_texts… OK
2024/04/11 12:50:05 stdout Applying paperless_mail.0004_mailrule_order… OK
2024/04/11 12:50:05 stdout Applying paperless_mail.0003_auto_20201118_1940… OK
2024/04/11 12:50:05 stdout Applying paperless_mail.0002_auto_20201117_1334… OK
2024/04/11 12:50:05 stdout Applying paperless_mail.0001_initial… OK
2024/04/11 12:50:03 stdout Applying documents.1002_auto_20201111_1105… OK
2024/04/11 12:50:03 stdout Applying documents.1001_auto_20201109_1636… OK
2024/04/11 12:50:03 stdout Applying documents.1000_update_paperless_all… OK
2024/04/11 12:50:01 stdout Applying documents.0023_document_current_filename… OK
2024/04/11 12:50:01 stdout Applying documents.0022_auto_20181007_1420… OK
2024/04/11 12:50:01 stdout Applying documents.0021_document_storage_type… OK
2024/04/11 12:50:01 stdout Applying documents.0020_document_added… OK
2024/04/11 12:50:00 stdout Applying documents.0019_add_consumer_user… OK
2024/04/11 12:50:00 stdout Applying documents.0018_auto_20170715_1712… OK
2024/04/11 12:50:00 stdout Applying documents.0017_auto_20170512_0507… OK
2024/04/11 12:50:00 stdout Applying documents.0016_auto_20170325_1558… OK
2024/04/11 12:50:00 stdout Applying documents.0015_add_insensitive_to_match… OK
2024/04/11 12:49:59 stdout Applying documents.0014_document_checksum… OK
2024/04/11 12:49:58 stdout Applying documents.0013_auto_20160325_2111… OK
2024/04/11 12:49:58 stdout OK
2024/04/11 12:49:58 stdout e[0m
2024/04/11 12:49:58 stdout in order.
2024/04/11 12:49:58 stdout a lot of documents though, this may take a while, so a coffee break may be
2024/04/11 12:49:58 stdout documents so that future UIs will have something to work with. If you have
2024/04/11 12:49:58 stdout This is a one-time only migration to generate thumbnails for all of your
2024/04/11 12:49:58 stdout
2024/04/11 12:49:58 stdout Applying documents.0012_auto_20160305_0040…e[1m
2024/04/11 12:49:57 stdout Applying documents.0011_auto_20160303_1929… OK
2024/04/11 12:49:54 stdout Applying documents.0010_log… OK
2024/04/11 12:49:54 stdout Applying documents.0009_auto_20160214_0040… OK
2024/04/11 12:49:53 stdout Applying documents.0008_document_file_type… OK
2024/04/11 12:49:53 stdout Applying documents.0007_auto_20160126_2114… OK
2024/04/11 12:49:53 stdout Applying documents.0006_auto_20160123_0430… OK
2024/04/11 12:49:52 stdout Applying documents.0005_auto_20160123_0313… OK
2024/04/11 12:49:52 stdout Applying documents.0004_auto_20160114_1844… OK
2024/04/11 12:49:52 stdout Applying documents.0003_sender… OK
2024/04/11 12:49:50 stdout Applying documents.0002_auto_20151226_1316… OK
2024/04/11 12:49:50 stdout Applying documents.0001_initial… OK
2024/04/11 12:49:48 stdout Applying django_celery_results.0011_taskresult_periodic_task_name… OK
2024/04/11 12:49:48 stdout Applying django_celery_results.0010_remove_duplicate_indices… OK
2024/04/11 12:49:48 stdout Applying django_celery_results.0009_groupresult… OK
2024/04/11 12:49:47 stdout Applying django_celery_results.0008_chordcounter… OK
2024/04/11 12:49:46 stdout Applying django_celery_results.0007_remove_taskresult_hidden… OK
2024/04/11 12:49:46 stdout Applying django_celery_results.0006_taskresult_date_created… OK
2024/04/11 12:49:46 stdout Applying django_celery_results.0005_taskresult_worker… OK
2024/04/11 12:49:45 stdout Applying django_celery_results.0004_auto_20190516_0412… OK
2024/04/11 12:49:45 stdout Applying django_celery_results.0003_auto_20181106_1101… OK
2024/04/11 12:49:45 stdout Applying django_celery_results.0002_add_task_name_args_kwargs… OK
2024/04/11 12:49:45 stdout Applying django_celery_results.0001_initial… OK
2024/04/11 12:49:44 stdout Applying authtoken.0003_tokenproxy… OK
2024/04/11 12:49:44 stdout Applying authtoken.0002_auto_20160226_1747… OK
2024/04/11 12:49:44 stdout Applying authtoken.0001_initial… OK
2024/04/11 12:49:43 stdout Applying auth.0012_alter_user_first_name_max_length… OK
2024/04/11 12:49:43 stdout Applying auth.0011_update_proxy_permissions… OK
2024/04/11 12:49:43 stdout Applying auth.0010_alter_group_name_max_length… OK
2024/04/11 12:49:43 stdout Applying auth.0009_alter_user_last_name_max_length… OK
2024/04/11 12:49:43 stdout Applying auth.0008_alter_user_username_max_length… OK
2024/04/11 12:49:43 stdout Applying auth.0007_alter_validators_add_error_messages… OK
2024/04/11 12:49:43 stdout Applying auth.0006_require_contenttypes_0002… OK
2024/04/11 12:49:42 stdout Applying auth.0005_alter_user_last_login_null… OK
2024/04/11 12:49:42 stdout Applying auth.0004_alter_user_username_opts… OK
2024/04/11 12:49:42 stdout Applying auth.0003_alter_user_email_max_length… OK
2024/04/11 12:49:42 stdout Applying auth.0002_alter_permission_name_max_length… OK
2024/04/11 12:49:42 stdout Applying contenttypes.0002_remove_content_type_name… OK
2024/04/11 12:49:42 stdout Applying auditlog.0012_add_logentry_action_access… OK
2024/04/11 12:49:41 stdout Applying auditlog.0011_logentry_serialized_data… OK
2024/04/11 12:49:41 stdout Applying auditlog.0010_alter_logentry_timestamp… OK
2024/04/11 12:49:41 stdout Applying auditlog.0009_alter_logentry_additional_data… OK
2024/04/11 12:49:41 stdout Applying auditlog.0008_action_index… OK
2024/04/11 12:49:41 stdout Applying auditlog.0007_object_pk_type… OK
2024/04/11 12:49:41 stdout Applying auditlog.0006_object_pk_index… OK
2024/04/11 12:49:40 stdout Applying auditlog.0005_logentry_additional_data_verbose_name… OK
2024/04/11 12:49:40 stdout Applying auditlog.0004_logentry_detailed_object_repr… OK
2024/04/11 12:49:40 stdout Applying auditlog.0003_logentry_remote_addr… OK
2024/04/11 12:49:40 stdout Applying auditlog.0002_auto_support_long_primary_keys… OK
2024/04/11 12:49:39 stdout Applying auditlog.0001_initial… OK
2024/04/11 12:49:38 stdout Applying admin.0003_logentry_add_action_flag_choices… OK
2024/04/11 12:49:38 stdout Applying admin.0002_logentry_remove_auto_add… OK
2024/04/11 12:49:38 stdout Applying admin.0001_initial… OK
2024/04/11 12:49:37 stdout Applying account.0005_emailaddress_idx_upper_email… OK
2024/04/11 12:49:37 stdout Applying account.0004_alter_emailaddress_drop_unique_email… OK
2024/04/11 12:49:37 stdout Applying account.0003_alter_emailaddress_create_unique_verified_email… OK
2024/04/11 12:49:36 stdout Applying account.0002_email_max_length… OK
2024/04/11 12:49:36 stdout Applying account.0001_initial… OK
2024/04/11 12:49:35 stdout Applying auth.0001_initial… OK
2024/04/11 12:49:33 stdout Applying contenttypes.0001_initial… OK
2024/04/11 12:49:30 stdout Running migrations:
2024/04/11 12:49:30 stdout Apply all migrations: account, admin, auditlog, auth, authtoken, contenttypes, django_celery_results, documents, guardian, paperless, paperless_mail, sessions, socialaccount
2024/04/11 12:49:30 stdout Operations to perform:
2024/04/11 12:49:03 stdout Apply database migrations…
2024/04/11 12:49:03 stdout Connected to Redis broker.
2024/04/11 12:49:02 stdout Waiting for Redis…
2024/04/11 12:48:53 stdout Waiting for PostgreSQL to start…
2024/04/11 12:48:53 stdout Adjusting permissions of paperless files. This may take a while.
2024/04/11 12:48:53 stdout Creating directory scratch directory /tmp/paperless
2024/04/11 12:48:53 stdout Creating directory /usr/src/paperless/data/index
2024/04/11 12:48:50 stdout Mapping UID and GID for paperless:paperless to 1026:100
2024/04/11 12:48:50 stdout Paperless-ngx docker container starting…

Ich bedanke mich schon einmal sehr für eure Hilfe!

Ich sehe im Log bisher kein Problem.

Poste bitte einmal die Ausgabe von

sudo docker ps

Das war mal eine schnelle Antwort. :slight_smile:

sudo docker ps

CONTAINER ID IMAGE COMMAND CREATED STATUS
PORTS NAMES
a2d402ebbedc Package paperless-ngx · GitHub „/sbin/docker-entryp…“ 58 minutes ago Up 35 minutes (healthy) 0.0.0.0:8000->8000/tcp, :::8000->8000/tcp paperless-webserver-1

Okay, also manchmal ist es wie verhext.
Genau jetzt startete der Server und läuft. Aber ist es normal, dass es so lange braucht, bis celery beat gestartet ist?

Es sah so aus, als hätte die Migration deiner Dokumente ziemlich lange gebraucht. Wenn es jetzt läuft, würde ich mir keine Gedanken machen (außer über ein Upgrade des NAS :stuck_out_tongue: )

Der Erste Start nach installation braucht immer ne ganze weile… selbiges nach Updates.
Auch abhängig ob die Installation auf einer HDD oder SSD residiert.