jonaswinkler / paperless-ng

A supercharged version of paperless: scan, index and archive all your physical documents
https://paperless-ng.readthedocs.io/en/latest/
GNU General Public License v3.0
5.37k stars 355 forks source link

[BUG] Paperless-ng webgui cannot be reached. #1612

Open akadawa opened 2 years ago

akadawa commented 2 years ago

Describe the bug I have loaded the docker image in my synolgy and i cant reach the webinterface of paperless. the log of docker container says:

date | stream | content -- | -- | -- 2022-02-08 10:17:26 | stdout | 2022-02-08 10:17:26,447 INFO success: scheduler entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-02-08 10:17:26 | stdout | 2022-02-08 10:17:26,447 INFO success: gunicorn entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-02-08 10:17:26 | stdout | 2022-02-08 10:17:26,447 INFO success: consumer entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-02-08 10:17:25 | stdout | redis.exceptions.ConnectionError: Error 101 connecting to localhost:6379. Network is unreachable. 2022-02-08 10:17:25 | stdout | raise ConnectionError(self._error_message(e)) 2022-02-08 10:17:25 | stdout | File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 563, in connect 2022-02-08 10:17:25 | stdout | connection.connect() 2022-02-08 10:17:25 | stdout | File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 1192, in get_connection 2022-02-08 10:17:25 | stdout | conn = self.connection or pool.get_connection(command_name, **options) 2022-02-08 10:17:25 | stdout | File "/usr/local/lib/python3.9/site-packages/redis/client.py", line 898, in execute_command 2022-02-08 10:17:25 | stdout | return self.execute_command('PING') 2022-02-08 10:17:25 | stdout | File "/usr/local/lib/python3.9/site-packages/redis/client.py", line 1378, in ping 2022-02-08 10:17:25 | stdout | return self.connection.ping() 2022-02-08 10:17:25 | stdout | File "/usr/local/lib/python3.9/site-packages/django_q/brokers/redis_broker.py", line 36, in ping 2022-02-08 10:17:25 | stdout | raise e 2022-02-08 10:17:25 | stdout | File "/usr/local/lib/python3.9/site-packages/django_q/brokers/redis_broker.py", line 39, in ping 2022-02-08 10:17:25 | stdout | self.broker.ping() 2022-02-08 10:17:25 | stdout | File "/usr/local/lib/python3.9/site-packages/django_q/cluster.py", line 171, in start 2022-02-08 10:17:25 | stdout | self.start() 2022-02-08 10:17:25 | stdout | File "/usr/local/lib/python3.9/site-packages/django_q/cluster.py", line 168, in __init__ 2022-02-08 10:17:25 | stdout | self._target(*self._args, **self._kwargs) 2022-02-08 10:17:25 | stdout | File "/usr/local/lib/python3.9/multiprocessing/process.py", line 108, in run 2022-02-08 10:17:25 | stdout | self.run() 2022-02-08 10:17:25 | stdout | File "/usr/local/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap 2022-02-08 10:17:25 | stdout | Traceback (most recent call last): 2022-02-08 10:17:25 | stdout |   2022-02-08 10:17:25 | stdout | During handling of the above exception, another exception occurred: 2022-02-08 10:17:25 | stdout |   2022-02-08 10:17:25 | stdout | OSError: [Errno 101] Network is unreachable 2022-02-08 10:17:25 | stdout | sock.connect(socket_address) 2022-02-08 10:17:25 | stdout | File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 603, in _connect 2022-02-08 10:17:25 | stdout | raise err 2022-02-08 10:17:25 | stdout | File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 615, in _connect 2022-02-08 10:17:25 | stdout | sock = self._connect() 2022-02-08 10:17:25 | stdout | File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 559, in connect 2022-02-08 10:17:25 | stdout | Traceback (most recent call last): 2022-02-08 10:17:25 | stdout | Process Process-1: 2022-02-08 10:17:25 | stdout | 10:17:25 [Q] ERROR Can not connect to Redis server. 2022-02-08 10:17:25 | stdout | 10:17:25 [Q] INFO Q Cluster solar-skylark-mountain-uranus starting. 2022-02-08 10:17:25 | stdout | [2022-02-08 10:17:25,392] [INFO] [paperless.management.consumer] Using inotify to watch directory for changes: /usr/src/paperless/src/../consume 2022-02-08 10:17:24 | stdout | [2022-02-08 10:17:24 +0000] [50] [INFO] Server is ready. Spawning workers 2022-02-08 10:17:24 | stdout | [2022-02-08 10:17:24 +0000] [50] [INFO] Using worker: paperless.workers.ConfigurableWorker 2022-02-08 10:17:24 | stdout | [2022-02-08 10:17:24 +0000] [50] [INFO] Listening at: http://0.0.0.0:8000 (50) 2022-02-08 10:17:24 | stdout | [2022-02-08 10:17:24 +0000] [50] [INFO] Starting gunicorn 20.1.0 2022-02-08 10:17:24 | stdout | 2022-02-08 10:17:24,501 INFO spawned: 'scheduler' with pid 51 2022-02-08 10:17:24 | stdout | 2022-02-08 10:17:24,500 INFO spawned: 'gunicorn' with pid 50 2022-02-08 10:17:24 | stdout | 2022-02-08 10:17:24,499 INFO spawned: 'consumer' with pid 49 2022-02-08 10:17:23 | stdout | 2022-02-08 10:17:23,497 INFO supervisord started with pid 1 2022-02-08 10:17:23 | stdout | 2022-02-08 10:17:23,494 INFO Set uid to user 0 succeeded 2022-02-08 10:17:23 | stdout | Executing /usr/local/bin/supervisord -c /etc/supervisord.conf 2022-02-08 10:17:23 | stdout | 0it [00:00, ?it/s] 0it [00:00, ?it/s] 2022-02-08 10:17:22 | stdout | Search index out of date. Updating... 2022-02-08 10:17:21 | stdout | Applying sessions.0001_initial... OK 2022-02-08 10:17:21 | stdout | Applying paperless_mail.0008_auto_20210516_0940... OK 2022-02-08 10:17:21 | stdout | Applying paperless_mail.0007_auto_20210106_0138... OK 2022-02-08 10:17:21 | stdout | Applying paperless_mail.0006_auto_20210101_2340... OK 2022-02-08 10:17:20 | stdout | Applying paperless_mail.0005_help_texts... OK 2022-02-08 10:17:20 | stdout | Applying paperless_mail.0004_mailrule_order... OK 2022-02-08 10:17:20 | stdout | Applying paperless_mail.0003_auto_20201118_1940... OK 2022-02-08 10:17:20 | stdout | Applying paperless_mail.0002_auto_20201117_1334... OK 2022-02-08 10:17:20 | stdout | Applying paperless_mail.0001_initial... OK 2022-02-08 10:17:20 | stdout | Applying documents.1016_auto_20210317_1351... OK 2022-02-08 10:17:20 | stdout | Applying documents.1015_remove_null_characters... OK 2022-02-08 10:17:20 | stdout | Applying documents.1014_auto_20210228_1614... OK 2022-02-08 10:17:20 | stdout | Applying documents.1013_migrate_tag_colour... OK 2022-02-08 10:17:20 | stdout | Applying documents.1012_fix_archive_files... OK 2022-02-08 10:17:20 | stdout | Applying documents.1011_auto_20210101_2340... OK 2022-02-08 10:17:20 | stdout | Applying documents.1010_auto_20210101_2159... OK 2022-02-08 10:17:20 | stdout | Applying documents.1009_auto_20201216_2005... OK 2022-02-08 10:17:19 | stdout | Applying documents.1008_auto_20201216_1736... OK 2022-02-08 10:17:19 | stdout | Applying documents.1007_savedview_savedviewfilterrule... OK 2022-02-08 10:17:19 | stdout | Applying documents.1006_auto_20201208_2209... OK 2022-02-08 10:17:19 | stdout | Applying documents.1005_checksums... OK 2022-02-08 10:17:19 | stdout | Applying documents.1004_sanity_check_schedule... OK 2022-02-08 10:17:19 | stdout | Applying documents.1003_mime_types... OK 2022-02-08 10:17:19 | stdout | Applying documents.1002_auto_20201111_1105... OK 2022-02-08 10:17:19 | stdout | Applying documents.1001_auto_20201109_1636... OK 2022-02-08 10:17:19 | stdout | Applying documents.1000_update_paperless_all... OK 2022-02-08 10:17:19 | stdout | Applying documents.0023_document_current_filename... OK 2022-02-08 10:17:19 | stdout | Applying documents.0022_auto_20181007_1420... OK 2022-02-08 10:17:19 | stdout | Applying documents.0021_document_storage_type... OK 2022-02-08 10:17:19 | stdout | Applying documents.0020_document_added... OK 2022-02-08 10:17:19 | stdout | Applying documents.0019_add_consumer_user... OK 2022-02-08 10:17:19 | stdout | Applying documents.0018_auto_20170715_1712... OK 2022-02-08 10:17:18 | stdout | Applying documents.0017_auto_20170512_0507... OK 2022-02-08 10:17:18 | stdout | Applying documents.0016_auto_20170325_1558... OK 2022-02-08 10:17:18 | stdout | Applying documents.0015_add_insensitive_to_match... OK 2022-02-08 10:17:18 | stdout | Applying documents.0014_document_checksum... OK 2022-02-08 10:17:18 | stdout | Applying documents.0013_auto_20160325_2111... OK 2022-02-08 10:17:18 | stdout | Applying documents.0012_auto_20160305_0040... OK 2022-02-08 10:17:18 | stdout | Applying documents.0011_auto_20160303_1929... OK 2022-02-08 10:17:17 | stdout | Applying documents.0010_log... OK 2022-02-08 10:17:17 | stdout | Applying documents.0009_auto_20160214_0040... OK 2022-02-08 10:17:17 | stdout | Applying documents.0008_document_file_type... OK 2022-02-08 10:17:17 | stdout | Applying documents.0007_auto_20160126_2114... OK 2022-02-08 10:17:17 | stdout | Applying documents.0006_auto_20160123_0430... OK 2022-02-08 10:17:17 | stdout | Applying documents.0005_auto_20160123_0313... OK 2022-02-08 10:17:17 | stdout | Applying documents.0004_auto_20160114_1844... OK 2022-02-08 10:17:17 | stdout | Applying documents.0003_sender... OK 2022-02-08 10:17:17 | stdout | Applying documents.0002_auto_20151226_1316... OK 2022-02-08 10:17:17 | stdout | Applying documents.0001_initial... OK 2022-02-08 10:17:17 | stdout | Applying django_q.0014_schedule_cluster... OK 2022-02-08 10:17:17 | stdout | Applying django_q.0013_task_attempt_count... OK 2022-02-08 10:17:16 | stdout | Applying django_q.0012_auto_20200702_1608... OK 2022-02-08 10:17:16 | stdout | Applying django_q.0011_auto_20200628_1055... OK 2022-02-08 10:17:16 | stdout | Applying django_q.0010_auto_20200610_0856... OK 2022-02-08 10:17:16 | stdout | Applying django_q.0009_auto_20171009_0915... OK 2022-02-08 10:17:16 | stdout | Applying django_q.0008_auto_20160224_1026... OK 2022-02-08 10:17:16 | stdout | Applying django_q.0007_ormq... OK 2022-02-08 10:17:16 | stdout | Applying django_q.0006_auto_20150805_1817... OK 2022-02-08 10:17:16 | stdout | Applying django_q.0005_auto_20150718_1506... OK 2022-02-08 10:17:16 | stdout | Applying django_q.0004_auto_20150710_1043... OK 2022-02-08 10:17:16 | stdout | Applying django_q.0003_auto_20150708_1326... OK 2022-02-08 10:17:16 | stdout | Applying django_q.0002_auto_20150630_1624... OK 2022-02-08 10:17:16 | stdout | Applying django_q.0001_initial... OK 2022-02-08 10:17:16 | stdout | Applying authtoken.0003_tokenproxy... OK 2022-02-08 10:17:16 | stdout | Applying authtoken.0002_auto_20160226_1747... OK 2022-02-08 10:17:16 | stdout | Applying authtoken.0001_initial... OK 2022-02-08 10:17:16 | stdout | Applying auth.0012_alter_user_first_name_max_length... OK 2022-02-08 10:17:16 | stdout | Applying auth.0011_update_proxy_permissions... OK 2022-02-08 10:17:16 | stdout | Applying auth.0010_alter_group_name_max_length... OK 2022-02-08 10:17:16 | stdout | Applying auth.0009_alter_user_last_name_max_length... OK 2022-02-08 10:17:16 | stdout | Applying auth.0008_alter_user_username_max_length... OK 2022-02-08 10:17:16 | stdout | Applying auth.0007_alter_validators_add_error_messages... OK 2022-02-08 10:17:15 | stdout | Applying auth.0006_require_contenttypes_0002... OK 2022-02-08 10:17:15 | stdout | Applying auth.0005_alter_user_last_login_null... OK 2022-02-08 10:17:15 | stdout | Applying auth.0004_alter_user_username_opts... OK 2022-02-08 10:17:15 | stdout | Applying auth.0003_alter_user_email_max_length... OK 2022-02-08 10:17:15 | stdout | Applying auth.0002_alter_permission_name_max_length... OK 2022-02-08 10:17:15 | stdout | Applying contenttypes.0002_remove_content_type_name... OK 2022-02-08 10:17:15 | stdout | Applying admin.0003_logentry_add_action_flag_choices... OK 2022-02-08 10:17:15 | stdout | Applying admin.0002_logentry_remove_auto_add... OK 2022-02-08 10:17:15 | stdout | Applying admin.0001_initial... OK 2022-02-08 10:17:15 | stdout | Applying auth.0001_initial... OK 2022-02-08 10:17:15 | stdout | Applying contenttypes.0001_initial... OK 2022-02-08 10:17:15 | stdout | Running migrations: 2022-02-08 10:17:15 | stdout |   Apply all migrations: admin, auth, authtoken, contenttypes, django_q, documents, paperless_mail, sessions 2022-02-08 10:17:15 | stdout | Operations to perform: 2022-02-08 10:17:13 | stdout | Apply database migrations... 2022-02-08 10:17:13 | stdout | Adjusting permissions of paperless files. This may take a while. 2022-02-08 10:17:13 | stdout | Creating directory /tmp/paperless 2022-02-08 10:17:13 | stdout | Creating directory ../media/documents/thumbnails 2022-02-08 10:17:13 | stdout | Creating directory ../media/documents/originals 2022-02-08 10:17:13 | stdout | Creating directory ../media/documents 2022-02-08 10:17:13 | stdout | Creating directory ../data/index 2022-02-08 10:17:13 | stdout | Paperless-ng docker container starting...

what i noticed, the time is one hour late. i checked the regional settings in my synology and could not find any deviations

Relevant information

tompsg-git commented 2 years ago

Maybe this would help you: https://deployn.de/setup-paperless/

arifer612 commented 2 years ago

It says early up in the error messages: 2022-02-08 10:17:25 | stdout |redis.exceptions.ConnectionError: Error 101 connecting to localhost:6379. Network is unreachable.

Did you port-forward 6379 from the container to the host machine?

Moreover, you also hit a Redis connection error. If you have included your Redis server in the setup for the docker container and it already was running when you tried spinning up this container, then it probably might be the container having no network access out. 2022-02-08 10:17:25 | stdout | 10:17:25 [Q] ERROR Can not connect to Redis server.