Paperless script during install error #600

Closed
opened 2026-02-04 20:16:24 +03:00 by OVERLORD · 5 comments
Owner

Originally created by @SomeBoredAussie on GitHub (Mar 6, 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 "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/paperless-ngx.sh)"

📝 Provide a clear and concise description of the issue.

Getting an error when installing paperless-ngx
Note LXC container is created but doesnt install.

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

No response

🔄 Steps to reproduce the issue.

install script using functions.

Tshooting steps done
Used all options in OS (Debian and Ubuntu) all versions,
set DNS to 1.1.1.1 and tried 8.8.8.8
Changed vlans
Opened up firewall
Traffic is being passed in firewall logs
tested with privileged and unprivileged.
tested default settings

can replicate the error.

Paste the full error output (if available).

running build_ext
building 'psycopg_c._psycopg' extension
creating build/temp.linux-x86_64-cpython-311/psycopg_c
creating build/temp.linux-x86_64-cpython-311/psycopg_c/types
x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/usr/include/postgresql -I/usr/include/python3.11 -c psycopg_c/_psycopg.c -o build/temp.linux-x86_64-cpython-311/psycopg_c/_psycopg.o
psycopg_c/_psycopg.c: In function ‘__pyx_pymod_exec__psycopg’:
psycopg_c/psycopg.c:91845:30: internal compiler error: Segmentation fault
91845 | #endif
| ^
0x196b776 internal_error(char const*, ...)
???:0
0x76f013 ggc_set_mark(void const*)
???:0
0x689b87 gt_ggc_mx_lang_tree_node(void*)
???:0
0x97f21e gt_ggc_mx_gimple(void*)
???:0
0x97c035 gt_ggc_mx_basic_block_def(void*)
???:0
0x97fafc gt_ggc_mx_control_flow_graph(void*)
???:0
0x982abe gt_ggc_mx_function(void*)
???:0
0x68a5e5 gt_ggc_mx_lang_tree_node(void*)
???:0
0x68a949 gt_ggc_mx_lang_tree_node(void*)
???:0
0x68a4ce gt_ggc_mx_lang_tree_node(void*)
???:0
0x68a145 gt_ggc_mx_lang_tree_node(void*)
???:0
0x68a11b gt_ggc_mx_lang_tree_node(void*)
???:0
0x68a0eb gt_ggc_mx_lang_tree_node(void*)
???:0
0x68a0a5 gt_ggc_mx_lang_tree_node(void*)
???:0
0x689e37 gt_ggc_mx_lang_tree_node(void*)
???:0
0x97d274 gt_ggc_mx_rtx_def(void*)
???:0
0x981761 gt_ggc_mx_dw_loc_descr_node(void*)
???:0
0x83d528 gt_ggc_mx_hash_table_decl_die_hasher
(void*)
???:0
0x912e8c ggc_mark_roots()
???:0
0x76f971 ggc_collect(ggc_collect)
???:0
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
See file:///usr/share/doc/gcc-12/README.Bugs for instructions.
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for psycopg-c
Successfully built django-allauth img2pdf inotify-simple langdetect mysqlclient
Failed to build psycopg-c
⠏ERROR: Failed to build installable wheels for some pyproject.toml based projects (psycopg-c)

[ERROR] in line 92: exit code 0: while executing command $STD pip install -r requirements.txt
root@proxmox1:~# nano //usr/share/doc

🖼️ Additional context (optional).

No response

Originally created by @SomeBoredAussie on GitHub (Mar 6, 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 "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/paperless-ngx.sh)" ### 📝 Provide a clear and concise description of the issue. Getting an error when installing paperless-ngx Note LXC container is created but doesnt install. ### ⚙️ What settings are you using? - [ ] Default Settings - [ ] Advanced Settings ### 🖥️ Which Linux distribution are you using? _No response_ ### 🔄 Steps to reproduce the issue. install script using functions. Tshooting steps done Used all options in OS (Debian and Ubuntu) all versions, set DNS to 1.1.1.1 and tried 8.8.8.8 Changed vlans Opened up firewall Traffic is being passed in firewall logs tested with privileged and unprivileged. tested default settings can replicate the error. ### ❌ Paste the full error output (if available). running build_ext building 'psycopg_c._psycopg' extension creating build/temp.linux-x86_64-cpython-311/psycopg_c creating build/temp.linux-x86_64-cpython-311/psycopg_c/types x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/usr/include/postgresql -I/usr/include/python3.11 -c psycopg_c/_psycopg.c -o build/temp.linux-x86_64-cpython-311/psycopg_c/_psycopg.o psycopg_c/_psycopg.c: In function ‘__pyx_pymod_exec__psycopg’: psycopg_c/_psycopg.c:91845:30: internal compiler error: Segmentation fault 91845 | #endif | ^ 0x196b776 internal_error(char const*, ...) ???:0 0x76f013 ggc_set_mark(void const*) ???:0 0x689b87 gt_ggc_mx_lang_tree_node(void*) ???:0 0x97f21e gt_ggc_mx_gimple(void*) ???:0 0x97c035 gt_ggc_mx_basic_block_def(void*) ???:0 0x97fafc gt_ggc_mx_control_flow_graph(void*) ???:0 0x982abe gt_ggc_mx_function(void*) ???:0 0x68a5e5 gt_ggc_mx_lang_tree_node(void*) ???:0 0x68a949 gt_ggc_mx_lang_tree_node(void*) ???:0 0x68a4ce gt_ggc_mx_lang_tree_node(void*) ???:0 0x68a145 gt_ggc_mx_lang_tree_node(void*) ???:0 0x68a11b gt_ggc_mx_lang_tree_node(void*) ???:0 0x68a0eb gt_ggc_mx_lang_tree_node(void*) ???:0 0x68a0a5 gt_ggc_mx_lang_tree_node(void*) ???:0 0x689e37 gt_ggc_mx_lang_tree_node(void*) ???:0 0x97d274 gt_ggc_mx_rtx_def(void*) ???:0 0x981761 gt_ggc_mx_dw_loc_descr_node(void*) ???:0 0x83d528 gt_ggc_mx_hash_table_decl_die_hasher_(void*) ???:0 0x912e8c ggc_mark_roots() ???:0 0x76f971 ggc_collect(ggc_collect) ???:0 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <file:///usr/share/doc/gcc-12/README.Bugs> for instructions. error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for psycopg-c Successfully built django-allauth img2pdf inotify-simple langdetect mysqlclient Failed to build psycopg-c ⠏ERROR: Failed to build installable wheels for some pyproject.toml based projects (psycopg-c) ⠋ [ERROR] in line 92: exit code 0: while executing command $STD pip install -r requirements.txt root@proxmox1:~# nano //usr/share/doc ### 🖼️ Additional context (optional). _No response_
OVERLORD added the bug label 2026-02-04 20:16:24 +03:00
Author
Owner

@MickLesk commented on GitHub (Mar 6, 2025):

The Compiler fails, looks like an OOM Exception. Is your RAM fine?

Check this:
apt-get update
apt-get install build-essential python3-dev libpq-dev

Any Changed?

Reinstalling GCC:
apt-get install --reinstall gcc g++

@MickLesk commented on GitHub (Mar 6, 2025): The Compiler fails, looks like an OOM Exception. Is your RAM fine? Check this: apt-get update apt-get install build-essential python3-dev libpq-dev Any Changed? Reinstalling GCC: apt-get install --reinstall gcc g++
Author
Owner

@SomeBoredAussie commented on GitHub (Mar 6, 2025):

Ram is working fine (just tried 4 other scripts no issue)

apt-get update
apt-get install build-essential python3-dev libpq-dev

Ran it on proxmox shell.

Testing now will update

@SomeBoredAussie commented on GitHub (Mar 6, 2025): Ram is working fine (just tried 4 other scripts no issue) apt-get update apt-get install build-essential python3-dev libpq-dev Ran it on proxmox shell. Testing now will update
Author
Owner

@SomeBoredAussie commented on GitHub (Mar 6, 2025):

Getting a new error now

TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'

[ERROR] in line 128: exit code 0: while executing command $STD python3 manage.py migrate

@SomeBoredAussie commented on GitHub (Mar 6, 2025): Getting a new error now TypeError: unsupported operand type(s) for |: 'type' and 'NoneType' ⠴ [ERROR] in line 128: exit code 0: while executing command $STD python3 manage.py migrate
Author
Owner

@MickLesk commented on GitHub (Mar 6, 2025):

cant reproduce. Something is wrong on your system.

ive build it into 3 nodes and the api-data say its all fine by other users

@MickLesk commented on GitHub (Mar 6, 2025): cant reproduce. Something is wrong on your system. ive build it into 3 nodes and the api-data say its all fine by other users
Author
Owner

@SomeBoredAussie commented on GitHub (Mar 6, 2025):

So figured to reboot my Proxmox node
now it worked

weird as i was able to run the other scripts on the VE scripts
Figured id leave the "solution" incase others have same problem

@SomeBoredAussie commented on GitHub (Mar 6, 2025): So figured to reboot my Proxmox node now it worked weird as i was able to run the other scripts on the VE scripts Figured id leave the "solution" incase others have same problem
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#600