Not able to login on OC client - but user works fine in browser

Expected behaviour

I expected a successful login from the OC client (Windows Version 2.2.4 build 6408) to my newly deployed OC server

Actual behaviour

I am unable to login with the OC client (Windows Version 2.2.4 build 6408)
Access forbidden by server. To verify that you have proper access, click here to access the service with your browser.

Steps to reproduce

Deploy as fresh install with Owncloud Server
Install the latest version of OC client
Try to login via HTTPS with your OC client

Server configuration

Operating system:
Debian 8
Web server:
Apache 2.4
Database:
mySQL
PHP version:
5.6-fpm
ownCloud version:
9.1.2

Client configuration

Client version:
Version 2.2.4 build 6408

Operating system:
Windows 10

OS language:
English

Installation path of client:
C:\Program Files (x86)\ownCloud (default)

Logs

Please use Gist (https://gist.github.com/) or a similar code paster for longer
logs.

Template for output < 10 lines

Client logfile: Output of owncloud --logwindow or owncloud --logfile log.txt
12-09 23:21:33:619 0x909c58 OCC::OwncloudSetupWizard::slotConnectToOCUrl: Connect to url: "https://owncloud.domain.se"
12-09 23:21:33:620 0x909c58 OCC::OwncloudWizard::appendToConfigurationLog: Setup-Log: "Trying to connect to ownCloud at https://owncloud.domain.se..."
12-09 23:21:33:620 0x909c58 OCC::AbstractNetworkJob::start: !!! OCC::PropfindJob created for "https://owncloud.domain.se" + "/" "OCC::OwncloudSetupWizard"
12-09 23:21:33:747 0x909c58 OCC::HttpCredentials::slotAuthentication: Stop request: Authentication failed for "https://owncloud.domain.se/remote.php/webdav/"
12-09 23:21:33:747 0x909c58 OCC::AbstractNetworkJob::slotFinished: void OCC::AbstractNetworkJob::slotFinished() 5 "Operation canceled" QVariant(Invalid)
12-09 23:21:33:748 0x909c58 OCC::PropfindJob::finished: PROPFIND request not successful, http result code is 0 ""

Web server error log:
Nothing generated when trying to login

Server logfile: ownCloud log (data/owncloud.log):
Nothing generated when trying to login

I have the same problem !

Diff :
* OS : Windows 7
* OS language : French

Log :
12-13 14:38:23:970 0x896cd8 OCC::OwncloudSetupWizard::slotConnectToOCUrl: Connect to url: "http://own.anonymous.org/"
12-13 14:38:23:972 0x896cd8 unknown: QIODevice::read: device not open
12-13 14:38:23:972 0x896cd8 OCC::OwncloudWizard::appendToConfigurationLog: Setup-Log: "Tentative de connexion à ownCloud sur http://own.anonymous.org/ ..."
12-13 14:38:23:973 0x896cd8 OCC::AbstractNetworkJob::start: !!! OCC::PropfindJob created for "http://own.anonymous.org" + "/" "OCC::OwncloudSetupWizard"
12-13 14:38:25:447 0x896cd8 OCC::HttpCredentials::slotAuthentication: Stop request: Authentication failed for "http://own.anonymous.org/remote.php/webdav/"
12-13 14:38:25:447 0x896cd8 OCC::AbstractNetworkJob::slotFinished: void OCC::AbstractNetworkJob::slotFinished() 5 "Operation canceled" QVariant(Invalid)
12-13 14:38:25:447 0x896cd8 OCC::PropfindJob::finished: PROPFIND request not successful, http result code is 0 ""
12-13 14:38:28:407 0x896cd8 OCC::OwncloudSetupWizard::slotConnectToOCUrl: Connect to url: "http://own.anonymous.org/"
12-13 14:38:28:407 0x896cd8 unknown: QIODevice::read: device not open
12-13 14:38:28:407 0x896cd8 OCC::OwncloudWizard::appendToConfigurationLog: Setup-Log: "Tentative de connexion à ownCloud sur http://own.anonymous.org/ ..."
12-13 14:38:28:408 0x896cd8 OCC::AbstractNetworkJob::start: !!! OCC::PropfindJob created for "http://own.anonymous.org" + "/" "OCC::OwncloudSetupWizard"
12-13 14:38:29:022 0x896cd8 OCC::HttpCredentials::slotAuthentication: Stop request: Authentication failed for "http://own.anonymous.org/remote.php/webdav/"
12-13 14:38:29:023 0x896cd8 OCC::AbstractNetworkJob::slotFinished: void OCC::AbstractNetworkJob::slotFinished() 5 "Operation canceled" QVariant(Invalid)
12-13 14:38:29:023 0x896cd8 OCC::PropfindJob::finished: PROPFIND request not successful, http result code is 0 ""
12-13 14:38:30:126 0x896cd8 OCC::OwncloudWizard::slotCurrentPageChanged: Current Wizard page changed to -1
12-13 14:38:30:139 0x896cd8 OCC::OwncloudSetupWizard::slotAssistantFinished: Rejected the new config, use the old!
12-13 14:38:32:056 0x896cd8 unknown: Failed to resolve EGL function eglGetPlatformDisplayEXT (La procédure spécifiée est introuvable.)
12-13 14:38:32:057 0x896cd8 unknown: static QWindowsEGLStaticContext* QWindowsEGLStaticContext::create(): Could not initialize EGL display: error 0x3001

12-13 14:38:32:057 0x896cd8 unknown: static QWindowsEGLStaticContext* QWindowsEGLStaticContext::create(): When using ANGLE, check if d3dcompiler_4x.dll is available
12-13 14:38:33:746 0x896cd8 OCC::AccountManager::save: Saved all account settings, status: 0
12-13 14:38:33:763 0x896cd8 OCC::SocketApi::~SocketApi: SocketApi: dtor
12-13 14:38:33:764 0x896cd8 OCC::SocketApi::onLostConnection: SocketApi: Lost connection QLocalSocket(0x748ed00)
12-13 14:38:33:764 0x896cd8 OCC::SocketApi::onLostConnection: SocketApi: Lost connection QLocalSocket(0x748ed70)

Does anyone have any idea what this issue is?

Copy-pasting from GitHub:

Hey @wioxjk from the logs I can't really tell where the problem is (can be a firewall error, proxy settings or more likely to do with some server config). If you don't mind to provide me a dummy test account in your server, I can try to tackle down the issue. (You can see my mail in my github profile :wink:)

And extending the invitation to @holl59. Hope I can help you somehow guys.

As I wrote in the github issue, I have installed OC server with Vultr's image. Also on with the repository on a completly new server without php5-fpm and just php-cgi together with apache.

I have also tried installing it with the php-script provided by owncloud, and last I have tried to install it by downloading the files and uploading them to the server. Everytime I have tried installing it, I have done it from scratch.

I have tried installing with and without fpm, with php 5.6 and 7.0 but the problem persist. That is why I suspect that the issue is client related and not serverrelated.

Note that I have tried connect from 5-6 different clients on different OS, but problem is still the same.

Okay, I'll try to get some of these installations on their default states working and report back if I'm able to reproduce.

Thanks @wioxjk!

I see the log file has "Authentication failed for "http://own.anonymous.org/remote.php/webdav/".

Does this help any Access Forbidden by Server?

Paul

Btw. its highly discouraged to run oC on anything else then Apache + mod_php or nginx + php-fpm for various reasons like known bugs in Apache and php-fpm (when running on Apache).

1 Like

I'd also suspect a server/configuration issue.
"Operation Canceled" usually means that there was a timeout or some other request failed.
You can check your server/PHP/whatever error logs too.

As I said before, the logs said nothing.
I did wat @anon64530626 said and ditched php-fpm (sadly) to solve it.

It did solve the problem, but instead I lost performance.

You can't have it all I guess