Paperless ngx update error #884

Closed
opened 2025-11-20 04:55:41 -05:00 by saavagebueno · 8 comments
Owner

Originally created by @Belgadon on GitHub (Apr 8, 2025).

Have you read and understood the above guidelines?

yes

📜 What is the name of the script you are using?

Paperless-ngx

📂 What was the exact command used to execute the script?

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/paperless-ngx.sh)"

📝 Provide a clear and concise description of the issue.

When doing update command, I get the following error:

several lines of "cp: cannot create regular file"
cp: cannot create regular file '/opt/paperless/static/admin/css/dark_mode.css.gz': Permission denied
cp: cannot create regular file '/opt/paperless/static/admin/css/widgets.css': Permission denied
cp: cannot create regular file '/opt/paperless/static/admin/css/forms.css': Permission denied
cp: cannot create regular file '/opt/paperless/static/bootstrap.min.css.br': Permission denied
 /
[ERROR] in line 91: exit code 0: while executing command cp -r paperless-ngx/* /opt/paperless/

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 12

🔄 Steps to reproduce the issue.

  1. Doing "update" or "bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/paperless-ngx.sh)"" in console.
  2. error

Paste the full error output (if available).

...
cp: cannot create regular file '/opt/paperless/static/admin/css/vendor/select2/select2.css.gz': Permission denied
cp: cannot create regular file '/opt/paperless/static/admin/css/vendor/select2/select2.css': Permission denied
cp: cannot create regular file '/opt/paperless/static/admin/css/vendor/select2/select2.min.css': Permission denied
cp: cannot create regular file '/opt/paperless/static/admin/css/vendor/select2/LICENSE-SELECT2.md': Permission denied
cp: cannot create regular file '/opt/paperless/static/admin/css/vendor/select2/select2.css.br': Permission denied
cp: cannot create regular file '/opt/paperless/static/admin/css/vendor/select2/select2.min.css.br': Permission denied
cp: cannot create regular file '/opt/paperless/static/admin/css/base.css': Permission denied
cp: cannot create regular file '/opt/paperless/static/admin/css/dashboard.css': Permission denied
cp: cannot create regular file '/opt/paperless/static/admin/css/rtl.css.br': Permission denied
cp: cannot create regular file '/opt/paperless/static/admin/css/responsive_rtl.css': Permission denied
cp: cannot create regular file '/opt/paperless/static/admin/css/nav_sidebar.css.gz': Permission denied
cp: cannot create regular file '/opt/paperless/static/admin/css/dashboard.css.gz': Permission denied
cp: cannot create regular file '/opt/paperless/static/admin/css/responsive.css.br': Permission denied
cp: cannot create regular file '/opt/paperless/static/admin/css/autocomplete.css.br': Permission denied
cp: cannot create regular file '/opt/paperless/static/admin/css/rtl.css': Permission denied
cp: cannot create regular file '/opt/paperless/static/admin/css/dark_mode.css.gz': Permission denied
cp: cannot create regular file '/opt/paperless/static/admin/css/widgets.css': Permission denied
cp: cannot create regular file '/opt/paperless/static/admin/css/forms.css': Permission denied
cp: cannot create regular file '/opt/paperless/static/bootstrap.min.css.br': Permission denied
⠸ Updating to v2.15.0
[ERROR] in line 59: exit code 0: while executing command cp -r paperless-ngx/* /opt/paperless/

🖼️ Additional context (optional).

No response

Originally created by @Belgadon on GitHub (Apr 8, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? Paperless-ngx ### 📂 What was the exact command used to execute the script? bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/paperless-ngx.sh)" ### 📝 Provide a clear and concise description of the issue. When doing update command, I get the following error: ``` several lines of "cp: cannot create regular file" cp: cannot create regular file '/opt/paperless/static/admin/css/dark_mode.css.gz': Permission denied cp: cannot create regular file '/opt/paperless/static/admin/css/widgets.css': Permission denied cp: cannot create regular file '/opt/paperless/static/admin/css/forms.css': Permission denied cp: cannot create regular file '/opt/paperless/static/bootstrap.min.css.br': Permission denied / [ERROR] in line 91: exit code 0: while executing command cp -r paperless-ngx/* /opt/paperless/ ``` ### ⚙️ What settings are you using? - [x] Default Settings - [ ] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 12 ### 🔄 Steps to reproduce the issue. 1. Doing "update" or "bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/paperless-ngx.sh)"" in console. 2. error ### ❌ Paste the full error output (if available). ... cp: cannot create regular file '/opt/paperless/static/admin/css/vendor/select2/select2.css.gz': Permission denied cp: cannot create regular file '/opt/paperless/static/admin/css/vendor/select2/select2.css': Permission denied cp: cannot create regular file '/opt/paperless/static/admin/css/vendor/select2/select2.min.css': Permission denied cp: cannot create regular file '/opt/paperless/static/admin/css/vendor/select2/LICENSE-SELECT2.md': Permission denied cp: cannot create regular file '/opt/paperless/static/admin/css/vendor/select2/select2.css.br': Permission denied cp: cannot create regular file '/opt/paperless/static/admin/css/vendor/select2/select2.min.css.br': Permission denied cp: cannot create regular file '/opt/paperless/static/admin/css/base.css': Permission denied cp: cannot create regular file '/opt/paperless/static/admin/css/dashboard.css': Permission denied cp: cannot create regular file '/opt/paperless/static/admin/css/rtl.css.br': Permission denied cp: cannot create regular file '/opt/paperless/static/admin/css/responsive_rtl.css': Permission denied cp: cannot create regular file '/opt/paperless/static/admin/css/nav_sidebar.css.gz': Permission denied cp: cannot create regular file '/opt/paperless/static/admin/css/dashboard.css.gz': Permission denied cp: cannot create regular file '/opt/paperless/static/admin/css/responsive.css.br': Permission denied cp: cannot create regular file '/opt/paperless/static/admin/css/autocomplete.css.br': Permission denied cp: cannot create regular file '/opt/paperless/static/admin/css/rtl.css': Permission denied cp: cannot create regular file '/opt/paperless/static/admin/css/dark_mode.css.gz': Permission denied cp: cannot create regular file '/opt/paperless/static/admin/css/widgets.css': Permission denied cp: cannot create regular file '/opt/paperless/static/admin/css/forms.css': Permission denied cp: cannot create regular file '/opt/paperless/static/bootstrap.min.css.br': Permission denied ⠸ Updating to v2.15.0 [ERROR] in line 59: exit code 0: while executing command cp -r paperless-ngx/* /opt/paperless/ ### 🖼️ Additional context (optional). _No response_
saavagebueno added the bug label 2025-11-20 04:55:41 -05:00
Author
Owner

@MickLesk commented on GitHub (Apr 8, 2025):

??? From which Version are you coming. Tested this 2h ago, working fine, that issues are not directly from script 🤔 you have massive permission Issues. Idk what you do in the last time

@MickLesk commented on GitHub (Apr 8, 2025): ??? From which Version are you coming. Tested this 2h ago, working fine, that issues are not directly from script 🤔 you have massive permission Issues. Idk what you do in the last time
Author
Owner

@Belgadon commented on GitHub (Apr 8, 2025):

??? From which Version are you coming. Tested this 2h ago, working fine, that issues are not directly from script 🤔 you have massive permission Issues. Idk what you do in the last time

Installed version is 2.14.6
Thanks for confirming that the script is working.
I don't think I ever changed permission on this container, but I will double-check.

In case: Is there a way to re-install without losing settings etc.?

@Belgadon commented on GitHub (Apr 8, 2025): > ??? From which Version are you coming. Tested this 2h ago, working fine, that issues are not directly from script 🤔 you have massive permission Issues. Idk what you do in the last time Installed version is 2.14.6 Thanks for confirming that the script is working. I don't think I ever changed permission on this container, but I will double-check. In case: Is there a way to re-install without losing settings etc.?
Author
Owner

@MickLesk commented on GitHub (Apr 8, 2025):

/opt/paperless/paperless.conf is the main config. Can you do an ls -ls in /opt & in /opt/paperless

@MickLesk commented on GitHub (Apr 8, 2025): /opt/paperless/paperless.conf is the main config. Can you do an ls -ls in /opt & in /opt/paperless
Author
Owner

@Belgadon commented on GitHub (Apr 9, 2025):

ls -ls in /opt

4 drwxr-xr-x 12 paperless root    4096 Apr  8 21:32 paperless
4 -rwxr-xr-x  1 nobody    nogroup    8 Jan 28 10:57 Paperless-ngx_version.txt

ls -ls in /opt/paperless

  4 drwxr-xr-x  2 paperless root        4096 Feb  2 12:04 consume
  4 drwxr-xr-x  4 root      root        4096 Feb  2 12:04 data
  4 drwxr-xr-x  4 root      root        4096 Apr  8 21:32 docker
 12 -rw-r--r--  1 paperless paperless  10560 Apr  8 21:48 Dockerfile
  4 drwxr-xr-x 14 paperless paperless   4096 Sep 16  2024 docs
412 drwxr-xr-x  2 nobody    nogroup   417792 Jan 28 12:01 export
  4 -rw-r--r--  1 paperless paperless   1351 Jan 28 10:53 gunicorn.conf.py
 36 -rw-r--r--  1 paperless paperless  35142 Apr  8 21:48 LICENSE
  4 drwxr-xr-x  3 root      root        4096 Feb  2 12:04 media
  4 -rw-r--r--  1 paperless paperless   3052 Apr  8 21:48 paperless.conf
  4 -rw-r--r--  1 paperless paperless   2306 Jan 28 10:53 Pipfile
328 -rw-r--r--  1 paperless paperless 332365 Jan 28 10:53 Pipfile.lock
  4 drwxr-xr-x  2 root      root        4096 Jan 28 10:57 __pycache__
 12 -rw-r--r--  1 root      root       10223 Apr  8 21:48 pyproject.toml
  8 -rw-r--r--  1 paperless paperless   7169 Apr  8 21:48 README.md
116 -rw-r--r--  1 paperless paperless 118194 Apr  8 21:48 requirements.txt
  4 drwxr-xr-x  2 paperless paperless   4096 Sep 16  2024 scripts
  4 drwxr-xr-x  9 paperless paperless   4096 Jan 28 11:45 src
  4 drwxr-xr-x  9 nobody    nogroup     4096 Jan 28 10:53 static
500 -rw-r--r--  1 root      root      511622 Apr  8 21:48 uv.lock
@Belgadon commented on GitHub (Apr 9, 2025): ls -ls in /opt ``` 4 drwxr-xr-x 12 paperless root 4096 Apr 8 21:32 paperless 4 -rwxr-xr-x 1 nobody nogroup 8 Jan 28 10:57 Paperless-ngx_version.txt ``` ls -ls in /opt/paperless ``` 4 drwxr-xr-x 2 paperless root 4096 Feb 2 12:04 consume 4 drwxr-xr-x 4 root root 4096 Feb 2 12:04 data 4 drwxr-xr-x 4 root root 4096 Apr 8 21:32 docker 12 -rw-r--r-- 1 paperless paperless 10560 Apr 8 21:48 Dockerfile 4 drwxr-xr-x 14 paperless paperless 4096 Sep 16 2024 docs 412 drwxr-xr-x 2 nobody nogroup 417792 Jan 28 12:01 export 4 -rw-r--r-- 1 paperless paperless 1351 Jan 28 10:53 gunicorn.conf.py 36 -rw-r--r-- 1 paperless paperless 35142 Apr 8 21:48 LICENSE 4 drwxr-xr-x 3 root root 4096 Feb 2 12:04 media 4 -rw-r--r-- 1 paperless paperless 3052 Apr 8 21:48 paperless.conf 4 -rw-r--r-- 1 paperless paperless 2306 Jan 28 10:53 Pipfile 328 -rw-r--r-- 1 paperless paperless 332365 Jan 28 10:53 Pipfile.lock 4 drwxr-xr-x 2 root root 4096 Jan 28 10:57 __pycache__ 12 -rw-r--r-- 1 root root 10223 Apr 8 21:48 pyproject.toml 8 -rw-r--r-- 1 paperless paperless 7169 Apr 8 21:48 README.md 116 -rw-r--r-- 1 paperless paperless 118194 Apr 8 21:48 requirements.txt 4 drwxr-xr-x 2 paperless paperless 4096 Sep 16 2024 scripts 4 drwxr-xr-x 9 paperless paperless 4096 Jan 28 11:45 src 4 drwxr-xr-x 9 nobody nogroup 4096 Jan 28 10:53 static 500 -rw-r--r-- 1 root root 511622 Apr 8 21:48 uv.lock ```
Author
Owner

@MickLesk commented on GitHub (Apr 9, 2025):

Strange. is this an old installation?

Image
@MickLesk commented on GitHub (Apr 9, 2025): Strange. is this an old installation? <img width="433" alt="Image" src="https://github.com/user-attachments/assets/3cc4be21-571a-46f5-ab64-b02b47f2f906" />
Author
Owner

@Belgadon commented on GitHub (Apr 9, 2025):

Strange. is this an old installation?
yes

@Belgadon commented on GitHub (Apr 9, 2025): > Strange. is this an old installation? yes
Author
Owner

@MickLesk commented on GitHub (Apr 9, 2025):

correct your rights please

@MickLesk commented on GitHub (Apr 9, 2025): correct your rights please
Author
Owner

@Belgadon commented on GitHub (Apr 9, 2025):

correct your rights please

I did, it works now.
I think I messed something up when I restored a backup some time ago.

Thank you very much for pointing me in the right direction!

@Belgadon commented on GitHub (Apr 9, 2025): > correct your rights please I did, it works now. I think I messed something up when I restored a backup some time ago. Thank you very much for pointing me in the right direction!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/ProxmoxVE#884