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

Can't enable TOTP #177

Closed
StrangeMonkey opened this issue Jun 14, 2017 · 65 comments
Closed

Can't enable TOTP #177

StrangeMonkey opened this issue Jun 14, 2017 · 65 comments

Comments

@StrangeMonkey
Copy link

Hi,

My issue is the following : i can't enbale TOTP, the circle is turning indefinitely.
bug_totp

I think this problem is responsible for the non-use of TOTP.

Thanks for helping.
StrangeMonkey

@ChristophWurst
Copy link
Member

Hi @StrangeMonkey,

please provide more information about your setup and steps to reproduce this.

  • Which version of Nextcloud are you using?
  • Which version of the app are you using?
  • Where did you get the app from? How did you enable it?
  • Is there anything in your nextcloud.log?
  • Is there anyhting in your browser's debugging console? Or maybe you can see a failing request in the network tab?

Thanks

@StrangeMonkey
Copy link
Author

StrangeMonkey commented Jun 14, 2017

Hi @ChristophWurst

  • Which version of Nextcloud are you using? Nextcloud 12
  • Which version of the app are you using? Nextcloud App Store
  • Where did you get the app from? How did you enable it ? Nextcloud App Store enabled by Nextcloud button
  • Is there anything in your nextcloud.log? No log in nextloud-error.log
  • Is there anyhting in your browser's debugging console? Or maybe you can see a failing request in the network tab? Don't think so

I only have this logs on nextcloud :
include_once(/var/www/nextcloud/apps/twofactor_totp/appinfo/../vendor/autoload.php): failed to open stream: No such file or directory at /var/www/nextcloud/apps/twofactor_totp/appinfo/app.php#23

include_once(): Failed opening '/var/www/nextcloud/apps/twofactor_totp/appinfo/../vendor/autoload.php' for inclusion (include_path='/var/www/nextcloud/3rdparty/pear/console_getopt:/var/www/nextcloud/3rdparty/pear/pear_exception:/var/www/nextcloud/3rdparty/pear/archive_tar:/var/www/nextcloud/3rdparty/pear/pear-core-minimal/src:/var/www/nextcloud/apps') at /var/www/nextcloud/apps/twofactor_totp/appinfo/app.php#23

Thanks for your answer.

@ChristophWurst
Copy link
Member

Which version of the app are you using? Nextcloud App Store

Based on this vague information, I'm assuming you've installed the latest stable version 1.3.0. I manually checked it and the archive contains the file that apparently is missing on your setup.

Even though you stated to have installed the app via the app store, this looks like you downloaded the source zip from GitHub. That would explain why the php denpendencies directory (vendor) is missing.

@StrangeMonkey
Copy link
Author

StrangeMonkey commented Jun 14, 2017

The circle is turning indefinitely but i have the QrCode :
And can scan it with FreeOTP and when i enter the key, i've this message :

Impossible to check your key. Please retry.

Thanks for your precedent answer

@ChristophWurst
Copy link
Member

Again, to be able to help you with your problem you have to provide more information about what steps you took so far and what errors messages are shown where if you do what.

@StrangeMonkey
Copy link
Author

Ok.

  1. Downloading twofactor from the NextCloud 12 AppStore
  2. Enable the twofactor app in the application pannel
  3. On my personnal pannel, i'm going in the twofactor authentication section and click on "Activate single usage password (TOTP) and the circle is turning indefinitely
  4. The twofactor app provide me a TOTP secret and a QRcode
  5. On my FreeOTP app for Android, i'm scanning the QRcode and FreeOTP give me a key
  6. I enter this key in the fields just after the QRcode, click on verify and i have this message "Impossible to check your key. Please retry."

And don't have any log in my administration pannel.
The issue about the missing files seems to be resolve after reinstalling the app.

StrangeMonkey

@ChristophWurst
Copy link
Member

Thanks for providing more details for this issues!

@StrangeMonkey
Copy link
Author

Can i help for something to debug ?

@ChristophWurst
Copy link
Member

Yes, I think it would help to check data/nextcloud.log for possibly logged errors.

I'd also be interested in the HTTP status returned by the server. You can find that by opening the developer console, switch to the network tab and retry to enter a verification code. That should trigger a request to the server.

@armorica
Copy link

armorica commented Jul 2, 2017

Similar/same problem here. Debian 8.0 server, all updates; Nextcloud 12.0.0, TOTP app 1.3.0. No errors at all in any of the logs. QR code appears, but 'enabling circle' keeps turning. After reload of page, checkbox is unchecked; TOTP not enabled.

Not sure if this what you asked StrangeMonkey, but opening a Web developer console in FF, this is the response header when entering a code (while the activation wheel is still spinning):

Cache-Control: no-cache, no-store, must-revalidate
Connection: Keep-Alive
Content-Length: 11
Content-Security-Policy: default-src 'none';base-uri 'none';manifest-src 'self';script-src 'nonce-WS9xWEtLOEM3cDNUM0E0MGNVSWpzbmdyNlIrZjBWcTA5TGdrK2N3THM1az06QjV6OVF1azZoNmpucWlGakZBOTI5QmxBaDBuR3FXclF0dWhGMXE4Lys2MD0=' 'unsafe-eval';style-src 'self' 'unsafe-inline';img-src 'self' data: blob:;font-src 'self';connect-src 'self';media-src 'self'
Content-Type: application/json; charset=utf-8
Date: Sun, 02 Jul 2017 13:59:15 GMT
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Keep-Alive: timeout=5, max=100
Pragma: no-cache
Server: Apache/2.4.10 (Debian)
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-Permitted-Cross-Domain-Policies: none
X-Robots-Tag: none
strict-transport-security: max-age=15552000; includeSubDomains
x-xss-protection: 1; mode=block

Validation fails.

@armorica
Copy link

armorica commented Jul 2, 2017

Like StrangeMonkey I'm willing to do more logging/debugging. Funny thing is, I got it working on another server (same OS/NC/App) without any problems.

Forgot to mention; server (both) are behind reverse proxy.

@armorica
Copy link

armorica commented Jul 2, 2017

I wasn't telling the truth about the servers being identical; background process in my head told me while walking the dog :)

They are now; I upgraded the server with the issue PHP 5.6 to 7.0.20 now; didn't solve the problem though. Just for completeness.

@ChristophWurst
Copy link
Member

Yes, I think it would help to check data/nextcloud.log for possibly logged errors.

I'd also be interested in the HTTP status returned by the server. You can find that by opening the developer console, switch to the network tab and retry to enter a verification code. That should trigger a request to the server.

Could anyone of you please provide that information? That would help a lot.

@armorica
Copy link

armorica commented Jul 3, 2017

Ok, good news! Fixed it. Going through the code and thinking about what may go wrong and what the system requirements are, I suddenly knew it would have to be my system clock being slightly wrong. Installed ntp, and voila... Stupid me;should have considered that first thing.

Hope this works for StrangeMonkey too.

@ChristophWurst
Copy link
Member

system clock being slightly wrong

Great to hear it was that simple to fix once you know where the problem comes from 😉

@hanzei
Copy link

hanzei commented Aug 23, 2017

I encountered the same problem as @StrangeMonkey

  • Which version of Nextcloud are you using? Nextcloud 13
  • Which version of the app are you using? Git Master
  • Where did you get the app from? How did you enable it ? Nextcloud App Store enabled by Nextcloud button
  • Is there anyhting in your browser's debugging console? Or maybe you can see a failing request in the network tab? See below
  • Is there anything in your nextcloud.log?
Arguments { 0: Object, 2 more… }  settingsview.js:220:5
	_updateServerState/< http://localhost/nextcloud/apps/twofactor_totp/js/settingsview.js:220:5
TypeError: this is undefined
Stack trace:
_createTOTP/<@http://localhost/nextcloud/apps/twofactor_totp/js/settingsview.js?v=a900d3c975a0afbec80a417e67d282b7-0:135:5
  (unknown)
	<anonymous>
