-
Notifications
You must be signed in to change notification settings - Fork 147
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
How to configure client for azure #415
Labels
Comments
@mocox |
I'm facing the same issue, any update on this? |
@lukacs-peter we are using it as Singleton in an Azure WebApp and solved the timeout issue like this:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When deployed to Azure app service the client disconnects after a period of idleness.
I saw something that need to keepsockeralive but it is read only in your code and i cant seem to find a way to get it to work on azure.
Anyone know how to configure this?
I have tried in code to connect again of it has disconnected but it just throws and error again.
Neo4j.Driver.ServiceUnavailableException: Failed after retried for 2 times in 30000 ms. Make sure that your database is online and retry again.
---> System.AggregateException: One or more errors occurred. (Failed to connect to any routing server. Please make sure that the cluster is up and can be accessed by the driver and retry.) (Failed to connect to any routing server. Please make sure that the cluster is up and can be accessed by the driver and retry.)
---> Neo4j.Driver.ServiceUnavailableException: Failed to connect to any routing server. Please make sure that the cluster is up and can be accessed by the driver and retry.
at Neo4j.Driver.Internal.Routing.RoutingTableManager.UpdateRoutingTableAsync(AccessMode mode, String database, Bookmark bookmark)
at Neo4j.Driver.Internal.Routing.RoutingTableManager.EnsureRoutingTableForModeAsync(AccessMode mode, String database, Bookmark bookmark)
at Neo4j.Driver.Internal.Routing.LoadBalancer.AcquireConnectionAsync(AccessMode mode, String database, Bookmark bookmark)
at Neo4j.Driver.Internal.Routing.LoadBalancer.AcquireAsync(AccessMode mode, String database, Bookmark bookmark)
at Neo4j.Driver.Internal.AsyncSession.BeginTransactionWithoutLoggingAsync(AccessMode mode, Action
1 action, Boolean disposeUnconsumedSessionResult) at Neo4j.Driver.Internal.AsyncSession.<>c__DisplayClass37_0
1.<b__1>d.MoveNext()--- End of stack trace from previous location ---
at Neo4j.Driver.Internal.AsyncRetryLogic.RetryAsync[T](Func
1 runTxAsyncFunc) --- End of inner exception stack trace --- ---> (Inner Exception #1) Neo4j.Driver.ServiceUnavailableException: Failed to connect to any routing server. Please make sure that the cluster is up and can be accessed by the driver and retry. at Neo4j.Driver.Internal.Routing.RoutingTableManager.UpdateRoutingTableAsync(AccessMode mode, String database, Bookmark bookmark) at Neo4j.Driver.Internal.Routing.RoutingTableManager.EnsureRoutingTableForModeAsync(AccessMode mode, String database, Bookmark bookmark) at Neo4j.Driver.Internal.Routing.LoadBalancer.AcquireConnectionAsync(AccessMode mode, String database, Bookmark bookmark) at Neo4j.Driver.Internal.Routing.LoadBalancer.AcquireAsync(AccessMode mode, String database, Bookmark bookmark) at Neo4j.Driver.Internal.AsyncSession.BeginTransactionWithoutLoggingAsync(AccessMode mode, Action
1 action, Boolean disposeUnconsumedSessionResult)at Neo4j.Driver.Internal.AsyncSession.<>c__DisplayClass37_0
1.<<RunTransactionAsync>b__1>d.MoveNext() --- End of stack trace from previous location --- at Neo4j.Driver.Internal.AsyncRetryLogic.RetryAsync[T](Func
1 runTxAsyncFunc)<------ End of inner exception stack trace ---
at Neo4j.Driver.Internal.AsyncRetryLogic.RetryAsync[T](Func
1 runTxAsyncFunc) at Neo4j.Driver.Internal.AsyncSession.<>c__DisplayClass37_0
1.<b__0>d.MoveNext()--- End of stack trace from previous location ---
at Neo4j.Driver.Internal.Logging.DriverLoggerUtil.TryExecuteAsync[T](ILogger logger, Func`1 func, String message)
at Neo4jClient.BoltGraphClient.Neo4jClient.IRawGraphClient.ExecuteGetCypherResultsAsync[TResult](CypherQuery query)
at Memgroups.Providers.Neo.AdminRepository.GetGroupCount() in D:\a\1\s\Memgroups.Providers\Neo\AdminRepository.cs:line 54
at Memgroups.Api.Controllers.NeoAdminController.GetEntityCounts() in D:\a\1\s\Memgroups.Api\Controllers\NeoAdminController.cs:line 55
The text was updated successfully, but these errors were encountered: