Skip to main content
Question

Login error


Has anyone encountered: “Error: An unexpected error occurred invoking “startTwoFactorPipeline” on the server.”?

I have just now. Trying to spin up a local instance for development purposes and am getting this error on initial login. Did you find a solution?


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • June 4, 2024

Hi @myoung were you able to find a solution? Thank you!


  • Freshman I
  • November 6, 2024

I’m also facing this problem, and bumping the thread in the hopes that someone has found a fix. I’ve just created a local development instance, and like @mikezeiser, am encountering this error at initial login.

I think the only thing notable about my instance creation is that ran into the issue described here ( “Login Failed for user 'IIS APPPOOL\DefaultAppPool") https://stackoverflow.com/questions/53726493/app-pool-login-failed-message-in-new-acumatica-version. The solution given in that thread did not work for me, but I followed instructions found here https://learn.microsoft.com/fr-ca/archive/blogs/ericparvin/how-to-add-the-applicationpoolidentity-to-a-sql-server-login to add a SQL Server login for the DefaultAppPool. After that, I was at least able to load the Acumatica login page, but, alas, unable to log in.


brothe58
Freshman II
Forum|alt.badge.img
  • Freshman II
  • November 23, 2024

Same problem as ​@sarahfedco. Even had the same DefaultAppPool issue. Now I’m stuck with the “startTwoFactorPipeline” error. Occurred installing 2024r2 build 4 on a development machine.


brothe58
Freshman II
Forum|alt.badge.img
  • Freshman II
  • November 23, 2024

Update … solved this error by editing the permissions for the system level DefaultAppPool user using SSMS tool for SQL Server. The user needs role membership to: db_data_reader, db_data_writer, and db_ddladmin. Now I can login and reset the default admin user password.

 

 


saifalisabri
Freshman II
Forum|alt.badge.img

My response was crafted with AI assistance, tailored to provide detailed and actionable guidance for your query.

  • Check Two-Factor Authentication Setup:

    • Ensure 2FA is enabled correctly in the system configuration.
    • Verify the user's 2FA settings under their account configuration.
  • Review Server Configuration:

    • The error suggests a potential server-side issue. Check if the 2FA pipeline is correctly configured in the application server or authentication service.
  • Inspect Network or Firewall Settings:

    • Ensure that all required endpoints for 2FA are reachable, especially if the service uses external providers (e.g., Google Authenticator or SMS services).
  • Check Logs:

    • Review the server logs for more detailed error messages. This can help identify if the issue is due to a missing configuration, timeout, or integration problem.
  • Restart Services:

    • If changes were made recently to the authentication settings, a restart of the relevant Acumatica services might resolve the issue.

  • Freshman I
  • November 25, 2024

@brothe58 Well at least I’m not alone! Unfortunately though, I’ve already manually created the IIS APPPOOL\DefaultAppPool login--my settings in SQL Server Management Studio look the same as your screenshot, and I’m getting the “startTwoFactorPipeline” error. You didn’t have to do anything else besides create the login in SSMS?

 


brothe58
Freshman II
Forum|alt.badge.img
  • Freshman II
  • November 25, 2024

@sarahfedco I did end up having to add the db_owner role, too. I’m really not sure why Acumatica is not granting the AppPool MSSQL permissions out of the box. I can’t recommend this setting on a production server, but if it’s your local machine only for development, I feel okay about it.

 


  • Freshman I
  • November 25, 2024

That did the trick! This is indeed a local machine. Thank you so much for taking the time to help!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings