-
-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when set the visible signature of a signer without account #3660
Comments
I changed the description of this issue. |
I created a PR that I think can solve your scenario. Could you apply the change of this PR handmade and check if will solve your problem? |
Yes, the description of error/issue is correct. nc 29.0.5 libresign 9.3.1 Log Error [libresign] Error: [{"file":"/home/u444396987/domains/mydomain.com/public_html/work/apps/libresign/lib/Service/SignFileService.php","line":590,"function":"forceSaveFileOfDifferentUser","class":"OCA\Libresign\Service\SignFileService","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/apps/libresign/lib/Service/SignFileService.php","line":423,"function":"getPdfToSign","class":"OCA\Libresign\Service\SignFileService","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/apps/libresign/lib/Service/SignFileService.php","line":282,"function":"getFileToSing","class":"OCA\Libresign\Service\SignFileService","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/apps/libresign/lib/Controller/SignFileController.php","line":145,"function":"sign","class":"OCA\Libresign\Service\SignFileService","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/apps/libresign/lib/Controller/SignFileController.php","line":111,"function":"sign","class":"OCA\Libresign\Controller\SignFileController","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/lib/private/AppFramework/Http/Dispatcher.php","line":232,"function":"signUsingUuid","class":"OCA\Libresign\Controller\SignFileController","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/lib/private/AppFramework/Http/Dispatcher.php","line":138,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\AppFramework\App","type":"::"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/ocs/v1.php","line":66,"function":"match","class":"OC\Route\Router","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/ocs/v2.php","line":23,"args":["/home/u444396987/domains/mydomain.com/public_html/work/ocs/v1.php"],"function":"require_once"}] |
@alfany could you test again with this other PR? |
Still got "Internal Error" Log [libresign] Error: [{"file":"/home/u444396987/domains/mydomain.com/public_html/work/apps/libresign/lib/Service/SignFileService.php","line":577,"function":"forceSaveFileOfDifferentUser","class":"OCA\Libresign\Service\SignFileService","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/apps/libresign/lib/Service/SignFileService.php","line":407,"function":"getPdfToSign","class":"OCA\Libresign\Service\SignFileService","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/apps/libresign/lib/Service/SignFileService.php","line":266,"function":"getFileToSing","class":"OCA\Libresign\Service\SignFileService","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/apps/libresign/lib/Controller/SignFileController.php","line":145,"function":"sign","class":"OCA\Libresign\Service\SignFileService","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/apps/libresign/lib/Controller/SignFileController.php","line":111,"function":"sign","class":"OCA\Libresign\Controller\SignFileController","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/lib/private/AppFramework/Http/Dispatcher.php","line":232,"function":"signUsingUuid","class":"OCA\Libresign\Controller\SignFileController","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/lib/private/AppFramework/Http/Dispatcher.php","line":138,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\AppFramework\App","type":"::"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/ocs/v1.php","line":66,"function":"match","class":"OC\Route\Router","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/ocs/v2.php","line":23,"args":["/home/u444396987/domains/mydomain.com/public_html/work/ocs/v1.php"],"function":"require_once"}] [no app in context] Info: Unable to generate a URL for the named route "libresign.page.index" as such route does not exist. |
This another error log that i found: Log [libresign] Error: 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/mydomain.com/public_html/work/ocs/hs_err_pid9148.log"] [libresign] Error: [{"file":"/home/u444396987/domains/mydomain.com/public_html/work/apps/libresign/lib/Handler/JSignPdfHandler.php","line":121,"function":"signWrapper","class":"OCA\Libresign\Handler\JSignPdfHandler","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/apps/libresign/lib/Handler/JSignPdfHandler.php","line":92,"function":"signUsingVisibleElements","class":"OCA\Libresign\Handler\JSignPdfHandler","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/apps/libresign/lib/Handler/Pkcs12Handler.php","line":149,"function":"sign","class":"OCA\Libresign\Handler\JSignPdfHandler","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/apps/libresign/lib/Service/SignFileService.php","line":275,"function":"sign","class":"OCA\Libresign\Handler\Pkcs12Handler","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/apps/libresign/lib/Controller/SignFileController.php","line":145,"function":"sign","class":"OCA\Libresign\Service\SignFileService","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/apps/libresign/lib/Controller/SignFileController.php","line":111,"function":"sign","class":"OCA\Libresign\Controller\SignFileController","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/lib/private/AppFramework/Http/Dispatcher.php","line":232,"function":"signUsingUuid","class":"OCA\Libresign\Controller\SignFileController","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/lib/private/AppFramework/Http/Dispatcher.php","line":138,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\AppFramework\App","type":"::"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/ocs/v1.php","line":66,"function":"match","class":"OC\Route\Router","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/ocs/v2.php","line":23,"args":["/home/u444396987/domains/mydomain.com/public_html/work/ocs/v1.php"],"function":"require_once"}] |
The scenario to reproduce the steps you took to trigger this log is important and can help identify the issue. What version of LibreSign are you using? What is the content of your Administration Settings > LibreSign screen? It sounds like you don't have enough memory. What is the output of the command Your log indicates that the log file If possible, could you attach the PDF file that is triggering this error? Was the issue related to the subject of this PR resolved, and is your current problem not related to the subject of this PR? If so, it would be best to finish this PR and open a new one with a title that matches the problem. |
Libresign v9.3.1 the error/log trigger after non-user sign the document the memory status on current test the log produced [libresign] Error: 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/mydomain.com/public_html/work/ocs/hs_err_pid20283.log"] [libresign] Error: [{"file":"/home/u444396987/domains/mydomain.com/public_html/work/apps/libresign/lib/Handler/JSignPdfHandler.php","line":121,"function":"signWrapper","class":"OCA\Libresign\Handler\JSignPdfHandler","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/apps/libresign/lib/Handler/JSignPdfHandler.php","line":92,"function":"signUsingVisibleElements","class":"OCA\Libresign\Handler\JSignPdfHandler","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/apps/libresign/lib/Handler/Pkcs12Handler.php","line":149,"function":"sign","class":"OCA\Libresign\Handler\JSignPdfHandler","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/apps/libresign/lib/Service/SignFileService.php","line":291,"function":"sign","class":"OCA\Libresign\Handler\Pkcs12Handler","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/apps/libresign/lib/Controller/SignFileController.php","line":145,"function":"sign","class":"OCA\Libresign\Service\SignFileService","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/apps/libresign/lib/Controller/SignFileController.php","line":111,"function":"sign","class":"OCA\Libresign\Controller\SignFileController","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/lib/private/AppFramework/Http/Dispatcher.php","line":232,"function":"signUsingUuid","class":"OCA\Libresign\Controller\SignFileController","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/lib/private/AppFramework/Http/Dispatcher.php","line":138,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\AppFramework\App","type":"::"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/ocs/v1.php","line":66,"function":"match","class":"OC\Route\Router","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/ocs/v2.php","line":23,"args":["/home/u444396987/domains/mydomain.com/public_html/work/ocs/v1.php"],"function":"require_once"}] this the log of pid20283 |
This will return the full path of java binary. Change this setting with the follow command to make a test if will work:
|
setting HeapBaseAddress not work and made libresign cannot find java path |
Describe the bug
references from issue #3543
after upgrade libresign to v9.3.1 signed the document not success, got message "internal error"
Log
{"reqId":"wKPuFpHppm7N7y03f0Bn","level":3,"time":"2024-09-12T05:10:01+00:00","remoteAddr":"114.10.47.138","user":"--","app":"PHP","method":"POST","url":"/ocs/v2.php/apps/libresign/api/v1/signature/elements","message":"Undefined array key "nodeId" at /home/u444396987/domains/mydomain.com/public_html/work/apps/libresign/lib/Service/AccountService.php#412","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:131.0) Gecko/20100101 Firefox/131.0","version":"29.0.5.1","data":{"app":"PHP"},"id":"66e278012be64"}
{"reqId":"CMNynWMMLnqwY9eiiHUa","level":3,"time":"2024-09-12T05:10:57+00:00","remoteAddr":"114.10.47.138","user":"--","app":"libresign","method":"POST","url":"/ocs/v2.php/apps/libresign/api/v1/sign/uuid/509f1400-bcaa-4725-93a1-d584de17a9a2","message":"OCA\Libresign\Service\SignFileService::forceSaveFileOfDifferentUser(): Argument #2 ($content) must be of type string, bool given, called in /home/u444396987/domains/mydomain.com/public_html/work/apps/libresign/lib/Service/SignFileService.php on line 590","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:131.0) Gecko/20100101 Firefox/131.0","version":"29.0.5.1","data":{"app":"libresign"},"id":"66e278012ad93"}
{"reqId":"CMNynWMMLnqwY9eiiHUa","level":3,"time":"2024-09-12T05:10:57+00:00","remoteAddr":"114.10.47.138","user":"--","app":"libresign","method":"POST","url":"/ocs/v2.php/apps/libresign/api/v1/sign/uuid/509f1400-bcaa-4725-93a1-d584de17a9a2","message":"[{"file":"\/home\/u444396987\/domains\/mydomain.com\/public_html\/work\/apps\/libresign\/lib\/Service\/SignFileService.php","line":590,"function":"forceSaveFileOfDifferentUser","class":"OCA\\Libresign\\Service\\SignFileService","type":"->"},{"file":"\/home\/u444396987\/domains\/mydomain.com\/public_html\/work\/apps\/libresign\/lib\/Service\/SignFileService.php","line":423,"function":"getPdfToSign","class":"OCA\\Libresign\\Service\\SignFileService","type":"->"},{"file":"\/home\/u444396987\/domains\/mydomain.com\/public_html\/work\/apps\/libresign\/lib\/Service\/SignFileService.php","line":282,"function":"getFileToSing","class":"OCA\\Libresign\\Service\\SignFileService","type":"->"},{"file":"\/home\/u444396987\/domains\/mydomain.com\/public_html\/work\/apps\/libresign\/lib\/Controller\/SignFileController.php","line":145,"function":"sign","class":"OCA\\Libresign\\Service\\SignFileService","type":"->"},{"file":"\/home\/u444396987\/domains\/mydomain.com\/public_html\/work\/apps\/libresign\/lib\/Controller\/SignFileController.php","line":111,"function":"sign","class":"OCA\\Libresign\\Controller\\SignFileController","type":"->"},{"file":"\/home\/u444396987\/domains\/mydomain.com\/public_html\/work\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":232,"function":"signUsingUuid","class":"OCA\\Libresign\\Controller\\SignFileController","type":"->"},{"file":"\/home\/u444396987\/domains\/mydomain.com\/public_html\/work\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":138,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"\/home\/u444396987\/domains\/mydomain.com\/public_html\/work\/lib\/private\/AppFramework\/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"\/home\/u444396987\/domains\/mydomain.com\/public_html\/work\/lib\/private\/Route\/Router.php","line":338,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"\/home\/u444396987\/domains\/mydomain.com\/public_html\/work\/ocs\/v1.php","line":66,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"\/home\/u444396987\/domains\/mydomain.com\/public_html\/work\/ocs\/v2.php","line":23,"args":["\/home\/u444396987\/domains\/mydomain.com\/public_html\/work\/ocs\/v1.php"],"function":"require_once"}]","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:131.0) Gecko/20100101 Firefox/131.0","version":"29.0.5.1","data":{"app":"libresign"},"id":"66e278012ad85"}
{"reqId":"0ADEqgTuLXWhgMIogXDj","level":1,"time":"2024-09-12T05:11:10+00:00","remoteAddr":"2a02:4780:8:5::7","user":"--","app":"no app in context","method":"HEAD","url":"/data/.ocdata","message":"Unable to generate a URL for the named route "libresign.page.index" as such route does not exist.","userAgent":"Nextcloud Server Crawler","version":"29.0.5.1","exception":{"Exception":"Symfony\Component\Routing\Exception\RouteNotFoundException","Message":"Unable to generate a URL for the named route "libresign.page.index" as such route does not exist.","Code":0,"Trace":[{"file":"/home/u444396987/domains/mydomain.com/public_html/work/lib/private/Route/Router.php","line":410,"function":"generate","class":"Symfony\Component\Routing\Generator\UrlGenerator","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/lib/private/Route/CachingRouter.php","line":65,"function":"generate","class":"OC\Route\Router","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/lib/private/URLGenerator.php","line":103,"function":"generate","class":"OC\Route\CachingRouter","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/lib/private/NavigationManager.php","line":371,"function":"linkToRoute","class":"OC\URLGenerator","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/lib/private/NavigationManager.php","line":132,"function":"init","class":"OC\NavigationManager","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/apps/theming/lib/ThemingDefaults.php","line":199,"function":"getAll","class":"OC\NavigationManager","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/lib/private/legacy/OC_Defaults.php","line":271,"function":"getShortFooter","class":"OCA\Theming\ThemingDefaults","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/lib/public/Defaults.php","line":176,"function":"getLongFooter","class":"OC_Defaults","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/core/templates/layout.guest.php","line":51,"function":"getLongFooter","class":"OCP\Defaults","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/lib/private/Template/Base.php","line":180,"args":["/home/u444396987/domains/mydomain.com/public_html/work/core/templates/layout.guest.php"],"function":"include"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/lib/private/Template/Base.php","line":150,"function":"load","class":"OC\Template\Base","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/lib/private/legacy/OC_Template.php","line":142,"function":"fetchPage","class":"OC\Template\Base","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/lib/private/legacy/OC_Template.php","line":173,"function":"fetchPage","class":"OC_Template","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/lib/public/AppFramework/Http/TemplateResponse.php","line":211,"function":"fetchPage","class":"OC_Template","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/lib/private/AppFramework/Http/Dispatcher.php","line":183,"function":"render","class":"OCP\AppFramework\Http\TemplateResponse","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\AppFramework\App","type":"::"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/lib/base.php","line":1101,"function":"match","class":"OC\Route\Router","type":"->"},{"file":"/home/u444396987/domains/mydomain.com/public_html/work/index.php","line":49,"function":"handleRequest","class":"OC","type":"::"}],"File":"/home/u444396987/domains/mydomain.com/public_html/work/3rdparty/symfony/routing/Generator/UrlGenerator.php","Line":144,"message":"Unable to generate a URL for the named route "libresign.page.index" as such route does not exist.","exception":[],"CustomMessage":"Unable to generate a URL for the named route "libresign.page.index" as such route does not exist."},"id":"66e278012a9c7"}
The text was updated successfully, but these errors were encountered: