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

Authentication error loop version 8.2.9.4 #26646

Closed
guillemsf opened this issue Nov 17, 2016 · 10 comments
Closed

Authentication error loop version 8.2.9.4 #26646

guillemsf opened this issue Nov 17, 2016 · 10 comments

Comments

@guillemsf
Copy link

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. It happened in 8.2.2.2 and in 8.2.9.4

Server configuration

Operating system:Amazon Linux AMI 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: 8.2.2.2

Where did you install ownCloud from: package

List of activated apps:

Enabled:
  - activity: 2.1.4
  - files: 1.2.1
  - files_external: 0.3.0
  - files_pdfviewer: 0.7.1
  - files_sharing: 0.7.0
  - files_texteditor: 2.0
  - files_trashbin: 0.7.0
  - files_versions: 1.1.0
  - files_videoviewer: 0.1.3
  - firstrunwizard: 1.1
  - gallery: 14.2.0
  - notifications: 0.1.0
  - provisioning_api: 0.3.0
  - templateeditor: 0.1
  - updater: 0.6
Disabled:
  - encryption
  - external
  - files_antivirus
  - user_external
  - user_ldap

The content of config/config.php:


<?php
$CONFIG = array (
  'instanceid' => 'x',
  'passwordsalt' => '',
  'secret' => '',
  'trusted_domains' => 
  array (
    0 => 'xxx.xxx.com',
    1 => 'x.x.x.x',
  ),
  'overwritehost' => 'x.x.com',
  'overwriteprotocol' => 'https',
  'datadirectory' => '/var/www/owncloud/data',
  'overwrite.cli.url' => 'https://xxx.xxx.com',
  'dbtype' => 'mysql',
  'version' => '8.2.9.4',
  'dbname' => 'owncloud',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'x',
  'dbpassword' => 'x',
  'logtimezone' => 'UTC',
  'appstoreenabled' => true,
  'appstoreurl' => 'https://api.owncloud.com/v1',
  'appstore.experimental.enabled' => false,
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/var/www/owncloud/apps',
      'url' => '/apps',
      'writable' => true,
    ),
  ),
  'appcodechecker' => true,
  'installed' => true,
  'memcache.distributed' => '\\OC\\Memcache\\Memcached',
  'memcached_servers' => 
  array (
    0 => 
    array (
      0 => 'localhost',
      1 => 11211,
    ),
  ),
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'tls',
  'mail_smtphost' => 'xxx',
  'mail_smtpport' => '25',
  'mail_smtpauth' => 1,
  'mail_smtpname' => 'xxx',
  'mail_smtppassword' => 'xxx',
  'mail_from_address' => 'no-reply',
  'mail_domain' => 'xxx.com',
  'mail_smtpauthtype' => 'LOGIN',
  'session_keepalive' => true,
  'loglevel' => 0,
  'maintenance' => false,
  'singleuser' => false,
  'theme' => '',
);


Are you using external storage, if yes which one: amazon volume

Are you using encryption: no

Are you using an external user-backend, if yes which one: no

Client configuration

Browser: Firefix / Chrome

Operating system: Amazon Linux AMI 2016.09

Logs

Web server error log

{ "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" }

ownCloud log (data/owncloud.log)

{"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"}

Browser log

GET https://xxx.xxx.com/index.php/apps/files/...ir=%2FFormaci%C3%B3n&sort=name&sortdirection=asc
	
200 OK
		237ms	
jquery....f3889ca (line 6)
ParamsHeadersResponseJSONCookies

{"data":{"message":"Authentication error","error":"authentication_error"},"status":"error"}


	
200 OK
		180ms	
jquery....f3889ca (line 6)
ParamsHeadersResponseJSONCookies

{"data":{"message":"Authentication error","error":"authentication_error"},"status":"error"}

@PVince81
Copy link
Contributor

Thanks for the detailed report.
Hmm, no external storage and no custom user backends.
Not sure why you'd get "Authentication error" on some folders but not others ?

@guillemsf
Copy link
Author

Hi,
It happens in all folders, I explained bad, it was just an example.

Thanks for your reply

@PVince81
Copy link
Contributor

Please go to the admin page and see if there are setup warnings. It is likely that your environment is not configured to allow Webdav calls from the web browser / outside.

@guillemsf
Copy link
Author

Hi, the problem is that it's have boon working for several month. And one week ago brokened. I just this message -> "Your web server is not yet set up properly to allow file synchronization because the WebDAV interface seems to be broken".

Do you think is this?

@PVince81
Copy link
Contributor

Yes, that's the issue. Note that since OC >= 9.0 the web frontend also uses Webdav to access the file list, so this needs to be configured to work properly.

If you say it worked before with OC 9.0 then maybe something changed in your environment lately, system or web server update ?

@guillemsf
Copy link
Author

Hi, it happened in 8.2.2.2 we updated to 8.2.9 to see if it was fixed and same result. We are under cloudfront and Webdav is not supported and used to work.

@guillemsf
Copy link
Author

We are using 8.2.9 but will we need webdav in 9.0 ?

We didn't do changes in environment but if we need webdav in 9.0 we will
ned to think how to to fix it.

Thanks

2016-11-21 9:31 GMT+01:00 Vincent Petry [email protected]:

Yes, that's the issue. Note that since OC >= 9.0 the web frontend also
uses Webdav to access the file list, so this needs to be configured to work
properly.

If you say it worked before with OC 9.0 then maybe something changed in
your environment lately, system or web server update ?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#26646 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAa6UXzvSx_JsJAIMTrdxQbEN5JFxvrhks5rAVbrgaJpZM4K1M4j
.

twitter: @willskc

@PVince81
Copy link
Contributor

Yes, you will need Webdav starting with 9.0.

Actually, if you were using desktop or mobile clients before then you needed Webdav as well.
The difference is that since 9.0 the web frontend will also use Webdav.

@PVince81
Copy link
Contributor

Please check your server setup and make sure that access for Webdav verbs is allowed. Here is a list owncloud-archive/documentation#2753

@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