Skip to content
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

upgrade on Ubuntu 16.04 from 8.1 to 8.2 to 9.0 breaks oC with redirect loop, reinstall solves the problem #25096

Closed
emmenlau opened this issue Jun 14, 2016 · 6 comments

Comments

@emmenlau
Copy link

Steps to reproduce

  1. Have oC 8.1 installed on Ubuntu 16.04
  2. Upgrade to oC 8.2
  3. Upgrade to oC 9.0

Expected behaviour

Website should be available

Actual behaviour

Website is unavailable with a redirection to https://baseurl/apps/files/ and apache error:

[Tue Jun 14 13:46:10.574037 2016] [core:error] [pid 5340] [client 131.152.43.79:57202] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInter
nalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Tue Jun 14 13:46:10.574057 2016] [core:debug] [pid 5340] core.c(3613): [client 131.152.43.79:57202] AH00121: r->uri = /owncloud/index.php
[Tue Jun 14 13:46:10.574069 2016] [core:debug] [pid 5340] core.c(3620): [client 131.152.43.79:57202] AH00122: redirected from r->uri = /owncloud/index.php
[Tue Jun 14 13:46:10.574080 2016] [core:debug] [pid 5340] core.c(3620): [client 131.152.43.79:57202] AH00122: redirected from r->uri = /owncloud/index.php
[Tue Jun 14 13:46:10.574092 2016] [core:debug] [pid 5340] core.c(3620): [client 131.152.43.79:57202] AH00122: redirected from r->uri = /owncloud/index.php
[Tue Jun 14 13:46:10.574105 2016] [core:debug] [pid 5340] core.c(3620): [client 131.152.43.79:57202] AH00122: redirected from r->uri = /owncloud/index.php
[Tue Jun 14 13:46:10.574117 2016] [core:debug] [pid 5340] core.c(3620): [client 131.152.43.79:57202] AH00122: redirected from r->uri = /owncloud/index.php
[Tue Jun 14 13:46:10.574128 2016] [core:debug] [pid 5340] core.c(3620): [client 131.152.43.79:57202] AH00122: redirected from r->uri = /owncloud/index.php
[Tue Jun 14 13:46:10.574140 2016] [core:debug] [pid 5340] core.c(3620): [client 131.152.43.79:57202] AH00122: redirected from r->uri = /owncloud/index.php
[Tue Jun 14 13:46:10.574152 2016] [core:debug] [pid 5340] core.c(3620): [client 131.152.43.79:57202] AH00122: redirected from r->uri = /owncloud/index.php
[Tue Jun 14 13:46:10.574164 2016] [core:debug] [pid 5340] core.c(3620): [client 131.152.43.79:57202] AH00122: redirected from r->uri = /owncloud/index.php
[Tue Jun 14 13:46:10.574177 2016] [core:debug] [pid 5340] core.c(3620): [client 131.152.43.79:57202] AH00122: redirected from r->uri = /apps/files/

Server configuration

Operating system: Ubuntu 16.04

Web server: Apache 2.4

Database: MySQL

PHP version: php7

Solution:

To solve the problem I performed a reinstall:

sudo apt-get install --reinstall owncloud-files

After the reinstall, I compared the previous and reinstalled 9.0 installation line by line. The difference is that the previous installation had this setting:

diff -wBdr /tmp/owncloud/.htaccess /var/www/owncloud/.htaccess
92,105d91
< #### DO NOT CHANGE ANYTHING ABOVE THIS LINE ####
< 
< ErrorDocument 403 /owncloud/core/templates/403.php
< ErrorDocument 404 /owncloud/core/templates/404.php
< <IfModule mod_rewrite.c>
<   RewriteRule . index.php [PT,E=PATH_INFO:$1]
<   RewriteBase /owncloud
<   <IfModule mod_env.c>
<     SetEnv front_controller_active true
<     <IfModule mod_dir.c>
<       DirectorySlash off
<     </IfModule>
<   </IfModule>
< </IfModule>

This change is not present in the reinstalled oC 9.0, which fixes the issue.

@nickvergessen
Copy link
Contributor

Do you still have the problem?

If so, make sure your config overwrite.cli.url is set to the correct value.

@emmenlau
Copy link
Author

Ahh, does the problem has to do with overwrite.cli.url? I never changed this parameter until a few days ago, was there maybe a default or did I set this during install? It was indeed wrong! Thanks for clarification!

@ghost
Copy link

ghost commented Jun 15, 2016

@emmenlau It will be set to the URL which is used during the initial setup. If you're changing the URL (like from http://www.example.com/owncloud to http://www.example.com) the mentioned config option needs to be updated.

To workaround such issues oC 9.0.3 won't automatically enable the index.php-less URLs and the admin needs to correctly configure this initially.

@emmenlau
Copy link
Author

I understand! I think I set this wrongly on the first install, and never changed it later. It was not a problem on a number of upgrades, and now suddenly turned into a blocker. Thanks for the hint!

@ownclouders
Copy link
Contributor

Hey, this issue has been closed because the label needs info is set and there were no updates for 14 days. Feel free to reopen this issue if you deem it appropriate.

(This is an automated comment from GitMate.io.

@lock
Copy link

lock bot commented Jul 31, 2019

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.

@lock lock bot locked as resolved and limited conversation to collaborators Jul 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants