# Do Ignition upgrades change the user-lib?

**URL:** <https://forum.inductiveautomation.com/t/do-ignition-upgrades-change-the-user-lib/79188>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [September 14, 2023, 9:01pm UTC](https://forum.inductiveautomation.com/t/do-ignition-upgrades-change-the-user-lib/79188 "2023-09-14T21:01:35Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![CTrenkamp](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ctrenkamp/32/38440_2.png) [@CTrenkamp](https://forum.inductiveautomation.com/u/CTrenkamp)\
**Post date:** [September 14, 2023, 9:01pm UTC](https://forum.inductiveautomation.com/t/do-ignition-upgrades-change-the-user-lib/79188/1 "2023-09-14T21:01:35Z")

</div>

Do Ignition upgrades change the user-lib? I have multiple plants which we just upgraded and the user-lib lost some pylib modules at some of them.

---

<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:** [September 14, 2023, 9:15pm UTC](https://forum.inductiveautomation.com/t/do-ignition-upgrades-change-the-user-lib/79188/2 "2023-09-14T21:15:43Z")

</div>

The user-lib you get from the base install is wiped when you restore a gateway backup; that is, whatever is in the gateway backup "wins".

---

<div class="post-metadata">

**Author:** ![CTrenkamp](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ctrenkamp/32/38440_2.png) [@CTrenkamp](https://forum.inductiveautomation.com/u/CTrenkamp)\
**Post date:** [September 14, 2023, 9:25pm UTC](https://forum.inductiveautomation.com/t/do-ignition-upgrades-change-the-user-lib/79188/3 "2023-09-14T21:25:06Z")

</div>

Ok, so is that true for upgrades where I don't need to restore?

---

<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:** [September 14, 2023, 10:17pm UTC](https://forum.inductiveautomation.com/t/do-ignition-upgrades-change-the-user-lib/79188/4 "2023-09-14T22:17:27Z")

</div>

The installer should not touch the `user-lib/pylib` directory. A properly executed .zip install (see the README in whatever version you're using) also doesn't touch `user-lib/pylib`.

So, either A: it's a bug, or B: someone or something other than Ignition touched these files.

---

<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:** [September 15, 2023, 3:36pm UTC](https://forum.inductiveautomation.com/t/do-ignition-upgrades-change-the-user-lib/79188/5 "2023-09-15T15:36:34Z")

</div>

I may have spoken too soon. We're doing some investigating internally to make sure that we're doing the thing we expect, and that the behavior hasn't changed inadvertently in some recent release.

@CTrenkamp, can you confirm which version(s) you were upgrading from and to? And what mechanism you used to upgrade (the installer, the zip?)

---

<div class="post-metadata">

**Author:** ![CTrenkamp](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ctrenkamp/32/38440_2.png) [@CTrenkamp](https://forum.inductiveautomation.com/u/CTrenkamp)\
**Post date:** [September 16, 2023, 4:05am UTC](https://forum.inductiveautomation.com/t/do-ignition-upgrades-change-the-user-lib/79188/6 "2023-09-16T04:05:01Z")

</div>

We went from 8.1.19 to 8.1.26 on all sites. We used an EAM agent to send the upgrade file and run it.

---

<div class="post-metadata">

**Author:** ![CTrenkamp](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ctrenkamp/32/38440_2.png) [@CTrenkamp](https://forum.inductiveautomation.com/u/CTrenkamp)\
**Post date:** [October 12, 2023, 9:20pm UTC](https://forum.inductiveautomation.com/t/do-ignition-upgrades-change-the-user-lib/79188/7 "2023-10-12T21:20:42Z")

</div>

Any news on this 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:** [October 12, 2023, 10:24pm UTC](https://forum.inductiveautomation.com/t/do-ignition-upgrades-change-the-user-lib/79188/8 "2023-10-12T22:24:49Z")

</div>

So, I was somewhat mistaken in my first impressions. After some internal testing, it looks like:

1. When you upgrade, _bundled libraries_ from the Jython stdlib will be updated if we've updated Jython.
2. User-added libraries that aren't part of the stdlib will be left alone.

It is not our expectation that anything would be _deleted_ outside of a few very specific edge cases that were removed from Jython 2.5 in 7.9 and prior upon upgrade to any Ignition 8.x version running Jython 2.7.

You might want to contact support to get a more formal investigation done.
