# The connection is locked and the client needs to be restarted

**URL:** <https://forum.inductiveautomation.com/t/the-connection-is-locked-and-the-client-needs-to-be-restarted/48533>\
**Category:** Ignition\
**Created:** [July 6, 2021, 3:27pm UTC](https://forum.inductiveautomation.com/t/the-connection-is-locked-and-the-client-needs-to-be-restarted/48533 "2021-07-06T15:27:05Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![FLoudet](https://avatars.discourse-cdn.com/v4/letter/f/898d66/32.png) [@FLoudet](https://forum.inductiveautomation.com/u/FLoudet)\
**Post date:** [July 6, 2021, 3:27pm UTC](https://forum.inductiveautomation.com/t/the-connection-is-locked-and-the-client-needs-to-be-restarted/48533/1 "2021-07-06T15:27:05Z")

</div>

Hello everybody.  
I have problems with one of the scadas that are in the factory, in the gateway there are 3 projects, luckily it only happens in one of them.

When the error occurs, the scada hangs or disconnects, having to close the client and start it without the need to restart the PC.

[Error.txt](https://forum.inductiveautomation.com/uploads/short-url/fywhn2EPdblj9qL8XtBs6ZvmXr3.txt) (35.6 KB)

It is also not specified when it started to happen since it was working for a long time without this problem.  
Regards.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [July 6, 2021, 3:37pm UTC](https://forum.inductiveautomation.com/t/the-connection-is-locked-and-the-client-needs-to-be-restarted/48533/2 "2021-07-06T15:37:12Z")

</div>

Looks like something is hitting the project list gateway API and that is tying up the internal database. What version of Ignition is this?

---

<div class="post-metadata">

**Author:** ![FLoudet](https://avatars.discourse-cdn.com/v4/letter/f/898d66/32.png) [@FLoudet](https://forum.inductiveautomation.com/u/FLoudet)\
**Post date:** [July 6, 2021, 4:03pm UTC](https://forum.inductiveautomation.com/t/the-connection-is-locked-and-the-client-needs-to-be-restarted/48533/3 "2021-07-06T16:03:20Z")

</div>

The version is 7.8.5

Thanks for the reply.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [July 6, 2021, 4:07pm UTC](https://forum.inductiveautomation.com/t/the-connection-is-locked-and-the-client-needs-to-be-restarted/48533/4 "2021-07-06T16:07:34Z")

</div>

I suspect this is a bug, as that API endpoint should be dropping the internal connection before streaming to the consumer.

Unfortunately, that version is end of life.

Which means you probably need to find out what in your deployment is hitting that endpoint and consuming it too slowly (or dropping the connection before complete). And stopping it.

Or upgrading.

---

<div class="post-metadata">

**Author:** ![FLoudet](https://avatars.discourse-cdn.com/v4/letter/f/898d66/32.png) [@FLoudet](https://forum.inductiveautomation.com/u/FLoudet)\
**Post date:** [July 6, 2021, 4:13pm UTC](https://forum.inductiveautomation.com/t/the-connection-is-locked-and-the-client-needs-to-be-restarted/48533/5 "2021-07-06T16:13:19Z")

</div>

In case we decide to update the ignition.  
Do you think it can be solved?  
And what about the functions that change like system.tag.write?

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [July 6, 2021, 4:19pm UTC](https://forum.inductiveautomation.com/t/the-connection-is-locked-and-the-client-needs-to-be-restarted/48533/6 "2021-07-06T16:19:46Z")

</div>

I have legacy code in a 8.0.xx version that still uses system.tag.write. They still exist but aren’t documented in those versions as they want you to move to [system.tag.writeBlocking - Ignition User Manual 8.0 - Ignition Documentation](https://docs.inductiveautomation.com/display/DOC80/system.tag.writeBlocking) as I think it’s more performative. However system.tag.write will still work - I don’t believe any of the underlying mechanism will change.

Of course, with upgrading, you should definitely test it on a test server first if possible.

Your best bet might be to call Ignition at this point though. This sort of error I think will require some knowledge of the code base.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [July 6, 2021, 5:23pm UTC](https://forum.inductiveautomation.com/t/the-connection-is-locked-and-the-client-needs-to-be-restarted/48533/7 "2021-07-06T17:23:00Z")

</div>

> [@bkarabinchak.psi](#):
>
> Of course, with upgrading, you should definitely test it on a test server first if possible.

This. Use the two-hour trial mode as much as you need to prove that the upgrade works.

Consider upgrading to 7.9.17 first, as that will be a smaller change. After getting that working (should be easy), test upgrade from 7.9.17 to 8.1.7. (The vast majority of user testing of upgrades was from various 7.9.x to various 8.y.z. You want to use the best-tested upgrade path.)

---

<div class="post-metadata">

**Author:** ![FLoudet](https://avatars.discourse-cdn.com/v4/letter/f/898d66/32.png) [@FLoudet](https://forum.inductiveautomation.com/u/FLoudet)\
**Post date:** [July 6, 2021, 7:00pm UTC](https://forum.inductiveautomation.com/t/the-connection-is-locked-and-the-client-needs-to-be-restarted/48533/8 "2021-07-06T19:00:24Z")

</div>

> [@bkarabinchak.psi](#):
>
> I have legacy code in a 8.0.xx version that still uses system.tag.write

This is good news for me, one of the projects is big enough to migrate all the functions.

> [@pturmel](#):
>
> > [@bkarabinchak.psi](#):
> >
> > Of course, with upgrading, you should definitely test it on a test server first if possible.
> 
> This. Use the two-hour trial mode as much as you need to prove that the upgrade works.

Unfortunately the testing time would not be enough with 2 hours, the error is not periodic, it can happen once a day or not.

> [@pturmel](#):
>
> Consider upgrading to 7.9.17 first,

We will analyze the possibility of migrating to 7.9.

Thank you both very much.  
If you have any other ideas, I am all ears. 😀

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [July 6, 2021, 7:33pm UTC](https://forum.inductiveautomation.com/t/the-connection-is-locked-and-the-client-needs-to-be-restarted/48533/9 "2021-07-06T19:33:25Z")

</div>

You can reset the two hours as many times as you need fwiw.

---

<div class="post-metadata">

**Author:** ![FLoudet](https://avatars.discourse-cdn.com/v4/letter/f/898d66/32.png) [@FLoudet](https://forum.inductiveautomation.com/u/FLoudet)\
**Post date:** [July 6, 2021, 7:35pm UTC](https://forum.inductiveautomation.com/t/the-connection-is-locked-and-the-client-needs-to-be-restarted/48533/10 "2021-07-06T19:35:55Z")

</div>

Sure, I meant to leave it in continuous.
