Starts in:
0 DAY
0 HR
16 MIN
26 SEC
Starts in:
0 D
0 H
16 M
26 S
Open Closed

Cannot get the AuthServer application to run #3394


User avatar
0
justinf created
  • ABP Framework version: v5.3.2
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): Tiered
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

86 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Any error?

  • User Avatar
    0
    justinf created

    hi

    Any error?

    It carries on trying the load the login page. I'll try to grab the error message and paste it here. I'll do that ASAP.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    ok, You can also check the Logs\Logs.txt

  • User Avatar
    0
    justinf created

    HTTP Error 500.30 - ASP.NET Core app failed to start

    Common solutions to this issue: The app failed to start The app started but then stopped The app started but threw an exception during startup

    Troubleshooting steps: Check the system event log for error messages Enable logging the application process' stdout messages Attach a debugger to the application process and inspect

    For more information visit: https://go.microsoft.com/fwlink/?LinkID=2028265

  • User Avatar
    0
    justinf created

    Good morning maliming!

    Over and over again, I am getting the same error message.

    Best Regards,

    Justin

  • User Avatar
    0
    justinf created

    I just want the login page of the AuthServer app to load and be able to login.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Please check the Application Event Logs

    https://www.devtopics.com/how-to-check-the-application-event-log-for-errors/ https://docs.microsoft.com/en-us/aspnet/core/test/troubleshoot-azure-iis?view=aspnetcore-7.0#50030-in-process-startup-failure

  • User Avatar
    0
    justinf created

    I'll follow the steps in those blog but I also have the logs file for the AuthServer app. Can I send it to you please?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi liming.ma@volosoft.com

  • User Avatar
    0
    justinf created

    hi liming.ma@volosoft.com

    I have sent the log file to that email address.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    It seems your app can't connect the Redis and DataBase. Please check your configution.

    ---> StackExchange.Redis.RedisConnectionException: It was not possible to connect to the redis server(s). UnableToConnect on localhost:6379/Interactive, Initializing/NotStarted, last: NONE, origin: BeginConnectAsync, outstanding: 0, last-read: 2s ago, last-write: 2s ago, keep-alive: 60s, state: Connecting, mgr: 10 of 10 available, last-heartbeat: never, global: 10s ago, v: 2.2.4.27433

    [ERR] An error occurred using the connection to database 'Firebird_Administration' on server 'localhost,1434'. 2022-07-08 10:25:56.637 +10:00 [ERR] An exception occurred while iterating over the results of a query for context type 'Firebird.AdministrationService.EntityFrameworkCore.AdministrationServiceDbContext'. Microsoft.Data.SqlClient.SqlException (0x80131904): Connection Timeout Expired. The timeout period elapsed while attempting to consume the pre-login handshake acknowledgement. This could be because the pre-login handshake failed or the server was unable to respond back in time. The duration spent while attempting to connect to this server was - [Pre-Login] initialization=3834; handshake=11250; ---> System.ComponentModel.Win32Exception (258): The wait operation timed out.

  • User Avatar
    0
    justinf created

    hi

    It seems your app can't connect the Redis and DataBase. Please check your configution.

    ---> StackExchange.Redis.RedisConnectionException: It was not possible to connect to the redis server(s). UnableToConnect on localhost:6379/Interactive, Initializing/NotStarted, last: NONE, origin: BeginConnectAsync, outstanding: 0, last-read: 2s ago, last-write: 2s ago, keep-alive: 60s, state: Connecting, mgr: 10 of 10 available, last-heartbeat: never, global: 10s ago, v: 2.2.4.27433

    [ERR] An error occurred using the connection to database 'Firebird_Administration' on server 'localhost,1434'. 2022-07-08 10:25:56.637 +10:00 [ERR] An exception occurred while iterating over the results of a query for context type 'Firebird.AdministrationService.EntityFrameworkCore.AdministrationServiceDbContext'. Microsoft.Data.SqlClient.SqlException (0x80131904): Connection Timeout Expired. The timeout period elapsed while attempting to consume the pre-login handshake acknowledgement. This could be because the pre-login handshake failed or the server was unable to respond back in time. The duration spent while attempting to connect to this server was - [Pre-Login] initialization=3834; handshake=11250;
    ---> System.ComponentModel.Win32Exception (258): The wait operation timed out.

    Could you please help me with that? Connecting to the database when I created a startup application using the free online template was a problem that I have faced already a few weeks ago.

    You can take the time you need. But your help with troubleshooting the connection to Redis and Database is definitely needed,

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Did you migrate the database? Run DbMigrator to migrate and seed the database.

    Is the Redis run correct on localhost:6379?

  • User Avatar
    0
    justinf created

    hi

    Did you migrate the database? Run DbMigrator to migrate and seed the database.

    Is the Redis run correct on localhost:6379?

    Did you migrate the database? Run DbMigrator to migrate and seed the database. <-- That wasn't the instruction I was given on this site:

    https://docs.abp.io/en/commercial/latest/startup-templates/microservice/get-started

    The instructions are:

    1. Run the infrastructure
    2. Run the AuthServer application, not the DBMigrator application

    When I run the DBMigrator application, I get build errors.

    Is the Redis run correct on localhost:6379 <-- Nothing loads when I try to access this URL.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    The etc/docker folder under the main solution contains a up.ps1 file. Execute it to run the necessary infrastructure services:

    What's the output of the up.ps1 command?

    Can you check the docker? docker ps

  • User Avatar
    0
    justinf created

    hi

    The etc/docker folder under the main solution contains a up.ps1 file. Execute it to run the necessary infrastructure services:

    What's the output of the up.ps1 command?

    Can you check the docker? docker ps

    What's the output of the up.ps1 command? <-- The output of the up.ps1 command was pretty lengthy and took several minutes to execute. I didn't save the output of that command.

    Can you check the docker? docker ps <-- Do you want me to run the command at the command line?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Did you install the Docker Windows?

    Run the docker ps after the up.ps1

  • User Avatar
    0
    justinf created

    Did you install the Docker Windows?

    Run the docker ps after the up.ps1

    Did you install the Docker Windows? <-- Yes I have. Here is the output of "docker ps":

    CONTAINER ID   IMAGE      COMMAND                  CREATED      STATUS      PORTS                    NAMES
    66a7ed7ba2c7   postgres   &quot;docker-entrypoint.s…&quot;   3 days ago   Up 3 days   0.0.0.0:5432-&gt;5432/tcp   docker-postgresql-1
    
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    It seems the up.ps1 is not working.

    Try to run these command.

    > cd etc\docker
    > docker network create your-project-name-network
    > docker-compose -f docker-compose.infrastructure.yml -f docker-compose.infrastructure.override.yml up -d > logs.txt
    
  • User Avatar
    0
    justinf created

    It seems the up.ps1 is not working.

    Try to run these command.

    > cd etc\docker 
    > docker network create your-project-name-network 
    > docker-compose -f docker-compose.infrastructure.yml -f docker-compose.infrastructure.override.yml up -d > logs.txt 
    

    That's the response I got after running the second docker command:

    time="2022-07-11T19:33:31+10:00" level=warning msg="Found orphan containers ([docker-postgresql-1]) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up."

  • User Avatar
    0
    justinf created

    [+] Running 7/7

    • Container sql-server-db Running 0.0s
    • Container elasticsearch Running 0.0s
    • Container kibana Running 0.0s
    • Container grafana Running 0.0s
    • Container prometheus Running 0.0s
    • Container rabbitmq Running 0.0s
    • Container redis Running 0.0s

    The list above indicates that the docker services are running,

  • User Avatar
    0
    justinf created

    Good morning Maliming!

    Could you advise on next steps please?

    Best Regards,

    Justin

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    ZOOM doesn't work well for remote checking. Can you try connecting to the databases in docker using the database and Redis client?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer
      redis:
        ports:
          - "6379:6379"
    
      sql-server-db:
        ports:
          - "1434:1433"
        environment:
          SA_PASSWORD: "myPassw0rd"
    
    
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    If possible, you can recreate a new microservice project or try another computer to troubleshoot the environment.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06