Code Monkey home page Code Monkey logo

Comments (12)

BenoitAnastay avatar BenoitAnastay commented on May 21, 2024

You can add your domain to the CSRF allowed list manually or put it as your PAPERLESS_URL, maybe the domains aren't reported correctly (you can check that through logs)

from paperless-home-assistant-addon.

creuter27 avatar creuter27 commented on May 21, 2024

Sorry for asking questions that may sound stupid but where / how can I do that?

from paperless-home-assistant-addon.

creuter27 avatar creuter27 commented on May 21, 2024

There is no such option in the configuration of the addon.
I guess I have to edit a config file somewhere but looking through the files in the studio code server I can't find any files that seem to have anything to do with the paperless installation.
Which file do I need to edit and where can I find it?

from paperless-home-assistant-addon.

creuter27 avatar creuter27 commented on May 21, 2024

OK I found out how to set the paperless options now. By selecting File -> Open in the Studio code server I could navigate to the addon_config folder where I finally found the paperless files and an example for the paperless.conf.
There I have made a copy of the example file, renamed it to paperless.conf, and set the parameter:

PAPERLESS_URL=https://mydomain,http://homeassistant.local:8123

Then I have restarted the paperless addon.
That has improved the situation in that both the internal and external now behave the same:
I can now login to paperless with both URLs but I still can't preview any documents

from paperless-home-assistant-addon.

creuter27 avatar creuter27 commented on May 21, 2024

Following are all log entries between then end of starting the addon and trying to view / open a document:

[2024-03-26 16:12:18,385] [INFO] [celery.worker.consumer.connection] Connected to redis://localhost:6379//
[2024-03-26 16:12:18,477] [INFO] [celery.apps.worker] celery@ca5234a0-paperless-ngx ready.
/usr/local/lib/python3.11/dist-packages/django/http/response.py:517: Warning: StreamingHttpResponse must consume synchronous iterators in order to serve them asynchronously. Use an asynchronous iterator instead.
warnings.warn(
/usr/local/lib/python3.11/dist-packages/django/http/response.py:517: Warning: StreamingHttpResponse must consume synchronous iterators in order to serve them asynchronously. Use an asynchronous iterator instead.
warnings.warn(
/usr/local/lib/python3.11/dist-packages/django/http/response.py:517: Warning: StreamingHttpResponse must consume synchronous iterators in order to serve them asynchronously. Use an asynchronous iterator instead.
warnings.warn(
[2024-03-26 16:20:00,002] [INFO] [celery.beat] Scheduler: Sending due task Check all e-mail accounts (paperless_mail.tasks.process_mail_accounts)
[2024-03-26 16:20:00,017] [INFO] [celery.worker.strategy] Task paperless_mail.tasks.process_mail_accounts[70f874d5-e0f6-4378-a3ab-eda460ff2fe0] received
[2024-03-26 16:20:00,210] [INFO] [celery.app.trace] Task paperless_mail.tasks.process_mail_accounts[70f874d5-e0f6-4378-a3ab-eda460ff2fe0] succeeded in 0.18919590299992706s: 'No new documents were added.'

from paperless-home-assistant-addon.

creuter27 avatar creuter27 commented on May 21, 2024

In fact the preview in the documents - tab is showing but if I edit the document the document doesn't appear on the right side. See attached screenshots.
Bildschirmfoto 2024-03-26 um 16 29 43
Bildschirmfoto 2024-03-26 um 16 33 03

from paperless-home-assistant-addon.

BenoitAnastay avatar BenoitAnastay commented on May 21, 2024

For the document display it's a browser issue
Screenshot_20240326-174120

For others options it was on add-on configuration tab after checking "display unused options"

from paperless-home-assistant-addon.

creuter27 avatar creuter27 commented on May 21, 2024

This is not the cause. I had seen this option before and had set it as you pointed out:

Bildschirmfoto 2024-03-26 um 18 46 25

Any other ideas?

from paperless-home-assistant-addon.

BenoitAnastay avatar BenoitAnastay commented on May 21, 2024

Your PDF are correctly embeded by Paperless, but your browser doens't load them, its maybe to save resources, I can't help since it's not an issue of Paperless and its addon

from paperless-home-assistant-addon.

creuter27 avatar creuter27 commented on May 21, 2024

OK then I will have to find the solution myself. Thank you for your help so far.

However, it is incorrect that it is not a problem with the installation.
I have another instance of paperless installed in its own docker environment and with this instance, everything is working although I use the same browser on the same Macbook to access the 2 instances.
It definitely has something to do with the way the paperless instance is installed.

from paperless-home-assistant-addon.

BenoitAnastay avatar BenoitAnastay commented on May 21, 2024

Everything load well on my side, do you use HTTPS scheme?

I see that the PDF is embedded but the browser displays a button, I don't know the reason, you can go in thr inspector to see if there's any error or warning

from paperless-home-assistant-addon.

BenoitAnastay avatar BenoitAnastay commented on May 21, 2024

stale

from paperless-home-assistant-addon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.