jonaswinkler/paperless-ng

[BUG] Paperless-ng webgui cannot be reached.

akadawa opened this issue · 2 comments

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...�[32;1m OK�[0m
2022-02-08 10:17:21 stdout Applying paperless_mail.0008_auto_20210516_0940...�[32;1m OK�[0m
2022-02-08 10:17:21 stdout Applying paperless_mail.0007_auto_20210106_0138...�[32;1m OK�[0m
2022-02-08 10:17:21 stdout Applying paperless_mail.0006_auto_20210101_2340...�[32;1m OK�[0m
2022-02-08 10:17:20 stdout Applying paperless_mail.0005_help_texts...�[32;1m OK�[0m
2022-02-08 10:17:20 stdout Applying paperless_mail.0004_mailrule_order...�[32;1m OK�[0m
2022-02-08 10:17:20 stdout Applying paperless_mail.0003_auto_20201118_1940...�[32;1m OK�[0m
2022-02-08 10:17:20 stdout Applying paperless_mail.0002_auto_20201117_1334...�[32;1m OK�[0m
2022-02-08 10:17:20 stdout Applying paperless_mail.0001_initial...�[32;1m OK�[0m
2022-02-08 10:17:20 stdout Applying documents.1016_auto_20210317_1351...�[32;1m OK�[0m
2022-02-08 10:17:20 stdout Applying documents.1015_remove_null_characters...�[32;1m OK�[0m
2022-02-08 10:17:20 stdout Applying documents.1014_auto_20210228_1614...�[32;1m OK�[0m
2022-02-08 10:17:20 stdout Applying documents.1013_migrate_tag_colour...�[32;1m OK�[0m
2022-02-08 10:17:20 stdout Applying documents.1012_fix_archive_files...�[32;1m OK�[0m
2022-02-08 10:17:20 stdout Applying documents.1011_auto_20210101_2340...�[32;1m OK�[0m
2022-02-08 10:17:20 stdout Applying documents.1010_auto_20210101_2159...�[32;1m OK�[0m
2022-02-08 10:17:20 stdout Applying documents.1009_auto_20201216_2005...�[32;1m OK�[0m
2022-02-08 10:17:19 stdout Applying documents.1008_auto_20201216_1736...�[32;1m OK�[0m
2022-02-08 10:17:19 stdout Applying documents.1007_savedview_savedviewfilterrule...�[32;1m OK�[0m
2022-02-08 10:17:19 stdout Applying documents.1006_auto_20201208_2209...�[32;1m OK�[0m
2022-02-08 10:17:19 stdout Applying documents.1005_checksums...�[32;1m OK�[0m
2022-02-08 10:17:19 stdout Applying documents.1004_sanity_check_schedule...�[32;1m OK�[0m
2022-02-08 10:17:19 stdout Applying documents.1003_mime_types...�[32;1m OK�[0m
2022-02-08 10:17:19 stdout Applying documents.1002_auto_20201111_1105...�[32;1m OK�[0m
2022-02-08 10:17:19 stdout Applying documents.1001_auto_20201109_1636...�[32;1m OK�[0m
2022-02-08 10:17:19 stdout Applying documents.1000_update_paperless_all...�[32;1m OK�[0m
2022-02-08 10:17:19 stdout Applying documents.0023_document_current_filename...�[32;1m OK�[0m
2022-02-08 10:17:19 stdout Applying documents.0022_auto_20181007_1420...�[32;1m OK�[0m
2022-02-08 10:17:19 stdout Applying documents.0021_document_storage_type...�[32;1m OK�[0m
2022-02-08 10:17:19 stdout Applying documents.0020_document_added...�[32;1m OK�[0m
2022-02-08 10:17:19 stdout Applying documents.0019_add_consumer_user...�[32;1m OK�[0m
2022-02-08 10:17:19 stdout Applying documents.0018_auto_20170715_1712...�[32;1m OK�[0m
2022-02-08 10:17:18 stdout Applying documents.0017_auto_20170512_0507...�[32;1m OK�[0m
2022-02-08 10:17:18 stdout Applying documents.0016_auto_20170325_1558...�[32;1m OK�[0m
2022-02-08 10:17:18 stdout Applying documents.0015_add_insensitive_to_match...�[32;1m OK�[0m
2022-02-08 10:17:18 stdout Applying documents.0014_document_checksum...�[32;1m OK�[0m
2022-02-08 10:17:18 stdout Applying documents.0013_auto_20160325_2111...�[32;1m OK�[0m
2022-02-08 10:17:18 stdout Applying documents.0012_auto_20160305_0040...�[32;1m OK�[0m
2022-02-08 10:17:18 stdout Applying documents.0011_auto_20160303_1929...�[32;1m OK�[0m
2022-02-08 10:17:17 stdout Applying documents.0010_log...�[32;1m OK�[0m
2022-02-08 10:17:17 stdout Applying documents.0009_auto_20160214_0040...�[32;1m OK�[0m
2022-02-08 10:17:17 stdout Applying documents.0008_document_file_type...�[32;1m OK�[0m
2022-02-08 10:17:17 stdout Applying documents.0007_auto_20160126_2114...�[32;1m OK�[0m
2022-02-08 10:17:17 stdout Applying documents.0006_auto_20160123_0430...�[32;1m OK�[0m
2022-02-08 10:17:17 stdout Applying documents.0005_auto_20160123_0313...�[32;1m OK�[0m
2022-02-08 10:17:17 stdout Applying documents.0004_auto_20160114_1844...�[32;1m OK�[0m
2022-02-08 10:17:17 stdout Applying documents.0003_sender...�[32;1m OK�[0m
2022-02-08 10:17:17 stdout Applying documents.0002_auto_20151226_1316...�[32;1m OK�[0m
2022-02-08 10:17:17 stdout Applying documents.0001_initial...�[32;1m OK�[0m
2022-02-08 10:17:17 stdout Applying django_q.0014_schedule_cluster...�[32;1m OK�[0m
2022-02-08 10:17:17 stdout Applying django_q.0013_task_attempt_count...�[32;1m OK�[0m
2022-02-08 10:17:16 stdout Applying django_q.0012_auto_20200702_1608...�[32;1m OK�[0m
2022-02-08 10:17:16 stdout Applying django_q.0011_auto_20200628_1055...�[32;1m OK�[0m
2022-02-08 10:17:16 stdout Applying django_q.0010_auto_20200610_0856...�[32;1m OK�[0m
2022-02-08 10:17:16 stdout Applying django_q.0009_auto_20171009_0915...�[32;1m OK�[0m
2022-02-08 10:17:16 stdout Applying django_q.0008_auto_20160224_1026...�[32;1m OK�[0m
2022-02-08 10:17:16 stdout Applying django_q.0007_ormq...�[32;1m OK�[0m
2022-02-08 10:17:16 stdout Applying django_q.0006_auto_20150805_1817...�[32;1m OK�[0m
2022-02-08 10:17:16 stdout Applying django_q.0005_auto_20150718_1506...�[32;1m OK�[0m
2022-02-08 10:17:16 stdout Applying django_q.0004_auto_20150710_1043...�[32;1m OK�[0m
2022-02-08 10:17:16 stdout Applying django_q.0003_auto_20150708_1326...�[32;1m OK�[0m
2022-02-08 10:17:16 stdout Applying django_q.0002_auto_20150630_1624...�[32;1m OK�[0m
2022-02-08 10:17:16 stdout Applying django_q.0001_initial...�[32;1m OK�[0m
2022-02-08 10:17:16 stdout Applying authtoken.0003_tokenproxy...�[32;1m OK�[0m
2022-02-08 10:17:16 stdout Applying authtoken.0002_auto_20160226_1747...�[32;1m OK�[0m
2022-02-08 10:17:16 stdout Applying authtoken.0001_initial...�[32;1m OK�[0m
2022-02-08 10:17:16 stdout Applying auth.0012_alter_user_first_name_max_length...�[32;1m OK�[0m
2022-02-08 10:17:16 stdout Applying auth.0011_update_proxy_permissions...�[32;1m OK�[0m
2022-02-08 10:17:16 stdout Applying auth.0010_alter_group_name_max_length...�[32;1m OK�[0m
2022-02-08 10:17:16 stdout Applying auth.0009_alter_user_last_name_max_length...�[32;1m OK�[0m
2022-02-08 10:17:16 stdout Applying auth.0008_alter_user_username_max_length...�[32;1m OK�[0m
2022-02-08 10:17:16 stdout Applying auth.0007_alter_validators_add_error_messages...�[32;1m OK�[0m
2022-02-08 10:17:15 stdout Applying auth.0006_require_contenttypes_0002...�[32;1m OK�[0m
2022-02-08 10:17:15 stdout Applying auth.0005_alter_user_last_login_null...�[32;1m OK�[0m
2022-02-08 10:17:15 stdout Applying auth.0004_alter_user_username_opts...�[32;1m OK�[0m
2022-02-08 10:17:15 stdout Applying auth.0003_alter_user_email_max_length...�[32;1m OK�[0m
2022-02-08 10:17:15 stdout Applying auth.0002_alter_permission_name_max_length...�[32;1m OK�[0m
2022-02-08 10:17:15 stdout Applying contenttypes.0002_remove_content_type_name...�[32;1m OK�[0m
2022-02-08 10:17:15 stdout Applying admin.0003_logentry_add_action_flag_choices...�[32;1m OK�[0m
2022-02-08 10:17:15 stdout Applying admin.0002_logentry_remove_auto_add...�[32;1m OK�[0m
2022-02-08 10:17:15 stdout Applying admin.0001_initial...�[32;1m OK�[0m
2022-02-08 10:17:15 stdout Applying auth.0001_initial...�[32;1m OK�[0m
2022-02-08 10:17:15 stdout Applying contenttypes.0001_initial...�[32;1m OK�[0m
2022-02-08 10:17:15 stdout �[36;1mRunning migrations:�[0m
2022-02-08 10:17:15 stdout �[1m  Apply all migrations: �[0madmin, auth, authtoken, contenttypes, django_q, documents, paperless_mail, sessions
2022-02-08 10:17:15 stdout �[36;1mOperations to perform:�[0m
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

  • Host OS of the machine running paperless: Synology
  • Version latest
  • Installation method: Docker

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

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.