0
Under review

Nextcloud client (android and windows) can't connect to Filerun server

khpavel 8 months ago updated by Vlad R 8 months ago 6

Web access is no problem.

Here is windows Nextcloud client log:

[OCC::OwncloudSetupWizard::slotSystemProxyLookupDone No system proxy set by OS
[OCC::AccessManager::createRequest 2 "" "https://disk.MY_COMPANY.pro/status.php" has X-Request-ID "83971a8d-02e9-499c-8aa6-5a11c516793c"
[OCC::AbstractNetworkJob::start OCC::CheckServerJob created for "https://disk.MY_COMPANY.pro/" + "status.php" "OCC::OwncloudSetupWizard"
[OCC::CheckServerJob::finished No SSL session identifier / session ticket is used, this might impact sync performance negatively.
[OCC::CheckServerJob::finished status.php returns: QJsonDocument({"edition":"","installed":true,"maintenance":false,"needsDbUpgrade":false,"productname":"Nextcloud","version":"16.0.0.9","versionstring":"16.0.0"}) QNetworkReply::NoError Reply: QNetworkReplyHttpImpl(0x16f9d1d2830)
[OCC::DetermineAuthTypeJob::start Determining auth type for QUrl("https://disk.MY_COMPANY.pro/remote.php/webdav/")
[OCC::AccessManager::createRequest 2 "" "https://disk.MY_COMPANY.pro/remote.php/webdav/" has X-Request-ID "9d98ab14-766c-4f4d-a2fd-774b9b438d52"
[OCC::AbstractNetworkJob::start OCC::SimpleNetworkJob created for "https://disk.MY_COMPANY.pro/" + "" "OCC::Account"
[OCC::AccessManager::createRequest 6 "PROPFIND" "https://disk.MY_COMPANY.pro/remote.php/webdav/" has X-Request-ID "c7c1ed8e-8368-43dd-86fb-81900638bf57"
[OCC::AbstractNetworkJob::start OCC::SimpleNetworkJob created for "https://disk.MY_COMPANY.pro/" + "" "OCC::Account"
[OCC::AccessManager::createRequest 2 "" "https://disk.MY_COMPANY.pro/ocs/v2.php/cloud/capabilities?format=json" has X-Request-ID "1c94a2f3-6781-49b1-a97f-459b9402f77a"
[OCC::AbstractNetworkJob::start OCC::JsonApiJob created for "https://disk.MY_COMPANY.pro/" + "/ocs/v2.php/cloud/capabilities" "OCC::DetermineAuthTypeJob"
[OCC::JsonApiJob::finished JsonApiJob of QUrl("https://disk.MY_COMPANY.pro/ocs/v2.php/cloud/capabilities?format=json") FINISHED WITH STATUS "AuthenticationRequiredError Узел запрашивает аутентификацию"
[OCC::JsonApiJob::finished Network error: "/ocs/v2.php/cloud/capabilities" "Узел запрашивает аутентификацию" QVariant(int, 401)
[OCC::DetermineAuthTypeJob::checkAllDone Auth type for QUrl("https://disk.MY_COMPANY.pro/remote.php/webdav/") is 4
[OCC::AccessManager::createRequest 4 "" "https://disk.MY_COMPANY.pro/index.php/login/v2" has X-Request-ID "06151f07-4712-4260-9a74-8b24ba61a7cf"
[OCC::AbstractNetworkJob::start OCC::SimpleNetworkJob created for "https://disk.MY_COMPANY.pro/" + "" "OCC::Account"
[OCC::Flow2Auth::fetchNewToken::::operator() setting remote poll timer interval to 30000 msec
[OCC::AccessManager::createRequest 4 "" "https://disk.MY_COMPANY.pro/index.php/login/v2/poll" has X-Request-ID "6eee3b23-8ee8-49bc-b54e-82280efe14af"
[OCC::AbstractNetworkJob::start OCC::SimpleNetworkJob created for "https://disk.MY_COMPANY.pro/" + "" "OCC::Account"
[OCC::AbstractNetworkJob::slotFinished QNetworkReply::ContentNotFoundError "На запрос «POST https://disk.MY_COMPANY.pro/index.php/login/v2/poll» от сервера получен ответ «404 Not Found» " QVariant(int, 404)
[OCC::AccessManager::createRequest 4 "" "https://disk.MY_COMPANY.pro/index.php/login/v2/poll" has X-Request-ID "cce23ae6-88b4-4fa6-9712-5af7c924ad4c"
[OCC::AbstractNetworkJob::start OCC::SimpleNetworkJob created for "https://disk.MY_COMPANY.pro/" + "" "OCC::Account"
[OCC::Flow2Auth::slotPollTimerTimeout::::operator() Success getting the appPassword for user: "NEXTCLOUDTOKEN1" , server: "https://disk.MY_COMPANY.pro"
[OCC::OwncloudSetupWizard::slotConnectToOCUrl Connect to url: "https://disk.MY_COMPANY.pro"
[OCC::WebFlowCredentials::createQNAM Get QNAM
[OCC::AccessManager::createRequest 6 "PROPFIND" "https://disk.MY_COMPANY.pro/remote.php/webdav/" has X-Request-ID "9f73114c-be22-4c8c-bf9d-60ca077b7a58"
[OCC::AbstractNetworkJob::start OCC::PropfindJob created for "https://disk.MY_COMPANY.pro" + "/" "OCC::OwncloudSetupWizard"
[OCC::WebFlowCredentials::slotFinished request finished
[OCC::WebFlowCredentials::stillValid QNetworkReply::AuthenticationRequiredError
[OCC::WebFlowCredentials::stillValid "Узел запрашивает аутентификацию"
[OCC::PropfindJob::finished PROPFIND of QUrl("https://disk.MY_COMPANY.pro/remote.php/webdav/") FINISHED WITH STATUS "AuthenticationRequiredError Узел запрашивает аутентификацию"
[OCC::PropfindJob::finished *not* successful, http result code is 401 ""
[OCC::WebFlowCredentials::stillValid QNetworkReply::AuthenticationRequiredError
[OCC::WebFlowCredentials::stillValid "Узел запрашивает аутентификацию"

What is wrong?

Under review

What HTTP server are you running and did you install/configure (the HTTP server) yourself?

Yes, I install and  configure myself according to filerun installation manual.

Http server - apache httpd

With a healthy FileRun installation you can access http://demo.filerun.co/remote.php/webdav/ (admin/admin) and see some XML code.

Does it work the same with yours? (https://disk.MY_COMPANY.pro/remote.php/webdav/)

A can't get xml because I cant' authenticate. I see login ans password popup, enter CORRECT (check several times) username and password but get popup again.

That means your server setup is not great. You need to review the way you installed PHP into Apache, so that authentication gets passed from Apache to PHP.