"Invalid one time password" when trying to enable two-factor authentication

Hello,

I am self-hosting. My laravel-error log is below.

My issue is this:

  1. I had previously enabled 2FA for my user
  2. It worked fine
  3. In my main browser, I changed it so it would remember my machine (I believe I picked the “forever” option)(i.e. I did this so that it would no longer prompt me for the one-time password)
  4. I continued to log in successfully
  5. I tried to log in via a different browser
  6. I was prompted to enter the “one time password”.
  7. I did this several times but was unsuccessful each time (error message: “invalid one time password”)
  8. I returned to my main browser and disabled the 2FA
  9. I then tried to re-enable it and each time I tried to enter the “one time password”, I get the error message: “invalid one time password”

I am looking for a solution regarding how to re-enable the 2FA.

Thank you.

storage/logs/laravel-error log:
Note: I've changed my IP to 266.266.266.266, my domain to domain.tld, my username to user
Note: there was a SMTP authentication error happening that I since fixed.

[2017-11-22 03:00:57] production.ERROR: ***Swift_RfcComplianceException*** [0] : /home/user/public_html/domain.tld/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/MailboxHeader.php [Line 345] => Address in mailbox given [] does not comply with RFC 2822, 3.6.2.  {"context":"PHP","user_id":1,"account_id":"1","user_name":"System Administrator","method":"POST","url":"https://www.domain.tld/public/users","previous":"https://www.domain.tld/public/users/create","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36","ip":"266.266.266.266","count":1,"is_console":"no","is_api":"no","db_server":"mysql"} []
[2017-11-22 03:01:46] production.ERROR: ***Swift_RfcComplianceException*** [0] : /home/user/public_html/domain.tld/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/MailboxHeader.php [Line 345] => Address in mailbox given [] does not comply with RFC 2822, 3.6.2.  {"context":"PHP","user_id":1,"account_id":"1","user_name":"System Administrator","method":"POST","url":"https://www.domain.tld/public/users","previous":"https://www.domain.tld/public/users/create","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36","ip":"266.266.266.266","count":2,"is_console":"no","is_api":"no","db_server":"mysql"} []
[2017-11-22 15:51:09] production.ERROR: ***Swift_TransportException*** [0] : /home/user/public_html/domain.tld/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php [Line 268] => Connection could not be established with host  [php_network_getaddresses: getaddrinfo failed: Name or service not known #0]  {"context":"PHP","user_id":0,"account_id":0,"user_name":"","method":"POST","url":"https://www.domain.tld/public/recover_password","previous":"https://www.domain.tld/public/recover_password","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36","ip":"266.266.266.266","count":1,"is_console":"no","is_api":"no","db_server":"mysql"} []
[2017-11-22 16:01:33] production.ERROR: ***Swift_TransportException*** [0] : /home/user/public_html/domain.tld/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php [Line 268] => Connection could not be established with host smtp.zoho.com [Connection timed out #110]  {"context":"PHP","user_id":1,"account_id":"1","user_name":"System Administrator","method":"POST","url":"https://www.domain.tld/public/setup","previous":"https://www.domain.tld/public/settings/system_settings","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36","ip":"266.266.266.266","count":2,"is_console":"no","is_api":"no","db_server":"mysql"} []
[2017-11-22 16:02:12] production.ERROR: ***Swift_TransportException*** [0] : /home/user/public_html/domain.tld/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php [Line 268] => Connection could not be established with host smtp.zoho.com [Connection timed out #110]  {"context":"PHP","user_id":1,"account_id":"1","user_name":"System Administrator","method":"POST","url":"https://www.domain.tld/public/setup","previous":"https://www.domain.tld/public/settings/system_settings","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36","ip":"266.266.266.266","count":3,"is_console":"no","is_api":"no","db_server":"mysql"} []
[2017-11-22 21:39:37] production.ERROR: ***Swift_TransportException*** [0] : /home/user/public_html/domain.tld/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php [Line 181] => Failed to authenticate on SMTP server with username "support-ticket@domain.tld" using 2 possible authenticators  {"context":"PHP","user_id":1,"account_id":"1","user_name":"System Administrator","method":"POST","url":"https://www.domain.tld/public/invoices","previous":"https://www.domain.tld/public/invoices/4/clone","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36","ip":"266.266.266.266","count":1,"is_console":"no","is_api":"no","db_server":"mysql"} []
[2017-11-22 21:49:45] production.ERROR: ***Illuminate\Database\Eloquent\ModelNotFoundException*** [0] : /home/user/public_html/domain.tld/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php [Line 303] => No query results for model [App\Models\Invoice].  {"context":"PHP","user_id":2,"account_id":"1","user_name":"Michael Tubbe","method":"GET","url":"https://www.domain.tld/public/invoices/11/edit","previous":"https://www.domain.tld/public/login","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36","ip":"266.266.266.266","count":1,"is_console":"no","is_api":"no","db_server":"mysql"} []
[2017-11-24 01:20:38] production.ERROR: ***Swift_TransportException*** [0] : /home/user/public_html/domain.tld/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php [Line 181] => Failed to authenticate on SMTP server with username "support-ticket@domain.tld" using 2 possible authenticators  {"context":"PHP","user_id":1,"account_id":"1","user_name":"System Administrator","method":"POST","url":"https://www.domain.tld/public/payments","previous":"https://www.domain.tld/public/payments/create/53/11","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36","ip":"266.266.266.266","count":1,"is_console":"no","is_api":"no","db_server":"mysql"} []
[2017-11-25 01:14:02] production.ERROR: ***Swift_TransportException*** [0] : /home/user/public_html/domain.tld/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php [Line 181] => Failed to authenticate on SMTP server with username "support-ticket@domain.tld" using 2 possible authenticators  {"context":"PHP","user_id":1,"account_id":"1","user_name":"System Administrator","method":"PUT","url":"https://www.domain.tld/public/invoices/31","previous":"https://www.domain.tld/public/recurring_invoices/31/edit","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36","ip":"266.266.266.266","count":2,"is_console":"no","is_api":"no","db_server":"mysql"} []
[2017-11-25 01:20:39] production.ERROR: ***Swift_TransportException*** [0] : /home/user/public_html/domain.tld/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php [Line 181] => Failed to authenticate on SMTP server with username "support-ticket@domain.tld" using 2 possible authenticators  {"context":"PHP","user_id":1,"account_id":"1","user_name":"System Administrator","method":"POST","url":"https://www.domain.tld/public/setup","previous":"https://www.domain.tld/public/settings/system_settings","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36","ip":"266.266.266.266","count":3,"is_console":"no","is_api":"no","db_server":"mysql"} []
[2018-01-11 01:32:06] production.ERROR: ***Swift_TransportException*** [0] : /home/user/public_html/domain.tld/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php [Line 181] => Failed to authenticate on SMTP server with username "support-ticket@domain.tld" using 2 possible authenticators  {"context":"PHP","user_id":1,"account_id":"1","user_name":"System Administrator","method":"GET","url":"https://www.domain.tld/public","previous":"https://www.domain.tld/public/settings/system_settings","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36","ip":"266.266.266.266","count":1,"is_console":"yes","is_api":"no","db_server":"mysql"} []
[2018-01-11 01:32:13] production.ERROR: ***Swift_TransportException*** [0] : /home/user/public_html/domain.tld/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php [Line 181] => Failed to authenticate on SMTP server with username "support-ticket@domain.tld" using 2 possible authenticators  {"context":"PHP","user_id":1,"account_id":"1","user_name":"System Administrator","method":"GET","url":"https://www.domain.tld/public","previous":"https://www.domain.tld/public/settings/system_settings","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36","ip":"266.266.266.266","count":2,"is_console":"yes","is_api":"no","db_server":"mysql"} []
[2018-01-11 01:32:13] production.ERROR: ***Swift_TransportException*** [0] : /home/user/public_html/domain.tld/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php [Line 181] => Failed to authenticate on SMTP server with username "support-ticket@domain.tld" using 2 possible authenticators  {"context":"PHP","user_id":1,"account_id":"1","user_name":"System Administrator","method":"GET","url":"https://www.domain.tld/public","previous":"https://www.domain.tld/public/settings/system_settings","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36","ip":"266.266.266.266","count":3,"is_console":"yes","is_api":"no","db_server":"mysql"} []
[2018-01-11 01:32:14] production.ERROR: ***Swift_TransportException*** [0] : /home/user/public_html/domain.tld/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php [Line 181] => Failed to authenticate on SMTP server with username "support-ticket@domain.tld" using 2 possible authenticators  {"context":"PHP","user_id":1,"account_id":"1","user_name":"System Administrator","method":"GET","url":"https://www.domain.tld/public","previous":"https://www.domain.tld/public/settings/system_settings","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36","ip":"266.266.266.266","count":4,"is_console":"yes","is_api":"no","db_server":"mysql"} []
[2018-01-14 01:32:09] production.ERROR: ***Swift_TransportException*** [0] : /home/user/public_html/domain.tld/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php [Line 181] => Failed to authenticate on SMTP server with username "support-ticket@domain.tld" using 2 possible authenticators  {"context":"PHP","user_id":1,"account_id":"1","user_name":"System Administrator","method":"GET","url":"https://www.domain.tld/public","previous":"https://www.domain.tld/public/settings/system_settings","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36","ip":"266.266.266.266","count":1,"is_console":"yes","is_api":"no","db_server":"mysql"} []
[2018-01-14 01:32:09] production.ERROR: ***Swift_TransportException*** [0] : /home/user/public_html/domain.tld/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php [Line 181] => Failed to authenticate on SMTP server with username "support-ticket@domain.tld" using 2 possible authenticators  {"context":"PHP","user_id":1,"account_id":"1","user_name":"System Administrator","method":"GET","url":"https://www.domain.tld/public","previous":"https://www.domain.tld/public/settings/system_settings","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36","ip":"266.266.266.266","count":2,"is_console":"yes","is_api":"no","db_server":"mysql"} []
[2018-01-14 01:32:10] production.ERROR: ***Swift_TransportException*** [0] : /home/user/public_html/domain.tld/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php [Line 181] => Failed to authenticate on SMTP server with username "support-ticket@domain.tld" using 2 possible authenticators  {"context":"PHP","user_id":1,"account_id":"1","user_name":"System Administrator","method":"GET","url":"https://www.domain.tld/public","previous":"https://www.domain.tld/public/settings/system_settings","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36","ip":"266.266.266.266","count":3,"is_console":"yes","is_api":"no","db_server":"mysql"} []
[2018-01-14 02:06:39] production.ERROR: ***Swift_TransportException*** [0] : /home/user/public_html/domain.tld/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php [Line 181] => Failed to authenticate on SMTP server with username "support-ticket@domain.tld" using 2 possible authenticators  {"context":"PHP","user_id":1,"account_id":"1","user_name":"System Administrator","method":"PUT","url":"https://www.domain.tld/public/payments/7","previous":"https://www.domain.tld/public/payments/7/edit","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36","ip":"266.266.266.266","count":1,"is_console":"no","is_api":"no","db_server":"mysql"} []
[2018-01-14 02:07:19] production.ERROR: ***Swift_TransportException*** [0] : /home/user/public_html/domain.tld/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php [Line 181] => Failed to authenticate on SMTP server with username "support-ticket@domain.tld" using 2 possible authenticators  {"context":"PHP","user_id":1,"account_id":"1","user_name":"System Administrator","method":"PUT","url":"https://www.domain.tld/public/payments/13","previous":"https://www.domain.tld/public/payments/13/edit","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36","ip":"266.266.266.266","count":2,"is_console":"no","is_api":"no","db_server":"mysql"} []
[2018-01-23 01:32:09] production.ERROR: ***Swift_TransportException*** [0] : /home/user/public_html/domain.tld/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php [Line 181] => Failed to authenticate on SMTP server with username "support-ticket@domain.tld" using 2 possible authenticators  {"context":"PHP","user_id":1,"account_id":"1","user_name":"System Administrator","method":"GET","url":"https://www.domain.tld/public","previous":"https://www.domain.tld/public/settings/system_settings","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36","ip":"266.266.266.266","count":1,"is_console":"yes","is_api":"no","db_server":"mysql"} []
[2018-01-29 16:19:47] production.ERROR: ***Illuminate\Validation\ValidationException*** [0] : /home/user/public_html/domain.tld/bootstrap/cache/compiled.php [Line 5736] => The given data failed to pass validation.  {"context":"PHP","user_id":0,"account_id":0,"user_name":"","method":"POST","url":"https://www.domain.tld/public/validate_two_factor/ITsuUa7peBFG5Q5YmpzQPlg2BssWyGB6","previous":"https://www.domain.tld/public/validate_two_factor/ITsuUa7peBFG5Q5YmpzQPlg2BssWyGB6","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.119 Safari/537.36","ip":"266.266.266.266","count":1,"is_console":"no","is_api":"no","db_server":"mysql"} []
[2018-01-29 16:28:55] production.ERROR: ***Swift_TransportException*** [0] : /home/user/public_html/domain.tld/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php [Line 181] => Failed to authenticate on SMTP server with username "support-ticket@domain.tld" using 2 possible authenticators  {"context":"PHP","user_id":1,"account_id":"1","user_name":"System Administrator","method":"PUT","url":"https://www.domain.tld/public/invoices/47","previous":"https://www.domain.tld/public/invoices/47/edit","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.119 Safari/537.36","ip":"266.266.266.266","count":3,"is_console":"no","is_api":"no","db_server":"mysql"} []
[2018-01-31 15:49:05] production.ERROR: ***Illuminate\Validation\ValidationException*** [0] : /home/user/public_html/domain.tld/bootstrap/cache/compiled.php [Line 5736] => The given data failed to pass validation.  {"context":"PHP","user_id":0,"account_id":0,"user_name":"","method":"POST","url":"https://www.domain.tld/public/validate_two_factor/ITsuUa7peBFG5Q5YmpzQPlg2BssWyGB6","previous":"https://www.domain.tld/public/validate_two_factor/ITsuUa7peBFG5Q5YmpzQPlg2BssWyGB6","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.119 Safari/537.36","ip":"266.266.266.266","count":1,"is_console":"no","is_api":"no","db_server":"mysql"} []
[2018-02-02 01:32:06] production.ERROR: ***Swift_TransportException*** [0] : /home/user/public_html/domain.tld/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php [Line 181] => Failed to authenticate on SMTP server with username "support-ticket@domain.tld" using 2 possible authenticators  {"context":"PHP","user_id":1,"account_id":"1","user_name":"System Administrator","method":"GET","url":"https://www.domain.tld/public","previous":"https://www.domain.tld/public/settings/system_settings","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36","ip":"266.266.266.266","count":1,"is_console":"yes","is_api":"no","db_server":"mysql"} []
[2018-02-02 01:32:10] production.ERROR: ***Swift_TransportException*** [0] : /home/user/public_html/domain.tld/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php [Line 181] => Failed to authenticate on SMTP server with username "support-ticket@domain.tld" using 2 possible authenticators  {"context":"PHP","user_id":1,"account_id":"1","user_name":"System Administrator","method":"GET","url":"https://www.domain.tld/public","previous":"https://www.domain.tld/public/settings/system_settings","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36","ip":"266.266.266.266","count":2,"is_console":"yes","is_api":"no","db_server":"mysql"} []
[2018-02-04 01:31:39] production.ERROR: ***Illuminate\Validation\ValidationException*** [0] : /home/user/public_html/domain.tld/bootstrap/cache/compiled.php [Line 5736] => The given data failed to pass validation.  {"context":"PHP","user_id":0,"account_id":0,"user_name":"","method":"POST","url":"https://www.domain.tld/public/validate_two_factor/ITsuUa7peBFG5Q5YmpzQPlg2BssWyGB6","previous":"https://www.domain.tld/public/validate_two_factor/ITsuUa7peBFG5Q5YmpzQPlg2BssWyGB6","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36","ip":"266.266.266.266","count":1,"is_console":"no","is_api":"no","db_server":"mysql"} []
[2018-02-04 01:51:37] production.ERROR: ***Swift_TransportException*** [0] : /home/user/public_html/domain.tld/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php [Line 181] => Failed to authenticate on SMTP server with username "support-ticket@domain.tld" using 2 possible authenticators  {"context":"PHP","user_id":1,"account_id":"1","user_name":"System Administrator","method":"PUT","url":"https://www.domain.tld/public/invoices/50","previous":"https://www.domain.tld/public/invoices/50/edit","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36","ip":"266.266.266.266","count":1,"is_console":"no","is_api":"no","db_server":"mysql"} []
[2018-02-04 01:54:32] production.ERROR: ***Swift_TransportException*** [0] : /home/user/public_html/domain.tld/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php [Line 181] => Failed to authenticate on SMTP server with username "support-ticket@domain.tld" using 2 possible authenticators  {"context":"PHP","user_id":1,"account_id":"1","user_name":"System Administrator","method":"PUT","url":"https://www.domain.tld/public/invoices/50","previous":"https://www.domain.tld/public/invoices/50/edit","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36","ip":"266.266.266.266","count":2,"is_console":"no","is_api":"no","db_server":"mysql"} []
[2018-02-05 19:49:06] production.ERROR: ***Swift_TransportException*** [0] : /home/user/public_html/domain.tld/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php [Line 181] => Failed to authenticate on SMTP server with username "support-ticket@domain.tld" using 2 possible authenticators  {"context":"PHP","user_id":1,"account_id":"1","user_name":"System Administrator","method":"GET","url":"https://www.domain.tld/public/payment/m3hqr86nkexzuc9tyogurnwykbyj2k75/token/4","previous":"https://www.domain.tld/public/view/m3hqr86nkexzuc9tyogurnwykbyj2k75","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36","ip":"266.266.266.266","count":1,"is_console":"no","is_api":"no","db_server":"mysql"} []
[2018-02-05 19:49:06] production.ERROR: ***Swift_TransportException*** [0] : /home/user/public_html/domain.tld/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php [Line 181] => Failed to authenticate on SMTP server with username "support-ticket@domain.tld" using 2 possible authenticators  {"context":"PHP","user_id":1,"account_id":"1","user_name":"System Administrator","method":"GET","url":"https://www.domain.tld/public/payment/m3hqr86nkexzuc9tyogurnwykbyj2k75/token/4","previous":"https://www.domain.tld/public/view/m3hqr86nkexzuc9tyogurnwykbyj2k75","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36","ip":"266.266.266.266","count":2,"is_console":"no","is_api":"no","db_server":"mysql"} []
[2018-02-05 19:49:06] production.ERROR: ***Swift_TransportException*** [0] : /home/user/public_html/domain.tld/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php [Line 181] => Failed to authenticate on SMTP server with username "support-ticket@domain.tld" using 2 possible authenticators  {"context":"PHP","user_id":1,"account_id":"1","user_name":"System Administrator","method":"GET","url":"https://www.domain.tld/public/payment/m3hqr86nkexzuc9tyogurnwykbyj2k75/token/4","previous":"https://www.domain.tld/public/view/m3hqr86nkexzuc9tyogurnwykbyj2k75","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36","ip":"266.266.266.266","count":3,"is_console":"no","is_api":"no","db_server":"mysql"} []
[2018-02-09 20:40:00] production.ERROR: Uncaught TypeError: Cannot read property 'code' of undefined  {"context":"JavaScript","user_id":1,"account_id":"1","user_name":"System Administrator","method":"GET","url":"https://www.domain.tld/public/payments/17/edit","previous":"https://www.domain.tld/public/payments/17/edit","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36","ip":"266.266.266.266","count":1,"is_console":"no","is_api":"no","db_server":"mysql"} []
[2018-02-09 20:40:22] production.ERROR: Uncaught TypeError: Cannot read property 'code' of undefined  {"context":"JavaScript","user_id":1,"account_id":"1","user_name":"System Administrator","method":"GET","url":"https://www.domain.tld/public/payments/17/edit","previous":"https://www.domain.tld/public/payments/17/edit","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36","ip":"266.266.266.266","count":2,"is_console":"no","is_api":"no","db_server":"mysql"} []
[2018-02-10 01:32:11] production.ERROR: ***Swift_TransportException*** [0] : /home/user/public_html/domain.tld/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php [Line 181] => Failed to authenticate on SMTP server with username "support-ticket@domain.tld" using 2 possible authenticators  {"context":"PHP","user_id":1,"account_id":"1","user_name":"System Administrator","method":"GET","url":"https://www.domain.tld/public","previous":"https://www.domain.tld/public/settings/system_settings","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36","ip":"266.266.266.266","count":1,"is_console":"yes","is_api":"no","db_server":"mysql"} []
[2018-02-10 01:32:11] production.ERROR: ***Swift_TransportException*** [0] : /home/user/public_html/domain.tld/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php [Line 181] => Failed to authenticate on SMTP server with username "support-ticket@domain.tld" using 2 possible authenticators  {"context":"PHP","user_id":1,"account_id":"1","user_name":"System Administrator","method":"GET","url":"https://www.domain.tld/public","previous":"https://www.domain.tld/public/settings/system_settings","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36","ip":"266.266.266.266","count":2,"is_console":"yes","is_api":"no","db_server":"mysql"} []
[2018-02-10 01:32:12] production.ERROR: ***Swift_TransportException*** [0] : /home/user/public_html/domain.tld/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php [Line 181] => Failed to authenticate on SMTP server with username "support-ticket@domain.tld" using 2 possible authenticators  {"context":"PHP","user_id":1,"account_id":"1","user_name":"System Administrator","method":"GET","url":"https://www.domain.tld/public","previous":"https://www.domain.tld/public/settings/system_settings","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36","ip":"266.266.266.266","count":3,"is_console":"yes","is_api":"no","db_server":"mysql"} []
[2018-02-11 01:32:07] production.ERROR: ***Swift_TransportException*** [0] : /home/user/public_html/domain.tld/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php [Line 181] => Failed to authenticate on SMTP server with username "support-ticket@domain.tld" using 2 possible authenticators  {"context":"PHP","user_id":1,"account_id":"1","user_name":"System Administrator","method":"GET","url":"https://www.domain.tld/public","previous":"https://www.domain.tld/public/settings/system_settings","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36","ip":"266.266.266.266","count":1,"is_console":"yes","is_api":"no","db_server":"mysql"} []
[2018-02-15 19:32:51] production.ERROR: ***Swift_TransportException*** [0] : /home/user/public_html/domain.tld/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php [Line 181] => Failed to authenticate on SMTP server with username "support-ticket@domain.tld" using 2 possible authenticators  {"context":"PHP","user_id":1,"account_id":"1","user_name":"System Administrator","method":"PUT","url":"https://www.domain.tld/public/invoices/58","previous":"https://www.domain.tld/public/invoices/58/edit","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safari/537.36","ip":"266.266.266.266","count":1,"is_console":"no","is_api":"no","db_server":"mysql"} []
[2018-02-15 19:33:38] production.ERROR: ***Swift_TransportException*** [0] : /home/user/public_html/domain.tld/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php [Line 181] => Failed to authenticate on SMTP server with username "support-ticket@domain.tld" using 2 possible authenticators  {"context":"PHP","user_id":1,"account_id":"1","user_name":"System Administrator","method":"GET","url":"https://www.domain.tld/public/payment/zf1bh2nh72ck3en11zkkxivgo5z1hkvq/token/5","previous":"https://www.domain.tld/public/view/zf1bh2nh72ck3en11zkkxivgo5z1hkvq","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safari/537.36","ip":"266.266.266.266","count":2,"is_console":"no","is_api":"no","db_server":"mysql"} []
[2018-02-15 19:33:38] production.ERROR: ***Swift_TransportException*** [0] : /home/user/public_html/domain.tld/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php [Line 181] => Failed to authenticate on SMTP server with username "support-ticket@domain.tld" using 2 possible authenticators  {"context":"PHP","user_id":1,"account_id":"1","user_name":"System Administrator","method":"GET","url":"https://www.domain.tld/public/payment/zf1bh2nh72ck3en11zkkxivgo5z1hkvq/token/5","previous":"https://www.domain.tld/public/view/zf1bh2nh72ck3en11zkkxivgo5z1hkvq","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safari/537.36","ip":"266.266.266.266","count":3,"is_console":"no","is_api":"no","db_server":"mysql"} []
[2018-02-15 19:33:39] production.ERROR: ***Swift_TransportException*** [0] : /home/user/public_html/domain.tld/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php [Line 181] => Failed to authenticate on SMTP server with username "support-ticket@domain.tld" using 2 possible authenticators  {"context":"PHP","user_id":1,"account_id":"1","user_name":"System Administrator","method":"GET","url":"https://www.domain.tld/public/payment/zf1bh2nh72ck3en11zkkxivgo5z1hkvq/token/5","previous":"https://www.domain.tld/public/view/zf1bh2nh72ck3en11zkkxivgo5z1hkvq","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safari/537.36","ip":"266.266.266.266","count":4,"is_console":"no","is_api":"no","db_server":"mysql"} []
[2018-02-18 01:32:09] production.ERROR: ***Swift_TransportException*** [0] : /home/user/public_html/domain.tld/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php [Line 181] => Failed to authenticate on SMTP server with username "support-ticket@domain.tld" using 2 possible authenticators  {"context":"PHP","user_id":1,"account_id":"1","user_name":"System Administrator","method":"GET","url":"https://www.domain.tld/public","previous":"https://www.domain.tld/public/settings/system_settings","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36","ip":"266.266.266.266","count":1,"is_console":"yes","is_api":"no","db_server":"mysql"} []
[2018-02-20 01:32:12] production.ERROR: ***Swift_TransportException*** [0] : /home/user/public_html/domain.tld/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php [Line 181] => Failed to authenticate on SMTP server with username "support-ticket@domain.tld" using 2 possible authenticators  {"context":"PHP","user_id":1,"account_id":"1","user_name":"System Administrator","method":"GET","url":"https://www.domain.tld/public","previous":"https://www.domain.tld/public/settings/system_settings","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36","ip":"266.266.266.266","count":1,"is_console":"yes","is_api":"no","db_server":"mysql"} []
[2018-02-20 01:32:13] production.ERROR: ***Swift_TransportException*** [0] : /home/user/public_html/domain.tld/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php [Line 181] => Failed to authenticate on SMTP server with username "support-ticket@domain.tld" using 2 possible authenticators  {"context":"PHP","user_id":1,"account_id":"1","user_name":"System Administrator","method":"GET","url":"https://www.domain.tld/public","previous":"https://www.domain.tld/public/settings/system_settings","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36","ip":"266.266.266.266","count":2,"is_console":"yes","is_api":"no","db_server":"mysql"} []
[2018-02-20 01:32:13] production.ERROR: ***Swift_TransportException*** [0] : /home/user/public_html/domain.tld/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php [Line 181] => Failed to authenticate on SMTP server with username "support-ticket@domain.tld" using 2 possible authenticators  {"context":"PHP","user_id":1,"account_id":"1","user_name":"System Administrator","method":"GET","url":"https://www.domain.tld/public","previous":"https://www.domain.tld/public/settings/system_settings","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36","ip":"266.266.266.266","count":3,"is_console":"yes","is_api":"no","db_server":"mysql"} []
[2018-02-22 02:00:06] production.ERROR: ***Swift_TransportException*** [0] : /home/user/public_html/domain.tld/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php [Line 181] => Failed to authenticate on SMTP server with username "support-ticket@domain.tld" using 2 possible authenticators  {"context":"PHP","user_id":1,"account_id":"1","user_name":"System Administrator","method":"POST","url":"https://www.domain.tld/public/setup","previous":"https://www.domain.tld/public/settings/system_settings","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safari/537.36","ip":"266.266.266.266","count":1,"is_console":"no","is_api":"no","db_server":"mysql"} []

I’m not sure, I’ll try to replicate the problem.

It may help to log out then back in to your first browser.

Also, can you check that both of these fields are empty.

select email, google_2fa_secret, remember_2fa_token from users;

Thanks for your response.

  1. I logged out of both browsers, then back into first browser.
  2. Went through process to enable 2FA; no change.
  3. Ran the SQL you suggested. Noticed there was a value in remember_2fa_token; removed it.
  4. Logged out and in again.
  5. Went through process; no change.
  6. Ran the SQL. No values in google_2fa_secret or remember_2fa_token.

Not sure what to try next.

Thanks for your help.

I’m not sure, I haven’t been able to reproduce the problem.

Note: if you get locked out you can manually disable 2FA by setting the google_2fa_secret/remember_2fa_token fields to null in the database.

Just to confirm… have you made sure to delete the old record from the authenticator app and scan the new barcode?

>> have you made sure to delete the old record from the authenticator app and scan the new barcode?

Yes, I’ve done that each time.

It’s 2:30 AM here. I’ll be offline for the next several hours.

Please feel free to send any further steps or recommendations.

Thanks very much.

Sorry, I’m not sure. Without being able to reproduce the problem it will be hard to fix.

Is there any built-in debugging that I could turn on temporarily?

Is there a specific area I could put my own debugging into?

I appreciate your help.

Here’s where the one time code is checked

https://github.com/invoiceninja/invoiceninja/blob/master/app/Http/Requests/ValidateTwoFactorRequest.php#L29

unfortunately I am locked out with the error message “Invalid one time password”, how to disable 2FA by set the google_2fa_secret null in the database? how to operate the database? I install invoice ninja by docker.

Please don’t post the same question to multiple places.