Nextcloud log
{"reqId":"zd7Ro3RbLDIK2e2hg1G6","level":3,"time":"2017-08-23T10:12:32+00:00","remoteAddr":"127.0.0.1","user":"admin","app":"PHP","method":"GET","url":"\/nextcloud\/index.php\/settings\/user\/additional","message":"include_once(\/var\/www\/html\/nextcloud\/apps\/twofactor_totp\/appinfo\/..\/vendor\/autoload.php): failed to open stream: No such file or directory at \/var\/www\/html\/nextcloud\/apps\/twofactor_totp\/appinfo\/app.php#23","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko\/20100101 Firefox\/55.0","version":"13.0.0.3"}
{"reqId":"zd7Ro3RbLDIK2e2hg1G6","level":3,"time":"2017-08-23T10:12:32+00:00","remoteAddr":"127.0.0.1","user":"admin","app":"PHP","method":"GET","url":"\/nextcloud\/index.php\/settings\/user\/additional","message":"include_once(): Failed opening '\/var\/www\/html\/nextcloud\/apps\/twofactor_totp\/appinfo\/..\/vendor\/autoload.php' for inclusion (include_path='\/var\/www\/html\/nextcloud\/3rdparty\/pear\/console_getopt:\/var\/www\/html\/nextcloud\/3rdparty\/pear\/pear_exception:\/var\/www\/html\/nextcloud\/3rdparty\/pear\/pear-core-minimal\/src:\/var\/www\/html\/nextcloud\/3rdparty\/pear\/archive_tar:\/var\/www\/html\/nextcloud\/apps') at \/var\/www\/html\/nextcloud\/apps\/twofactor_totp\/appinfo\/app.php#23","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko\/20100101 Firefox\/55.0","version":"13.0.0.3"}
{"reqId":"OyJH4zmX81MxdXplnYjT","level":3,"time":"2017-08-23T10:12:33+00:00","remoteAddr":"127.0.0.1","user":"admin","app":"PHP","method":"GET","url":"\/nextcloud\/index.php\/css\/core\/8422af5e95175a58af85864ca60d24f1-server.css?v=a900d3c975a0afbec80a417e67d282b7-0","message":"include_once(\/var\/www\/html\/nextcloud\/apps\/twofactor_totp\/appinfo\/..\/vendor\/autoload.php): failed to open stream: No such file or directory at \/var\/www\/html\/nextcloud\/apps\/twofactor_totp\/appinfo\/app.php#23","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko\/20100101 Firefox\/55.0","version":"13.0.0.3"}
{"reqId":"OyJH4zmX81MxdXplnYjT","level":3,"time":"2017-08-23T10:12:33+00:00","remoteAddr":"127.0.0.1","user":"admin","app":"PHP","method":"GET","url":"\/nextcloud\/index.php\/css\/core\/8422af5e95175a58af85864ca60d24f1-server.css?v=a900d3c975a0afbec80a417e67d282b7-0","message":"include_once(): Failed opening '\/var\/www\/html\/nextcloud\/apps\/twofactor_totp\/appinfo\/..\/vendor\/autoload.php' for inclusion (include_path='\/var\/www\/html\/nextcloud\/3rdparty\/pear\/console_getopt:\/var\/www\/html\/nextcloud\/3rdparty\/pear\/pear_exception:\/var\/www\/html\/nextcloud\/3rdparty\/pear\/pear-core-minimal\/src:\/var\/www\/html\/nextcloud\/3rdparty\/pear\/archive_tar:\/var\/www\/html\/nextcloud\/apps') at \/var\/www\/html\/nextcloud\/apps\/twofactor_totp\/appinfo\/app.php#23","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko\/20100101 Firefox\/55.0","version":"13.0.0.3"}
{"reqId":"2DZuI1t0SW5oqEMrzC4m","level":3,"time":"2017-08-23T10:12:33+00:00","remoteAddr":"127.0.0.1","user":"admin","app":"PHP","method":"GET","url":"\/nextcloud\/index.php\/css\/core\/8422af5e95175a58af85864ca60d24f1-share.css?v=a900d3c975a0afbec80a417e67d282b7-0","message":"include_once(\/var\/www\/html\/nextcloud\/apps\/twofactor_totp\/appinfo\/..\/vendor\/autoload.php): failed to open stream: No such file or directory at \/var\/www\/html\/nextcloud\/apps\/twofactor_totp\/appinfo\/app.php#23","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko\/20100101 Firefox\/55.0","version":"13.0.0.3"}
{"reqId":"2DZuI1t0SW5oqEMrzC4m","level":3,"time":"2017-08-23T10:12:33+00:00","remoteAddr":"127.0.0.1","user":"admin","app":"PHP","method":"GET","url":"\/nextcloud\/index.php\/css\/core\/8422af5e95175a58af85864ca60d24f1-share.css?v=a900d3c975a0afbec80a417e67d282b7-0","message":"include_once(): Failed opening '\/var\/www\/html\/nextcloud\/apps\/twofactor_totp\/appinfo\/..\/vendor\/autoload.php' for inclusion (include_path='\/var\/www\/html\/nextcloud\/3rdparty\/pear\/console_getopt:\/var\/www\/html\/nextcloud\/3rdparty\/pear\/pear_exception:\/var\/www\/html\/nextcloud\/3rdparty\/pear\/pear-core-minimal\/src:\/var\/www\/html\/nextcloud\/3rdparty\/pear\/archive_tar:\/var\/www\/html\/nextcloud\/apps') at \/var\/www\/html\/nextcloud\/apps\/twofactor_totp\/appinfo\/app.php#23","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko\/20100101 Firefox\/55.0","version":"13.0.0.3"}
{"reqId":"2DZuI1t0SW5oqEMrzC4m","level":3,"time":"2017-08-23T10:12:33+00:00","remoteAddr":"127.0.0.1","user":"admin","app":"PHP","method":"GET","url":"\/nextcloud\/index.php\/css\/core\/8422af5e95175a58af85864ca60d24f1-share.css?v=a900d3c975a0afbec80a417e67d282b7-0","message":"PHP Startup: Unable to load dynamic library '\/usr\/lib\/php\/20151012\/bz2.so' - \/usr\/lib\/php\/20151012\/bz2.so: cannot open shared object file: No such file or directory at Unknown#0","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko\/20100101 Firefox\/55.0","version":"13.0.0.3"}
{"reqId":"JxRGzKqmq2r5EIrst4M8","level":3,"time":"2017-08-23T10:12:33+00:00","remoteAddr":"127.0.0.1","user":"admin","app":"PHP","method":"GET","url":"\/nextcloud\/index.php\/apps\/theming\/styles?v=0","message":"include_once(\/var\/www\/html\/nextcloud\/apps\/twofactor_totp\/appinfo\/..\/vendor\/autoload.php): failed to open stream: No such file or directory at \/var\/www\/html\/nextcloud\/apps\/twofactor_totp\/appinfo\/app.php#23","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko\/20100101 Firefox\/55.0","version":"13.0.0.3"}
{"reqId":"JxRGzKqmq2r5EIrst4M8","level":3,"time":"2017-08-23T10:12:33+00:00","remoteAddr":"127.0.0.1","user":"admin","app":"PHP","method":"GET","url":"\/nextcloud\/index.php\/apps\/theming\/styles?v=0","message":"include_once(): Failed opening '\/var\/www\/html\/nextcloud\/apps\/twofactor_totp\/appinfo\/..\/vendor\/autoload.php' for inclusion (include_path='\/var\/www\/html\/nextcloud\/3rdparty\/pear\/console_getopt:\/var\/www\/html\/nextcloud\/3rdparty\/pear\/pear_exception:\/var\/www\/html\/nextcloud\/3rdparty\/pear\/pear-core-minimal\/src:\/var\/www\/html\/nextcloud\/3rdparty\/pear\/archive_tar:\/var\/www\/html\/nextcloud\/apps') at \/var\/www\/html\/nextcloud\/apps\/twofactor_totp\/appinfo\/app.php#23","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko\/20100101 Firefox\/55.0","version":"13.0.0.3"}
{"reqId":"JxRGzKqmq2r5EIrst4M8","level":3,"time":"2017-08-23T10:12:33+00:00","remoteAddr":"127.0.0.1","user":"admin","app":"PHP","method":"GET","url":"\/nextcloud\/index.php\/apps\/theming\/styles?v=0","message":"PHP Startup: Unable to load dynamic library '\/usr\/lib\/php\/20151012\/bz2.so' - \/usr\/lib\/php\/20151012\/bz2.so: cannot open shared object file: No such file or directory at Unknown#0","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko\/20100101 Firefox\/55.0","version":"13.0.0.3"}
{"reqId":"vLFcCJtCMeWbWuqsr9uW","level":3,"time":"2017-08-23T10:12:33+00:00","remoteAddr":"127.0.0.1","user":"admin","app":"PHP","method":"GET","url":"\/nextcloud\/index.php\/js\/core\/merged-template-prepend.js?v=a900d3c975a0afbec80a417e67d282b7-0","message":"include_once(\/var\/www\/html\/nextcloud\/apps\/twofactor_totp\/appinfo\/..\/vendor\/autoload.php): failed to open stream: No such file or directory at \/var\/www\/html\/nextcloud\/apps\/twofactor_totp\/appinfo\/app.php#23","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko\/20100101 Firefox\/55.0","version":"13.0.0.3"}
{"reqId":"vLFcCJtCMeWbWuqsr9uW","level":3,"time":"2017-08-23T10:12:33+00:00","remoteAddr":"127.0.0.1","user":"admin","app":"PHP","method":"GET","url":"\/nextcloud\/index.php\/js\/core\/merged-template-prepend.js?v=a900d3c975a0afbec80a417e67d282b7-0","message":"include_once(): Failed opening '\/var\/www\/html\/nextcloud\/apps\/twofactor_totp\/appinfo\/..\/vendor\/autoload.php' for inclusion (include_path='\/var\/www\/html\/nextcloud\/3rdparty\/pear\/console_getopt:\/var\/www\/html\/nextcloud\/3rdparty\/pear\/pear_exception:\/var\/www\/html\/nextcloud\/3rdparty\/pear\/pear-core-minimal\/src:\/var\/www\/html\/nextcloud\/3rdparty\/pear\/archive_tar:\/var\/www\/html\/nextcloud\/apps') at \/var\/www\/html\/nextcloud\/apps\/twofactor_totp\/appinfo\/app.php#23","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko\/20100101 Firefox\/55.0","version":"13.0.0.3"}
{"reqId":"b89J8T0lgez9bhlQClic","level":3,"time":"2017-08-23T10:12:33+00:00","remoteAddr":"127.0.0.1","user":"admin","app":"PHP","method":"GET","url":"\/nextcloud\/index.php\/js\/core\/merged-share-backend.js?v=a900d3c975a0afbec80a417e67d282b7-0","message":"include_once(\/var\/www\/html\/nextcloud\/apps\/twofactor_totp\/appinfo\/..\/vendor\/autoload.php): failed to open stream: No such file or directory at \/var\/www\/html\/nextcloud\/apps\/twofactor_totp\/appinfo\/app.php#23","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko\/20100101 Firefox\/55.0","version":"13.0.0.3"}
{"reqId":"b89J8T0lgez9bhlQClic","level":3,"time":"2017-08-23T10:12:33+00:00","remoteAddr":"127.0.0.1","user":"admin","app":"PHP","method":"GET","url":"\/nextcloud\/index.php\/js\/core\/merged-share-backend.js?v=a900d3c975a0afbec80a417e67d282b7-0","message":"include_once(): Failed opening '\/var\/www\/html\/nextcloud\/apps\/twofactor_totp\/appinfo\/..\/vendor\/autoload.php' for inclusion (include_path='\/var\/www\/html\/nextcloud\/3rdparty\/pear\/console_getopt:\/var\/www\/html\/nextcloud\/3rdparty\/pear\/pear_exception:\/var\/www\/html\/nextcloud\/3rdparty\/pear\/pear-core-minimal\/src:\/var\/www\/html\/nextcloud\/3rdparty\/pear\/archive_tar:\/var\/www\/html\/nextcloud\/apps') at \/var\/www\/html\/nextcloud\/apps\/twofactor_totp\/appinfo\/app.php#23","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko\/20100101 Firefox\/55.0","version":"13.0.0.3"}
{"reqId":"ebJnspQuRgdJUNinvx5g","level":3,"time":"2017-08-23T10:12:34+00:00","remoteAddr":"127.0.0.1","user":"admin","app":"PHP","method":"GET","url":"\/nextcloud\/index.php\/apps\/theming\/js\/theming?v=0","message":"include_once(\/var\/www\/html\/nextcloud\/apps\/twofactor_totp\/appinfo\/..\/vendor\/autoload.php): failed to open stream: No such file or directory at \/var\/www\/html\/nextcloud\/apps\/twofactor_totp\/appinfo\/app.php#23","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko\/20100101 Firefox\/55.0","version":"13.0.0.3"}
{"reqId":"ebJnspQuRgdJUNinvx5g","level":3,"time":"2017-08-23T10:12:34+00:00","remoteAddr":"127.0.0.1","user":"admin","app":"PHP","method":"GET","url":"\/nextcloud\/index.php\/apps\/theming\/js\/theming?v=0","message":"include_once(): Failed opening '\/var\/www\/html\/nextcloud\/apps\/twofactor_totp\/appinfo\/..\/vendor\/autoload.php' for inclusion (include_path='\/var\/www\/html\/nextcloud\/3rdparty\/pear\/console_getopt:\/var\/www\/html\/nextcloud\/3rdparty\/pear\/pear_exception:\/var\/www\/html\/nextcloud\/3rdparty\/pear\/pear-core-minimal\/src:\/var\/www\/html\/nextcloud\/3rdparty\/pear\/archive_tar:\/var\/www\/html\/nextcloud\/apps') at \/var\/www\/html\/nextcloud\/apps\/twofactor_totp\/appinfo\/app.php#23","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko\/20100101 Firefox\/55.0","version":"13.0.0.3"}
{"reqId":"Su8DOU6xRHKEaXc3mTSC","level":3,"time":"2017-08-23T10:12:34+00:00","remoteAddr":"127.0.0.1","user":"admin","app":"PHP","method":"GET","url":"\/nextcloud\/cron.php","message":"include_once(\/var\/www\/html\/nextcloud\/apps\/twofactor_totp\/appinfo\/..\/vendor\/autoload.php): failed to open stream: No such file or directory at \/var\/www\/html\/nextcloud\/apps\/twofactor_totp\/appinfo\/app.php#23","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko\/20100101 Firefox\/55.0","version":"13.0.0.3"}
{"reqId":"Su8DOU6xRHKEaXc3mTSC","level":3,"time":"2017-08-23T10:12:34+00:00","remoteAddr":"127.0.0.1","user":"admin","app":"PHP","method":"GET","url":"\/nextcloud\/cron.php","message":"include_once(): Failed opening '\/var\/www\/html\/nextcloud\/apps\/twofactor_totp\/appinfo\/..\/vendor\/autoload.php' for inclusion (include_path='\/var\/www\/html\/nextcloud\/3rdparty\/pear\/console_getopt:\/var\/www\/html\/nextcloud\/3rdparty\/pear\/pear_exception:\/var\/www\/html\/nextcloud\/3rdparty\/pear\/pear-core-minimal\/src:\/var\/www\/html\/nextcloud\/3rdparty\/pear\/archive_tar:\/var\/www\/html\/nextcloud\/apps') at \/var\/www\/html\/nextcloud\/apps\/twofactor_totp\/appinfo\/app.php#23","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko\/20100101 Firefox\/55.0","version":"13.0.0.3"}
{"reqId":"98TCVsiflPsC56Ax4EjI","level":3,"time":"2017-08-23T10:12:34+00:00","remoteAddr":"127.0.0.1","user":"admin","app":"PHP","method":"GET","url":"\/nextcloud\/index.php\/apps\/twofactor_totp\/settings\/state","message":"include_once(\/var\/www\/html\/nextcloud\/apps\/twofactor_totp\/appinfo\/..\/vendor\/autoload.php): failed to open stream: No such file or directory at \/var\/www\/html\/nextcloud\/apps\/twofactor_totp\/appinfo\/app.php#23","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko\/20100101 Firefox\/55.0","version":"13.0.0.3"}
{"reqId":"98TCVsiflPsC56Ax4EjI","level":3,"time":"2017-08-23T10:12:34+00:00","remoteAddr":"127.0.0.1","user":"admin","app":"PHP","method":"GET","url":"\/nextcloud\/index.php\/apps\/twofactor_totp\/settings\/state","message":"include_once(): Failed opening '\/var\/www\/html\/nextcloud\/apps\/twofactor_totp\/appinfo\/..\/vendor\/autoload.php' for inclusion (include_path='\/var\/www\/html\/nextcloud\/3rdparty\/pear\/console_getopt:\/var\/www\/html\/nextcloud\/3rdparty\/pear\/pear_exception:\/var\/www\/html\/nextcloud\/3rdparty\/pear\/pear-core-minimal\/src:\/var\/www\/html\/nextcloud\/3rdparty\/pear\/archive_tar:\/var\/www\/html\/nextcloud\/apps') at \/var\/www\/html\/nextcloud\/apps\/twofactor_totp\/appinfo\/app.php#23","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko\/20100101 Firefox\/55.0","version":"13.0.0.3"}
{"reqId":"b1eXuPIidILPZLKTEMog","level":3,"time":"2017-08-23T10:12:34+00:00","remoteAddr":"127.0.0.1","user":"admin","app":"PHP","method":"GET","url":"\/nextcloud\/index.php\/settings\/ajax\/checksetup","message":"include_once(\/var\/www\/html\/nextcloud\/apps\/twofactor_totp\/appinfo\/..\/vendor\/autoload.php): failed to open stream: No such file or directory at \/var\/www\/html\/nextcloud\/apps\/twofactor_totp\/appinfo\/app.php#23","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko\/20100101 Firefox\/55.0","version":"13.0.0.3"}
{"reqId":"b1eXuPIidILPZLKTEMog","level":3,"time":"2017-08-23T10:12:34+00:00","remoteAddr":"127.0.0.1","user":"admin","app":"PHP","method":"GET","url":"\/nextcloud\/index.php\/settings\/ajax\/checksetup","message":"include_once(): Failed opening '\/var\/www\/html\/nextcloud\/apps\/twofactor_totp\/appinfo\/..\/vendor\/autoload.php' for inclusion (include_path='\/var\/www\/html\/nextcloud\/3rdparty\/pear\/console_getopt:\/var\/www\/html\/nextcloud\/3rdparty\/pear\/pear_exception:\/var\/www\/html\/nextcloud\/3rdparty\/pear\/pear-core-minimal\/src:\/var\/www\/html\/nextcloud\/3rdparty\/pear\/archive_tar:\/var\/www\/html\/nextcloud\/apps') at \/var\/www\/html\/nextcloud\/apps\/twofactor_totp\/appinfo\/app.php#23","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko\/20100101 Firefox\/55.0","version":"13.0.0.3"}
{"reqId":"1PxUwlfDBuKJtJ6ZTSb5","level":3,"time":"2017-08-23T10:12:34+00:00","remoteAddr":"127.0.0.1","user":"admin","app":"PHP","method":"GET","url":"\/nextcloud\/index.php\/heartbeat","message":"PHP Startup: Unable to load dynamic library '\/usr\/lib\/php\/20151012\/bz2.so' - \/usr\/lib\/php\/20151012\/bz2.so: cannot open shared object file: No such file or directory at Unknown#0","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko\/20100101 Firefox\/55.0","version":"13.0.0.3"}
{"reqId":"b1eXuPIidILPZLKTEMog","level":3,"time":"2017-08-23T10:12:35+00:00","remoteAddr":"127.0.0.1","user":"admin","app":"PHP","method":"GET","url":"\/nextcloud\/index.php\/settings\/ajax\/checksetup","message":"PHP Startup: Unable to load dynamic library '\/usr\/lib\/php\/20151012\/bz2.so' - \/usr\/lib\/php\/20151012\/bz2.so: cannot open shared object file: No such file or directory at Unknown#0","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko\/20100101 Firefox\/55.0","version":"13.0.0.3"}
{"reqId":"9YetGQd9BmsMkRgVlL7t","level":3,"time":"2017-08-23T10:12:38+00:00","remoteAddr":"127.0.0.1","user":"admin","app":"PHP","method":"POST","url":"\/nextcloud\/index.php\/apps\/twofactor_totp\/settings\/enable","message":"include_once(\/var\/www\/html\/nextcloud\/apps\/twofactor_totp\/appinfo\/..\/vendor\/autoload.php): failed to open stream: No such file or directory at \/var\/www\/html\/nextcloud\/apps\/twofactor_totp\/appinfo\/app.php#23","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko\/20100101 Firefox\/55.0","version":"13.0.0.3"}
{"reqId":"9YetGQd9BmsMkRgVlL7t","level":3,"time":"2017-08-23T10:12:38+00:00","remoteAddr":"127.0.0.1","user":"admin","app":"PHP","method":"POST","url":"\/nextcloud\/index.php\/apps\/twofactor_totp\/settings\/enable","message":"include_once(): Failed opening '\/var\/www\/html\/nextcloud\/apps\/twofactor_totp\/appinfo\/..\/vendor\/autoload.php' for inclusion (include_path='\/var\/www\/html\/nextcloud\/3rdparty\/pear\/console_getopt:\/var\/www\/html\/nextcloud\/3rdparty\/pear\/pear_exception:\/var\/www\/html\/nextcloud\/3rdparty\/pear\/pear-core-minimal\/src:\/var\/www\/html\/nextcloud\/3rdparty\/pear\/archive_tar:\/var\/www\/html\/nextcloud\/apps') at \/var\/www\/html\/nextcloud\/apps\/twofactor_totp\/appinfo\/app.php#23","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko\/20100101 Firefox\/55.0","version":"13.0.0.3"}
{"reqId":"9YetGQd9BmsMkRgVlL7t","level":3,"time":"2017-08-23T10:12:38+00:00","remoteAddr":"127.0.0.1","user":"admin","app":"index","method":"POST","url":"\/nextcloud\/index.php\/apps\/twofactor_totp\/settings\/enable","message":"Exception: {\"Exception\":\"Error\",\"Message\":\"Class 'Otp\\\\GoogleAuthenticator' not found\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/html\\\/nextcloud\\\/apps\\\/twofactor_totp\\\/lib\\\/Controller\\\/SettingsController.php(85): OCA\\\\TwoFactorTOTP\\\\Service\\\\Totp->createSecret(Object(OC\\\\User\\\\User))\\n#1 [internal function]: OCA\\\\TwoFactorTOTP\\\\Controller\\\\SettingsController->enable(1, NULL)\\n#2 \\\/var\\\/www\\\/html\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(160): call_user_func_array(Array, Array)\\n#3 \\\/var\\\/www\\\/html\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(90): OC\\\\AppFramework\\\\Http\\\\Dispatcher->executeController(Object(OCA\\\\TwoFactorTOTP\\\\Controller\\\\SettingsController), 'enable')\\n#4 \\\/var\\\/www\\\/html\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/App.php(114): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch(Object(OCA\\\\TwoFactorTOTP\\\\Controller\\\\SettingsController), 'enable')\\n#5 \\\/var\\\/www\\\/html\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/Routing\\\/RouteActionHandler.php(47): OC\\\\AppFramework\\\\App::main('OCA\\\\\\\\TwoFactorTO...', 'enable', Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer), Array)\\n#6 [internal function]: OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler->__invoke(Array)\\n#7 \\\/var\\\/www\\\/html\\\/nextcloud\\\/lib\\\/private\\\/Route\\\/Router.php(297): call_user_func(Object(OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler), Array)\\n#8 \\\/var\\\/www\\\/html\\\/nextcloud\\\/lib\\\/base.php(1004): OC\\\\Route\\\\Router->match('\\\/apps\\\/twofactor...')\\n#9 \\\/var\\\/www\\\/html\\\/nextcloud\\\/index.php(40): OC::handleRequest()\\n#10 {main}\",\"File\":\"\\\/var\\\/www\\\/html\\\/nextcloud\\\/apps\\\/twofactor_totp\\\/lib\\\/Service\\\/Totp.php\",\"Line\":75}","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko\/20100101 Firefox\/55.0","version":"13.0.0.3"}

