# Searching for script executing

**URL:** <https://forum.inductiveautomation.com/t/searching-for-script-executing/100383>\
**Category:** Ignition\
**Tags:** ignition79, scripting, database\
**Created:** [January 2, 2025, 4:00pm UTC](https://forum.inductiveautomation.com/t/searching-for-script-executing/100383 "2025-01-02T16:00:03Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kyle\_Metz](https://avatars.discourse-cdn.com/v4/letter/k/8edcca/32.png) [@Kyle\_Metz](https://forum.inductiveautomation.com/u/Kyle_Metz)\
**Post date:** [January 2, 2025, 4:00pm UTC](https://forum.inductiveautomation.com/t/searching-for-script-executing/100383/1 "2025-01-02T16:00:03Z")

</div>

I have a script running somewhere that is inserting information into a database, I cannot find where the script is located. Iv checked every component in the browser. Is there a way to check what is firing.

---

<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:** [January 2, 2025, 4:04pm UTC](https://forum.inductiveautomation.com/t/searching-for-script-executing/100383/2 "2025-01-02T16:04:17Z")

</div>

Ignition v8.1 has a "Running Scripts" page in the status section. I don't think it existed in v7.9. You will need to get a thread dump and carefully study it. (Non-trivial, sorry.) If you can't figure it out, post the complete thread dump here as an attachment.

There's a possibility that the script is very quick-running, so you may not catch it on a single thread dump.

---

<div class="post-metadata">

**Author:** ![Kyle\_Metz](https://avatars.discourse-cdn.com/v4/letter/k/8edcca/32.png) [@Kyle\_Metz](https://forum.inductiveautomation.com/u/Kyle_Metz)\
**Post date:** [January 2, 2025, 4:18pm UTC](https://forum.inductiveautomation.com/t/searching-for-script-executing/100383/3 "2025-01-02T16:18:08Z")

</div>

Could this be it

```python
Daemon Thread [gateway-scripts-pylib-watcher] id=164, (WAITING)
    waiting for: java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@3b229f8e
    sun.misc.Unsafe.park(Native Method)
    java.util.concurrent.locks.LockSupport.park(Unknown Source)
    java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source)
    java.util.concurrent.LinkedBlockingDeque.takeFirst(Unknown Source)
    java.util.concurrent.LinkedBlockingDeque.take(Unknown Source)
    sun.nio.fs.AbstractWatchService.take(Unknown Source)
    com.inductiveautomation.ignition.gateway.SRContext$ThirdPartyScriptModulesChangeListener.run(SRContext.java:3414)
    java.lang.Thread.run(Unknown Source)

```

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [January 2, 2025, 4:19pm UTC](https://forum.inductiveautomation.com/t/searching-for-script-executing/100383/4 "2025-01-02T16:19:14Z")

</div>

And, it may not be happening in the project you have open. If there are other projects on the gateway, you may want to take a look through those, too.

---

<div class="post-metadata">

**Author:** ![Kyle\_Metz](https://avatars.discourse-cdn.com/v4/letter/k/8edcca/32.png) [@Kyle\_Metz](https://forum.inductiveautomation.com/u/Kyle_Metz)\
**Post date:** [January 2, 2025, 4:20pm UTC](https://forum.inductiveautomation.com/t/searching-for-script-executing/100383/5 "2025-01-02T16:20:28Z")

</div>

only one project on the gateway.

---

<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:** [January 2, 2025, 4:20pm UTC](https://forum.inductiveautomation.com/t/searching-for-script-executing/100383/6 "2025-01-02T16:20:51Z")

</div>

> [@Kyle\_Metz](#):
>
> `gateway-scripts-pylib-watcher`

That is a built in task that monitors your python external libraries for changes. So, no.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [January 2, 2025, 4:26pm UTC](https://forum.inductiveautomation.com/t/searching-for-script-executing/100383/7 "2025-01-02T16:26:27Z")

</div>

You could disable the database connection and see what breaks / errors 🙃

---

<div class="post-metadata">

**Author:** ![Kyle\_Metz](https://avatars.discourse-cdn.com/v4/letter/k/8edcca/32.png) [@Kyle\_Metz](https://forum.inductiveautomation.com/u/Kyle_Metz)\
**Post date:** [January 2, 2025, 4:56pm UTC](https://forum.inductiveautomation.com/t/searching-for-script-executing/100383/8 "2025-01-02T16:56:48Z")

</div>

on that note, its the only thing inserting into that table, could remove that table. Then add another with the same name later. There isn't any critical information in it.
