Server: Can't access after install or update 15.0.4/15.0.5

Created on 2 Apr 2019  路  17Comments  路  Source: nextcloud/server

Steps to reproduce

  1. Go to https://office.vanwelie.net
  2. Log in with my account
  3. Get an error with an internal server error

Expected behaviour

When I logged in, I will redirect to my home-directory on my server install.

Actual behaviour

I get an error with an internal server error.

Server configuration

Operating system:

Web server:

Database:

PHP version: 7.2

Nextcloud version: (see Nextcloud admin page)
15.0.4 and 15.0.5
Updated from an older Nextcloud/ownCloud or fresh install:
15.0.4 is fresh install, 15.0.5 is an update from 15.0.1
Where did you install Nextcloud from:
.zip from nextcloud.com and install with FileZilla.
Signing status:
-- It is not possible to do that =( --

Nextcloud configuration:


Config File

$CONFIG = array (
'instanceid' => 'ocqc7hz52wih',
'passwordsalt' => '---',
'secret' => '---',
'trusted_domains' =>
array (
0 => 'office.vanwelie.net',
),
'datadirectory' => '/subdomains/office/data',
'dbtype' => 'mysql',
'version' => '15.0.4.0',
'overwrite.cli.url' => 'https://office.vanwelie.net',
'dbname' => '---',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => '---',
'dbpassword' => '---',
'installed' => true,
);

Are you using external storage, if yes which one: local/smb/sftp/...
no
Are you using encryption: yes/no
No
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
No

Client configuration

Browser:
Firefox 66.0.2 (64-bits)
Operating system:
Windows 10

Logs

Nextcloud log (data/nextcloud.log)


Nextcloud log
{"reqId":"XKPO3n8AAQEAACgsQnEAAAAN","level":3,"time":"2019-04-02T21:06:38+00:00","remoteAddr":"77.249.10.123","user":"dennisvanwelie","app":"PHP","method":"GET","url":"\/index.php\/apps\/files\/","message":"openssl_pkey_export(): cannot get key from parameter 1 at \/subdomains\/office\/lib\/private\/Authentication\/Token\/PublicKeyTokenProvider.php#298","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko\/20100101 Firefox\/66.0","version":"15.0.4.0"}
{"reqId":"XKPO3n8AAQEAACgsQnEAAAAN","level":3,"time":"2019-04-02T21:06:38+00:00","remoteAddr":"77.249.10.123","user":"dennisvanwelie","app":"index","method":"GET","url":"\/index.php\/apps\/files\/","message":{"Exception":"TypeError","Message":"openssl_pkey_get_details() expects parameter 1 to be resource, boolean given","Code":0,"Trace":[{"file":"\/subdomains\/office\/lib\/private\/Authentication\/Token\/PublicKeyTokenProvider.php","line":301,"function":"openssl_pkey_get_details","args":[false]},{"file":"\/subdomains\/office\/lib\/private\/Authentication\/Token\/PublicKeyTokenProvider.php","line":271,"function":"newToken","class":"OC\Authentication\Token\PublicKeyTokenProvider","type":"->","args":["* sensitive parameter replaced ","dennisvanwelie","dennisvanwelie","passwordX","Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko\/20100101 Firefox\/66.0",0,0]},{"file":"\/subdomains\/office\/lib\/private\/Authentication\/Token\/Manager.php","line":131,"function":"convertToken","class":"OC\Authentication\Token\PublicKeyTokenProvider","type":"->","args":[{"id":1,"__class__":"OC\Authentication\Token\DefaultToken"}," sensitive parameter replaced ","passwordX"]},{"file":"\/subdomains\/office\/lib\/private\/User\/Session.php","line":735,"function":"getToken","class":"OC\Authentication\Token\Manager","type":"->","args":[" sensitive parameters replaced "]},{"file":"\/subdomains\/office\/lib\/private\/User\/Session.php","line":260,"function":"validateToken","class":"OC\User\Session","type":"->","args":[" sensitive parameters replaced "]},{"file":"\/subdomains\/office\/lib\/private\/User\/Session.php","line":235,"function":"validateSession","class":"OC\User\Session","type":"->","args":[]},{"file":"\/subdomains\/office\/lib\/private\/legacy\/app.php","line":346,"function":"getUser","class":"OC\User\Session","type":"->","args":[]},{"file":"\/subdomains\/office\/lib\/private\/legacy\/app.php","line":113,"function":"getEnabledApps","class":"OC_App","type":"::","args":[]},{"file":"\/subdomains\/office\/lib\/private\/legacy\/user.php","line":126,"function":"loadApps","class":"OC_App","type":"::","args":[["prelogin"]]},{"file":"\/subdomains\/office\/lib\/base.php","line":721,"function":"setupBackends","class":"OC_User","type":"::","args":[]},{"file":"\/subdomains\/office\/lib\/base.php","line":1068,"function":"init","class":"OC","type":"::","args":[]},{"file":"\/subdomains\/office\/index.php","line":40,"args":["\/subdomains\/office\/lib\/base.php"],"function":"require_once"}],"File":"\/subdomains\/office\/lib\/private\/Authentication\/Token\/PublicKeyTokenProvider.php","Line":301,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko\/20100101 Firefox\/66.0","version":"15.0.4.0"}
{"reqId":"XKPO338AAQEAACgp3cwAAAEY","level":3,"time":"2019-04-02T21:06:39+00:00","remoteAddr":"77.249.10.123","user":"dennisvanwelie","app":"PHP","method":"GET","url":"\/index.php\/js\/core\/merged-template-prepend.js?v=a6085679-0","message":"openssl_pkey_export(): cannot get key from parameter 1 at \/subdomains\/office\/lib\/private\/Authentication\/Token\/PublicKeyTokenProvider.php#298","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko\/20100101 Firefox\/66.0","version":"15.0.4.0"}
{"reqId":"XKPO338AAQEAACgp3cwAAAEY","level":3,"time":"2019-04-02T21:06:39+00:00","remoteAddr":"77.249.10.123","user":"dennisvanwelie","app":"index","method":"GET","url":"\/index.php\/js\/core\/merged-template-prepend.js?v=a6085679-0","message":{"Exception":"TypeError","Message":"openssl_pkey_get_details() expects parameter 1 to be resource, boolean given","Code":0,"Trace":[{"file":"\/subdomains\/office\/lib\/private\/Authentication\/Token\/PublicKeyTokenProvider.php","line":301,"function":"openssl_pkey_get_details","args":[false]},{"file":"\/subdomains\/office\/lib\/private\/Authentication\/Token\/PublicKeyTokenProvider.php","line":271,"function":"newToken","class":"OC\Authentication\Token\PublicKeyTokenProvider","type":"->","args":["
sensitive parameter replaced ","dennisvanwelie","dennisvanwelie","passwordX","Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko\/20100101 Firefox\/66.0",0,0]},{"file":"\/subdomains\/office\/lib\/private\/Authentication\/Token\/Manager.php","line":131,"function":"convertToken","class":"OC\Authentication\Token\PublicKeyTokenProvider","type":"->","args":[{"id":1,"__class__":"OC\Authentication\Token\DefaultToken"}," sensitive parameter replaced ","passwordX"]},{"file":"\/subdomains\/office\/lib\/private\/User\/Session.php","line":735,"function":"getToken","class":"OC\Authentication\Token\Manager","type":"->","args":[" sensitive parameters replaced "]},{"file":"\/subdomains\/office\/lib\/private\/User\/Session.php","line":260,"function":"validateToken","class":"OC\User\Session","type":"->","args":[" sensitive parameters replaced "]},{"file":"\/subdomains\/office\/lib\/private\/User\/Session.php","line":235,"function":"validateSession","class":"OC\User\Session","type":"->","args":[]},{"file":"\/subdomains\/office\/lib\/private\/legacy\/app.php","line":346,"function":"getUser","class":"OC\User\Session","type":"->","args":[]},{"file":"\/subdomains\/office\/lib\/private\/legacy\/app.php","line":113,"function":"getEnabledApps","class":"OC_App","type":"::","args":[]},{"file":"\/subdomains\/office\/lib\/private\/legacy\/user.php","line":126,"function":"loadApps","class":"OC_App","type":"::","args":[["prelogin"]]},{"file":"\/subdomains\/office\/lib\/base.php","line":721,"function":"setupBackends","class":"OC_User","type":"::","args":[]},{"file":"\/subdomains\/office\/lib\/base.php","line":1068,"function":"init","class":"OC","type":"::","args":[]},{"file":"\/subdomains\/office\/index.php","line":40,"args":["\/subdomains\/office\/lib\/base.php"],"function":"require_once"}],"File":"\/subdomains\/office\/lib\/private\/Authentication\/Token\/PublicKeyTokenProvider.php","Line":301,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko\/20100101 Firefox\/66.0","version":"15.0.4.0"}
{"reqId":"XKPPzn8AAQEAAChKttcAAACP","level":3,"time":"2019-04-02T21:10:38+00:00","remoteAddr":"77.249.10.123","user":"dennisvanwelie","app":"PHP","method":"GET","url":"\/","message":"openssl_pkey_export(): cannot get key from parameter 1 at \/subdomains\/office\/lib\/private\/Authentication\/Token\/PublicKeyTokenProvider.php#298","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko\/20100101 Firefox\/66.0","version":"15.0.4.0"}
{"reqId":"XKPPzn8AAQEAAChKttcAAACP","level":3,"time":"2019-04-02T21:10:38+00:00","remoteAddr":"77.249.10.123","user":"dennisvanwelie","app":"index","method":"GET","url":"\/","message":{"Exception":"TypeError","Message":"openssl_pkey_get_details() expects parameter 1 to be resource, boolean given","Code":0,"Trace":[{"file":"\/subdomains\/office\/lib\/private\/Authentication\/Token\/PublicKeyTokenProvider.php","line":301,"function":"openssl_pkey_get_details","args":[false]},{"file":"\/subdomains\/office\/lib\/private\/Authentication\/Token\/PublicKeyTokenProvider.php","line":271,"function":"newToken","class":"OC\Authentication\Token\PublicKeyTokenProvider","type":"->","args":["
sensitive parameter replaced ","dennisvanwelie","dennisvanwelie","passwordX","Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko\/20100101 Firefox\/66.0",0,0]},{"file":"\/subdomains\/office\/lib\/private\/Authentication\/Token\/Manager.php","line":131,"function":"convertToken","class":"OC\Authentication\Token\PublicKeyTokenProvider","type":"->","args":[{"id":1,"__class__":"OC\Authentication\Token\DefaultToken"}," sensitive parameter replaced ","passwordX"]},{"file":"\/subdomains\/office\/lib\/private\/User\/Session.php","line":735,"function":"getToken","class":"OC\Authentication\Token\Manager","type":"->","args":[" sensitive parameters replaced "]},{"file":"\/subdomains\/office\/lib\/private\/User\/Session.php","line":260,"function":"validateToken","class":"OC\User\Session","type":"->","args":[" sensitive parameters replaced "]},{"file":"\/subdomains\/office\/lib\/private\/User\/Session.php","line":235,"function":"validateSession","class":"OC\User\Session","type":"->","args":[]},{"file":"\/subdomains\/office\/lib\/private\/legacy\/app.php","line":346,"function":"getUser","class":"OC\User\Session","type":"->","args":[]},{"file":"\/subdomains\/office\/lib\/private\/legacy\/app.php","line":113,"function":"getEnabledApps","class":"OC_App","type":"::","args":[]},{"file":"\/subdomains\/office\/lib\/private\/legacy\/user.php","line":126,"function":"loadApps","class":"OC_App","type":"::","args":[["prelogin"]]},{"file":"\/subdomains\/office\/lib\/base.php","line":721,"function":"setupBackends","class":"OC_User","type":"::","args":[]},{"file":"\/subdomains\/office\/lib\/base.php","line":1068,"function":"init","class":"OC","type":"::","args":[]},{"file":"\/subdomains\/office\/index.php","line":40,"args":["\/subdomains\/office\/lib\/base.php"],"function":"require_once"}],"File":"\/subdomains\/office\/lib\/private\/Authentication\/Token\/PublicKeyTokenProvider.php","Line":301,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko\/20100101 Firefox\/66.0","version":"15.0.4.0"}
{"reqId":"XKPPzn8AAQEAACiPWHMAAABP","level":3,"time":"2019-04-02T21:10:38+00:00","remoteAddr":"77.249.10.123","user":"dennisvanwelie","app":"PHP","method":"GET","url":"\/index.php\/js\/core\/merged-template-prepend.js?v=a6085679-0","message":"openssl_pkey_export(): cannot get key from parameter 1 at \/subdomains\/office\/lib\/private\/Authentication\/Token\/PublicKeyTokenProvider.php#298","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko\/20100101 Firefox\/66.0","version":"15.0.4.0"}
{"reqId":"XKPPzn8AAQEAACiPWHMAAABP","level":3,"time":"2019-04-02T21:10:38+00:00","remoteAddr":"77.249.10.123","user":"dennisvanwelie","app":"index","method":"GET","url":"\/index.php\/js\/core\/merged-template-prepend.js?v=a6085679-0","message":{"Exception":"TypeError","Message":"openssl_pkey_get_details() expects parameter 1 to be resource, boolean given","Code":0,"Trace":[{"file":"\/subdomains\/office\/lib\/private\/Authentication\/Token\/PublicKeyTokenProvider.php","line":301,"function":"openssl_pkey_get_details","args":[false]},{"file":"\/subdomains\/office\/lib\/private\/Authentication\/Token\/PublicKeyTokenProvider.php","line":271,"function":"newToken","class":"OC\Authentication\Token\PublicKeyTokenProvider","type":"->","args":["
sensitive parameter replaced ","dennisvanwelie","dennisvanwelie","passwordX","Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko\/20100101 Firefox\/66.0",0,0]},{"file":"\/subdomains\/office\/lib\/private\/Authentication\/Token\/Manager.php","line":131,"function":"convertToken","class":"OC\Authentication\Token\PublicKeyTokenProvider","type":"->","args":[{"id":1,"__class__":"OC\Authentication\Token\DefaultToken"}," sensitive parameter replaced ","passwordX"]},{"file":"\/subdomains\/office\/lib\/private\/User\/Session.php","line":735,"function":"getToken","class":"OC\Authentication\Token\Manager","type":"->","args":[" sensitive parameters replaced "]},{"file":"\/subdomains\/office\/lib\/private\/User\/Session.php","line":260,"function":"validateToken","class":"OC\User\Session","type":"->","args":[" sensitive parameters replaced *"]},{"file":"\/subdomains\/office\/lib\/private\/User\/Session.php","line":235,"function":"validateSession","class":"OC\User\Session","type":"->","args":[]},{"file":"\/subdomains\/office\/lib\/private\/legacy\/app.php","line":346,"function":"getUser","class":"OC\User\Session","type":"->","args":[]},{"file":"\/subdomains\/office\/lib\/private\/legacy\/app.php","line":113,"function":"getEnabledApps","class":"OC_App","type":"::","args":[]},{"file":"\/subdomains\/office\/lib\/private\/legacy\/user.php","line":126,"function":"loadApps","class":"OC_App","type":"::","args":[["prelogin"]]},{"file":"\/subdomains\/office\/lib\/base.php","line":721,"function":"setupBackends","class":"OC_User","type":"::","args":[]},{"file":"\/subdomains\/office\/lib\/base.php","line":1068,"function":"init","class":"OC","type":"::","args":[]},{"file":"\/subdomains\/office\/index.php","line":40,"args":["\/subdomains\/office\/lib\/base.php"],"function":"require_once"}],"File":"\/subdomains\/office\/lib\/private\/Authentication\/Token\/PublicKeyTokenProvider.php","Line":301,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko\/20100101 Firefox\/66.0","version":"15.0.4.0"}

0. Needs triage bug

All 17 comments

@vanwelie the log contained your password ("yWfxxxxxxx") in cleartext. I removed the revision but you might change it just in case (because your username + instance url is there as well)

@nextcloud/security any idea why the password was there in cleartext? Replaced the password with "passwordX".

I have removed the clean installation from office.vanwelie.net. I'm not a developer. I can make Wordpress sites and a little php, mysql, css and html. And I play a little with a Raspberry Pi. But that's it. I host my website by TransIP and they don't support issues with Nextcloud on the webhosting. So, thanks for thinking, but it is to hard for me.

I will close the ticket and maybe next year I try again to use Nextcloud as my private office instead of outlook.com ;)

Have a nice day!

Okay :disappointed: Some people reported that this change https://github.com/nextcloud/server/issues/11227#issuecomment-473904363 could solve the problem for them. For general configuration questions / setup issues you may visit https://help.nextcloud.com.

When I do that, I get the simular issue with a clean install. I get this extra error on the top of the screen (see attachment)

nextcloud 15 0 5-error

Hmm. I guess openssl is missing on your system (or some bindings).

How can I fixed that?

I'm afraid on a shared webhosting there is nothing you can do :disappointed:

But it is weird. Because first I can used Nextcloud on this server, but now it isn't possible. The problem is my hosting provider I guess?

Yes it's weird. This kind of error is related to some openssl related things. You might try it on your raspi ;)

Alright. But my raspi don't have much disk space ;) I have running there Domoticz and that's all. Thanks for now. I will contacting my hosting provider and ask them why this is changed.

Have a nice day!

My hosting have repleyed to me and said that OpenSSL is already eneabled to my hosting. So, the problem is not that my hosting provider blocked the OpenSSL-connection. What is then the problem?

For more information about the phpinfo on my webhosting, see: https://werkplek.vanwelie.net/php-info.php

It might be worse to test, if adding the following parameter to your configuration helps. Make sure that the file can be accessed by your web server user. Just my 2ct to the discussion.

  'openssl' =>
  array (
    'config' => '/usr/lib/ssl/openssl.cnf',
  ),

No, this is not working for me. I have read the hole issue #11227 , but this is not the solution for my problem. The error is now:

bool(false) string(61) "error:02001002:system library:fopen:No such file or directory"

Any other ideas?
Thanks so far guys!

I think you should ask aunt G. for some more hints on the root cause I have the impression, that this isn't a Nextcloud specific issue but an OpenSSL specific issue. If you check these postings, you will see that the message can e.g. be caused by a missing index.txt or index.txt.attr file.

  1. https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.2/html/Developer_Guide/Creating_an_SSL_Certificate.html

  2. https://mta.openssl.org/pipermail/openssl-users/2015-February/000495.html

This issue has been automatically marked as stale because it has not had recent activity and it seems to be missing some essential informations. It will be closed if no further activity occurs. Thank you for your contributions.

As I cannot reproduce the original issue anymore, I will close this ticket. If this is still happening please make sure to upgrade to the latest version. After that, feel free to reopen.

Was this page helpful?
0 / 5 - 0 ratings