@ChristophWurst
Copy link
Member

this is undefined

Try adding var _this = this; after https://github.com/nextcloud/twofactor_totp/blob/master/js/settingsview.js#L206 and change this to _this in the promise callback.

@hanzei
Copy link

hanzei commented Aug 23, 2017

Try adding var _this = this; after https://github.com/nextcloud/twofactor_totp/blob/master/js/settingsview.js#L206 and change this to _this in the promise callback.

This sadly didn't fix the problem

@Maikewng
Copy link

I've began to encounter the same problem as soon as I disabled some default apps that come pre-activated with the nextcloud tarball. Before that, TOTP was working without any issue. Maybe there's some kind of app-dependence?
I'm using Nextcloud 13 on Raspbian, let me know how I can help.

@ChristophWurst
Copy link
Member

I've began to encounter the same problem as soon as I disabled some default apps that come pre-activated with the nextcloud tarball. Before that, TOTP was working without any issue. Maybe there's some kind of app-dependence?

It would help a lot to know which specific apps you've disabled.

@Maikewng
Copy link

The disabled apps are: Activity, Collaborative Tags, Comments, Federation. Re-enabling them doesn't make it work either.
Unfortunately i don't have any log, since thanks to this issue I just discovered Nextcloud didn't have write permissions to the logfile.

@Maikewng
Copy link

Maikewng commented Mar 10, 2018

Small update: I noticed that while on my laptop (Windows 10 + Firefox 58) login is remembered even without TOTP, on my phone (Android MIUI 9 + Firefox 58) it is not possible to get a persistent login. If I tap on "Stay logged in" it just reloads the login page. It wasn't happening before the TOTP issue (which in turn happened after enabling/disabling the aforementioned apps).

EDIT: I also managed to get the log, but it doesn't say a single thing about TOTP. What can I do more to help?

@powerbridge
Copy link

Hi,

I just installed Nextcloud 13.0.1 and am having this same issue with a fresh install. I have checked my time (and enabled ntp), but the problem remains. When I click on "Enable TOTP," a QR code appears and a spinning icon displays next to "Enable TOTP." I can scan the QR code using Google Authenticator, but when I try to enter a code into the next field it says "Could not verify your key. Please try again."

Does anyone have any update on this issue? Hanzei? StrangeMonkey? ChristophWurst, I'm happy to run any tests you can think of.

@powerbridge
Copy link

I just installed Nextcloud (v13.0.1) from the tarball in a new Ubuntu VM, installed the Two Factor TOTP Provider (v1.4.1) and am still having the same issues I described above. If there's anything I can do to help troubleshoot, I'd be glad to do it.

