【问题标题】:Nextcloud first installationNextcloud首次安装
【发布时间】:2020-03-28 22:33:19
【问题描述】:

我正在尝试在我的 linux 服务器上安装 nextcloud,但收到错误消息:

Internal Server Error
The server was unable to complete your request.

If this happens again, please send the technical details below to the server administrator.

More details can be found in the server log.

在 nextcloud.log 文件中出现此错误:

"message":{ 
  "Exception":"Doctrine\\DBAL\\Exception\\TableNotFoundException",
  "Message":"An exception occurred while executing 'SELECT * FROM \"oc_appconfig\"':\n\nSQLSTATE[42P01]: Undefined table: 7 ERROR:  relation \"oc_appconfig\" does not exist\nLINE 1: SELECT * FROM \"oc_appconfig\"\n                      ^",
  "Code":0,
  "Trace":[ 
     { 
        "file":"\/www\/htdocs\/nextcloud\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/DBALException.php",
        "line":169,
        "function":"convertException",
        "class":"Doctrine\\DBAL\\Driver\\AbstractPostgreSQLDriver",
        "type":"->",
        "args":[ 
           "An exception occurred while executing 'SELECT * FROM \"oc_appconfig\"':\n\nSQLSTATE[42P01]: Undefined table: 7 ERROR:  relation \"oc_appconfig\" does not exist\nLINE 1: SELECT * FROM \"oc_appconfig\"\n                      ^",
           { 
              "errorInfo":[ 
                 "42P01",
                 7,
                 "ERROR:  relation \"oc_appconfig\" does not exist\nLINE 1: SELECT * FROM \"oc_appconfig\"\n                      ^"
              ],
              "__class__":"Doctrine\\DBAL\\Driver\\PDOException"
           }
        ]
     },

如果这是我第一次安装,为什么会出现此错误?

【问题讨论】:

    标签: nextcloud


    【解决方案1】:

    您应该提供关于您的安装的更多信息。 示例:操作系统、Web 服务器、DB 服务器、php 版本等

    但对我来说,数据库服务器似乎出了点问题。 它可以访问吗?如果是,请检查是否有您的数据库。

    最好的问候 奥比耶

    【讨论】:

    • 问题已解决。 DB 没问题,问题是,我创建了 config.php 文件,它是在安装过程中自动创建的。