result of umask command in terminal window is 0022
@lkeet okay, so one of these products?
Baby plan. Shared linux server
@lkeet who are the owner and group for the files?
Can you using the ssh terminal change the permissions for one of the PDF files and then check if it still gives a 503 on reload in dolibarr?
chmod a+r
When I changed the PDF to be unreadable and reloaded the page, instead of the 503 error I got this:
TCPDF ERROR: Unable to create output file: /var/www/documents/commande/SO2512-0743/SO2512-0743.pdf
This was sent with a HTTP status code of 200.
Changing the owner/group to nobody/nogroup gave the same result. It seems like that when it is unable to access it interprets that as the file not existing, and attempts to recreate it.
I then restored the user to www-data and the permissions to read/write, and it recovered.
chmod a+r still gives 503 error.
How do I find the owner and group?
ls -la on the file
let’s try to make your file inside the container 0660, so please run chmod 0660 on a file.
lkeeton and lkeeton, owner and group
That still works; I double-checked and 0660 are the permissions it had before I messed with it.
@carguin maybe the last command on the page was generate PDF, so it does try to recreate the PDF. What if you open the same invoice/order from a list of invoices or orders? - again with the file not being readable
Good call ; in that case the page still displays correctly, no 503 or other error. When I click on the PDF it fails to download, but it doesn’t cause an error in the display of the card
@lkeet @carguin @Locodarwin I think you need to talk to hostgator to find out what the issue is, they should be able to investigate much more, and if you can pin point when this started to fail, maybe they can correlate it to changes in their system.
You should probably email them and include a link to this thread
I’m having that conversation with them right now, and have sent them this thread. I just gave them permissions into my system to poke around… we’ll see where it goes.
one more clue: in dolibarrdata/facture/xxxx
for the invoices that work, there is a xxx_preview.png
for the broken invoices, there is not a preview.png
Can you try this in your container setup? can you find any previews and if possible remove them?
@jonbendtsen I copied one of the png files to a folder for a 503 file and renamed it to match the invoice number. It allowed the card to open properly.
Interesting… in the container I don’t have any preview.png files… but the container doesn’t currently have the backup document data from my actual site. I just tried to look at that, and both backups I made are broken with an “unexpected end of file”. I’ll have to look closer on the server
This is interesting. I just did the same and I can also access the card once I’ve done so. In fact, I tried just creating an empty file with the correct preview filename and the card will come up for that invoice. We’re getting closer!
In Setup - Other Setup enter this webhook:
MAIN_DISABLE_PDF_THUMBS set the value to 1 and then click add. Your site should work now!!!




