找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 10699|回复: 22

急急急!!!Nextcloud内部服务器错误

[复制链接]
发表于 2019-8-17 08:32 | 显示全部楼层 |阅读模式
本帖最后由 husthyx 于 2019-8-17 11:33 编辑

老毛子固件,通过ONMP安装,nextcloud是最新版本16.0.4,配置完成后输入帐号密码登陆,出现“内部服务器错误”,服务器日志如下:{"reqId":"1NwssUrQYmV1d9ELSrZR","level":3,"time":"2019-08-17T00:23:19+00:00","remoteAddr":"192.168.16.7","user":"root","app":"no app in context","method":"POST","url":"\/login","message":"Something is wrong with your openssl setup: error:02001002:system library:fopen:No such file or directory, error:2006D080:BIO routines:BIO_new_file:no such file, error:0E064002:configuration file routines:CONF_load:system lib, error:02001002:system library:fopen:No such file or directory, error:2006D080:BIO routines:BIO_new_file:no such file, error:0E064002:configuration file routines:CONF_load:system lib","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.140 Safari\/537.36 Edge\/18.17763","version":"16.0.4.1"}
{"reqId":"1NwssUrQYmV1d9ELSrZR","level":3,"time":"2019-08-17T00:23:19+00:00","remoteAddr":"192.168.16.7","user":"root","app":"PHP","method":"POST","url":"\/login","message":"openssl_pkey_export(): cannot get key from parameter 1 at \/opt\/wwwroot\/Nextcloud\/lib\/private\/Authentication\/Token\/PublicKeyTokenProvider.php#302","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.140 Safari\/537.36 Edge\/18.17763","version":"16.0.4.1"}
{"reqId":"1NwssUrQYmV1d9ELSrZR","level":3,"time":"2019-08-17T00:23:19+00:00","remoteAddr":"192.168.16.7","user":"root","app":"no app in context","method":"POST","url":"\/login","message":"Something is wrong with your openssl setup: ","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.140 Safari\/537.36 Edge\/18.17763","version":"16.0.4.1"}
{"reqId":"1NwssUrQYmV1d9ELSrZR","level":3,"time":"2019-08-17T00:23:19+00:00","remoteAddr":"192.168.16.7","user":"root","app":"index","method":"POST","url":"\/login","message":{"Exception":"TypeError","Message":"openssl_pkey_get_details() expects parameter 1 to be resource, boolean given","Code":0,"Trace":[{"file":"\/opt\/wwwroot\/Nextcloud\/lib\/private\/Authentication\/Token\/PublicKeyTokenProvider.php","line":307,"function":"openssl_pkey_get_details","args":[false]},{"file":"\/opt\/wwwroot\/Nextcloud\/lib\/private\/Authentication\/Token\/PublicKeyTokenProvider.php","line":70,"function":"newToken","class":"OC\\Authentication\\Token\\PublicKeyTokenProvider","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***","*** sensitive parameter replaced ***","*** sensitive parameter replaced ***","*** sensitive parameter replaced ***","*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"\/opt\/wwwroot\/Nextcloud\/lib\/private\/Authentication\/Token\/Manager.php","line":69,"function":"generateToken","class":"OC\\Authentication\\Token\\PublicKeyTokenProvider","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"\/opt\/wwwroot\/Nextcloud\/lib\/private\/User\/Session.php","line":646,"function":"generateToken","class":"OC\\Authentication\\Token\\Manager","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"\/opt\/wwwroot\/Nextcloud\/core\/Controller\/LoginController.php","line":344,"function":"createSessionToken","class":"OC\\User\\Session","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"\/opt\/wwwroot\/Nextcloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":166,"function":"tryLogin","class":"OC\\Core\\Controller\\LoginController","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"\/opt\/wwwroot\/Nextcloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":99,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\LoginController"},"tryLogin"]},{"file":"\/opt\/wwwroot\/Nextcloud\/lib\/private\/AppFramework\/App.php","line":126,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\LoginController"},"tryLogin"]},{"file":"\/opt\/wwwroot\/Nextcloud\/lib\/private\/AppFramework\/Routing\/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OC\\Core\\Controller\\LoginController","tryLogin",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"core.login.tryLogin"}]},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->","args":[{"_route":"core.login.tryLogin"}]},{"file":"\/opt\/wwwroot\/Nextcloud\/lib\/private\/Route\/Router.php","line":297,"function":"call_user_func","args":[{"__class__":"OC\\AppFramework\\Routing\\RouteActionHandler"},{"_route":"core.login.tryLogin"}]},{"file":"\/opt\/wwwroot\/Nextcloud\/lib\/base.php","line":975,"function":"match","class":"OC\\Route\\Router","type":"->","args":["\/login"]},{"file":"\/opt\/wwwroot\/Nextcloud\/index.php","line":42,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/opt\/wwwroot\/Nextcloud\/lib\/private\/Authentication\/Token\/PublicKeyTokenProvider.php","Line":307,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.140 Safari\/537.36 Edge\/18.17763","version":"16.0.4.1"}





本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
 楼主| 发表于 2019-8-17 09:25 | 显示全部楼层
顶起来。。。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-8-17 11:34 | 显示全部楼层
自己顶顶吧。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-8-17 22:59 来自手机 | 显示全部楼层
路由器的nextcloud没搞过,不过我在n1 上遇到过这种情况,是/var/www/html/nextcloud文件夹权限问题导致的!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-8-17 23:02 来自手机 | 显示全部楼层
chown -R www-data:www-data /var/www/html/nextcloud  赋予权限
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-9-4 19:10 | 显示全部楼层
解决了吗?兄弟。。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-10-5 23:16 | 显示全部楼层
搞好了,是openssl.cnf的问题,需要在config.php中添加,这个版本对硬件比较高,在路由器里很卡,后来去电脑城花了400元买台二手笔记本,在ubuntu里安装nextcloud,还是非常流畅的。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-11-8 20:04 | 显示全部楼层
在么,能说说解决的详细步骤么?现在遇到这个问题了

点评

在config.php里加一行这个: cnf文件路径必须是绝对路径,从根目录/开始,上面这个是我的,你自己按实际的修改。  详情 回复 发表于 2019-11-29 18:45
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-11-29 18:45 | 显示全部楼层
meishikkss 发表于 2019-11-8 20:04
在么,能说说解决的详细步骤么?现在遇到这个问题了

在config.php里加一行这个:
  1.   'openssl' => array(
  2.       'config' => '/opt/wwwroot/Nextcloud/3rdparty/phpseclib/phpseclib/phpseclib/openssl.cnf'
  3.   ),
复制代码

cnf文件路径必须是绝对路径,从根目录/开始,上面这个是我的,你自己按实际的修改。

点评

你说的很对,我赞同你的说法。: 5.0
收藏一下  发表于 2022-3-16 23:06
你说的很对,我赞同你的说法。: 5
  发表于 2020-4-17 21:28
你说的很对,我赞同你的说法。: 5
顶,之前试过安装14以上版本的Nextcloud,但都未成功(15,16,17),当时怀疑是HTTPS的问题,网上搜了半天没弄懂作罢了。  发表于 2019-12-1 19:41
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-12-6 20:51 | 显示全部楼层
其实我前面说的也不全对,应该把/etc/ssl/openssl.cnf拷贝到/opt/etc/ssl里,相应路径就是:
  1.       'openssl' => array(
  2.           'config' => '/opt/etc/ssl/openssl.cnf'
  3.       ),
复制代码


这样能避免后面PHP7的SSL出问题,不然你PC客户端没法连上来的。

点评

谢谢回复!  详情 回复 发表于 2019-12-6 22:01
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-12-6 22:01 | 显示全部楼层
i486 发表于 2019-12-6 20:51
其实我前面说的也不全对,应该把/etc/ssl/openssl.cnf拷贝到/opt/etc/ssl里,相应路径就是:

谢谢回复!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-12-12 15:42 | 显示全部楼层
i486 发表于 2019-12-6 20:51
其实我前面说的也不全对,应该把/etc/ssl/openssl.cnf拷贝到/opt/etc/ssl里,相应路径就是:

<?php
$CONFIG = array (
  'instanceid' => 'ocd5k4m0da9o',
);
      'openssl' => array(
          'config' => '/opt/etc/ssl/openssl.cnf'
      ),
这个加上去怎么报错呢?哪里有问题?

点评

你要确保openssl.cnf文件存在,并且路径正确。这个文件内容很多,大小在12K左右,否则,可能你固件openssl没编译,或是编译有问题。 你可以尝试把路径前的/opt去掉,看行不行。  详情 回复 发表于 2019-12-14 00:18
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-12-12 15:42 | 显示全部楼层
i486 发表于 2019-12-6 20:51
其实我前面说的也不全对,应该把/etc/ssl/openssl.cnf拷贝到/opt/etc/ssl里,相应路径就是:

<?php
$CONFIG = array (
  'instanceid' => 'ocd5k4m0da9o',
);
      'openssl' => array(
          'config' => '/opt/etc/ssl/openssl.cnf'
      ),
这个加上去怎么报错呢?哪里有问题?

点评

去下载1,3.06版用就行了,应该是版本太高  详情 回复 发表于 2019-12-12 16:22
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-12-12 16:20 来自手机 | 显示全部楼层
去下载13.06版就可以用了,版本太高了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-12-12 16:22 | 显示全部楼层

去下载1,3.06版用就行了,应该是版本太高
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-26 14:11

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表