Back to forum list… Back to How Do I?...

Good old "failed to acquire semaphore lock or maximum concurrent job count reached" (2 replies)

Arline Welty
4 years ago
Arline Welty 4 years ago

This job, which is a daily invoicing job, did fine for about a year, and now is really struggling. It is meant to run 1x/day and now it fails several times per week with this error:

"failed to acquire semaphore lock or maximum concurrent job count reached"

I've set "Maximum concurrent instances" of the job to = 1 and have rebooted the server. The issue happened today and I checked Task Manager to see if I'd see multiple instances of the Job ID but I didn't see ANY instances of the job id. When I tried to manually invoke the job from the 'scheduling' area, it threw the same error. 

I see earlier posts saying this was being reworked so maybe the issue is less common in later versions. My version is:

 

Realisable.IManWebUI.DLL 4.2.0.0

Product Update: Product Update 4

Config Version: 4.25

DB Version: 4.20

 

 

Any other ideas on what I could address for troubleshooting this?

 

 

 

Snip from error log:

2021-04-19 15:11:48:047 - System.Threading.ThreadAbortException: Thread was being aborted.
at System.Threading.Thread.AbortInternal()
at System.Threading.Thread.Abort(Object stateInfo)
at System.Web.HttpResponse.End()
at System.Web.HttpResponse.Redirect(String url, Boolean endResponse)
at System.Web.HttpResponse.Redirect(String url)
at Realisable.IManWebUI.DesignPage.Page_Load(Object sender, EventArgs e)
Job with ID [ECHOAP_OEINV040] failed to acquire semaphore lock or maximum concurrent job count reached.
Time='04/19/21 15:19:22' App='IManEngine:3.2.100' ADO-version='10.0' Computer='ECHOWMSINT'
Method: Session.AcquireLock
Number: 7004 = &H1B5C = vbObjectError + 2147228508 = ERRMAP_APP_FIRST + 2147223310
Source: HuntERR.Check
Description: Job with ID [ECHOAP_OEINV040] failed to acquire semaphore lock or maximum concurrent job count reached.
Call Stack: Session.AcquireLock() ----------------------------------------------------------------
Call Stack: Session.InitialiseJobSettings() ------------------------------------------------------
Env: lNextNo=0, sSQL={Text}
Value Of sSQL:
'update JOBDETAIL set NEXTNO=61 where JOBID = 'ECHOAP_OEINV040''
Call Stack: Session.Initialise(sJobIdentification='ECHOAP_OEINV040') -----------------------------
Env: sPath='E:\IMan\Config\appconfig.xml'
Call Stack: AppSettings.Initialise(sJobId='ECHOAP_OEINV040', bDataServiceMode=False) ------------
Call Stack: IntManSession.InitialiseSession(sJobId='ECHOAP_OEINV040') ----------------------------
Call Stack: IntManEng.Main() ---------------------------------------------------------------------
Env: sCmd='"ECHOAP_OEINV040"'

Arline Welty
4 years ago
Arline Welty 4 years ago

This happened again today.

At first I thought it was because there were 2 instances of ImanEngInt.exe running. (But without a value in the Command line it's not clear which to kill).

I waited 'till there was just one instance, and tried to run the job. I got the same result.

Any idea why there is nothing in the 'command line' field in Task Manager? I have used that in the past to ID the job that's got multiple threads running.

 

https://www.realisable.co.uk/wp-content/uploads/2021/04/StillLocked.png
Arline Welty
4 years ago
Arline Welty 4 years ago

Following up.

Contact

Realisable Software Ltd provides code-free, cost-effective applications integration solutions for SMEs. Our core IMan product is designed to integrate almost any application with a number of Sage solutions and online payment processors.

Looking to purchase IMan, please see our resellers here.

Realisable Software
Ph: +44 (0) 208 123 1017

Copyright © Realisable. All rights reserved.
Realisable is a registered trademark

Close

Request Demo

Realisable Software Ltd provides code-free, cost-effective applications integration solutions for SMEs. Our core IMan product is designed to integrate almost any application with a number of Sage solutions and online payment processors.

Looking to purchase IMan, please see our resellers here.

Realisable Software
Ph: +44 (0) 208 123 1017

Copyright © Realisable. All rights reserved.
Realisable is a registered trademark

Close

Access Downloads

Realisable Software Ltd provides code-free, cost-effective applications integration solutions for SMEs. Our core IMan product is designed to integrate almost any application with a number of Sage solutions and online payment processors.

Looking to purchase IMan, please see our resellers here.

Realisable Software
Ph: +44 (0) 208 123 1017

Copyright © Realisable. All rights reserved.
Realisable is a registered trademark

Close