# \[Bug-11134\] Error “Writing to Server”

**URL:** <https://forum.inductiveautomation.com/t/bug-11134-error-writing-to-server/20553>\
**Category:** Ignition Early Access\
**Tags:** ignition80\
**Created:** [November 6, 2018, 1:49pm UTC](https://forum.inductiveautomation.com/t/bug-11134-error-writing-to-server/20553 "2018-11-06T13:49:31Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrea.morando](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/andrea.morando/32/8039_2.png) [@andrea.morando](https://forum.inductiveautomation.com/u/andrea.morando)\
**Post date:** [November 6, 2018, 1:49pm UTC](https://forum.inductiveautomation.com/t/bug-11134-error-writing-to-server/20553/1 "2018-11-06T13:49:32Z")

</div>

When a “shared” scripting module is imported into the designer and it is commited (or saved), the following error raises up:

> com.inductiveautomation.ignition.client.gateway\_interface.GatewayException: Error writing to server  
> at com.inductiveautomation.ignition.client.gateway\_interface.GatewayInterface.newGatewayException(GatewayInterface.java:338)  
> at com.inductiveautomation.ignition.client.gateway\_interface.GatewayInterface.getResponse(GatewayInterface.java:498)  
> at com.inductiveautomation.ignition.client.gateway\_interface.GatewayInterface.sendMessage(GatewayInterface.java:270)  
> at com.inductiveautomation.ignition.designer.gateway.PriviledgedDesignerTask$GatewayMessageTask.execute(PriviledgedDesignerTask.java:440)  
> at com.inductiveautomation.ignition.designer.gateway.PriviledgedDesignerTask$TaskThread.run(PriviledgedDesignerTask.java:328)  
> at java.base/java.lang.Thread.run(Unknown Source)  
> Caused by: java.io.IOException: Error writing to server  
> at java.base/sun.net.www.protocol.http.HttpURLConnection.writeRequests(Unknown Source)  
> at java.base/sun.net.www.protocol.http.HttpURLConnection.writeRequests(Unknown Source)  
> at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)  
> at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)  
> at java.base/java.net.HttpURLConnection.getResponseCode(Unknown Source)  
> at com.inductiveautomation.ignition.client.gateway\_interface.GatewayInterface.getResponse(GatewayInterface.java:418)  
> ... 4 more

> Ignition v8.0.0-beta0 (b2018110513)  
> Java: Azul Systems, Inc. 11.0.1

The gateway runs on a virtual server (Windows Server 2016).  
The error happens on a designer running on a remote machine (like my laptop), instead it does not appear when the designer is opened on localhost.

The build date of the Ignition8 is 8.0.0-beta0 (b2018110513).

GW Java Version: 11.0.1+13-LTS  
Designer Java Version: Azul Systems, Inc. 11.0.1

Thank you for your support!

---

