Authentication error loop version 8.2.9.4

Please help us by providing the following info. Before posting please also check the pinned "Known issues" threads and make sure that you're running the latest available version for your oC release: https://owncloud.org/changelog/

Steps to reproduce
1. Log in
2. Browse a folder (Documents)
3. I see a message on the top -> "Authentication error" and begins a loop from "/index.php/apps/files?dir=%2F" to /index.php/apps/files?dir=%2FDocuments"
4. I do f5 and i have lo tog in again and I see what is inside the folder

Expected behaviour
Not to see the "Authentication error" and can access to the contents of the folder

Actual behaviour
I see a message on the top -> "Authentication error" and begins a loop from "/index.php/apps/files?dir=%2F" to /index.php/apps/files?dir=%2FDocuments" and there is a loop and forces logout

Server configuration
Operating system: NAME="Amazon Linux AMI"
VERSION="2016.09"

Web server: Apache/2.4.23
Database: Mysql 5.6.33
PHP version:5.5.38
ownCloud version (see ownCloud admin page): 8.2.9.4
Updated from an older ownCloud or fresh install:Updated from 8.2.2.2
Special configuration (external storage, external authentication, reverse proxy, server-side-encryption):

ownCloud log (data/owncloud.log)

Please paste possible errors in the following code block, see https://central.owncloud.org/t/how-to-find-webserver-or-oc-logfile-enable-php-logfile/808 for more info

{"reqId":"sFY+ZBH9ggYVXqRsZq1c","remoteAddr":"54.240.157.83","app":"DeleteOrphanedSharesJob","message":"0 orphaned share(s) deleted","level":0,"time":"2016-11-17T09:57:24+00:00","method":"GET","url":"\/cron.php"}
{"reqId":"eBvNmMu\/PwqHcHchnUj5","remoteAddr":"54.240.157.83","app":"no app in context","message":"Current user is not logged in","level":0,"time":"2016-11-17T09:59:10+00:00","method":"GET","url":"\/index.php\/apps\/activity\/"}
{"reqId":"qPDnQtztaS1JJBQgPOsk","remoteAddr":"54.240.157.83","app":"no app in context","message":"Current user is not logged in","level":0,"time":"2016-11-17T09:59:28+00:00","method":"GET","url":"\/index.php\/apps\/gallery\/preview\/90317?width=1400&height=1400&c=bebfc930c0cbe2f2ebb64a116d2ddab5&requesttoken=cCE5PTgOCgpTeA4TDR1%2FTjMCCxYFKARiCzQjIyEt%3AAcQvHo8I5OIdLN37Un9aART%2FhdAnbE"}
{"reqId":"\/SphUlK\/5qLeO9zGdB7r","remoteAddr":"54.240.157.83","app":"no app in context","message":"Current user is not logged in","level":0,"time":"2016-11-17T10:01:38+00:00","method":"GET","url":"\/index.php\/apps\/activity\/activities\/fetch?page=1&filter=filter&objectid=59743&objecttype=files"}
{"reqId":"zECv7K7ktUzcfSI6i0qY","remoteAddr":"54.240.157.83","app":"DeleteOrphanedSharesJob","message":"0 orphaned share(s) deleted","level":0,"time":"2016-11-17T10:14:14+00:00","method":"GET","url":"\/cron.php"}
{"reqId":"2+4XYYXZvYaBq25FIbs2","remoteAddr":"54.240.157.83","app":"no app in context","message":"Current user is not logged in","level":0,"time":"2016-11-17T10:23:54+00:00","method":"GET","url":"\/index.php\/apps\/gallery\/preview\/42?width=2000&height=2000&c=4391406c274f25c6c7434f92365bd57b&requesttoken=BHI4NgFzLToAP24%2BW1dkQQwjfkguAwhfBHgcECcG%3AqGTtbDESSfXuiaTsZgIxeRQ%2BaLEhwC"}
and we see also this in apache logs 
{ "time":"[17/Nov/2016:10:16:16 +0000]", "remoteIP":"37.14.95.91", "host":"xxx.xxxxxx.com", "request":"/index.php/apps/files/ajax/list.php", "query":"?dir=%2FDocuments&sort=name&sortdirection=asc", "method":"GET", "status":"200", "userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0", "referer":"-", "req_time":"102451" }
{ "time":"[17/Nov/2016:10:16:16 +0000]", "remoteIP":"37.14.95.91", "host":"xxx.xxxxx.com", "request":"/index.php/apps/files", "query":"", "method":"GET", "status":"302", "userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0", "referer":"-", "req_time":"110687" }
{ "time":"[17/Nov/2016:10:16:16 +0000]", "remoteIP":"37.14.95.91", "host":"xxx.xxxxxx.com", "request":"/index.php/apps/files/ajax/list.php", "query":"?dir=%2F&sort=name&sortdirection=asc", "method":"GET", "status":"200", "userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0", "referer":"-", "req_time":"156217" }

Integrity status for oC9+

Login as admin user into your ownCloud and access
http://example.com/index.php/settings/integrity/failed
paste the results here.

Hi,

if issues like this are happening after an update then please report this always directly to the bugtracker at https://github.com/owncloud/core/issues

Bugreports won't be tracked in here and are doomed to get lost and unfixed :confused:

Thanks for reporting that to the bugtracker. Here is the reference:

1 Like

Hi,

not related to the issue itself but just had a look at your config.php on the issue tracker. Those are entries you should remove from your config.php:

  'appstoreurl' => 'https://api.owncloud.com/v1',
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/var/www/owncloud/apps',
      'url' => '/apps',
      'writable' => true,
    ),
  ),
  'appcodechecker' => true,
  'singleuser' => false,
  'session_keepalive' => true,

You should only add entries not listed in your config.php to it if you want to change their defaults. Especially with the appstoreurl you will face issues if the official URL is changed.

done! thanks :slight_smile:
We are having same behaviour but is better to have cleaned conf.