Skip to content
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

Failure to connect to postgres on docker[-compose] configuration #375

Open
ktfth opened this issue Sep 17, 2022 · 0 comments
Open

Failure to connect to postgres on docker[-compose] configuration #375

ktfth opened this issue Sep 17, 2022 · 0 comments

Comments

@ktfth
Copy link

ktfth commented Sep 17, 2022

Running with this issue to up the project on local machine, Windows 11, someone call help me?

nbxplorer-nbxplorer-1 | Unhandled exception. Npgsql.NpgsqlException (0x80004005): Failed to connect to 127.0.0.1:39383
nbxplorer-nbxplorer-1 | ---> System.Net.Sockets.SocketException (111): Connection refused
nbxplorer-nbxplorer-1 | at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
nbxplorer-nbxplorer-1 | at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
nbxplorer-nbxplorer-1 | at System.Net.Sockets.Socket.g__WaitForConnectWithCancellation|277_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
nbxplorer-nbxplorer-1 | at Npgsql.TaskExtensions.ExecuteWithTimeout(Func2 func, NpgsqlTimeout timeout, CancellationToken cancellationToken) nbxplorer-nbxplorer-1 | at Npgsql.Internal.NpgsqlConnector.ConnectAsync(NpgsqlTimeout timeout, CancellationToken cancellationToken) nbxplorer-nbxplorer-1 | at Npgsql.Internal.NpgsqlConnector.ConnectAsync(NpgsqlTimeout timeout, CancellationToken cancellationToken) nbxplorer-nbxplorer-1 | at Npgsql.Internal.NpgsqlConnector.RawOpen(SslMode sslMode, NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken, Boolean isFirstAttempt) nbxplorer-nbxplorer-1 | at Npgsql.Internal.NpgsqlConnector.<Open>g__OpenCore|191_1(NpgsqlConnector conn, SslMode sslMode, NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken, Boolean isFirstAttempt) nbxplorer-nbxplorer-1 | at Npgsql.Internal.NpgsqlConnector.Open(NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken) nbxplorer-nbxplorer-1 | at Npgsql.ConnectorPool.OpenNewConnector(NpgsqlConnection conn, NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken) nbxplorer-nbxplorer-1 | at Npgsql.ConnectorPool.<Get>g__RentAsync|28_0(NpgsqlConnection conn, NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken) nbxplorer-nbxplorer-1 | at Npgsql.NpgsqlConnection.<Open>g__OpenAsync|45_0(Boolean async, CancellationToken cancellationToken) nbxplorer-nbxplorer-1 | at NBXplorer.Backends.Postgres.DbConnectionFactory.CreateConnection(Action1 action) in /source/NBXplorer/Backends/Postgres/DbConnectionFactory.cs:line 54
nbxplorer-nbxplorer-1 | at NBXplorer.HostedServices.DatabaseSetupHostedService.StartAsync(CancellationToken cancellationToken) in /source/NBXplorer/HostedServices/DatabaseSetupHostedService.cs:line 33
nbxplorer-nbxplorer-1 | at Microsoft.AspNetCore.Hosting.HostedServiceExecutor.ExecuteAsync(Func`2 callback, Boolean throwOnFirstFailure)
nbxplorer-nbxplorer-1 | at Microsoft.AspNetCore.Hosting.WebHost.StartAsync(CancellationToken cancellationToken)
nbxplorer-nbxplorer-1 | at Microsoft.AspNetCore.Hosting.WebHostExtensions.RunAsync(IWebHost host, CancellationToken token, String startupMessage)
nbxplorer-nbxplorer-1 | at Microsoft.AspNetCore.Hosting.WebHostExtensions.RunAsync(IWebHost host, CancellationToken token, String startupMessage)
nbxplorer-nbxplorer-1 | at Microsoft.AspNetCore.Hosting.WebHostExtensions.RunAsync(IWebHost host, CancellationToken token)
nbxplorer-nbxplorer-1 | at Microsoft.AspNetCore.Hosting.WebHostExtensions.Run(IWebHost host)
nbxplorer-nbxplorer-1 | at NBXplorer.Program.Main(String[] args) in /source/NBXplorer/Program.cs:line 60

Appreciate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant