-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[OC 9.0.2.2] Infinite loop in admin backend due to server setup / integrity check #25058
Comments
There is still an infinite loop, but the imap exception above is gone. Owncloud Log:
|
The PR doesn't fix the exception, it only adds a delay before the page reload. Where are you seeing an infinite loop ? |
The '/settings/admin' page is reloaded every five seconds and the Security and setup warnings test runs again |
But now there is something in the apache error.log "[Fri Jun 10 14:46:16.401646 2016] [authz_core:error] [pid 24596:tid 140336152102656] [client 192.168.2.4:40017] AH01630: client denied by server configuration: /var/www/cloud.foobar.com/www/data/.ocdata" |
Do you have any other setup warnings ? Usually the page reload only happens if one of the ajax calls is having trouble connecting to the server (redirects or insecure connections). You could check the network tab |
In the backend there is also:
But that seems to be a false positiv, because the apache log message:
is generated due to this .htaccess I assume and AllowOverride in the vhost configuration is set to "All" . |
@xshadow can you check the network console in the admin page. There is a call to ".ocdata" and check what the response code is. The warning would show if the response is neither 403, 301 or 307. Maybe the response was something different ? |
this is the code in question: https://github.com/owncloud/core/blob/v9.0.2/core/js/setupchecks.js#L200 |
The loop occured and warn message after an upgrade from 9.0.0 --> 9.0.1 Response Code for GET on .ocdata is 302 |
Hmmm okay... so that's also some kind of redirect. |
Response Code 302 - Found
But should be https and it gets blocked due to mixed content policy. Output from firebug security tab
Additional Info: SSL - termination is done on a frontend server and all requests from there get proxied to the owncloud instance on another server |
@xshadow had a conversation with someone on IRC who also had a strange redirect, maybe your situation is similar ?
|
Thank you @PVince81 to stick to the error. In my opinion, fixing this error by reconfiguring apache [1] is not the proper way. No additional apache configuration should be necessary. Owncloud should honor the 1: https://httpd.apache.org/docs/2.4/mod/core.html#acceptpathinfo |
It depends what you mean by that. By default when installing ownCloud the documentation already states that you need to configure Apache properly: https://doc.owncloud.org/server/9.0/admin_manual/installation/source_installation.html#apache-web-server-configuration So I'm not sure whether this falls under that category. |
Also note that "overwrite.cli.url" is only used for the command line side and doesn't affect web UI requests. Maybe a similar setting would be required for web requests ? |
The problem is that the Location header is sets the protocol to |
I'm not sure whether that "Location: " header in this specific case is really set by ownCloud. If it is set by ownCloud, then it should use the values from "overwritehost" and "overwriteprotocol". If "overwriteprotocol" is set to "https" then it should already work. I don't see these in your config.php, can you try setting them ? |
Awesome :) - That does the trick, no more errors. And webinterface responds correct |
Hey, this issue has been closed because the label (This is an automated comment from GitMate.io. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Expected behaviour
Admin backup should work without any problems if lib/imap.php is customized. Only report that the integrity check failed.
Actual behaviour
The admin page is unuseable because it's reloaded every three seconds.
Server setup and security check function is called again and again.
In the logs there could be found:
"{core} User backend OC_User_IMAP already initialized."
Server configuration
Operating system: Debian 8
Web server: Apache 2.4
Database: mysql Ver 14.14 Distrib 5.6.31,
PHP version: PHP 7.0.7-1~dotdeb+8.1 (cli) ( NTS ),
ownCloud version: 9.0.2.2
Updated from an older ownCloud or fresh install: Updated from an older version
Where did you install ownCloud from: gz-package from download page
Signing status (ownCloud 9.0 and above): failed
Modifications in lib/imap.php are valid. Not yet merged owncloud-archive/apps#2093
List of activated apps:
The content of config/config.php:
Are you using external storage, if yes which one: local/smb/sftp/...
No
Are you using encryption: yes/no
No
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
Yes , Imap
Client configuration
Browser: FF46.0.1
Operating system: Debian 8
The text was updated successfully, but these errors were encountered: