# \[IGN-4437\]Project Library Randomly Not Found

**URL:** <https://forum.inductiveautomation.com/t/ign-4437-project-library-randomly-not-found/67387>\
**Category:** Ignition\
**Tags:** perspective, ignition81\
**Created:** [December 8, 2022, 3:07pm UTC](https://forum.inductiveautomation.com/t/ign-4437-project-library-randomly-not-found/67387 "2022-12-08T15:07:20Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cory\_Lanahan](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cory_lanahan/32/42598_2.png) [@Cory\_Lanahan](https://forum.inductiveautomation.com/u/Cory_Lanahan)\
**Post date:** [December 8, 2022, 3:07pm UTC](https://forum.inductiveautomation.com/t/ign-4437-project-library-randomly-not-found/67387/1 "2022-12-08T15:07:20Z")

</div>

We've seen some instances in the past few months of our Perspective applications having trouble calling library functions when no changes have been made to the project, the logs will just begin having entries stating the scripting path isn't recognized. When this happens we have to open the project and re-save it and this fixes the issue, which means it shouldn't be an actual problem with anything in the library (e.g. syntax errors or actual changes applied to views or the libraries themselves).

I'm wondering if anyone else has seen this? I managed to find [this](https://forum.inductiveautomation.com/t/project-library-file-suddenly-not-found/48113) post on the forums from last year but unfortunately there were no responses. We have seen it roughly 3-4 times for Ignition versions 8.1.14 and 8.1.22. To the best of my knowledge there is no other information in the gateway logs and it doesn't seem to line up with high CPU or memory usage on the host server, but I wouldn't say that with 100% confidence.

Edit: Also worth pointing out that the library that stops being recognized is not consistent, it has been different libraries for different occurrences.

---

<div class="post-metadata">

**Author:** ![Matthew.gaitan](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@Matthew.gaitan](https://forum.inductiveautomation.com/u/Matthew.gaitan)\
**Post date:** [December 8, 2022, 3:36pm UTC](https://forum.inductiveautomation.com/t/ign-4437-project-library-randomly-not-found/67387/2 "2022-12-08T15:36:10Z")

</div>

I've had this issue crop up before.

For me it happens so infrequently that I just restart the gateway and move on with my day. I haven't actually seen it occur in a few months so i thought they might have fixed the issue but apparently not 😕

---

<div class="post-metadata">

**Author:** ![Cory\_Lanahan](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cory_lanahan/32/42598_2.png) [@Cory\_Lanahan](https://forum.inductiveautomation.com/u/Cory_Lanahan)\
**Post date:** [December 8, 2022, 3:42pm UTC](https://forum.inductiveautomation.com/t/ign-4437-project-library-randomly-not-found/67387/3 "2022-12-08T15:42:11Z")

</div>

Thanks for chiming in Matthew. It's not terribly frequent for us either, but doesn't stop it from being an annoyance 😬

---

<div class="post-metadata">

**Author:** ![Matthew.gaitan](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@Matthew.gaitan](https://forum.inductiveautomation.com/u/Matthew.gaitan)\
**Post date:** [December 8, 2022, 3:48pm UTC](https://forum.inductiveautomation.com/t/ign-4437-project-library-randomly-not-found/67387/4 "2022-12-08T15:48:46Z")

</div>

> [@Cory\_Lanahan](#):
>
> doesn't stop it from being an annoyance 😬

haha I wholeheartedly agree.

Do you use project inheritance? IIRC our libraries that were breaking were the ones in the inherited project but i don't 100% remember

---

<div class="post-metadata">

**Author:** ![Cory\_Lanahan](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cory_lanahan/32/42598_2.png) [@Cory\_Lanahan](https://forum.inductiveautomation.com/u/Cory_Lanahan)\
**Post date:** [December 8, 2022, 4:07pm UTC](https://forum.inductiveautomation.com/t/ign-4437-project-library-randomly-not-found/67387/5 "2022-12-08T16:07:44Z")

</div>

Not at the moment, though we will be making a inheritable project soon to house our libraries in. Curious to see if that will make things worse.

---

<div class="post-metadata">

**Author:** ![ASF](https://avatars.discourse-cdn.com/v4/letter/a/c4cdca/32.png) [@ASF](https://forum.inductiveautomation.com/u/ASF)\
**Post date:** [January 11, 2023, 4:51am UTC](https://forum.inductiveautomation.com/t/ign-4437-project-library-randomly-not-found/67387/6 "2023-01-11T04:51:10Z")

</div>

Overnight we upgraded a system from 8.1.18 to 8.1.23. After the upgrade, we have started periodically getting issues where any calls to shared scripts fail with the message "global name 'Shared' is not defined". Restarting the perspective module resolves the problem, and then it reappears a few hours later.

How can I go about troubleshooting this further?

Editing to add: at least some of the time, only certain Perspective sessions display the behaviour. I have two sessions running of the same project, and only one of them is displaying the error. Closing and re-opening that session does not resolve the issue. Eventually all sessions will behave this way and require a restart of the perspective module, but it does not happen on all sessions at once.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [January 11, 2023, 6:49am UTC](https://forum.inductiveautomation.com/t/ign-4437-project-library-randomly-not-found/67387/7 "2023-01-11T06:49:56Z")

</div>

Any insight into the script which is causing the problem?

---

<div class="post-metadata">

**Author:** ![ASF](https://avatars.discourse-cdn.com/v4/letter/a/c4cdca/32.png) [@ASF](https://forum.inductiveautomation.com/u/ASF)\
**Post date:** [January 11, 2023, 9:21pm UTC](https://forum.inductiveautomation.com/t/ign-4437-project-library-randomly-not-found/67387/8 "2023-01-11T21:21:38Z")

</div>

Any script that calls a shared script from the global project fails.

---

<div class="post-metadata">

**Author:** ![Matthew.gaitan](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@Matthew.gaitan](https://forum.inductiveautomation.com/u/Matthew.gaitan)\
**Post date:** [January 11, 2023, 9:33pm UTC](https://forum.inductiveautomation.com/t/ign-4437-project-library-randomly-not-found/67387/9 "2023-01-11T21:33:17Z")

</div>

> [@\[IGN-4437\]Project Library Randomly Not Found](https://forum.inductiveautomation.com/t/project-library-randomly-not-found/67387):
>
> We've seen some instances in the past few months of our Perspective applications having trouble calling library functions when no changes have been made to the project, the logs will just begin having entries stating the scripting path isn't recognized. When this happens we have to open the project and re-save it and this fixes the issue, which means it shouldn't be an actual problem with anything in the library (e.g. syntax errors or actual changes applied to views or the libraries themselves). …

> [@Project Library file suddenly not found?](https://forum.inductiveautomation.com/t/project-library-file-suddenly-not-found/48113):
>
> We experienced a strange error yesterday where all of a sudden our we received a overlay error in our production system. Upon investigating my team mate stated that there was a error where the system complained that it couldn’t find the “OEE class” in the Project Library? Nothing was changed in the system and no one had any Designer sessions opened at the time of the error. I had my team mate open the project up in the designer and just resave it. Miraculously that fixed the error and everything…

A few of us have had this occur.

I personally haven't seen it in a few months, so I actually thought it was fixed. You're on a newer version than I'm on though, so apparently it's still an issue

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 11, 2023, 9:46pm UTC](https://forum.inductiveautomation.com/t/ign-4437-project-library-randomly-not-found/67387/10 "2023-01-11T21:46:19Z")

</div>

Yeah, I suspect there's a (relatively) rare synchronization error or race condition or whatever here that's hard to hit on small systems, but happens relatively often on busier systems, (especially with many developers?). We'll have to try to reproduce in-house, unless someone is able to come up with reliable steps.

---

<div class="post-metadata">

**Author:** ![ASF](https://avatars.discourse-cdn.com/v4/letter/a/c4cdca/32.png) [@ASF](https://forum.inductiveautomation.com/u/ASF)\
**Post date:** [January 11, 2023, 9:48pm UTC](https://forum.inductiveautomation.com/t/ign-4437-project-library-randomly-not-found/67387/11 "2023-01-11T21:48:56Z")

</div>

It is quite a busy system. There were at least 3-4 developers active most of yesterday, each with 1-3 designers open, while this was occurring. And perhaps a dozen sessions open?

Are you aware of anything we can do to resolve it in the meantime other than restarting the perspective module?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 11, 2023, 11:24pm UTC](https://forum.inductiveautomation.com/t/ign-4437-project-library-randomly-not-found/67387/12 "2023-01-11T23:24:54Z")

</div>

Pushing changes to the project may be sufficient to get the scripting system to "restart". Particularly if you make a change to the script library.  
Or you could try changing a file in the `pylib` directory on the gateway, though that will affect _all_ projects, not just one.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 12, 2023, 12:43am UTC](https://forum.inductiveautomation.com/t/ign-4437-project-library-randomly-not-found/67387/13 "2023-01-12T00:43:09Z")

</div>

I've combined these two threads together and added the internal issue we're tracking this as. If anyone is able to provide anything to aid replication, it would be greatly appreciated. You can also contact support if this continues to be a significant issue, which will help raise its prioritization on our backlog.

---

<div class="post-metadata">

**Author:** ![ASF](https://avatars.discourse-cdn.com/v4/letter/a/c4cdca/32.png) [@ASF](https://forum.inductiveautomation.com/u/ASF)\
**Post date:** [January 12, 2023, 10:59pm UTC](https://forum.inductiveautomation.com/t/ign-4437-project-library-randomly-not-found/67387/14 "2023-01-12T22:59:11Z")

</div>

As mentioned before, it definitely seems to happen more often when I (and/or other developers) have multiple designers open. If it's of relevance, most of the developers are using MacOS, the gateway is a linux Docker instance, and the clients are a mixture of Windows PC's running Perspective Workstation, and Windows/Macs running various web browsers (Edge, Chrome, Firefox, Safari)

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 12, 2023, 11:00pm UTC](https://forum.inductiveautomation.com/t/ign-4437-project-library-randomly-not-found/67387/15 "2023-01-12T23:00:23Z")

</div>

Does it manifest as an error on _all_ Perspective sessions (including in the designer?), or just a random one out of the list of open sessions? Or does it only affect the designer?

---

<div class="post-metadata">

**Author:** ![ASF](https://avatars.discourse-cdn.com/v4/letter/a/c4cdca/32.png) [@ASF](https://forum.inductiveautomation.com/u/ASF)\
**Post date:** [January 13, 2023, 1:04am UTC](https://forum.inductiveautomation.com/t/ign-4437-project-library-randomly-not-found/67387/16 "2023-01-13T01:04:59Z")

</div>

> [@ASF](#):
>
> ...only certain Perspective sessions display the behaviour. I have two sessions running of the same project, and only one of them is displaying the error. Closing and re-opening that session does not resolve the issue. Eventually all sessions will behave this way and require a restart of the perspective module, but it does not happen on all sessions at once.

It affects both the designer and sessions running in either web browsers or the Perspective Workstation app, but not consistently. One session will start playing up, a few minutes later another, maybe 20-30 minutes later another will start doing it. If I close the affected session and re-open, it doesn't fix it, but other sessions on other devices remain fine during this time.

---

<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 13, 2023, 1:35am UTC](https://forum.inductiveautomation.com/t/ign-4437-project-library-randomly-not-found/67387/17 "2023-01-13T01:35:17Z")

</div>

> [@ASF](#):
>
> If I close the affected session and re-open, it doesn't fix it, but other sessions on other devices remain fine during this time.

Try clearing cookies after closing a session before re-opening. (This might be a session tracking bug, perhaps in Jetty.)

---

<div class="post-metadata">

**Author:** ![ASF](https://avatars.discourse-cdn.com/v4/letter/a/c4cdca/32.png) [@ASF](https://forum.inductiveautomation.com/u/ASF)\
**Post date:** [January 13, 2023, 1:39am UTC](https://forum.inductiveautomation.com/t/ign-4437-project-library-randomly-not-found/67387/18 "2023-01-13T01:39:40Z")

</div>

I'll give that a try. How do I clear cookies from a Perspective Workstation session?

---

<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 13, 2023, 2:53am UTC](https://forum.inductiveautomation.com/t/ign-4437-project-library-randomly-not-found/67387/19 "2023-01-13T02:53:57Z")

</div>

> [@ASF](#):
>
> clear cookies from a Perspective Workstation session?

I don't know. I was thinking browser sessions.

---

<div class="post-metadata">

**Author:** ![Cory\_Lanahan](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cory_lanahan/32/42598_2.png) [@Cory\_Lanahan](https://forum.inductiveautomation.com/u/Cory_Lanahan)\
**Post date:** [January 13, 2023, 2:31pm UTC](https://forum.inductiveautomation.com/t/ign-4437-project-library-randomly-not-found/67387/20 "2023-01-13T14:31:55Z")

</div>

I can't speak to the designer question, but anytime it crops up for us, it's because the Perspective sessions that the end users are using are failing to behave correctly. So I believe (in my experience) it's been all sessions.

[Next page](https://forum.inductiveautomation.com/t/ign-4437-project-library-randomly-not-found/67387.md?page=2)
