libresign icon indicating copy to clipboard operation
libresign copied to clipboard

Error when signing of a signer without account

Open alfany opened this issue 1 year ago • 7 comments

NC 9 (30.0.1) Libresign 10.3.0 Server on shared hosting

Got error message "Internal error. Contact admin" Reference #3660

Not sure how to setup java metaspace or memory on shared hosting

{"reqId":"cPvkuQJgY0U9nwOTUP31","level":3,"time":"2024-11-21T04:21:39+00:00","remoteAddr":"114.10.47.67","user":"--","app":"libresign","method":"POST","url":"/ocs/v2.php/apps/libresign/api/v1/sign/uuid/4f1108b2-d64e-40a3-99cc-a7f117833189","message":"[{"file":"\/home\/u444396987\/domains\/blessingtransportbromoijen.com\/public_html\/work\/apps\/libresign\/lib\/Handler\/JSignPdfHandler.php","line":105,"function":"signWrapper","class":"OCA\\Libresign\\Handler\\JSignPdfHandler","type":"->"},{"file":"\/home\/u444396987\/domains\/blessingtransportbromoijen.com\/public_html\/work\/apps\/libresign\/lib\/Handler\/JSignPdfHandler.php","line":76,"function":"signUsingVisibleElements","class":"OCA\\Libresign\\Handler\\JSignPdfHandler","type":"->"},{"file":"\/home\/u444396987\/domains\/blessingtransportbromoijen.com\/public_html\/work\/apps\/libresign\/lib\/Handler\/Pkcs12Handler.php","line":133,"function":"sign","class":"OCA\\Libresign\\Handler\\JSignPdfHandler","type":"->"},{"file":"\/home\/u444396987\/domains\/blessingtransportbromoijen.com\/public_html\/work\/apps\/libresign\/lib\/Service\/SignFileService.php","line":275,"function":"sign","class":"OCA\\Libresign\\Handler\\Pkcs12Handler","type":"->"},{"file":"\/home\/u444396987\/domains\/blessingtransportbromoijen.com\/public_html\/work\/apps\/libresign\/lib\/Controller\/SignFileController.php","line":129,"function":"sign","class":"OCA\\Libresign\\Service\\SignFileService","type":"->"},{"file":"\/home\/u444396987\/domains\/blessingtransportbromoijen.com\/public_html\/work\/apps\/libresign\/lib\/Controller\/SignFileController.php","line":95,"function":"sign","class":"OCA\\Libresign\\Controller\\SignFileController","type":"->"},{"file":"\/home\/u444396987\/domains\/blessingtransportbromoijen.com\/public_html\/work\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":208,"function":"signUsingUuid","class":"OCA\\Libresign\\Controller\\SignFileController","type":"->"},{"file":"\/home\/u444396987\/domains\/blessingtransportbromoijen.com\/public_html\/work\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":114,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"\/home\/u444396987\/domains\/blessingtransportbromoijen.com\/public_html\/work\/lib\/private\/AppFramework\/App.php","line":161,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"\/home\/u444396987\/domains\/blessingtransportbromoijen.com\/public_html\/work\/lib\/private\/Route\/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"\/home\/u444396987\/domains\/blessingtransportbromoijen.com\/public_html\/work\/ocs\/v1.php","line":43,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"\/home\/u444396987\/domains\/blessingtransportbromoijen.com\/public_html\/work\/ocs\/v2.php","line":7,"args":["\/home\/u444396987\/domains\/blessingtransportbromoijen.com\/public_html\/work\/ocs\/v1.php"],"function":"require_once"}]","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:133.0) Gecko/20100101 Firefox/133.0","version":"30.0.1.2","data":{"app":"libresign"},"id":"673eb7015e2b0"}

{"reqId":"cPvkuQJgY0U9nwOTUP31","level":3,"time":"2024-11-21T04:21:39+00:00","remoteAddr":"114.10.47.67","user":"--","app":"libresign","method":"POST","url":"/ocs/v2.php/apps/libresign/api/v1/sign/uuid/4f1108b2-d64e-40a3-99cc-a7f117833189","message":"Error to sign PDF. ["#","# There is insufficient memory for the Java Runtime Environment to continue.","# Native memory allocation (mmap) failed to map 67108864 bytes for Failed to reserve memory for metaspace","# An error report file with more information is saved as:","# \/home\/u444396987\/domains\/blessingtransportbromoijen.com\/public_html\/work\/ocs\/hs_err_pid21933.log"]","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:133.0) Gecko/20100101 Firefox/133.0","version":"30.0.1.2","data":{"app":"libresign"},"id":"673eb7015e2bc"}

log file hs_err_pid21933.log

alfany avatar Nov 21 '24 04:11 alfany

Sounds that you haven't enough memory in your server.

How much memory do you have? free -h

vitormattos avatar Nov 21 '24 10:11 vitormattos

-bash-4.2$ free -m -h -t

              total        used        free      shared  buff/cache   available
Mem:           250G         63G        9.8G         41G        177G        143G
Swap:            0B          0B          0B
Total:         250G         63G        9.8G

That is my memory details

alfany avatar Nov 21 '24 15:11 alfany

What's the size of PDF file that you are requesting to sign? Are you requesting to sign only to a signer or is to multiple signers?

I never got this error. We will need to think together about how to reproduce.

vitormattos avatar Nov 21 '24 15:11 vitormattos

it's just a simple pdf file with one signer and the file size only 13Kb here's the file LIBRESIGN.pdf

alfany avatar Nov 21 '24 15:11 alfany

LibreSign is using a standalone Java binaries to reduce problems relative to whats the version of java are you using.

Sounds that your system have enough memory to run the process and isn't problem related with the size of your PDF file.

Will be necessary look more to think about and make more tests in your system to identify whats happening.

Trying to identify the problem with eyes closed, maybe could be anything relative to SELinux and policies that is blocking to a process to use more memory or use memory outside of allowed area.

One thing we can do is provide enterprise support for LibreSign or a recurring GitHub sponsor so we can provide this consultancy via video conference or remote access via SSH.

vitormattos avatar Nov 21 '24 20:11 vitormattos

What's your LibreSign setting about identification factors?

vitormattos avatar Nov 25 '24 20:11 vitormattos

Could you check again at the newest release of LibreSign?

vitormattos avatar Feb 21 '25 20:02 vitormattos

Closing this issue as without interaction after many days.

vitormattos avatar Jun 28 '25 18:06 vitormattos