NextCloud 使用弹性负载均衡器

NextCloud 使用弹性负载均衡器

我有一个案例,我有两个 AWS EC2 实例,并且都具有相同的 S3 作为主存储、RDS 作为共享数据库和 EFS 作为共享存储,我在这两个 EC2 实例后面有 AWS ELB(弹性负载均衡器),并且 NextCloud 服务器(两者)都从浏览器打开,并且我能够在它们上创建用户和同步文件,也可以使用 NextCloud 桌面客户端在两台服务器上进行连接,但问题是我无法使用 NextCloud 客户端连接到 ELB,客户端不断加载然后给出消息“连接已关闭”

知道如何解决这个问题吗?

谢谢

更新:添加来自 NextCloud 客户端的日志

02-14 16:18:01:239 10228 OCC::PostfixLineEdit::setFullText: "**************/"
02-14 16:18:01:330 10228 OCC::AbstractNetworkJob::start: !!! OCC::CheckServerJob created for "**************/" + "status.php" "OCC::OwncloudSetupWizard"
02-14 16:18:02:313 10228 OCC::CheckServerJob::finished: status.php returns:  QMap(("edition", QVariant(QString, ""))("installed", QVariant(bool, true))("maintenance", QVariant(bool, false))("needsDbUpgrade", QVariant(bool, false))("productname", QVariant(QString, "Nextcloud"))("version", QVariant(QString, "14.0.0.0"))("versionstring", QVariant(QString, "14.0.0 alpha")))   QNetworkReply::NetworkError(NoError)  Reply:  QNetworkReplyHttpImpl(0x1875ce88)
02-14 16:18:02:313 10228 OCC::OwncloudWizard::appendToConfigurationLog: Setup-Log:  "<font color=\"green\">Successfully connected to **************/status.php: Nextcloud version 14.0.0 alpha (14.0.0.0)</font><br/><br/>"
02-14 16:18:02:313 10228 OCC::OwncloudSetupWizard::slotOwnCloudFoundAuth: void OCC::OwncloudSetupWizard::slotOwnCloudFoundAuth(const QUrl&, const QVariantMap&)  was redirected to "**************"
02-14 16:18:02:313 10228 OCC::AbstractNetworkJob::start: !!! OCC::DetermineAuthTypeJob created for "**************" + "" "OCC::OwncloudSetupWizard"
02-14 16:18:03:036 10228 OCC::AbstractNetworkJob::slotFinished: void OCC::AbstractNetworkJob::slotFinished() QNetworkReply::NetworkError(AuthenticationRequiredError) "Host requires authentication" QVariant(int, 401)
02-14 16:18:03:038 10228 OCC::DetermineAuthTypeJob::finished: virtual bool OCC::DetermineAuthTypeJob::finished() ""
02-14 16:18:03:046 10228 OCC::OwncloudWizard::slotCurrentPageChanged: Current Wizard page changed to  1
02-14 16:18:07:099 10228 OCC::Folder::slotRunEtagJob: * Trying to check "http://**************/nextcloud/remote.php/dav/files/userM/" for changes via ETag check. (time since last sync: 98 s)
02-14 16:18:07:099 10228 OCC::FolderMan::slotRunOneEtagJob: Scheduling "http://**************/nextcloud/remote.php/dav/files/userM/" to check remote ETag
02-14 16:18:07:099 10228 OCC::AbstractNetworkJob::start: !!! OCC::RequestEtagJob created for "http://**************/nextcloud" + "/" "OCC::Folder"
02-14 16:18:09:907 10228 OCC::AbstractNetworkJob::start: !!! OCC::JsonApiJob created for "http://**************/nextcloud" + "ocs/v2.php/apps/notifications/api/v1/notifications" "OCC::ServerNotificationHandler"
02-14 16:18:09:907 10228 OCC::AbstractNetworkJob::start: !!! OCC::JsonApiJob created for "http://**************/nextcloud" + "ocs/v2.php/apps/notifications/api/v1/notifications" "OCC::ServerNotificationHandler"
02-14 16:18:21:945 10228 OCC::OwncloudSetupWizard::slotConnectToOCUrl: Connect to url:  "**************/"
02-14 16:18:21:945 10228 OCC::OwncloudWizard::appendToConfigurationLog: Setup-Log:  "Trying to connect to Nextcloud at **************/..."
02-14 16:18:21:946 10228 OCC::AbstractNetworkJob::start: !!! OCC::PropfindJob created for "**************" + "/" "OCC::OwncloudSetupWizard"
02-14 16:18:25:056 10228 OCC::ConnectionValidator::checkAuthentication: # Check whether authenticated propfind works.
02-14 16:18:25:058 10228 OCC::AbstractNetworkJob::start: !!! OCC::PropfindJob created for "http://**************/nextcloud" + "/" "OCC::ConnectionValidator"
02-14 16:18:37:106 10228 OCC::Folder::slotRunEtagJob: * Trying to check "http://**************/nextcloud/remote.php/dav/files/userM/" for changes via ETag check. (time since last sync: 128 s)
02-14 16:18:37:106 10228 OCC::FolderMan::slotRunOneEtagJob: Scheduling "http://**************/nextcloud/remote.php/dav/files/userM/" to check remote ETag
02-14 16:18:37:106 10228 OCC::AbstractNetworkJob::start: !!! OCC::RequestEtagJob created for "http://**************/nextcloud" + "/" "OCC::Folder"
02-14 16:18:57:052 10228 OCC::ConnectionValidator::checkAuthentication: # Check whether authenticated propfind works.
02-14 16:18:57:054 10228 OCC::AbstractNetworkJob::start: !!! OCC::PropfindJob created for "http://**************/nextcloud" + "/" "OCC::ConnectionValidator"
02-14 16:19:07:097 10228 OCC::Folder::slotRunEtagJob: * Trying to check "http://**************/nextcloud/remote.php/dav/files/userM/" for changes via ETag check. (time since last sync: 158 s)
02-14 16:19:07:098 10228 OCC::FolderMan::slotRunOneEtagJob: Scheduling "http://**************/nextcloud/remote.php/dav/files/userM/" to check remote ETag
02-14 16:19:07:100 10228 OCC::AbstractNetworkJob::start: !!! OCC::RequestEtagJob created for "http://**************/nextcloud" + "/" "OCC::Folder"
02-14 16:19:29:054 10228 OCC::ConnectionValidator::checkAuthentication: # Check whether authenticated propfind works.
02-14 16:19:29:056 10228 OCC::AbstractNetworkJob::start: !!! OCC::PropfindJob created for "http://**************/nextcloud" + "/" "OCC::ConnectionValidator"
02-14 16:19:37:097 10228 OCC::Folder::slotRunEtagJob: * Trying to check "http://**************/nextcloud/remote.php/dav/files/userM/" for changes via ETag check. (time since last sync: 188 s)
02-14 16:19:37:097 10228 OCC::FolderMan::slotRunOneEtagJob: Scheduling "http://**************/nextcloud/remote.php/dav/files/userM/" to check remote ETag
02-14 16:19:37:097 10228 OCC::AbstractNetworkJob::start: !!! OCC::RequestEtagJob created for "http://**************/nextcloud" + "/" "OCC::Folder"
02-14 16:20:01:061 10228 OCC::ConnectionValidator::checkAuthentication: # Check whether authenticated propfind works.
02-14 16:20:01:063 10228 OCC::AbstractNetworkJob::start: !!! OCC::PropfindJob created for "http://**************/nextcloud" + "/" "OCC::ConnectionValidator"
02-14 16:20:07:102 10228 OCC::Folder::slotRunEtagJob: * Trying to check "http://**************/nextcloud/remote.php/dav/files/userM/" for changes via ETag check. (time since last sync: 218 s)
02-14 16:20:07:102 10228 OCC::FolderMan::slotRunOneEtagJob: Scheduling "http://**************/nextcloud/remote.php/dav/files/userM/" to check remote ETag
02-14 16:20:07:102 10228 OCC::AbstractNetworkJob::start: !!! OCC::RequestEtagJob created for "http://**************/nextcloud" + "/" "OCC::Folder"
02-14 16:20:25:033 10228 OCC::AbstractNetworkJob::slotFinished: void OCC::AbstractNetworkJob::slotFinished() QNetworkReply::NetworkError(RemoteHostClosedError) "Connection closed" QVariant(Invalid)
02-14 16:20:25:033 10228 OCC::PropfindJob::finished: PROPFIND request *not* successful, http result code is 0 ""
02-14 16:20:33:051 10228 OCC::ConnectionValidator::checkAuthentication: # Check whether authenticated propfind works.
02-14 16:20:33:052 10228 OCC::AbstractNetworkJob::start: !!! OCC::PropfindJob created for "http://**************/nextcloud" + "/" "OCC::ConnectionValidator"
02-14 16:20:37:106 10228 OCC::Folder::slotRunEtagJob: * Trying to check "http://**************/nextcloud/remote.php/dav/files/userM/" for changes via ETag check. (time since last sync: 248 s)
02-14 16:20:37:106 10228 OCC::FolderMan::slotRunOneEtagJob: Scheduling "http://**************/nextcloud/remote.php/dav/files/userM/" to check remote ETag
02-14 16:20:37:106 10228 OCC::AbstractNetworkJob::start: !!! OCC::RequestEtagJob created for "http://**************/nextcloud" + "/" "OCC::Folder"
02-14 16:21:05:052 10228 OCC::ConnectionValidator::checkAuthentication: # Check whether authenticated propfind works.
02-14 16:21:05:054 10228 OCC::AbstractNetworkJob::start: !!! OCC::PropfindJob created for "http://**************/nextcloud" + "/" "OCC::ConnectionValidator"
02-14 16:21:07:108 10228 OCC::Folder::slotRunEtagJob: * Trying to check "http://**************/nextcloud/remote.php/dav/files/userM/" for changes via ETag check. (time since last sync: 278 s)
02-14 16:21:07:108 10228 OCC::FolderMan::slotRunOneEtagJob: Scheduling "http://**************/nextcloud/remote.php/dav/files/userM/" to check remote ETag
02-14 16:21:07:108 10228 OCC::AbstractNetworkJob::start: !!! OCC::RequestEtagJob created for "http://**************/nextcloud" + "/" "OCC::Folder"

答案1

我给了 ELB 一个静态 DNS,并使用它连接了 NextCLoud 桌面客户端,然后它连接了

相关内容