Error: Db is busy: Profile is already in use by another process #5794
-
we are getting the following error message on IModelHost.startup().
this is a backend only application. Everything runs fine locally on Windows, but when we deploy to AKS is when we are seeing the error. everything after code snipet for starting up IModelHost
we are using the let me know if you require any additional information to help troubleshoot the issue. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 12 replies
-
You cannot have more than one iTwin.js process running at the same time using the same profile directory. You should choose something other than |
Beta Was this translation helpful? Give feedback.
-
If the profile is already in use, it means they are running multiple itwin.js backend processes on the same machine. They must specify a separate profile (as documented here). Likely they don't want multiple processes, in which case they need to find out why they're accidentally spawning multiple. |
Beta Was this translation helpful? Give feedback.
-
@kabentley @pratikshan85 thanks for the quick reply. we did see that note for profile and why is we implemented the os.hostname() to get the Kubernetes pod name so we have ensured that they are unique folder path between the different instances. |
Beta Was this translation helpful? Give feedback.
-
somehow you must be starting more than one process per pod. BTW, if the |
Beta Was this translation helpful? Give feedback.
You cannot have more than one iTwin.js process running at the same time using the same profile directory. You should choose something other than
os.hostname()
to make it unique. See this note.