@zoide
Copy link

zoide commented Mar 20, 2018

Same thing here :( I've tried all OTP Android clients that are available. None of them do.

@zoide
Copy link

zoide commented Mar 20, 2018

ah, I have only LDAP-Accounts, the one you just got, Christoph is a local/internal one.

@powerbridge
Copy link

I'm getting nothing in the console and only 200 status codes in the network tab as well. I just tested this with Edge and Chrome in Windows 10, but I have the same issue I have with Safari, Chrome and Firefox on the Mac side.

Christoph, I'm really at a loss as to how you enabled this for the account I setup for you. Did you leave 2FA enabled? I only ask because I tried to login as you to reproduce and I could get in without 2FA.

I have LDAP setup as well, but the account I created for Christoph was a local admin account.

Finally, I tried scanning the QR code using FreeOTP. Like Google Authenticator, it scans and provides me with codes, but the spinning circle (that was previously the "Enable TOTP" checkbox) never goes away, and if I refresh the page, it goes back to the unchecked "Enable TOTP" checkbox.

@ChristophWurst
Copy link
Member

Christoph, I'm really at a loss as to how you enabled this for the account I setup for you. Did you leave 2FA enabled? I only ask because I tried to login as you to reproduce and I could get in without 2FA.

I disabled it 😉

@Maikewng
Copy link

@ChristophWurst you also have a test account on my instance if necessary. Check your mail.

@ChristophWurst
Copy link
Member

So on @zoide's account I can see that the web interface sends a request with {key: xxx, state: 2} which indicates that it wants to finish the setup. The response is {state: 1} (disabled), so the verification fails. The only code path that leads to this response is here and here. I'm out of ideas on how to debug this without having access to the server. Too bad I cannot reproduce this locally, because there I could attach a debugger and step through the code.

@ChristophWurst
Copy link
Member

@Maikewng FYI the credentials you've sent are invalid. I cannot log into your instance.

@ChristophWurst
Copy link
Member

… sends a request with {key: xxx, state: 2} which indicates that it wants to finish the setup. The response is {state: 1} (disabled) …

FTR, these are the states:

const STATE_DISABLED = 0;
const STATE_CREATED = 1;
const STATE_ENABLED = 2;

Hence the requests/responses are OK. We just have to find out why the submitted code is considered wrong by the OTP library.

@Maikewng
Copy link

My bad, I fixed it now.

@ChristophWurst
Copy link
Member

Hooray, was able to set up TOTP on @Maikewng's account as well, so yours and @powerbridge's instances work for me, while @zoide's doesn't. This is weird.

@Maikewng
Copy link

How did you accomplish it @ChristophWurst? Now I managed to set it up on my account as well, is it normal that the checkbox keeps circling until I verify the QRcode with the app?

@ChristophWurst
Copy link
Member

Just to be sure we're not working with wrongly set up instances here: are these three instances based on the official tarball/zip and was the app installed via the app settings on the web interface?

@ChristophWurst
Copy link
Member

How did you accomplish it @ChristophWurst? Now I managed to set it up on my account as well, is it normal that the checkbox keeps circling until I verify the QRcode with the app?

Yes, because without confirmation, the app won't ask for the TOTP on login as otherwise an interrupted setup process would lock you out of your account. Therefore the three states: disabled, created and enabled.

@powerbridge
Copy link

Yes, indeed. I used the official tarball/zip and installed the app via the web interface.

@Maikewng
Copy link

I confirm I used the official 13 tarball and installed all the apps through the integrated app store.

@powerbridge
Copy link

I got it working, thanks Christoph and Maikewng. I had the same problem as Maikewng. I had to enable TOTP, scan the QR code, enter a test code and, after my second attempt at this, 2FA is now working.

Thanks everyone!

@ChristophWurst
Copy link
Member

Thanks for confirming, @Maikewng, @powerbridge.

So what's left is @zoide's instance. That's the one where I can definitely reproduce the bug. Please fill out this issue template so that I can get a better understanding of how you set up your Nextcloud.

@Maikewng
Copy link

Just want one thing to be clear. I don't know what Christoph did, but previously while trying to enable the TOTP authentication by scanning the QR code and inserting the generated number was leading just to an error and the inability to enable it.
So I don't know how you managed, but I'm never going to disable it again :D

@ChristophWurst
Copy link
Member

Just want one thing to be clear. I don't know what Christoph did, but previously while trying to enable the TOTP authentication by scanning the QR code and inserting the generated number was leading just to an error and the inability to enable it.
So I don't know how you managed, but I'm never going to disable it again :D

Karma 😜

@ei8fdb
Copy link

ei8fdb commented Mar 20, 2018

Hi there,

I've also got this issue. I've updated last night to Version: 12.0.5 - production.

I've created a short video to show the installation process (from the "app store"), enabling the app, and entering 2 codes - both of which can't be "verified".

The video can be seen here:

https://nuboso.ei8fdb.org/owncloud/index.php/s/96Sc7NdoOJmkPib

The share will expire in 24 hours.

@ChristophWurst Do you need any more information to help with this?

I'm using andOTP app on Android, if that helps.

@ChristophWurst
Copy link
Member

Thanks for the screencast. That's more or less what I've observed on @zoide's instance, except that yours is a bit outdated (nextcloud 13.0.1 and totp 1.4.1 are our latest releases).

@ei8fdb please check the file integrity warning and tell me which files fail the integrity check.

@ei8fdb
Copy link

ei8fdb commented Mar 20, 2018

@ChristophWurst I'm behind on my Nextcloud version as I prefer to be a version behind. Regarding the totp app, I downloaded it from the appstore. I guess it's behind as I'm on Nextcloud 12, not 13?

The file integrity check warning is:

  • ownbackup
    • EXCEPTION
      • OC\IntegrityCheck\Exceptions\InvalidSignatureException
      • Certificate is not valid.

I'll fix that seperately.

Is there anything else I can provide you? Have you got any ideas on where the issue is?

@ChristophWurst
Copy link
Member

Please fill out this issue template so that I can get a better understanding of how you set up your Nextcloud. I'm running out of ideas.

@zoide
Copy link

zoide commented Mar 21, 2018

Steps to reproduce

  1. Log in, Go to security and "Enable TOTP"
  2. Open up your TOTP app on the Android phone
  3. Scan the QR-Code
  4. Enter the generated Code and hit "verify"

Expected behaviour

The TOTP should be enabled

Actual behaviour

"Coud not verify your key. Please try again" - message from system
"Enable TOTP" checkbox spinning indefinetly

Server configuration

Operating system:
Linux uncle01 3.16.0-5-amd64 #1 SMP Debian 3.16.51-3+deb8u1 (2018-01-08) x86_64 GNU/Linux

Distributor ID: Debian
Description: Debian GNU/Linux 8.10 (jessie)
Release: 8.10
Codename: jessie

Web server:
nginx 1.13.0
behing and 'nginx 1.13.0' proxy which also does SSL-Terminus

Database:
postgresql-9.4 9.4.15-0+deb8u1

PHP version:
php7.0-fpm 7.0.15-1

Nextcloud version: (see Nextcloud admin page)
13.0.0.14

Updated from an older Nextcloud/ownCloud or fresh install:
Yes, from owncloud -> nextcloud 10 (I think) and then all the in-betweens

Where did you install Nextcloud from:
Official tar.gz

Signing status:

Signing status
No errors have been found.

List of activated apps:

App list
 - activity: 2.6.1
  - audioplayer: 2.2.5
  - bruteforcesettings: 1.0.3
  - calendar: 1.6.1
  - caniupdate: 0.1.2
  - comments: 1.3.0
  - contacts: 2.1.2
  - dav: 1.4.6
  - encryption: 2.0.0
  - federatedfilesharing: 1.3.1
  - federation: 1.3.0
  - files: 1.8.0
  - files_markdown: 2.0.4
  - files_pdfviewer: 1.2.0
  - files_sharing: 1.5.0
  - files_texteditor: 2.5.1
  - files_trashbin: 1.3.0
  - files_versions: 1.6.0
  - files_videoplayer: 1.2.0
  - firstrunwizard: 2.2.1
  - gallery: 18.0.0
  - logreader: 2.0.0
  - lookup_server_connector: 1.1.0
  - mail: 0.7.10
  - news: 12.0.1
  - nextcloud_announcements: 1.2.0
  - notes: 2.3.2
  - notifications: 2.1.2
  - oauth2: 1.1.0
  - password_policy: 1.3.0
  - provisioning_api: 1.3.0
  - qownnotesapi: 17.5.0
  - serverinfo: 1.3.0
  - sharebymail: 1.3.0
  - survey_client: 1.1.0
  - systemtags: 1.3.0
  - tasks: 0.9.6
  - theming: 1.4.1
  - twofactor_backupcodes: 1.2.3
  - twofactor_totp: 1.4.1
  - updatenotification: 1.3.0
  - user_ldap: 1.3.1
  - workflowengine: 1.3.0

Nextcloud configuration:

Config report
{
    "system": {
        "version": "13.0.0.14",
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "XXXXXXX.xxXXXX.xXXXX",
            "XXXXX.xXXXXX.xxXXX",
            "XXXX.XXXX.XXXX"
        ],
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "forwarded_for_headers": [
            "HTTP_X_FORWARDED_FOR"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "pgsql",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "theme": "",
        "loglevel": 3,
        "logfile": "\/var\/log\/nextcloud\/nextcloud.log",
        "debug": false,
        "maintenance": false,
        "secret": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "overwrite.cli.url": "https:\/\/uncle.maketank.net",
        "logtimezone": "UTC",
        "singleuser": false,
        "ldapIgnoreNamingRules": false,
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379,
            "dbindex": 3
        },
        "ldapProviderFactory": "\\OCA\\User_LDAP\\LDAPProviderFactory",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "php",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "updater.release.channel": "production",
        "updater.secret": "***REMOVED SENSITIVE VALUE***",
        "enable_previews": true,
        "enabledPreviewProviders": [
            "OC\\Preview\\PNG",
            "OC\\Preview\\JPEG",
            "OC\\Preview\\GIF",
            "OC\\Preview\\BMP",
            "OC\\Preview\\XBitmap",
            "OC\\Preview\\MP3",
            "OC\\Preview\\TXT",
            "OC\\Preview\\MarkDown"
        ]
    }
}

