replaysMike / Binner

Open source parts inventory system for makers, electronics hobby, and professional engineers
https://binner.io
GNU General Public License v3.0
268 stars 41 forks source link

[Bug]: Can't make an account on binner.io/swarm #261

Closed kuifie210 closed 6 months ago

kuifie210 commented 6 months ago

Binner version

V2.6.1

Operating System

Linux Ubuntu 22.04.4

Describe the bug and the steps to reproduce it

Follow the link click sign up free account fill in the form and send

after a while I get the following error:

`System.InvalidOperationException Error registering account.An exception occurred of type System.InvalidOperationException An exception has been raised that is likely due to a transient failure. Consider enabling transient error resiliency by adding 'EnableRetryOnFailure' to the 'UseSqlServer' call. Base Exception: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

Api Endpoint: https://binner.io/api/authentication/register

at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func4 operation, Func4 verifySucceeded, CancellationToken cancellationToken) at Binner.Services.AuthenticationService.RegisterNewAccountAsync(RegisterNewAccountRequest request) in C:\projects\binner-io\Binner\Library\Binner.Services\AuthenticationService.cs:line 284 at Binner.Services.AuthenticationService.RegisterNewAccountAsync(RegisterNewAccountRequest request) in C:\projects\binner-io\Binner\Library\Binner.Services\AuthenticationService.cs:line 396 at Binner.Web.Controllers.AuthenticationController.RegisterAsync(RegisterNewAccountRequest request) in C:\projects\binner-io\Binner\Binner.Web\Controllers\AuthenticationController.cs:line 60`

Would you like to attach your appsetings.json configuration?

It is related to the binner.io website

Screenshots or Videos (Optional, but they help!)

No response

Are you able to contribute a PR? (No is ok!)

None

kuifie210 commented 6 months ago

I was able to reproduce this error on Microsoft Edge and Mozilla Firefox webbrowsers

replaysMike commented 6 months ago

Hi @kuifie210 - could you try again? I believe this was due to a server outage yesterday, while we have been transferring backend systems to another provider to increase reliability as it's been too unstable lately.

I was able to create an account, then go to the user menu => Swarm API => Regenerate. That should create you a unique API key for your use.

kuifie210 commented 6 months ago

Hi replaysMike,

Unfortunately the whole website doesn't work at this moment.

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 guidance on diagnosing and handling these errors, visit Troubleshoot ASP.NET Core on Azure App Service and IIS.

When I follow the link the following information is given from Microsoft:

500.30 In-Process Startup Failure

The worker process fails. The app doesn't start.

The [ASP.NET Core Module](https://learn.microsoft.com/nl-nl/aspnet/core/host-and-deploy/aspnet-core-module?view=aspnetcore-8.0) attempts to start the .NET Core CLR in-process, but it fails to start. The cause of a process startup failure can usually be determined from entries in the Application Event Log and the ASP.NET Core Module stdout log.

Common failure conditions:

    The app is misconfigured due to targeting a version of the ASP.NET Core shared framework that isn't present. Check which versions of the ASP.NET Core shared framework are installed on the target machine.
    Using Azure Key Vault, lack of permissions to the Key Vault. Check the access policies in the targeted Key Vault to ensure that the correct permissions are granted.

Could this be happening because I visit the website from Europe? or are you still migrating the website?

replaysMike commented 6 months ago

oh wow, it was up 5 minutes ago. I'm looking into this right now

replaysMike commented 6 months ago

ok it's back up. I forgot to update to the newest IPs from our service provider change this morning, as those didn't make it into git yet. Sorry about that!

kuifie210 commented 6 months ago

It is working like a charm! Thanks for the quick response.

replaysMike commented 6 months ago

No problem! I've added monitoring for Binner so it doesn't go unnoticed again.