Skip to content
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

Open
alfany opened this issue Sep 12, 2024 · 10 comments
Open

Error when set the visible signature of a signer without account #3660

alfany opened this issue Sep 12, 2024 · 10 comments
Labels
bug Something isn't working

Comments

@alfany
Copy link

alfany commented Sep 12, 2024

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"}

@alfany alfany added the bug Something isn't working label Sep 12, 2024
@vitormattos vitormattos changed the title Issue on v9.3.1 Error when set the visible signature of a signer without account Sep 13, 2024
@vitormattos
Copy link
Member

I changed the description of this issue.
Could you check if is OK the description? Is this the scenario to reproduce the problem?

@vitormattos
Copy link
Member

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?

@alfany
Copy link
Author

alfany commented Sep 13, 2024

Yes, the description of error/issue is correct. nc 29.0.5 libresign 9.3.1
Patching lib/Service/AccountService.php not work. Internal error still arise.

Log Error
[libresign] Error: 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
POST /ocs/v2.php/apps/libresign/api/v1/sign/uuid/97f50fef-f18b-4f39-9f1c-d5bc2c8aba5d
from xxxx by -- at Sep 13, 2024, 12:37:48 PM

[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"}]
POST /ocs/v2.php/apps/libresign/api/v1/sign/uuid/97f50fef-f18b-4f39-9f1c-d5bc2c8aba5d
from xxxx by -- at Sep 13, 2024, 12:37:48 PM

@vitormattos
Copy link
Member

@alfany could you test again with this other PR?

@alfany
Copy link
Author

alfany commented Sep 14, 2024

* [chore: validation setup improvement #3693](https://github.com/LibreSign/libresign/pull/3693)

Still got "Internal Error"

Log
[libresign] Error: 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 577
POST /ocs/v2.php/apps/libresign/api/v1/sign/uuid/aaeb03c3-9586-4ab1-93c9-450fbf264837
from IP4xxx by -- at Sep 15, 2024, 12:57:53 AM

[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"}]
POST /ocs/v2.php/apps/libresign/api/v1/sign/uuid/aaeb03c3-9586-4ab1-93c9-450fbf264837
from IP4xxx by -- at Sep 15, 2024, 12:57:53 AM

[no app in context] Info: Unable to generate a URL for the named route "libresign.page.index" as such route does not exist.
HEAD /data/.ocdata
from IP6xxx by -- at Sep 15, 2024, 12:58:03 AM

@alfany
Copy link
Author

alfany commented Sep 15, 2024

This another error log that i found:

Log
[libresign] Error: Error at JSignPdf side. LibreSign can not do nothing. Follow the error 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/mydomain.com/public_html/work/ocs/hs_err_pid9148.log"]
POST /ocs/v2.php/apps/libresign/api/v1/sign/uuid/27dc8332-ba01-4849-bae4-b2eb89dc61de
from IPxxx by -- at Sep 15, 2024, 9:30:05 AM

[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"]
POST /ocs/v2.php/apps/libresign/api/v1/sign/uuid/27dc8332-ba01-4849-bae4-b2eb89dc61de
from IPxxx by -- at Sep 15, 2024, 9:30:05 AM

[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"}]
POST /ocs/v2.php/apps/libresign/api/v1/sign/uuid/27dc8332-ba01-4849-bae4-b2eb89dc61de
from IPxxx by -- at Sep 15, 2024, 9:30:05 AM

@vitormattos
Copy link
Member

vitormattos commented Sep 15, 2024

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 free -mh?

Your log indicates that the log file work/ocs/hs_err_pid9148.log (or with a different number) was generated. What is the content of this 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.

@alfany
Copy link
Author

alfany commented Sep 17, 2024

Libresign v9.3.1
NC 29.0.5

the error/log trigger after non-user sign the document
sign1

the memory status on current test
total used free shared buff/cache available
Mem: 250G 54G 25G 31G 170G 162G
Swap: 0B 0B 0B

the log produced
[libresign] Error: Error at JSignPdf side. LibreSign can not do nothing. Follow the error 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/mydomain.com/public_html/work/ocs/hs_err_pid20283.log"]
POST /ocs/v2.php/apps/libresign/api/v1/sign/uuid/25db30e5-8806-4f7e-b574-f29e4351b62b
from 114.10.47.172 by -- at Sep 17, 2024, 12:16:31 PM

[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"]
POST /ocs/v2.php/apps/libresign/api/v1/sign/uuid/25db30e5-8806-4f7e-b574-f29e4351b62b
from 114.10.47.172 by -- at Sep 17, 2024, 12:16:31 PM

[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"}]
POST /ocs/v2.php/apps/libresign/api/v1/sign/uuid/25db30e5-8806-4f7e-b574-f29e4351b62b
from 114.10.47.172 by -- at Sep 17, 2024, 12:16:31 PM

this the log of pid20283
hs_err_pid20283.log

configure checked and setting of libresign
check-confg

set1

set2
set3
set4

@vitormattos
Copy link
Member

occ config:app:get libresign java_path

This will return the full path of java binary.

Change this setting with the follow command to make a test if will work:

occ config:app:set libresign java_path --value `occ config:app:get libresign java_path`" -XX:HeapBaseMinAddress=n"

@alfany
Copy link
Author

alfany commented Sep 21, 2024

occ config:app:get libresign java_path

This will return the full path of java binary.

Change this setting with the follow command to make a test if will work:

occ config:app:set libresign java_path --value `occ config:app:get libresign java_path`" -XX:HeapBaseMinAddress=n"

setting HeapBaseAddress not work and made libresign cannot find java path
log
[libresign] Error: Invalid Java binary. Run occ libresign:install --java
POST /ocs/v2.php/apps/libresign/api/v1/sign/uuid/592fcd08-8142-4ae5-b1d8-b16610f9b3b0
from 114.10.47.172 by -- at Sep 21, 2024, 10:41:35 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 0. Needs triage
Development

No branches or pull requests

2 participants