Are you using external storage, if yes which one: local/smb/sftp/...
no

Are you using encryption: yes/no
yes

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
LDAP

LDAP configuration (delete this part if not used)

LDAP config
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------+
| Configuration                 |                                                                                                                               |
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------+
| hasMemberOfFilterSupport      | 1                                                                                                                             |
| hasPagedResultSupport         |                                                                                                                               |
| homeFolderNamingRule          |                                                                                                                               |
| lastJpegPhotoLookup           | 0                                                                                                                             |
| ldapAgentName                 | XXXXXXXXXXXXXXXXXXXXXXx                                                                                    |
| ldapAgentPassword             | ***                                                                                                                           |
| ldapAttributesForGroupSearch  |                                                                                                                               |
| ldapAttributesForUserSearch   |                                                                                                                               |
| ldapBackupHost                | XXXXXXXXXXXXXXXX
| ldapBackupPort                | 389                                                                                                                           |
| ldapBase                      | XXXXXXXXXXXXXXXXxx                                                                                                            |
| ldapBaseGroups                | ou=groups,dc=XXXXXXXXXXXXXXXXXXXX
| ldapBaseUsers                 | ou=people,dc=XXXXXXXXXXXX
| ldapCacheTTL                  | 300                                                                                                                           |
| ldapConfigurationActive       | 1                                                                                                                             |
| ldapDefaultPPolicyDN          |                                                                                                                               |
| ldapDynamicGroupMemberURL     |                                                                                                                               |
| ldapEmailAttribute            | mail                                                                                                                          |
| ldapExperiencedAdmin          | 1                                                                                                                             |
| ldapExpertUUIDGroupAttr       |                                                                                                                               |
| ldapExpertUUIDUserAttr        |                                                                                                                               |
| ldapExpertUsernameAttr        |                                                                                                                               |
| ldapGidNumber                 | gidNumber                                                                                                                     |
| ldapGroupDisplayName          | cn                                                                                                                            |
| ldapGroupFilter               | (&(objectclass=gosaGroupOfNames))                                                                                             |
| ldapGroupFilterGroups         |                                                                                                                               |
| ldapGroupFilterMode           | 0                                                                                                                             |
| ldapGroupFilterObjectclass    |                                                                                                                               |
| ldapGroupMemberAssocAttr      | member                                                                                                                        |
| ldapHost                      | XXXXXXXXXXXxxx                                                                                                                |
| ldapIgnoreNamingRules         |                                                                                                                               |
| ldapLoginFilter               | (&(&(&(objectclass=gosaAccount)(|(uid=%uid)(mail=%uid)(cn=%uid)))(|(memberof=cn=XXXXXXX,ou=groups,dc=XXXXXXXXXXXXXXXXXXXX)))) |
| ldapLoginFilterAttributes     |                                                                                                                               |
| ldapLoginFilterEmail          | 0                                                                                                                             |
| ldapLoginFilterMode           | 0                                                                                                                             |
| ldapLoginFilterUsername       | 1                                                                                                                             |
| ldapNestedGroups              | 0                                                                                                                             |
| ldapOverrideMainServer        |                                                                                                                               |
| ldapPagingSize                | 50                                                                                                                            |
| ldapPort                      | 389                                                                                                                           |
| ldapQuotaAttribute            | owncloudQuota                                                                                                                 |
| ldapQuotaDefault              | 1073741824                                                                                                                    |
| ldapTLS                       | 0                                                                                                                             |
| ldapUserDisplayName           | cn                                                                                                                            |
| ldapUserDisplayName2          |                                                                                                                               |
| ldapUserFilter                | (&(objectclass=owncloud)(memberof=XXXXXXXXXXXXXXXXXXXX))                                              |
| ldapUserFilterGroups          | users                                                                                                                         |
| ldapUserFilterMode            | 1                                                                                                                             |
| ldapUserFilterObjectclass     | gosaAccount                                                                                                                   |
| ldapUuidGroupAttribute        | auto                                                                                                                          |
| ldapUuidUserAttribute         | auto                                                                                                                          |
| turnOffCertCheck              | 0                                                                                                                             |
| turnOnPasswordChange          | 0                                                                                                                             |
| useMemberOfToDetectMembership | 1                                                                                                                             |
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------+


