Invoice Ninja PDF not available (Not working) #2215

Closed
opened 2026-02-05 04:14:09 +03:00 by OVERLORD · 11 comments
Owner

Originally created by @DragoQC on GitHub (Dec 22, 2025).

Have you read and understood the above guidelines?

yes

🔎 Did you run the script with verbose mode enabled?

No response

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

InvoiceNinja

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

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

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 13

📈 Which Proxmox version are you on?

9.1.1

📝 Provide a clear and concise description of the issue.

Installation works
In app pdf viewer dosent
Customer pdf download and viewer dosent work

Customer side :
View :
Image
Download :
Image

Admin side :
PDF view never loads
Image
Downloading :
Image

No logs in app
Image

🔄 Steps to reproduce the issue.

Connect
Create an invoice
Try to view the invoice PDF in any way
Try to download the PDF in any way

Paste the full error output (if available).

{"message":"Unable to generate the raw PDF => Browser binary not found. Make sure you download it or set using setChromiumPath()."}

🖼️ Additional context (optional).

No response

Originally created by @DragoQC on GitHub (Dec 22, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 🔎 Did you run the script with verbose mode enabled? _No response_ ### 📜 What is the name of the script you are using? InvoiceNinja ### 📂 What was the exact command used to execute the script? bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/invoiceninja.sh)" ### ⚙️ What settings are you using? - [ ] Default Settings - [x] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 13 ### 📈 Which Proxmox version are you on? 9.1.1 ### 📝 Provide a clear and concise description of the issue. Installation works In app pdf viewer dosent Customer pdf download and viewer dosent work Customer side : View : <img width="1879" height="347" alt="Image" src="https://github.com/user-attachments/assets/341aa0d0-9656-4fa2-8bd3-4c5b0f9216ed" /> Download : <img width="1907" height="207" alt="Image" src="https://github.com/user-attachments/assets/9ff864d4-a5ee-423b-9d74-c8aa3ea5c91e" /> Admin side : PDF view never loads <img width="1589" height="534" alt="Image" src="https://github.com/user-attachments/assets/2abcd8f1-4501-405f-ba31-c16b6382ccb9" /> Downloading : <img width="1622" height="233" alt="Image" src="https://github.com/user-attachments/assets/4fc988f7-a283-4ac9-bb46-a6d0e2f71bac" /> No logs in app <img width="1278" height="574" alt="Image" src="https://github.com/user-attachments/assets/f9a7526f-225d-4155-9ee3-08a69621b913" /> ### 🔄 Steps to reproduce the issue. Connect Create an invoice Try to view the invoice PDF in any way Try to download the PDF in any way ### ❌ Paste the full error output (if available). {"message":"Unable to generate the raw PDF => Browser binary not found. Make sure you download it or set using setChromiumPath()."} ### 🖼️ Additional context (optional). _No response_
OVERLORD added the bug label 2026-02-05 04:14:09 +03:00
Author
Owner

@DragoQC commented on GitHub (Dec 22, 2025):

tried ./opt/invoiceninja/vendor/bin/snappdf download and got 100% cpu use.
Tried command with better amount of cpu (4)
Worked but pdf still dosent works

Got this message trying to download the pdf as a user :
{"message":"Unable to generate the raw PDF => The command "'/opt/invoiceninja/vendor/beganovich/snappdf/versions/ungoogled/chrome-linux/chrome' '--headless' '--disable-gpu' '--disable-translate' '--disable-extensions' '--disable-sync' '--disable-background-networking' '--disable-software-rasterizer' '--disable-default-apps' '--disable-dev-shm-usage' '--safebrowsing-disable-auto-update' '--run-all-compositor-stages-before-draw' '--no-first-run' '--no-margins' '--no-sandbox' '--print-to-pdf-no-header' '--no-pdf-header-footer' '--hide-scrollbars' '--ignore-certificate-errors' '--no-default-browser-check' '--block-insecure-private-network-requests' '--block-port=22,25,465,587' '--disable-usb' '--disable-webrtc' '--block-new-web-contents' '--deny-permission-prompts' '--disable-renderer-backgrounding' '--disable-background-timer-throttling' '--disable-domain-reliability' '--disable-ipc-flooding-protection' '--disable-plugins' '--disable-notifications' '--disable-device-discovery-notifications' '--disable-reading-from-canvas' '--disable-features=SharedArrayBuffer,OutOfBlinkCors,PerformanceManager,InterestCohort' '--font-render-hinting=medium' '--enable-font-antialiasing' '--virtual-time-budget=10000' '--print-to-pdf=/tmp/pdf_eoa28bkuclpe51tSQLy.pdf' '/tmp/html_psknq3evjh5te3aLWOs.html'" failed.\n\nExit Code: 127(Command not found)\n\nWorking directory: /opt/invoiceninja/public\n\nOutput:\n================\n\n\nError Output:\n================\n/opt/invoiceninja/vendor/beganovich/snappdf/versions/ungoogled/chrome-linux/chrome: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory\n"}

@DragoQC commented on GitHub (Dec 22, 2025): tried ./opt/invoiceninja/vendor/bin/snappdf download and got 100% cpu use. Tried command with better amount of cpu (4) Worked but pdf still dosent works Got this message trying to download the pdf as a user : {"message":"Unable to generate the raw PDF => The command \"'\/opt\/invoiceninja\/vendor\/beganovich\/snappdf\/versions\/ungoogled\/chrome-linux\/chrome' '--headless' '--disable-gpu' '--disable-translate' '--disable-extensions' '--disable-sync' '--disable-background-networking' '--disable-software-rasterizer' '--disable-default-apps' '--disable-dev-shm-usage' '--safebrowsing-disable-auto-update' '--run-all-compositor-stages-before-draw' '--no-first-run' '--no-margins' '--no-sandbox' '--print-to-pdf-no-header' '--no-pdf-header-footer' '--hide-scrollbars' '--ignore-certificate-errors' '--no-default-browser-check' '--block-insecure-private-network-requests' '--block-port=22,25,465,587' '--disable-usb' '--disable-webrtc' '--block-new-web-contents' '--deny-permission-prompts' '--disable-renderer-backgrounding' '--disable-background-timer-throttling' '--disable-domain-reliability' '--disable-ipc-flooding-protection' '--disable-plugins' '--disable-notifications' '--disable-device-discovery-notifications' '--disable-reading-from-canvas' '--disable-features=SharedArrayBuffer,OutOfBlinkCors,PerformanceManager,InterestCohort' '--font-render-hinting=medium' '--enable-font-antialiasing' '--virtual-time-budget=10000' '--print-to-pdf=\/tmp\/pdf_eoa28bkuclpe51tSQLy.pdf' '\/tmp\/html_psknq3evjh5te3aLWOs.html'\" failed.\n\nExit Code: 127(Command not found)\n\nWorking directory: \/opt\/invoiceninja\/public\n\nOutput:\n================\n\n\nError Output:\n================\n\/opt\/invoiceninja\/vendor\/beganovich\/snappdf\/versions\/ungoogled\/chrome-linux\/chrome: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory\n"}
Author
Owner

@MickLesk commented on GitHub (Dec 22, 2025):

Can you try following;

apt install -y \
  libnss3 \
  libatk1.0-0 \
  libatk-bridge2.0-0 \
  libcups2 \
  libdrm2 \
  libxkbcommon0 \
  libxcomposite1 \
  libxdamage1 \
  libxfixes3 \
  libxrandr2 \
  libgbm1 \
  libasound2 \
  libpango-1.0-0 \
  libcairo2

then this;

cd /opt/invoiceninja
./vendor/bin/snappdf download
chown -R www-data:www-data /opt/invoiceninja/vendor/beganovich/snappdf/versions
@MickLesk commented on GitHub (Dec 22, 2025): Can you try following; ```bash apt install -y \ libnss3 \ libatk1.0-0 \ libatk-bridge2.0-0 \ libcups2 \ libdrm2 \ libxkbcommon0 \ libxcomposite1 \ libxdamage1 \ libxfixes3 \ libxrandr2 \ libgbm1 \ libasound2 \ libpango-1.0-0 \ libcairo2 ``` then this; ```bash cd /opt/invoiceninja ./vendor/bin/snappdf download chown -R www-data:www-data /opt/invoiceninja/vendor/beganovich/snappdf/versions ```
Author
Owner

@DragoQC commented on GitHub (Dec 22, 2025):

i was doing them one by one XD ill try this

@DragoQC commented on GitHub (Dec 22, 2025): i was doing them one by one XD ill try this
Author
Owner

@DragoQC commented on GitHub (Dec 22, 2025):

ok did this :
cd /
./opt/invoiceninja/vendor/bin/snappdf download
Without the chown and it worked
Dont really know if chown is needed but yeh dependencies were missing
Download now works

@DragoQC commented on GitHub (Dec 22, 2025): ok did this : cd / ./opt/invoiceninja/vendor/bin/snappdf download Without the chown and it worked Dont really know if chown is needed but yeh dependencies were missing Download now works
Author
Owner

@DragoQC commented on GitHub (Dec 22, 2025):

Theres also another problem not PDF side but languages
Image

Image

Maybe the app is based on system installed time i live in quebec canada and cant find my timezone and even english language so thats weird

@DragoQC commented on GitHub (Dec 22, 2025): Theres also another problem not PDF side but languages <img width="798" height="181" alt="Image" src="https://github.com/user-attachments/assets/81f3daba-5bee-4bab-9340-4000fbd6213d" /> <img width="1226" height="598" alt="Image" src="https://github.com/user-attachments/assets/07752302-5112-4d88-a38b-604910d88eb8" /> Maybe the app is based on system installed time i live in quebec canada and cant find my timezone and even english language so thats weird
Author
Owner

@MickLesk commented on GitHub (Dec 22, 2025):

i can take a look later, i watch a movie 😄

@MickLesk commented on GitHub (Dec 22, 2025): i can take a look later, i watch a movie :smile:
Author
Owner

@DragoQC commented on GitHub (Dec 23, 2025):

i can take a look later, i watch a movie 😄

No worries.
Have fun <3

@DragoQC commented on GitHub (Dec 23, 2025): > i can take a look later, i watch a movie 😄 No worries. Have fun <3
Author
Owner

@MickLesk commented on GitHub (Dec 23, 2025):

cd /opt/invo*
php artisan ninja:post-update

is this the trick?

@MickLesk commented on GitHub (Dec 23, 2025): cd /opt/invo* php artisan ninja:post-update is this the trick?
Author
Owner

@DragoQC commented on GitHub (Dec 23, 2025):

Fixed the Languages yeh but timezone maybe im just dumb ill look into that..

Well america toronto isnt there
I did :
timedatectl list-timezones | grep America
And
America/Swift_Current
America/Tegucigalpa
America/Thule
America/Thunder_Bay
America/Tijuana
America/Toronto
America/Tortola
America/Vancouver
America/Virgin

So toronto is in system but not in app

@DragoQC commented on GitHub (Dec 23, 2025): Fixed the Languages yeh but timezone maybe im just dumb ill look into that.. Well america toronto isnt there I did : timedatectl list-timezones | grep America And America/Swift_Current America/Tegucigalpa America/Thule America/Thunder_Bay America/Tijuana America/Toronto America/Tortola America/Vancouver America/Virgin So toronto is in system but not in app
Author
Owner

@MickLesk commented on GitHub (Dec 23, 2025):

I just took a quick look at the source code, and it looks like InvoiceNinja has a limited, hard-coded list of time zones in ConstantsSeeder.php. America/Toronto is not included—there are only the generic ones:

America/New_York = “(GMT-05:00) Eastern Time (US & Canada)”
America/Halifax = “(GMT-04:00) Atlantic Time (Canada)”
So this is an upstream issue with InvoiceNinja itself. Quebec/Toronto uses the same time zone as New York (Eastern Time).

You can simply select “Eastern Time (US & Canada)” – this corresponds to America/New_York and is correct for Toronto/Quebec.

@MickLesk commented on GitHub (Dec 23, 2025): I just took a quick look at the source code, and it looks like InvoiceNinja has a limited, hard-coded list of time zones in ConstantsSeeder.php. America/Toronto is not included—there are only the generic ones: America/New_York = “(GMT-05:00) Eastern Time (US & Canada)” America/Halifax = “(GMT-04:00) Atlantic Time (Canada)” So this is an upstream issue with InvoiceNinja itself. Quebec/Toronto uses the same time zone as New York (Eastern Time). You can simply select “Eastern Time (US & Canada)” – this corresponds to America/New_York and is correct for Toronto/Quebec.
Author
Owner

@DragoQC commented on GitHub (Dec 23, 2025):

Great ok my fault didnt know newyork was same as toronto
Thx :P

@DragoQC commented on GitHub (Dec 23, 2025): Great ok my fault didnt know newyork was same as toronto Thx :P
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#2215