iTwin / connector-samples

iTwin Connector Samples
MIT License
5 stars 2 forks source link

Error | itwin.pcf | Lock(s) is owned by another briefcase. #45

Closed JasonKroll closed 1 year ago

JasonKroll commented 1 year ago

I am trying to run the json-input tag-elements-connector sample and I get the following error when I run it:

Info | itwin.pcf | Used local iModel at /Users/jasonkroll/Library/Caches/iModelJs/imodels/9c11c378-72ea-4afe-b3be-ac7f0a32c7ea/briefcases/20.bim 
Info | itwin.pcf | Your Connector Job has started 
Info | itwin.pcf | Started Domain Schema Update... 
Error | itwin.pcf | Lock(s) is owned by another briefcase.

My hub config looks like this (values removed):

  const hubArgs = new pcf.HubArgs({
    projectId: "<<myid>>",
    iModelId: "<<myModelId>>",
    clientConfig: {
      clientId: "<<myServiceId>>",
      clientSecret: "<<clientsecret>>",
      scope: "imodels:read imodels:modify itwinjs projects:read projects:modify"
    },
  });

I am using a service app so I don't have a redirectUrl but I have added the clientSecret.

Any ideas?

JasonKroll commented 1 year ago

I discovered that the briefcase was locked by another user in the plantsight dashboard (even though it said there were no locked briefcases in the overview).

After getting the user to release the lock it all worked as suspected.