# \[Bug-5307\] Restore from backup, provided batch files don't work

**URL:** <https://forum.inductiveautomation.com/t/bug-5307-restore-from-backup-provided-batch-files-dont-work/55250>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [January 21, 2022, 4:10pm UTC](https://forum.inductiveautomation.com/t/bug-5307-restore-from-backup-provided-batch-files-dont-work/55250 "2022-01-21T16:10:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zacht](https://avatars.discourse-cdn.com/v4/letter/z/ea5d25/32.png) [@zacht](https://forum.inductiveautomation.com/u/zacht)\
**Post date:** [January 21, 2022, 4:10pm UTC](https://forum.inductiveautomation.com/t/bug-5307-restore-from-backup-provided-batch-files-dont-work/55250/1 "2022-01-21T16:10:55Z")

</div>

I have installed an Ignition gateway on my desktop for testing. I performed a fresh install of version 8.1.5 and restored a gateway backup of our Development gateway (also 8.1.5), selecting ‘Restore Disabled’ as I did. The restore works fine. I’m able to log in to the gateway webpage and open the designer as I would expect. When I try to run any of the batch files in `C:\Program Files\Inductive Automation\Ignition`, however they fail with this error:

```auto
wrapperm | The "wrapper.java.command" property was redefined on line #46 of configuration file: C:\Program Files\Inductive Automation\Ignition\data\ignition.conf
wrapperm | Old Value wrapper.java.command=lib/runtime/jre-win/bin/java
wrapperm | New Value wrapper.java.command=%JAVA_HOME%/bin/java
wrapperm | The IgnitionDev service is not installed - The specified service does not exist as an installed service. (0x424)
Press any key to continue . . .

```

When I installed the gateway, I used the default service name of `Ignition`, compared to the service name `IgnitionDev` used on the gateway I took a backup from. This may be the cause of the last line.

Is there a way to make these batch files work? I can stop the gateway service through task manager, but I’m uncertain how I can restart the service later if I can’t get the batch files working.

Thanks,

Zach

---

<div class="post-metadata">

**Author:** ![zacht](https://avatars.discourse-cdn.com/v4/letter/z/ea5d25/32.png) [@zacht](https://forum.inductiveautomation.com/u/zacht)\
**Post date:** [January 25, 2022, 3:58pm UTC](https://forum.inductiveautomation.com/t/bug-5307-restore-from-backup-provided-batch-files-dont-work/55250/2 "2022-01-25T15:58:12Z")

</div>

Still curious about this. Can anyone point me in the right direction?

---

<div class="post-metadata">

**Author:** ![jcoffman](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jcoffman/32/6429_2.png) [@jcoffman](https://forum.inductiveautomation.com/u/jcoffman)\
**Post date:** [January 25, 2022, 4:16pm UTC](https://forum.inductiveautomation.com/t/bug-5307-restore-from-backup-provided-batch-files-dont-work/55250/3 "2022-01-25T16:16:36Z")

</div>

The service name doesn’t match. You will have to update the `data/ignition.conf` file’s line for `wrapper.name=IgnitionDev` back to `wrapper.name=Ignition` yourself. Also, remove the `wrapper.java.command=%JAVA_HOME%/bin/java` line from the ignition.conf. As far as the warning for `wrapper.java.command` that was fixed in a later version. There is already a ticket open for the restore changing the service name. Ill add this post to the ticket

---

<div class="post-metadata">

**Author:** ![zacht](https://avatars.discourse-cdn.com/v4/letter/z/ea5d25/32.png) [@zacht](https://forum.inductiveautomation.com/u/zacht)\
**Post date:** [January 25, 2022, 4:29pm UTC](https://forum.inductiveautomation.com/t/bug-5307-restore-from-backup-provided-batch-files-dont-work/55250/4 "2022-01-25T16:29:12Z")

</div>

> [@jcoffman](#):
>
> Also, remove the `wrapper.java.command=%JAVA_HOME%/bin/java` line from the ignition.conf.

`wrapper.java.command=%JAVA_HOME%/bin/java` shows up in two places in Ignition.conf. Do I remove both lines?

Ignition.conf lines 38-49

```auto
# ********************************************************************
# Wrapper Java Properties
# ********************************************************************
# Java Application
# Locate the java binary on the system PATH:
wrapper.java.command=%JAVA_HOME%/bin/java
# Specify a specific java binary:
set.JAVA_HOME=lib/runtime/jre-win
wrapper.java.command=%JAVA_HOME%/bin/java

# Tell the Wrapper to log the full generated Java command line.
#wrapper.java.command.loglevel=INFO

```

---

<div class="post-metadata">

**Author:** ![jcoffman](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jcoffman/32/6429_2.png) [@jcoffman](https://forum.inductiveautomation.com/u/jcoffman)\
**Post date:** [January 25, 2022, 4:44pm UTC](https://forum.inductiveautomation.com/t/bug-5307-restore-from-backup-provided-batch-files-dont-work/55250/5 "2022-01-25T16:44:15Z")

</div>

No just one. Go ahead and remove that first one.