Client configuration

Browser:
Chromium: Version 64.0.3282.119 (Developer Build) built on Debian 9.3, running on Debian 9.4 (64-bit)
Firefox: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0
Operating system:
Distributor ID: Debian
Description: Debian GNU/Linux 9.4 (stretch)
Release: 9.4
Codename: stretch

Logs

Web server error log

Web server error log
Don't see anything of relevance (errors) here.

Nextcloud log (data/nextcloud.log)

Nextcloud log
Also, nothing is logged here, even in "debug" mode.

Browser log

Browser log
Nothing suspicios or nothing at all.

@ChristophWurst
Copy link
Member

@zoide thanks for the system details. Those look good as far as I can tell. Your server and phone clocks are in sync, right? I've never tested it but I think time drifts during the setup cause errors too (people usually notice them when logging in).

@zoide
Copy link

zoide commented Mar 21, 2018

@ChristophWurst Well, that solved it. Interestingly enough, the clock on my phone was about 1 or 2 seconds behind....
Thanks very much for the support.

@ChristophWurst
Copy link
Member

Awesome! Great to hear we could resolve these issues for everyone.

@oggi4711
Copy link

oggi4711 commented May 5, 2018

I have the same issue, that the TOTP checkbox is circling forever and state is not save. independently from the QR code scan...

@ChristophWurst
Copy link
Member

@oggi4711 please file a new ticket and fill out the issue template. Thanks.

@nextcloud nextcloud locked as resolved and limited conversation to collaborators May 7, 2018
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

9 participants