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

Timeout error while running on SciServer #37

Open
danjruth opened this issue May 30, 2022 · 0 comments
Open

Timeout error while running on SciServer #37

danjruth opened this issue May 30, 2022 · 0 comments

Comments

@danjruth
Copy link

Hi,

I'm trying to run the following code on SciServer:

import numpy as np
from pyJHTDB import libJHTDB

lJHTDB = libJHTDB()
lJHTDB.initialize(exit_on_error=True)
lJHTDB.add_token(r'my-token-here') # commenting this line out does not seem to make a difference

while True:
    
    t = np.random.uniform(0,10.0)
    n_pts = 50
    x = np.random.uniform(0,2*np.pi,size=(n_pts,3))

    vel = lJHTDB.getData(t,point_coords=x.astype(np.float32), getFunction='getVelocity', sinterp='Lag4', tinterp='PCHIPInt')
    print('got velocity successfully')

It'll occasionally make it through the while loop successfully, but hasn't done so more than ~5 times before displaying the following error message:

0: SOAP 1.2 fault: SOAP-ENV:Receiver [no subcode]
"System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.InvalidOperationException: Timeout expired.  The timeout period elapsed prior to obtaining a connection from the pool.  This may have occurred because all pooled connections were in use and max pool size was reached.
   at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
   at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)
   at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
   at System.Data.SqlClient.SqlConnection.Open()
   at TurbulenceService.AuthInfo.LoadUserFromDatabase(String tokenString) in C:\Users\mwang93\Source\Repos\idies\Turbulence\Turbulence\TurbulenceWebServiceLibrary\AuthInfo.cs:line 78
   at TurbulenceService.AuthInfo.VerifyToken(String tokenString, Int32 reqsize) in C:\Users\mwang93\Source\Repos\idies\Turbulence\Turbulence\TurbulenceWebServiceLibrary\AuthInfo.cs:line 49
   at TurbulenceService.TurbulenceService.GetVelocity(String authToken, String dataset, Single time, SpatialInterpolation spatialInterpolation, TemporalInterpolation temporalInterpolation, Point3[] points, String addr) in C:\Users\mwang93\Source\Repos\idies\Turbulence\Turbulence\WebSite\App_Code\WebService.cs:line 82
   --- End of inner exception stack trace ---"

Thank you for any help!

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