# Unexpected error during tag startup after upgrade from 8.1.17 to 8.1.31

**URL:** <https://forum.inductiveautomation.com/t/unexpected-error-during-tag-startup-after-upgrade-from-8-1-17-to-8-1-31/78577>\
**Category:** Ignition\
**Created:** [August 30, 2023, 7:18pm UTC](https://forum.inductiveautomation.com/t/unexpected-error-during-tag-startup-after-upgrade-from-8-1-17-to-8-1-31/78577 "2023-08-30T19:18:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![d3h637](https://avatars.discourse-cdn.com/v4/letter/d/13edae/32.png) [@d3h637](https://forum.inductiveautomation.com/u/d3h637)\
**Post date:** [August 30, 2023, 7:18pm UTC](https://forum.inductiveautomation.com/t/unexpected-error-during-tag-startup-after-upgrade-from-8-1-17-to-8-1-31/78577/1 "2023-08-30T19:18:36Z")

</div>

My gateway won't start after upgrading from 8.1.17 to 8.1.31. I get the error below for a lot of tags, which means all my log files are basically the following lines, but for each tag. Note that the error suggests this is a system tag, but this should be a tag in one of my tag providers. How do I fix this? Any ideas what's going on? I did a gateway restore from a backup from yesterday, but it still won't start.

Unexpected error during tag startup. Tag will not function correctly. Path: [System]Simulated/Power Meter/Shark 62

---

<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:** [August 30, 2023, 7:41pm UTC](https://forum.inductiveautomation.com/t/unexpected-error-during-tag-startup-after-upgrade-from-8-1-17-to-8-1-31/78577/2 "2023-08-30T19:41:51Z")

</div>

Can you upload your wrapper.log file?

---

<div class="post-metadata">

**Author:** ![d3h637](https://avatars.discourse-cdn.com/v4/letter/d/13edae/32.png) [@d3h637](https://forum.inductiveautomation.com/u/d3h637)\
**Post date:** [August 30, 2023, 8:17pm UTC](https://forum.inductiveautomation.com/t/unexpected-error-during-tag-startup-after-upgrade-from-8-1-17-to-8-1-31/78577/3 "2023-08-30T20:17:11Z")

</div>

Here's the wrapper.log files.

[wrapper.log](https://forum.inductiveautomation.com/uploads/short-url/7Yupuj4gKdcbeoZERTm0ygRwezP.log) (280.6 KB)  
[wrapper1.log](https://forum.inductiveautomation.com/uploads/short-url/im07jPPyXLNqafxle5uVyh06RKL.log) (7.2 MB)

---

<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:** [August 30, 2023, 8:26pm UTC](https://forum.inductiveautomation.com/t/unexpected-error-during-tag-startup-after-upgrade-from-8-1-17-to-8-1-31/78577/4 "2023-08-30T20:26:39Z")

</div>

The last thing that shows up in these logs is a gateway shutdown. Can you start it again and then zip up all the log files after it fails to start?

---

<div class="post-metadata">

**Author:** ![d3h637](https://avatars.discourse-cdn.com/v4/letter/d/13edae/32.png) [@d3h637](https://forum.inductiveautomation.com/u/d3h637)\
**Post date:** [August 30, 2023, 9:05pm UTC](https://forum.inductiveautomation.com/t/unexpected-error-during-tag-startup-after-upgrade-from-8-1-17-to-8-1-31/78577/5 "2023-08-30T21:05:11Z")

</div>

[wrapper.zip](https://forum.inductiveautomation.com/uploads/short-url/dPbhwXIBWpabW6JBBGzyxfphdi7.zip) (749.7 KB)  
Sorry, I should have thought about zipping them up. Here's the 5 log files in one zip file.

---

<div class="post-metadata">

**Author:** ![d3h637](https://avatars.discourse-cdn.com/v4/letter/d/13edae/32.png) [@d3h637](https://forum.inductiveautomation.com/u/d3h637)\
**Post date:** [August 30, 2023, 9:08pm UTC](https://forum.inductiveautomation.com/t/unexpected-error-during-tag-startup-after-upgrade-from-8-1-17-to-8-1-31/78577/6 "2023-08-30T21:08:46Z")

</div>

Note that this is a development server and I've been having an intern try to combine 3 existing gateways in the field into one in order to analyze data from the 3 field systems. He's been creating multiple tag groups and associating them with historical databases. It has been running fine until the upgrade, but I suspect that has something to do with this.

---

<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:** [August 30, 2023, 9:14pm UTC](https://forum.inductiveautomation.com/t/unexpected-error-during-tag-startup-after-upgrade-from-8-1-17-to-8-1-31/78577/7 "2023-08-30T21:14:22Z")

</div>

Okay, this is the actual error preventing it from starting:

```auto
2023/08/30 14:03:25 | java.lang.IllegalArgumentException: value already present: CBITEC_dB
2023/08/30 14:03:25 | at com.google.common.collect.HashBiMap.put(HashBiMap.java:316)
2023/08/30 14:03:25 | at com.google.common.collect.HashBiMap.put(HashBiMap.java:296)
2023/08/30 14:03:25 | at com.inductiveautomation.ignition.gateway.history.HistoryManagerImpl.ensureStoreAndForwardEngineLoaded(HistoryManagerImpl.java:493)
2023/08/30 14:03:25 | at java.base/java.util.ArrayList.forEach(Unknown Source)
2023/08/30 14:03:25 | at com.inductiveautomation.ignition.gateway.history.HistoryManagerImpl.loadSystemStoreAndForwardEngines(HistoryManagerImpl.java:456)
2023/08/30 14:03:25 | at com.inductiveautomation.ignition.gateway.history.HistoryManagerImpl.startup(HistoryManagerImpl.java:134)
2023/08/30 14:03:25 | at com.inductiveautomation.ignition.gateway.IgnitionGateway.startupInternal(IgnitionGateway.java:1259)
2023/08/30 14:03:25 | at com.inductiveautomation.ignition.gateway.redundancy.RedundancyManagerImpl.startup(RedundancyManagerImpl.java:301)
2023/08/30 14:03:25 | at com.inductiveautomation.ignition.gateway.IgnitionGateway.initRedundancy(IgnitionGateway.java:756)
2023/08/30 14:03:25 | at com.inductiveautomation.ignition.gateway.IgnitionGateway.lambda$initInternal$0(IgnitionGateway.java:690)
2023/08/30 14:03:25 | at com.inductiveautomation.ignition.common.execution.impl.BasicExecutionEngine$ThrowableCatchingRunnable.run(BasicExecutionEngine.java:544)
2023/08/30 14:03:25 | at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
2023/08/30 14:03:25 | at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
2023/08/30 14:03:25 | at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
2023/08/30 14:03:25 | at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
2023/08/30 14:03:25 | at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
2023/08/30 14:03:25 | at java.base/java.lang.Thread.run(Unknown Source)
2023/08/30 14:03:25 | I [IgnitionGateway] [21:03:25]: Ignition[state=STARTING] ContextState = FAULTED 

```

Seems like there's duplicate SF names or something... Probably need to call support so they can look at your backup and try to fix it.
