0
Completed

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

khpavel 3 years ago updated by Vlad R 12 months ago 11

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?

Answer

Answer
Completed
We have released a new FileRun version which improves compatibility with the Nextcloud apps. It should work much better now
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.

Hi, i'm refloating this topic because i have the same problem. I'm running filerun on windows over xampp. All is working fine but can't login with android nextcloud. I can login on ( https://disk.my_company.pro/remote.php/webdav) with some user. Can't log with the superuser. The xml it shows me is below:

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<multistatus xmlns="DAV:" xmlns:oc="http://owncloud.org/ns" xmlns:nc="http://nextcloud.org/ns"><response><href>/remote.php/webdav/</href><propstat><prop><displayname>ROOT</displayname><creationdate>2021-11-09T14:35:40+01:00</creationdate><getlastmodified>Tue, 09 Nov 2021 13:35:40 GMT</getlastmodified><getetag>"a1594dfcd3f7249348c1bf80091c4b21"</getetag><resourcetype><collection/></resourcetype><iscollection>1</iscollection><isFolder>t</isFolder><lockdiscovery/><oc:id>root2</oc:id><oc:permissions>G</oc:permissions></prop><status>HTTP/1.1 200 OK</status></propstat></response><response><href>/remote.php/webdav/%40Home/</href><propstat><prop><displayname>@Home</displayname><creationdate>2021-10-26T03:08:51+02:00</creationdate><getlastmodified>Fri, 29 Oct 2021 19:22:26 GMT</getlastmodified><getetag>"a1594dfcd3f7249348c1bf80091c4b21"</getetag><resourcetype><collection/></resourcetype><iscollection>1</iscollection><isFolder>t</isFolder><lockdiscovery/><oc:id>00000015</oc:id><oc:permissions>GNVCK</oc:permissions></prop><status>HTTP/1.1 200 OK</status></propstat></response></multistatus>

Looks like valid XML. What is the error you are receiving when using various WebDAV programs trying to sign in as FileRun superuser?

Sorry for the delayed reponse. I tried again, nextcloud android app shows a blank page after giving the url and doesn't ask for username and pass. I also tried with owncloud.online client and logged in successfully even though that client is not good. I assume my filerun is working fine and the problem is on the nextcloud client. On android i'll still using the web  :)

Answer
Completed
We have released a new FileRun version which improves compatibility with the Nextcloud apps. It should work much better now