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

login loop / too many redirects / 302 #22411

Closed
MisterElFantastico opened this issue Feb 15, 2016 · 2 comments
Closed

login loop / too many redirects / 302 #22411

MisterElFantastico opened this issue Feb 15, 2016 · 2 comments

Comments

@MisterElFantastico
Copy link

Hi,

my owncloud worked fine still yet. Suddenly my browser there were to many redirects.
In the debug console of my browser are many 302 errors. I haven't made any change of my configuration or database. There aren't any additional apps installed.

Owncloud Version: 8.2.2
OS: debian 8 + plesk 12.5 (apache2 + nginx it's default)
PHP 5.4 via PHP-FM

htaccess:

# Version: 8.2.2
<IfModule mod_headers.c>
  <IfModule mod_fcgid.c>
    <IfModule mod_setenvif.c>
       SetEnvIfNoCase ^Authorization$ "(.+)" XAUTHORIZATION=$1
       RequestHeader set XAuthorization %{XAUTHORIZATION}e env=XAUTHORIZATION
    </IfModule>
  </IfModule>

  <IfModule mod_env.c>
    # Add security and privacy related headers
    Header set X-Content-Type-Options "nosniff"
    Header set X-XSS-Protection "1; mode=block"
    Header set X-Robots-Tag "none"
    Header set X-Frame-Options "SAMEORIGIN"
    SetEnv modHeadersAvailable true
  </IfModule>

  # Add cache control for CSS and JS files
  <FilesMatch "\.(css|js)$">
    Header set Cache-Control "max-age=7200, public"
  </FilesMatch>
</IfModule>
<IfModule mod_php5.c>
  php_value upload_max_filesize 513M
  php_value post_max_size 513M
  php_value memory_limit 512M
  php_value mbstring.func_overload 0
  php_value always_populate_raw_post_data -1
  php_value default_charset 'UTF-8'
  php_value output_buffering 0
  <IfModule mod_env.c>
    SetEnv htaccessWorking true
  </IfModule>
</IfModule>
<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  RewriteRule ^\.well-known/host-meta /public.php?service=host-meta [QSA,L]
  RewriteRule ^\.well-known/host-meta\.json /public.php?service=host-meta-json [QSA,L]
  RewriteRule ^\.well-known/carddav /remote.php/carddav/ [R=301,L]
  RewriteRule ^\.well-known/caldav /remote.php/caldav/ [R=301,L]
  RewriteRule ^apps/calendar/caldav\.php remote.php/caldav/ [QSA,L]
  RewriteRule ^apps/contacts/carddav\.php remote.php/carddav/ [QSA,L]
  RewriteRule ^remote/(.*) remote.php [QSA,L]
  RewriteRule ^(build|tests|config|lib|3rdparty|templates)/.* - [R=404,L]
  RewriteRule ^(\.|autotest|occ|issue|indie|db_|console).* - [R=404,L]
</IfModule>
<IfModule mod_mime.c>
  AddType image/svg+xml svg svgz
  AddEncoding gzip svgz
</IfModule>
<IfModule mod_dir.c>
  DirectoryIndex index.php index.html
</IfModule>
AddDefaultCharset utf-8
Options -Indexes
<IfModule pagespeed_module>
  ModPagespeed Off
</IfModule>

last lines of owncloud.log

"reqId":"iACUe1JvtLdEvpHm2DuQ","remoteAddr":"84.151.71.72","app":"files_texteditor","message":"File: \/2016\/Projekte\/BLANKEDNAME\/VMSRV01.txt modified since opening.","level":3,"time":"2016-02-15T17:52:39+00:00"}
{"reqId":"QueyuUsZTwMT8DAZNZAx","remoteAddr":"84.151.71.72","app":"files_texteditor","message":"File: \/2016\/Projekte\/BLANKEDNAME\/VMSRV01.txt modified since opening.","level":3,"time":"2016-02-15T17:52:42+00:00"}
{"reqId":"IbkgCARZjfHCwltZWUaH","remoteAddr":"84.151.71.72","app":"files_texteditor","message":"File: \/2016\/Projekte\/BLANKEDNAME\/VMSRV01.txt modified since opening.","level":3,"time":"2016-02-15T17:52:43+00:00"}
{"reqId":"Onx3G41PcspXC+CWJtG4","remoteAddr":"84.151.71.72","app":"files_texteditor","message":"File: \/2016\/Projekte\/BLANKEDNAME\/VMSRV01.txt modified since opening.","level":3,"time":"2016-02-15T17:54:33+00:00"}
{"reqId":"7s8\/JH1RG6uC1cqkWbpb","remoteAddr":"84.151.71.72","app":"PHP","message":"Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php:\/\/input stream instead. at Unknown#0","level":3,"time":"2016-02-15T18:05:36+00:00"}
{"reqId":"Np+iRYxt4BvHgRSqwyKO","remoteAddr":"84.151.71.72","app":"PHP","message":"Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php:\/\/input stream instead. at Unknown#0","level":3,"time":"2016-02-15T18:17:36+00:00"}
{"reqId":"jQVwrwFrmhjcjku7yjKk","remoteAddr":"84.151.71.72","app":"PHP","message":"Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php:\/\/input stream instead. at Unknown#0","level":3,"time":"2016-02-15T18:29:35+00:00"}
{"reqId":"Npbgfr1ocdus0aAOftsg","remoteAddr":"84.151.71.72","app":"PHP","message":"Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php:\/\/input stream instead. at Unknown#0","level":3,"time":"2016-02-15T18:41:36+00:00"}
{"reqId":"Z3ywDaIsvDpR9gjQIgcJ","remoteAddr":"84.151.71.72","app":"PHP","message":"Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php:\/\/input stream instead. at Unknown#0","level":3,"time":"2016-02-15T18:53:36+00:00"}
{"reqId":"HJGmwLFXVnR78zzkQGOK","remoteAddr":"84.151.71.72","app":"PHP","message":"Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php:\/\/input stream instead. at Unknown#0","level":3,"time":"2016-02-15T19:05:36+00:00"}
{"reqId":"1YLWGBCpveFLjQtJySy2","remoteAddr":"84.151.71.72","app":"files_texteditor","message":"File: \/2016\/Projekte\/BLANKEDNAME\/GAMING.txt modified since opening.","level":3,"time":"2016-02-15T19:11:01+00:00"}
{"reqId":"CCwQYhvdKt81Y8Z5Y0Ll","remoteAddr":"84.151.71.72","app":"files_texteditor","message":"File: \/2016\/Projekte\/BLANKEDNAME\/GAMING.txt modified since opening.","level":3,"time":"2016-02-15T19:11:30+00:00"}
{"reqId":"cLwH37bXvUDdV\/ZEpuRB","remoteAddr":"84.151.71.72","app":"files_texteditor","message":"File: \/2016\/Projekte\/BLANKEDNAME\/GAMING.txt modified since opening.","level":3,"time":"2016-02-15T19:12:51+00:00"}
{"reqId":"mus2ZYcE96r1f0vqa66B","remoteAddr":"84.151.71.72","app":"PHP","message":"Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php:\/\/input stream instead. at Unknown#0","level":3,"time":"2016-02-15T19:24:08+00:00"}
{"reqId":"4lQdmGxk1ZcOEtJGr4qs","remoteAddr":"84.151.71.72","app":"PHP","message":"Array to string conversion at \/var\/www\/vhosts\/BLANKEDNAME.de\/cloud.BLANKEDNAME.de\/lib\/private\/template\/functions.php#36","level":3,"time":"2016-02-15T19:27:26+00:00"}
{"reqId":"eJt7RCiEKtyMlWQzqHud","remoteAddr":"84.151.71.72","app":"PHP","message":"Undefined index: permissions at \/var\/www\/vhosts\/BLANKEDNAME.de\/cloud.BLANKEDNAME.de\/lib\/private\/files\/fileinfo.php#177","level":3,"time":"2016-02-15T19:37:58+00:00"}
{"reqId":"eJt7RCiEKtyMlWQzqHud","remoteAddr":"84.151.71.72","app":"PHP","message":"Undefined index: permissions at \/var\/www\/vhosts\/BLANKEDNAME.de\/cloud.BLANKEDNAME.de\/lib\/private\/files\/fileinfo.php#177","level":3,"time":"2016-02-15T19:37:58+00:00"}
{"reqId":"eJt7RCiEKtyMlWQzqHud","remoteAddr":"84.151.71.72","app":"PHP","message":"Undefined index: permissions at \/var\/www\/vhosts\/BLANKEDNAME.de\/cloud.BLANKEDNAME.de\/lib\/private\/files\/fileinfo.php#177","level":3,"time":"2016-02-15T19:37:58+00:00"}
{"reqId":"eJt7RCiEKtyMlWQzqHud","remoteAddr":"84.151.71.72","app":"PHP","message":"Undefined index: permissions at \/var\/www\/vhosts\/BLANKEDNAME.de\/cloud.BLANKEDNAME.de\/lib\/private\/files\/fileinfo.php#177","level":3,"time":"2016-02-15T19:37:58+00:00"}
{"reqId":"Z\/v1lxEQLs\/yQ5ezgpAR","remoteAddr":"84.151.71.72","app":"PHP","message":"Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php:\/\/input stream instead. at Unknown#0","level":3,"time":"2016-02-15T19:49:55+00:00"}

There are no salience in error_log or access_log

@MisterElFantastico
Copy link
Author

Solved the issue. Same issue as #21871

Solution: Set PHP Version in Plesk to OS Vendor. So PHP it's not provided php-fpm anymore ...

@lock
Copy link

lock bot commented Aug 6, 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 Aug 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant