-
Notifications
You must be signed in to change notification settings - Fork 269
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
Services keep restarting #167
Comments
You need to check application logs under one of the restarting application Lines 18 to 19 in f1c51a2
If that is the case, you can run
Or you can use run-tye.ps1 which automatically generates the certificates and run the applications. |
create-certificate.ps1 and run-tye.ps1 are powershell formats, hence cannot be executed directly on the Linux/AMD64 AWS instance. However, I tried creating certificate following the below command:
Looking at the error logs above, I am unable to say if certificate is already present or are there any errors. And the services kept restarting on the tye dashboard while executing |
You can also use OpenSSL (or any similar tool) to generate self-signed certificate for linux something like:
It checks the .pfx file located under the |
Thank you for the response. I installed powershell on the ubuntu system and executed Log.txt for “catalog-service” shows the below logs:
May I know, is this the expected behaviour? |
Catalog service is using
Your problem seems like kestrel is failing to bind the address. As I have found in this SO answer, you may try to run it with the admin privillages since it is about permissions. |
Thank you for the response. I worked under the root and now all the services are in the running state, as below: Except the keycloak-seeder service, which isn’t failing, but seems like it did its required job and then exited with code 0. May I know, is this the expected behaviour? Also, proceeding further, I ran the angular app using
Application compiled successfully on the terminal, but nothing is accessible on the localhost:4200, as can be seen below: Since it is the Angular Live Development Server listening on localhost:4200, is the above output justified? |
Keycloak-seeder is a hosted service, if you check its logs that it should seed the initial data successfully. It is normal to exit with code 0. But we may think about removing this dataseeder and move this responsibility to IdentityService if it seems confusing.
localhost:44372 is the WebGateway, you can check the logs of the gateway to see where it makes a request and returns this error. It makes the first request to AdministrationService, so probably you may want to check the logs of the AdministrationService as well and share them so that we can see what the exact problem is. |
I checked both Webgateway and Administration service logs but couldn’t find anything suspicious there. However, in Administration service logs, there is a warning. Please find the same below:
Kindly find the logs below:
|
Hi Team, can you please provide some pointers in the above issue? |
It seems the RabbitMq was not ready or AdministrationService was not able to reach the RabbitMq. Then it seems application was shut down and restarted and then starts working normally as in the logs: 2023-06-13 07:25:36.666 +00:00 [INF] - Volo.Abp.Identity.AbpIdentityHttpApiClientModule
2023-06-13 07:25:36.666 +00:00 [INF] - Volo.Abp.Identity.AbpIdentityApplicationContractsModule
2023-06-13 07:25:36.666 +00:00 [INF] - Volo.Abp.Users.AbpUsersAbstractionModule
2023-06-13 07:25:38.520 +00:00 [DBG] RabbitMQ Queue 'AbpBackgroundJobs.Volo.Abp.Emailing.BackgroundEmailSendingJobArgs' has 0 messages and 0 consumers.
2023-06-13 07:25:40.741 +00:00 [INF] Lock is acquired for db migration and seeding on database named: AdministrationService...
2023-06-13 07:25:54.870 +00:00 [INF] Lock is released for db migration and seeding on database named: AdministrationService...
2023-06-13 07:25:55.503 +00:00 [INF] Initialized all ABP modules.
2023-06-13 07:25:57.707 +00:00 [INF] Now listening on: https://[::]:44353
2023-06-13 07:25:57.717 +00:00 [INF] Application started. Press Ctrl+C to shut down.
2023-06-13 07:25:57.717 +00:00 [INF] Hosting environment: Development
2023-06-13 07:25:57.717 +00:00 [INF] Content root path: /home/ubuntu/eShopOnAbp/services/administration/src/EShopOnAbp.AdministrationService.HttpApi.Host If there is still a problem, please create a new issue since the main issue seems resolved. |
Hi Team,
I am working on the AWS x64 instance. I followed the documents here.
After executing
tye run
, I could see the services running on localhost:8000. However, services keep restarting, as shown below:Documents suggest that it must be ssl certification issue. However, I could not find ssl issue in the logs on tye dashboard.
Also, I ran the angular application using
yarn start
. But, the application shows error on the GUI, as below:Can you please provide pointers on the same.
The text was updated successfully, but these errors were encountered: