# Connection to Gateway Lost on Ubuntu desktop 14.04

**URL:** <https://forum.inductiveautomation.com/t/connection-to-gateway-lost-on-ubuntu-desktop-14-04/10482>\
**Category:** Ignition\
**Created:** [September 18, 2015, 2:00am UTC](https://forum.inductiveautomation.com/t/connection-to-gateway-lost-on-ubuntu-desktop-14-04/10482 "2015-09-18T02:00:44Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Viggi](https://avatars.discourse-cdn.com/v4/letter/v/ce7236/32.png) [@Viggi](https://forum.inductiveautomation.com/u/Viggi)\
**Post date:** [September 18, 2015, 2:00am UTC](https://forum.inductiveautomation.com/t/connection-to-gateway-lost-on-ubuntu-desktop-14-04/10482/1 "2015-09-18T02:00:44Z")

</div>

Hi ,  
I am running redundant Ignition Gateways on Two Ubuntu 14.04 servers.  
After a few days the ubuntu client machine gets disconnected to the server.  
Somehow it is only the Ubuntu clients that get disconnected. Java 8 on ubuntu.  
The windows client encounters no problem at all.  
I have attached the log.  
A solution would be immensely helpful.  
[error\_log.pdf](https://us1.discourse-cdn.com/inductiveautomation/original/2X/5/5124a0bedc6a2f6793424139a34c9c3b904648d7.pdf) (30.5 KB)

---

<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:** [September 24, 2015, 7:32pm UTC](https://forum.inductiveautomation.com/t/connection-to-gateway-lost-on-ubuntu-desktop-14-04/10482/2 "2015-09-24T19:32:13Z")

</div>

We might be able to track this down with your help, but it’s a little tricky.

First, you’ll need to find the PID of the running Ignition client. You can do this with something like ‘ps aux | grep java’ and then maybe looking for one that has a project name in it if there are more than one results.

Then, maybe every couple hours, you could write the results of running ‘lsof -p $PID\_FROM\_ABOVE’ into a file (so if the PID was 97787, you’d run ‘lsof -p 97787’. After collecting enough of these files we can compare them to see if there’s a file handle “leak” somewhere.

---

<div class="post-metadata">

**Author:** ![Viggi](https://avatars.discourse-cdn.com/v4/letter/v/ce7236/32.png) [@Viggi](https://forum.inductiveautomation.com/u/Viggi)\
**Post date:** [October 2, 2015, 2:23am UTC](https://forum.inductiveautomation.com/t/connection-to-gateway-lost-on-ubuntu-desktop-14-04/10482/3 "2015-10-02T02:23:30Z")

</div>

Hi,

I have attached the java log files. Hope we can solve the problem.  
[err\_01\_10\_1658.txt](https://us1.discourse-cdn.com/inductiveautomation/original/2X/9/9cde1e05c59c17095e2fa4606d52ece700c4e042.txt) (175 KB)  
[err\_01\_10\_1534.txt](https://us1.discourse-cdn.com/inductiveautomation/original/2X/1/194ba187834ef281a5c1feb01258bb537c842924.txt) (183 KB)  
[err\_01\_10\_1330.txt](https://us1.discourse-cdn.com/inductiveautomation/original/2X/6/6de4399ecff76e98d8d487ea41d26924bb962b16.txt) (117 KB)  
[err\_01\_10\_1200.txt](https://us1.discourse-cdn.com/inductiveautomation/original/2X/1/15586c0a0722a3045d22c3196e1e3c96969c089c.txt) (131 KB)  
[err\_01\_10\_1059.txt](https://us1.discourse-cdn.com/inductiveautomation/original/2X/b/b2ec5f96fa9bfb8c43501a1c823c2e0599bb9e37.txt) (126 KB)

---

<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:** [October 2, 2015, 2:47am UTC](https://forum.inductiveautomation.com/t/connection-to-gateway-lost-on-ubuntu-desktop-14-04/10482/4 "2015-10-02T02:47:47Z")

</div>

It looks like something is opening /etc/environment without closing it… does that ring any bells? Do you have any scripts running that might do that?

---

<div class="post-metadata">

**Author:** ![Viggi](https://avatars.discourse-cdn.com/v4/letter/v/ce7236/32.png) [@Viggi](https://forum.inductiveautomation.com/u/Viggi)\
**Post date:** [October 2, 2015, 3:33am UTC](https://forum.inductiveautomation.com/t/connection-to-gateway-lost-on-ubuntu-desktop-14-04/10482/5 "2015-10-02T03:33:58Z")

</div>

i did see too many /etc/environment.  
But I have no other script running. I simply installed Ubuntu desktop 14.04, installed Java and only used it as an Ignition Client.  
I have not written any scripts.  
Java does not come pre installed in Ubuntu too, so it is unlikely that the Operating system is running any scripts, in my opinion.

---

<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:** [October 2, 2015, 12:55pm UTC](https://forum.inductiveautomation.com/t/connection-to-gateway-lost-on-ubuntu-desktop-14-04/10482/6 "2015-10-02T12:55:59Z")

</div>

I meant scripts in your Ignition project… but I don’t even know what or why you would need to be opening /etc/environment ![:/](https://us1.discourse-cdn.com/inductiveautomation/original/1X/8e510869ae26fbd7ab76e1e731ceea2054ef109c.gif "Hrm")

---

<div class="post-metadata">

**Author:** ![Viggi](https://avatars.discourse-cdn.com/v4/letter/v/ce7236/32.png) [@Viggi](https://forum.inductiveautomation.com/u/Viggi)\
**Post date:** [October 5, 2015, 2:24pm UTC](https://forum.inductiveautomation.com/t/connection-to-gateway-lost-on-ubuntu-desktop-14-04/10482/7 "2015-10-05T14:24:08Z")

</div>

I have only one script running in this project.  
The script populates a dropdown menu and then fills a chart, depending on the selection of the tag in the dropdown menu.

---

<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:** [October 5, 2015, 2:54pm UTC](https://forum.inductiveautomation.com/t/connection-to-gateway-lost-on-ubuntu-desktop-14-04/10482/8 "2015-10-05T14:54:34Z")

</div>

Are you able to launch using the native client launchers?

---

<div class="post-metadata">

**Author:** ![Viggi](https://avatars.discourse-cdn.com/v4/letter/v/ce7236/32.png) [@Viggi](https://forum.inductiveautomation.com/u/Viggi)\
**Post date:** [October 6, 2015, 2:17pm UTC](https://forum.inductiveautomation.com/t/connection-to-gateway-lost-on-ubuntu-desktop-14-04/10482/9 "2015-10-06T14:17:55Z")

</div>

Yes, the native client launcher works.

---

<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:** [October 6, 2015, 2:21pm UTC](https://forum.inductiveautomation.com/t/connection-to-gateway-lost-on-ubuntu-desktop-14-04/10482/10 "2015-10-06T14:21:44Z")

</div>

Ok, let’s try using this program then: [file-leak-detector.kohsuke.org/](http://file-leak-detector.kohsuke.org/)

All you’ll need to do is download the jar, then run it, specifying the PID of the client. Make sure to launch it with the native client launcher or this tool won’t be able to attach successfully.

If the PID were 33783:

```auto
java -jar file-leak-detector-1.8-jar-with-dependencies.jar 33783 strong,http=8888
```

Then after a little while check localhost:8888 in your browser and hopefully you’ll have some helpful information about which files are open and where they were opened from…

---

<div class="post-metadata">

**Author:** ![Viggi](https://avatars.discourse-cdn.com/v4/letter/v/ce7236/32.png) [@Viggi](https://forum.inductiveautomation.com/u/Viggi)\
**Post date:** [November 3, 2015, 2:21pm UTC](https://forum.inductiveautomation.com/t/connection-to-gateway-lost-on-ubuntu-desktop-14-04/10482/11 "2015-11-03T14:21:45Z")

</div>

Hi…

I installed the leak detector and ran the application for more than two weeks.  
Surprisingly after using the leak detector program, there are no leaks… 😮 …

---

<div class="post-metadata">

**Author:** ![jim\_lapratt](https://avatars.discourse-cdn.com/v4/letter/j/cc9497/32.png) [@jim\_lapratt](https://forum.inductiveautomation.com/u/jim_lapratt)\
**Post date:** [November 4, 2015, 7:38pm UTC](https://forum.inductiveautomation.com/t/connection-to-gateway-lost-on-ubuntu-desktop-14-04/10482/12 "2015-11-04T19:38:09Z")

</div>

Trying to run this against a headless linux install. Don’t seem to be able to access the http Mini from remote stataion by Name or IP. If i use curl I can see it at localhost.

I did use port 8888 and there was nothing on that port.

Any ideas on this one?