<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:** [November 6, 2018, 2:02pm UTC](https://forum.inductiveautomation.com/t/bug-11134-error-writing-to-server/20553/2 "2018-11-06T14:02:42Z")

</div>

This looks to me like you have some kind of corporate proxy or firewall interfering 😬

---

<div class="post-metadata">

**Author:** ![andrea.morando](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/andrea.morando/32/8039_2.png) [@andrea.morando](https://forum.inductiveautomation.com/u/andrea.morando)\
**Post date:** [November 9, 2018, 9:17am UTC](https://forum.inductiveautomation.com/t/bug-11134-error-writing-to-server/20553/3 "2018-11-09T09:17:56Z")

</div>

Thank you Kevin.  
I did a check with our IT dept: at a first glance there are not firewall blocks between my laptop and the virtual server, where Ignition8 is running.  
They ask me a question: are there some problems from Ignition side if the are network routers in the middle (the laptop and the gateway are on two different subnetworks)?

Thanks.

---

<div class="post-metadata">

**Author:** ![andrea.morando](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/andrea.morando/32/8039_2.png) [@andrea.morando](https://forum.inductiveautomation.com/u/andrea.morando)\
**Post date:** [November 21, 2018, 4:30pm UTC](https://forum.inductiveautomation.com/t/bug-11134-error-writing-to-server/20553/4 "2018-11-21T16:30:53Z")

</div>

Any news for the current issue?

Unfortunately today I noticed that also in localhost the "Writing to Server" error occurs when trying to save global and/or project modifications.

> 14:38:51.504 [AWT-EventQueue-0] ERROR com.inductiveautomation.ignition.designer.IgnitionDesigner - null  
> com.inductiveautomation.ignition.client.gateway\_interface.GatewayException: Error writing to server  
> at com.inductiveautomation.ignition.client.gateway\_interface.GatewayInterface.newGatewayException(GatewayInterface.java:338)  
> at com.inductiveautomation.ignition.client.gateway\_interface.GatewayInterface.getResponse(GatewayInterface.java:498)  
> at com.inductiveautomation.ignition.client.gateway\_interface.GatewayInterface.sendMessage(GatewayInterface.java:270)  
> at com.inductiveautomation.ignition.designer.gateway.PriviledgedDesignerTask$GatewayMessageTask.execute(PriviledgedDesignerTask.java:440)  
> at com.inductiveautomation.ignition.designer.gateway.PriviledgedDesignerTask$TaskThread.run(PriviledgedDesignerTask.java:328)  
> at java.base/java.lang.Thread.run(Unknown Source)  
> Caused by: java.io.IOException: Error writing to server  
> at java.base/sun.net.www.protocol.http.HttpURLConnection.writeRequests(Unknown Source)  
> at java.base/sun.net.www.protocol.http.HttpURLConnection.writeRequests(Unknown Source)  
> at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)  
> at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)  
> at java.base/java.net.HttpURLConnection.getResponseCode(Unknown Source)  
> at com.inductiveautomation.ignition.client.gateway\_interface.GatewayInterface.getResponse(GatewayInterface.java:418)  
> ... 4 common frames omitted  
> 14:38:51.492 [PDT-Task-runner] WARN com.inductiveautomation.ignition.client.gateway\_interface.GatewayConnectionManager - Connection to Gateway lost, due to exception.  
> com.inductiveautomation.ignition.client.gateway\_interface.GatewayException: Error writing to server  
> at com.inductiveautomation.ignition.client.gateway\_interface.GatewayInterface.newGatewayException(GatewayInterface.java:338)  
> at com.inductiveautomation.ignition.client.gateway\_interface.GatewayInterface.getResponse(GatewayInterface.java:498)  
> at com.inductiveautomation.ignition.client.gateway\_interface.GatewayInterface.sendMessage(GatewayInterface.java:270)  
> at com.inductiveautomation.ignition.designer.gateway.PriviledgedDesignerTask$GatewayMessageTask.execute(PriviledgedDesignerTask.java:440)  
> at com.inductiveautomation.ignition.designer.gateway.PriviledgedDesignerTask$TaskThread.run(PriviledgedDesignerTask.java:328)  
> at java.base/java.lang.Thread.run(Unknown Source)  
> Caused by: java.io.IOException: Error writing to server  
> at java.base/sun.net.www.protocol.http.HttpURLConnection.writeRequests(Unknown Source)  
> at java.base/sun.net.www.protocol.http.HttpURLConnection.writeRequests(Unknown Source)  
> at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)  
> at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)  
> at java.base/java.net.HttpURLConnection.getResponseCode(Unknown Source)  
> at com.inductiveautomation.ignition.client.gateway\_interface.GatewayInterface.getResponse(GatewayInterface.java:418)  
> ... 4 common frames omitted  
> 14:38:51.502 [PDT-Task-runner] INFO tags.subscriptions - Changing connected quality to 'Bad\_Stale'  
> 14:38:51.502 [PDT-Task-runner] INFO Scripting.ScriptManager.WebLLC - Pausing scripts...  
> 14:38:51.502 [PDT-Task-runner] INFO com.inductiveautomation.ignition.client.gateway\_interface.GatewayConnectionManager - Starting reconnect thread.  
> 14:38:51.516 [GatewayConnection-1] INFO tags.subscriptions - Changing connected quality to 'Good'  
> 14:38:51.516 [GatewayConnection-1] INFO Scripting.ScriptManager.WebLLC - Resuming scripts...  
> 14:38:51.521 [GatewayConnection-1] INFO com.inductiveautomation.ignition.client.gateway\_interface.GatewayConnectionManager - Stopping reconnect thread.

Thank you for your support.

---

<div class="post-metadata">

**Author:** ![andrea.morando](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/andrea.morando/32/8039_2.png) [@andrea.morando](https://forum.inductiveautomation.com/u/andrea.morando)\
**Post date:** [December 5, 2018, 9:51am UTC](https://forum.inductiveautomation.com/t/bug-11134-error-writing-to-server/20553/5 "2018-12-05T09:51:25Z")

</div>

Hi Kevin, have you some idea to solve this issue? As you can see, the problem occurs also in localhost.

---

<div class="post-metadata">

**Author:** ![ggross](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ggross/32/12668_2.png) [@ggross](https://forum.inductiveautomation.com/u/ggross)\
**Post date:** [December 5, 2018, 7:07pm UTC](https://forum.inductiveautomation.com/t/bug-11134-error-writing-to-server/20553/6 "2018-12-05T19:07:53Z")

</div>

By any chance are you running the Designer on a Windows system? If so, when you started the Designer for the first time (and if the Windows firewall was enabled) you would have seen a dialog like the following:  
 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/b/bd15880600f9d42d0239fd19120c391e4a3ca1d1.png)

If you happened to see this, do you remember the settings you defined? It is something that in theory should cause problems well before saving things, but at this point I am looking for anything that could possibly cause a disruption like this.

Also, would it be possible to share the script you are attempting to upload? I want to see if there is anything in the script that might stand out.

Thanks,  
Garth

---

<div class="post-metadata">

**Author:** ![andrea.morando](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/andrea.morando/32/8039_2.png) [@andrea.morando](https://forum.inductiveautomation.com/u/andrea.morando)\
**Post date:** [December 19, 2018, 5:43pm UTC](https://forum.inductiveautomation.com/t/bug-11134-error-writing-to-server/20553/7 "2018-12-19T17:43:22Z")

</div>

Hi Garth,  
I found that the issue might be related to the size/number of the shared scripts. Is there some limit on Ignition 8?  
I made a lot of tests: after having imported a number of libraries the error “Writing to server” came up; I guess the error does not depend on the code inside the libraries but on the size of the shared scripts.  
The libraries are taken from a 7.9.x release and there the problem does not exist.

Thanks a lot.

---

<div class="post-metadata">

**Author:** ![ggross](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ggross/32/12668_2.png) [@ggross](https://forum.inductiveautomation.com/u/ggross)\
**Post date:** [December 20, 2018, 12:46am UTC](https://forum.inductiveautomation.com/t/bug-11134-error-writing-to-server/20553/8 "2018-12-20T00:46:37Z")

</div>

Andrea,

We have a few open issues around similar issues with the Designer disconnecting from the Gateway with large amounts of data. There looks to be a limit of about 5MB in changes allowed when attempting to import or write changes to the Gateway. The ticket is currently being worked on and hopefully will be in a build within the next couple of days.

Garth

---

<div class="post-metadata">

**Author:** ![awalker](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/awalker/32/6874_2.png) [@awalker](https://forum.inductiveautomation.com/u/awalker)\
**Post date:** [January 3, 2019, 5:10pm UTC](https://forum.inductiveautomation.com/t/bug-11134-error-writing-to-server/20553/9 "2019-01-03T17:10:10Z")

</div>

Hi Andrea,

We’ve made some changes that should help with the issue you are seeing. Please let us know if you continue to see this behavior after upgrading to the latest build.

Thank you!

---

<div class="post-metadata">

**Author:** ![andrea.morando](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/andrea.morando/32/8039_2.png) [@andrea.morando](https://forum.inductiveautomation.com/u/andrea.morando)\
**Post date:** [January 7, 2019, 4:52pm UTC](https://forum.inductiveautomation.com/t/bug-11134-error-writing-to-server/20553/10 "2019-01-07T16:52:59Z")

</div>

Thank you, now it works fine!
