Thursday, September 27, 2018

Re: UPDATE: Nextcloud-14.0.0

For the archives, after upgrading from 13.0.5 to 14.0.0 I get an
internal server error from nextcloud.

I'm running with httpd(8) and chroot(2)'ed php-fpm.

Enabling debug logging and logging to syslog in
/var/www/nextcloud/config/config.php via
'loglevel' => 0,
'log_type' => 'syslog',

reveals:

Sep 27 13:01:37 gb-lon1 Nextcloud[32683]: {PHP} openssl_pkey_export(): cannot get key from parameter 1 at /nextcloud/lib/private/Authentication/Token/PublicKeyTokenProvider.php#297

which leads to https://github.com/nextcloud/server/issues/11227

Turns out openssl_pkey_new() requires access to a correct openssl.cnf,
this is documented here:
http://php.net/manual/en/function.openssl-pkey-new.php

So the solution is to copy /etc/ssl/openssl.cnf to
/var/www/etc/ssl/openssl.cnf

I guess this should go into a pkg readme, maybe the php one since it
already talks about cert.pem.

Thanks,
Florian

--
I'm not entirely sure you are real.

No comments:

Post a Comment