[Support] Paperless-ng Docker


Recommended Posts

Hello all,

to all the people asking a question regarding swapping paperless-ng with paperless-ngx, I did it. And it is working fine.

 

My old docker setup:

- paperless-ng

- mariadb as database

- consume directory

- data directory

 

I just swap the docker endpoint with new one and it working fine. And also if you are following “ngx” it is supposed to be drop-in replacement for current “ng”. Hope this helps. 

  • Like 1
Link to comment
  • 2 weeks later...

EDIT: Found a solution

I ran paperless on its own IP-adress and therefore it couldn't communicate with redis. 

 

=================================0

 

Hi guys, 

 

my consumer has stopped working. This is what the protocol says: 

 

2022-03-25 09:38:16,480] [INFO] [paperless.management.consumer] Adding /usr/src/paperless/src/../consume/document_title.pdf to the task queue.

[2022-03-25 09:38:19,546] [ERROR] [paperless.management.consumer] Error while consuming document

Traceback (most recent call last):

  File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 559, in connect

    sock = self._connect()

  File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 615, in _connect

    raise err

  File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 603, in _connect

    sock.connect(socket_address)

OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

  File "/usr/src/paperless/src/documents/management/commands/document_consumer.py", line 64, in _consume

    async_task(

  File "/usr/local/lib/python3.9/site-packages/django_q/tasks.py", line 73, in async_task

    enqueue_id = broker.enqueue(pack)

  File "/usr/local/lib/python3.9/site-packages/django_q/brokers/redis_broker.py", line 18, in enqueue

    return self.connection.rpush(self.list_key, task)

  File "/usr/local/lib/python3.9/site-packages/redis/client.py", line 2016, in rpush

    return self.execute_command('RPUSH', name, *values)

  File "/usr/local/lib/python3.9/site-packages/redis/client.py", line 898, in execute_command

    conn = self.connection or pool.get_connection(command_name, **options)

  File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 1192, in get_connection

    connection.connect()

  File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 563, in connect

    raise ConnectionError(self._error_message(e))

redis.exceptions.ConnectionError: Error 113 connecting to 192.168.178.36:6379. No route to host.

[2022-03-25 09:38:19,552] [INFO] [paperless.management.consumer] Using inotify to watch directory for changes: /usr/src/paperless/src/../consume

 

I have tried reinstalling paperless-ng and redis, have installed a fresh paperless-ngx docker and imported all of my documents. And even switched from library/redis to bitnami/redis:latest. 

What could be the issue?

 

Redis is running, the port and IP are fine and have been working in the past. 

Edited by Dorsch
Link to comment

Can paperless be configured in anyway to accept documents with the same filename in the consume folder? Obviously windows can't but at least at different times.

 

To test this I make 2 files called 'statement' each with different content. Put one in the consume folder and waited for it to be processed then put the other in, but then nothing happens with the 2nd statement file.

Link to comment
  • 4 weeks later...

Running NGX.

Ran in to a know bug. See quote below.

https://github.com/paperless-ngx/paperless-ngx/issues/817

 

Same Problem here with unraid
Upgraded to 1.7.0 => error when try to connect with URL and nginx proxy manager
1.7.0 local access with IP => no problems
Downgrade to 1.6.0 => no problems

 

Question - How do I downgrade to 1.6.0 as well. So my system is accessible through the net and NPM.

Thanks

 

RESOLVED

https://github.com/paperless-ngx/paperless-ngx/issues/712

Edited by Profezor
Link to comment
  • 1 month later...

Hello,

 

i am to newbie to simply start the command for retagging my correspondents:

 

How do i execute this command?

https://paperless-ng.readthedocs.io/en/latest/administration.html#document-retagger

 

In Django / Admin Page the cron job does not start.. Maybe i have to do this in unraid terminal? But how and where?

 

Thank you for your help.

 

The command:

 

document_retagger [-h] [-c] [-T] [-t] [-i] [--use-first] [-f] optional arguments: -c, --correspondent -T, --tags -t, --document_type -i, --inbox-only --use-first -f, --overwrite

 

Link to comment
  • 3 weeks later...
On 6/17/2022 at 3:00 PM, Raptor2k said:

Hello,

 

i am to newbie to simply start the command for retagging my correspondents:

 

How do i execute this command?

https://paperless-ng.readthedocs.io/en/latest/administration.html#document-retagger

 

In Django / Admin Page the cron job does not start.. Maybe i have to do this in unraid terminal? But how and where?

 

Thank you for your help.

 

The command:

 

document_retagger [-h] [-c] [-T] [-t] [-i] [--use-first] [-f] optional arguments: -c, --correspondent -T, --tags -t, --document_type -i, --inbox-only --use-first -f, --overwrite

 

 

Found a solution:

 

In Unraid > Docker > Start Console:

 

cd /app/paperless/src

python3 manage.py document_retagger -c 

 

Link to comment
  • 3 months later...

Hi guys,

 

I missed some files I sent via email to get fetched from my paperless and it showed this in the mail log:

 

Selecting folder INBOX
Searching folder with criteria (SINCE 12-Sep-2022)
Processing mail  from [email protected] with 1 attachment(s)
Skipping attachment 444545.pdf with content disposition inline

 

EDIT (SOLUTION):

 

It seems that Apple Mail (where I sent my stuf from) on iphone now only sends files inline, even PDFs. I had to say paperless to also grap the inline stuff in order to make it process the mails. 

 

image.png.b7608a21d80f55ada4d85a148eb2413a.png

 

Edited by Retrogamer137
  • Thanks 1
Link to comment
  • 2 months later...
  • 1 month later...

Perhaps I need something explained to me about how Paperless-NGX works but I feel like I'm missing something.

 

When I scan a document I would like to have the newest documents I've added appear on my front page. my assumption is this is under the "Added" filter under documents, however I'll scan and add a document and have the filter set to "Last 7 Days" and documents I scan today won't show up. Is that filter set to the previous day and back 7 days from that?

Link to comment

Guessing here. The document date is being picked up via something it thinks is a document date after OCRing it. I suspect if you look at the document properties in p-ngx you might see the connection.

 

I have my new documents tagged with "inbox" automatically so I can easily find them when I use the web app. Then I can update the metadata and remove the inbox tag.

Link to comment
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.