-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
App not working #20
Comments
Okay here is why I don't have any key generated : This took 0seconds.` Seems to be due to Name-Comment. This took 0seconds. POST /index.php/settings/apps/enable` but again :
POST /index.php/settings/apps/enable' It seems that every foreach and sizeof raises an error... |
Something is going wrong while gpg->keyinfo eg. in Line 230 in 7c3cbae
You could use |
Okay, well only thing the geterror() returns is And here is a more in-depth view of the debug of keyinfo(). I tried to activate the debug on nextcloud but I get so many RuntimeException that log for the PHP app is not saved... Tell me if you need these 9 more entries and I'll try to see if I can get them. [PHP] Error: Error: gnupg::keyinfo(): could not init keylist at /usr/local/www/nextcloud/apps/gpgmailer/lib/Service/Gpg.php#329 at <>
POST /index.php/settings/apps/enable |
Could you try to get this small example running?
|
Sadly I only get And no error output from the gnupg_geterror($res); |
Could you check the permissions of the .gnupg folder? |
On data/.gnupg and data/user/.gnupg I've got |
and apache/php is running as www, www-data, wwwrun or php-fpm? http://php.adamharvey.name/manual/en/function.gnupg-init.php#121851 |
apache and php-fm run both under www user. |
It's driving me crazy. I tried all day yesterday and still can't at least introduce a new bug :p. I even changed php version to 8.0 but didn't improve anything. Do you think I should open an issue at https://github.com/php-gnupg/php-gnupg ? |
If the basic example of php-gnupg is not working. They might know whats going wrong. I'm sorry but I have no idea left right now. |
Hey !
This app seems really great, unfortunately I can't find a way to make it works on NC21. I've installed gnupg and
php -i | grep -i gnupg
do returns :/usr/local/etc/php/ext-20-gnupg.ini, gnupg gnupg support => enabled
Unfortunately upon clicking on "Download server Key" I get redirected to mycloud.com/index.php/apps/gpgmailer/key/download/server but I get a file not found warning
.
And on the server there is no key folder under apps/gpgmailer/
GpgMailer do send a warning in the log
[gpgmailer] Error: Creating server GPG key pair failed. Emails are not going to be signed, expect keys are server keys imported manually POST /index.php/settings/apps/enable from XX.XX.XX.XX by adrien at 2021-05-16T12:11:55+00:00
I also get two log entries : `[PHP] Error: Error: sizeof(): Parameter must be an array or an object that implements Countable at /usr/local/www/nextcloud/apps/gpgmailer/lib/Service/Gpg.php#231 at <>
OC\Log\ErrorHandler::onError(2, "sizeof(): Param ... e", "/usr/local/www/ ... p", 231, {email: "/////})
sizeof(false)
OCA\GpgMailer\Service\Gpg->getPublicKeyFromEmail("/////")
OCA\GpgMailer\Settings\Personal->getForm()
OCA\Settings\Controller\PersonalSettingsController->formatSettings({10: [OCA\Settin ... ]})
OCA\Settings\Controller\PersonalSettingsController->getSettings("security")
OCA\Settings\Controller\PersonalSettingsController->getIndexResponse("personal", "security")
OCA\Settings\Controller\PersonalSettingsController->index("security")
OC\AppFramework\Http\Dispatcher->executeController(OCA\Settings\Con ... {}, "index")
OC\AppFramework\Http\Dispatcher->dispatch(OCA\Settings\Con ... {}, "index")
OC\AppFramework\App::main("OCA\Settings\ ... r", "index", OC\AppFramework\ ... {}, {section: "secur ... "})
OC\Route\Router->match("/settings/user/security")
OC::handleRequest()
GET /index.php/settings/user/security
from XX.XX.XX.XX by adrien at 2021-05-16T09:45:25+00:00`
as well as `[PHP] Error: Error: Invalid argument supplied for foreach() at /usr/local/www/nextcloud/apps/gpgmailer/lib/Service/Gpg.php#232 at <>
OC\Log\ErrorHandler::onError(2, "Invalid argument supplied for foreach()", "/usr/local/www/ ... p", 232, {email: "/////})
OCA\GpgMailer\Service\Gpg->getPublicKeyFromEmail("/////")
OCA\GpgMailer\Settings\Personal->getForm()
OCA\Settings\Controller\PersonalSettingsController->formatSettings({10: [OCA\Settin ... ]})
OCA\Settings\Controller\PersonalSettingsController->getSettings("security")
OCA\Settings\Controller\PersonalSettingsController->getIndexResponse("personal", "security")
OCA\Settings\Controller\PersonalSettingsController->index("security")
OC\AppFramework\Http\Dispatcher->executeController(OCA\Settings\Con ... {}, "index")
OC\AppFramework\Http\Dispatcher->dispatch(OCA\Settings\Con ... {}, "index")
OC\AppFramework\App::main("OCA\Settings\ ... r", "index", OC\AppFramework\ ... {}, {section: "secur ... "})
OC\Route\Router->match("/settings/user/security")
OC::handleRequest()
GET /index.php/settings/user/security
from XX.XX.XX.XX by adrien at 2021-05-16T09:45:25+00:00`
Also regarding importing my own public key, I try to copy it from thunderbird and pasting, but I get an "Error importing public key"...
`
The text was updated successfully, but these errors were encountered: