Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

arsvendg

Members
  • Joined

  • Last visited

Everything posted by arsvendg

  1. I found a solution to this. I ran a "chmod -755" command on all the files in the scripts folder, and now it works.
  2. I checked the permissions, and it does look like -rw-rw-rw-. I even started the console inside the docker, and I see tha script there, at the right place.
  3. I was thinking a little about this. I know absolutely nothing about programming og python, so please bear with me. I can see the script calls for a "import pikepdf". WIll Unraid just do that, or do I have to install something somehow so the script actually have something to import...?
  4. I saved it in notepad, and renamed it to .py instead of .txt. I placed it in a scripts folder I placed in the paperless share on the array.
  5. I have been trying to trigger a PAPERLESS_PRE_CONSUME_SCRIPT that I got from this site: https://piep.tech/posts/automatic-password-removal-in-paperless-ngx/. I have tried to add a scripts folder to my array share, and added the password txt file and the .py script. The script looks like this: #!/usr/bin/env python import pikepdf import os def unlock_pdf(file_path): password = None print("reading passwords") with open("/usr/src/paperless/scripts/passwords.txt", "r") as f: passwords = f.readlines() for p in passwords: password = p.strip() try: with pikepdf.open(file_path, password=password, allow_overwriting_input=True) as pdf: print("password is working:" + password) pdf.save(file_path) break except pikepdf.PasswordError: print("password isn't working:" + password) continue if password is None: print("Empty password file") file_path = os.environ.get('DOCUMENT_WORKING_PATH') unlock_pdf(file_path) I have set a path to give the container access to the scripts folder: And I have set the PAPERLESS_PRE_CONSUME_SCRIPT as a variable to run the script, I just have removed it now since it doesn't work... I am getting a permission denied error in the logs: [2023-09-18 23:47:43,698] [ERROR] [paperless.consumer] Error while executing pre-consume script: [Errno 13] Permission denied: '/usr/src/paperless/scripts/removepassword.py' At one point, I got these messages from the logs. [2023-09-18 23:02:34,261] [WARNING] [paperless.consumer] Script stderr: [2023-09-18 23:02:34,263] [WARNING] [paperless.consumer] /usr/bin/env: ‘python\r’: No such file or directory [2023-09-18 23:02:34,266] [WARNING] [paperless.consumer] /usr/bin/env: use -[v]S to pass options in shebang lines [2023-09-18 23:02:34,273] [ERROR] [paperless.consumer] Error while executing pre-consume script: Command '['/usr/src/paperless/scripts/removepassword.py', '/tmp/paperless/tmpl40jims_/loennslipp.pdf']' returned non-zero exit status 127. Does anyone have an idea to what I might be doing wrong? Is there something wrong with the script?
  6. My server broke too, and I am getting the same message as you. I downgraded to the previous release to get it running again. I guess they broke something in this release. If you wanna try, you can add :1.17.1-01 so it will be like this binhex/arch-minecraftserver:1.17.1-01 in the "repository" line to make it downgrade to the previous release.
  7. Hi. I have an issue that the log is growing too large. My docker container file is growing too large, and it's the log size of photoview that is the cause. Got a tip from their discord that I could add this, to prevent the log from growing too large: logging: driver: "json-file" options: max-size: "50m" How do I add this to the docker template in Unraid?

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.