Paperless-ngx: Document importer

My YunoHost server

Hardware: VPS bought online
YunoHost version: 11.2.14.1 (stable)
I have access to my server : Through SSH
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
If yes, please explain:
If your request is related to an app, specify its name and version: Paperless-ngx v2.9.0~ynh1

Description of my issue

I’d like to import documents that I exported from another Paperless-NGX instance using Paperless-NGX’s

document_importer source

When I connect to my YHN via SSH, I’m in the admin account’s home directory with the subdirectories “media” and “Multimedia”. If possible, I’d like to use Paperless-ngx as the less privileged user1.
How can I achieve this?

Thanks a lot in advance,
xl.

The app has its own system user. To get a shell into the apps’ environment : sudo yunohost app shell paperless-ngx

You should then be able to run the document_importer command. You might need to give paperless-ngx permission to access the source you want to import.

Hi @tituspijean,

Thanks for your reply! Unfortunately, I still seem to miss something:

When I execute the provided command, my prompt ends up in

paperless-ngx@thenameofmyserver:~/src$

And when I try to invoke the document_importer, I get a message that this command in not available?

paperless-ngx@thenameofmyserver:~/src/paperless$ document_importer
bash: document_importer: command not found

What am I missing here?

Where can I find a documentation on the specific knowledge required for the Yunohost-version of paperless-ngx that is accessible to laypeople like me?

Thank you very much in advance!
xl.

Ah yes, Paperless-ngx’s documentation assumes you have installed it with Docker, which is not the case with YunoHost.

After running yunohost app shell paperless-ngx, the document_importer command can be called with ./manage.py document_importer

Thanks, @tituspijean - looks like I’m getting closer :sunglasses:

So far, I seem to have two more issues:

  1. I can’t log into Paperless: Even though I chose all_users under “Groups / users currently allowed to access this app” in Yunohost’s WebAdmin interface, none of the users can log into the Paperless-NGX website.

  2. When I want to add the German OCR package using sudo apt-get install tesseract-ocr-deu (as suggested in the WebAdmin interface) neither the passwort of the Yunohost admin account nor the root password of the original Debian installation are accepted?

Any hints on how to fix this will be greatly appreciated!

Great :slight_smile:

As per the app’s manifest, it is not compatible with YunoHost’s SSO and LDAP server. You need to use the admin user with the password you created during installation to log into the app. There, I assume you can create more users, or check the documentation for how to do so.

That’s another issue altogether. I guess you are running this in the app shell? You need to run it outside of it.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.