<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Troubleshooting 2FA login failures in HPE Morpheus Enterprise Software</title>
    <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/troubleshooting-2fa-login-failures/m-p/7247083#M257</link>
    <description>&lt;H1&gt;&lt;A name="troubleshooting-2fa-enabled-users-who-are-unable-to-log-in-to-the-morpheus-ui-1" class="anchor" href="#troubleshooting-2fa-enabled-users-who-are-unable-to-log-in-to-the-morpheus-ui-1"&gt;&lt;/A&gt;Troubleshooting 2FA-enabled users who are unable to log in to the Morpheus UI&lt;/H1&gt;
&lt;P&gt;Outline of a recent support case in which all 2FA users could not log in to the Morpheus UI successfully.&lt;/P&gt;
&lt;H2&gt;&lt;A name="issue-summary-2" class="anchor" href="#issue-summary-2"&gt;&lt;/A&gt;&lt;STRONG&gt;Issue Summary:&lt;/STRONG&gt;&lt;/H2&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Every user with 2FA enabled is unable to log in to morpheus. We are using the default login and have no external identity source configured. Users are seeing the following error in the UI:&lt;/P&gt;
&lt;P&gt;&lt;CODE style="background : #f0f1f2;"&gt;User could not be authenticated. Invalid verification code.&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;In the logs I can see this:&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;2024-04-21_14:04:55.88015 ''[2024-04-21 14:04:55,897] [http-nio-127.0.0.1-8080-exec-5] INFO  c.m.AuditLogService - CEF:0|MorpheusData|Morpheus|7.0.1|security|Failed Login Attempt 1 of 0|cn1=1 cn1Label=User Id src=&amp;lt;ip-address&amp;gt; 
2024-04-21_14:04:55.89813 ''[2024-04-21 14:04:55,906] [http-nio-127.0.0.1-8080-exec-5] ERROR c.b.p.LoginController - Auth Exception: com.bertramlabs.plugins.AccountsException: com.morpheus.BadVerificationCode 
2024-04-21_14:04:55.90671 ''[2024-04-21 14:04:55,906] [http-nio-127.0.0.1-8080-exec-5] ERROR c.b.p.LoginController - Auth Exception: com.bertramlabs.plugins.AccountsException: com.morpheus.BadVerificationCode 
2024-04-21_14:04:55.90672 ''[2024-04-21 14:04:55,907] [http-nio-127.0.0.1-8080-exec-5] INFO  c.m.AuditLogService - CEF:0|MorpheusData|Morpheus|7.0.1|security|User failed to log in|cs1=ueqbal cs1Label=Username src=&amp;lt;ip-address&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;We have already checked the 2FA codes and these are being entered correctly. Pls help&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Since the issue is affecting &lt;STRONG&gt;ALL&lt;/STRONG&gt; users with 2FA enabled, we can rule out bad/expired passwords or mistyped/incorrect 2FA codes. Although, it is important that these are adequately checked (step 1 outlines some basic checks).&lt;/P&gt;
&lt;H2&gt;&lt;A name="troubleshooting-steps-3" class="anchor" href="#troubleshooting-steps-3"&gt;&lt;/A&gt;&lt;STRONG&gt;Troubleshooting Steps:&lt;/STRONG&gt;&lt;/H2&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Basic checks:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The 2fa code is valid - for the morpheus application, 6 digits, and is &lt;STRONG&gt;not&lt;/STRONG&gt; the last successful code or an expired one&lt;/LI&gt;
&lt;LI&gt;The code is entered within the time window of its validity (30 seconds by default)&lt;/LI&gt;
&lt;LI&gt;The authenticator application is generating a different code at each 30s interval&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Can users log in to another application successfully using the same or different authenticator app&lt;/STRONG&gt;?&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;[&lt;IMG src="https://emoji.discourse-cdn.com/twitter/exclamation.png?v=12" title=":exclamation:" class="emoji" alt=":exclamation:" loading="lazy" width="20" height="20" /&gt;IMPORTANT​:exclamation:] Check the NTP service configured on the morpheus service node&lt;/STRONG&gt;. This is a &lt;A href="https://docs.morpheusdata.com/en/latest/getting_started/requirements/requirements.html#base-requirements:~:text=Morpheus%20service%20nodes%20must%20be%20configured%20to%20use%20accurate%20NTP%20servers.%20A%20service%20node%20may%20be%20an%20app%20node%2C%20database%20node%2C%20RabbitMQ%2C%20or%20Elasticsearch%20node%20(see%20Morpheus%20system%20architecture%20details%20further%20on%20in%20the%20installation%20section%20for%20more%20details)"&gt;base requirement&lt;/A&gt; irrespective of the selected architecture (&lt;A href="https://docs.morpheusdata.com/en/latest/getting_started/installation/singleNode/overview.html"&gt;Single-Node&lt;/A&gt; vs &lt;A href="https://docs.morpheusdata.com/en/latest/getting_started/installation/distributed/overview.html"&gt;HA&lt;/A&gt;). For HA environments in particular, &lt;STRONG&gt;it is crucial that the time is correctly synchronised between all nodes in the application stack&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Example below on how to check the NTP service status on Linux using &lt;STRONG&gt;&lt;A href="https://man7.org/linux/man-pages/man1/timedatectl.1.html"&gt;timedatectl&lt;/A&gt;&lt;/STRONG&gt;:&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;     user@app-node-1:~$ timedatectl status
                    Local time: Sun 2024-04-21 14:38:05 UTC
                Universal time: Sun 2024-04-21 14:38:05 UTC
                      RTC time: Sun 2024-04-21 14:38:05
                     Time zone: Etc/UTC (UTC, +0000)
     System clock synchronized: yes
                   NTP service: active
               RTC in local TZ: no
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;UL&gt;
&lt;LI&gt;Is the NTP service &lt;STRONG&gt;inactive&lt;/STRONG&gt;? Is &lt;STRONG&gt;System clock synchronized: no&lt;/STRONG&gt;? If so, this could mean that the NTP service is misconfigured or hasn’t been set up at all. &lt;STRONG&gt;Please contact your internal infrastructure team (IT / Networking) to rectify this&lt;/STRONG&gt; since Morpheus Support are not responsible for the management of the infrastructure components in your environment&lt;/LI&gt;
&lt;/UL&gt;
&lt;H2&gt;&lt;A name="issue-resolution-4" class="anchor" href="#issue-resolution-4"&gt;&lt;/A&gt;Issue Resolution:&lt;/H2&gt;
&lt;UL&gt;
&lt;LI&gt;Corrected issues with the NTP service and clock synchronisation between nodes - node 1’s time had been manually set and ~1 minute ahead of nodes 2 and 3&lt;/LI&gt;
&lt;/UL&gt;
&lt;HR /&gt;
&lt;P&gt;Administrators should follow the instructions &lt;A href="https://support.morpheusdata.com/s/article/All-users-are-locked-out-of-Morpheus?language=en_US"&gt;here&lt;/A&gt; when trying to recover an appliance for which all users are locked out of.&lt;/P&gt;
&lt;P&gt;Feel free to contact &lt;A href="mailto:support@morpheusdata.com"&gt;support@morpheusdata.com&lt;/A&gt; if you are still having issues after running through the troubleshooting steps above.&lt;/P&gt;</description>
    <pubDate>Sun, 21 Apr 2024 21:08:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2024-04-21T21:08:47Z</dc:date>
    <item>
      <title>Troubleshooting 2FA login failures</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/troubleshooting-2fa-login-failures/m-p/7247083#M257</link>
      <description>&lt;H1&gt;&lt;A name="troubleshooting-2fa-enabled-users-who-are-unable-to-log-in-to-the-morpheus-ui-1" class="anchor" href="#troubleshooting-2fa-enabled-users-who-are-unable-to-log-in-to-the-morpheus-ui-1"&gt;&lt;/A&gt;Troubleshooting 2FA-enabled users who are unable to log in to the Morpheus UI&lt;/H1&gt;
&lt;P&gt;Outline of a recent support case in which all 2FA users could not log in to the Morpheus UI successfully.&lt;/P&gt;
&lt;H2&gt;&lt;A name="issue-summary-2" class="anchor" href="#issue-summary-2"&gt;&lt;/A&gt;&lt;STRONG&gt;Issue Summary:&lt;/STRONG&gt;&lt;/H2&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Every user with 2FA enabled is unable to log in to morpheus. We are using the default login and have no external identity source configured. Users are seeing the following error in the UI:&lt;/P&gt;
&lt;P&gt;&lt;CODE style="background : #f0f1f2;"&gt;User could not be authenticated. Invalid verification code.&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;In the logs I can see this:&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;2024-04-21_14:04:55.88015 ''[2024-04-21 14:04:55,897] [http-nio-127.0.0.1-8080-exec-5] INFO  c.m.AuditLogService - CEF:0|MorpheusData|Morpheus|7.0.1|security|Failed Login Attempt 1 of 0|cn1=1 cn1Label=User Id src=&amp;lt;ip-address&amp;gt; 
2024-04-21_14:04:55.89813 ''[2024-04-21 14:04:55,906] [http-nio-127.0.0.1-8080-exec-5] ERROR c.b.p.LoginController - Auth Exception: com.bertramlabs.plugins.AccountsException: com.morpheus.BadVerificationCode 
2024-04-21_14:04:55.90671 ''[2024-04-21 14:04:55,906] [http-nio-127.0.0.1-8080-exec-5] ERROR c.b.p.LoginController - Auth Exception: com.bertramlabs.plugins.AccountsException: com.morpheus.BadVerificationCode 
2024-04-21_14:04:55.90672 ''[2024-04-21 14:04:55,907] [http-nio-127.0.0.1-8080-exec-5] INFO  c.m.AuditLogService - CEF:0|MorpheusData|Morpheus|7.0.1|security|User failed to log in|cs1=ueqbal cs1Label=Username src=&amp;lt;ip-address&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;We have already checked the 2FA codes and these are being entered correctly. Pls help&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Since the issue is affecting &lt;STRONG&gt;ALL&lt;/STRONG&gt; users with 2FA enabled, we can rule out bad/expired passwords or mistyped/incorrect 2FA codes. Although, it is important that these are adequately checked (step 1 outlines some basic checks).&lt;/P&gt;
&lt;H2&gt;&lt;A name="troubleshooting-steps-3" class="anchor" href="#troubleshooting-steps-3"&gt;&lt;/A&gt;&lt;STRONG&gt;Troubleshooting Steps:&lt;/STRONG&gt;&lt;/H2&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Basic checks:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The 2fa code is valid - for the morpheus application, 6 digits, and is &lt;STRONG&gt;not&lt;/STRONG&gt; the last successful code or an expired one&lt;/LI&gt;
&lt;LI&gt;The code is entered within the time window of its validity (30 seconds by default)&lt;/LI&gt;
&lt;LI&gt;The authenticator application is generating a different code at each 30s interval&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Can users log in to another application successfully using the same or different authenticator app&lt;/STRONG&gt;?&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;[&lt;IMG src="https://emoji.discourse-cdn.com/twitter/exclamation.png?v=12" title=":exclamation:" class="emoji" alt=":exclamation:" loading="lazy" width="20" height="20" /&gt;IMPORTANT​:exclamation:] Check the NTP service configured on the morpheus service node&lt;/STRONG&gt;. This is a &lt;A href="https://docs.morpheusdata.com/en/latest/getting_started/requirements/requirements.html#base-requirements:~:text=Morpheus%20service%20nodes%20must%20be%20configured%20to%20use%20accurate%20NTP%20servers.%20A%20service%20node%20may%20be%20an%20app%20node%2C%20database%20node%2C%20RabbitMQ%2C%20or%20Elasticsearch%20node%20(see%20Morpheus%20system%20architecture%20details%20further%20on%20in%20the%20installation%20section%20for%20more%20details)"&gt;base requirement&lt;/A&gt; irrespective of the selected architecture (&lt;A href="https://docs.morpheusdata.com/en/latest/getting_started/installation/singleNode/overview.html"&gt;Single-Node&lt;/A&gt; vs &lt;A href="https://docs.morpheusdata.com/en/latest/getting_started/installation/distributed/overview.html"&gt;HA&lt;/A&gt;). For HA environments in particular, &lt;STRONG&gt;it is crucial that the time is correctly synchronised between all nodes in the application stack&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Example below on how to check the NTP service status on Linux using &lt;STRONG&gt;&lt;A href="https://man7.org/linux/man-pages/man1/timedatectl.1.html"&gt;timedatectl&lt;/A&gt;&lt;/STRONG&gt;:&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;     user@app-node-1:~$ timedatectl status
                    Local time: Sun 2024-04-21 14:38:05 UTC
                Universal time: Sun 2024-04-21 14:38:05 UTC
                      RTC time: Sun 2024-04-21 14:38:05
                     Time zone: Etc/UTC (UTC, +0000)
     System clock synchronized: yes
                   NTP service: active
               RTC in local TZ: no
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;UL&gt;
&lt;LI&gt;Is the NTP service &lt;STRONG&gt;inactive&lt;/STRONG&gt;? Is &lt;STRONG&gt;System clock synchronized: no&lt;/STRONG&gt;? If so, this could mean that the NTP service is misconfigured or hasn’t been set up at all. &lt;STRONG&gt;Please contact your internal infrastructure team (IT / Networking) to rectify this&lt;/STRONG&gt; since Morpheus Support are not responsible for the management of the infrastructure components in your environment&lt;/LI&gt;
&lt;/UL&gt;
&lt;H2&gt;&lt;A name="issue-resolution-4" class="anchor" href="#issue-resolution-4"&gt;&lt;/A&gt;Issue Resolution:&lt;/H2&gt;
&lt;UL&gt;
&lt;LI&gt;Corrected issues with the NTP service and clock synchronisation between nodes - node 1’s time had been manually set and ~1 minute ahead of nodes 2 and 3&lt;/LI&gt;
&lt;/UL&gt;
&lt;HR /&gt;
&lt;P&gt;Administrators should follow the instructions &lt;A href="https://support.morpheusdata.com/s/article/All-users-are-locked-out-of-Morpheus?language=en_US"&gt;here&lt;/A&gt; when trying to recover an appliance for which all users are locked out of.&lt;/P&gt;
&lt;P&gt;Feel free to contact &lt;A href="mailto:support@morpheusdata.com"&gt;support@morpheusdata.com&lt;/A&gt; if you are still having issues after running through the troubleshooting steps above.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Apr 2024 21:08:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/troubleshooting-2fa-login-failures/m-p/7247083#M257</guid>
      <dc:creator />
      <dc:date>2024-04-21T21:08:47Z</dc:date>
    </item>
  </channel>
</rss>

