liftoff / GateOne

Gate One is an HTML5-powered terminal emulator and SSH client
http://liftoffsoftware.com/Products/GateOne
Other
6.28k stars 924 forks source link

weird error with gateone #234

Open ghost opened 11 years ago

ghost commented 11 years ago

Hi,

When I open gateone in browser i get weird behaviour on browser. The application looks to be going into infinite loop

Closed Term 1 Closed Term 2 Closed Term 3 . . . Closed Term N

I see this in webserver.log

[I 130404 18:22:55 termio:1491] Finalizing the log for pid 10953 (this can take some time). [I 130404 18:22:55 termio:1491] Finalizing the log for pid 10957 (this can take some time). [I 130404 18:22:55 termio:1491] Finalizing the log for pid 10961 (this can take some time). [I 130404 18:22:55 termio:1491] Finalizing the log for pid 10965 (this can take some time). [I 130404 18:22:55 termio:1491] Finalizing the log for pid 10969 (this can take some time). [I 130404 18:22:56 termio:1491] Finalizing the log for pid 10973 (this can take some time). [I 130404 18:22:56 termio:1491] Finalizing the log for pid 10977 (this can take some time). [E 130404 18:22:56 ioloop:435] Exception in callback <tornado.stack_context._StackContextWrapper object at 0x1d2b0260> Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/tornado/ioloop.py", line 421, in _run_callback callback() File "/opt/gateone/termio.py", line 1412, in resize os.kill(self.pid, signal.SIGWINCH) # Send the resize signal OSError: [Errno 3] No such process [I 130404 18:22:56 termio:1491] Finalizing the log for pid 10981 (this can take some time). [E 130404 18:22:57 ioloop:435] Exception in callback <tornado.stack_context._StackContextWrapper object at 0x1d2b0788> Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/tornado/ioloop.py", line 421, in _run_callback callback() File "/opt/gateone/termio.py", line 1412, in resize os.kill(self.pid, signal.SIGWINCH) # Send the resize signal OSError: [Errno 3] No such process

ghost commented 11 years ago

[I 130404 19:17:28 termio:1491] Finalizing the log for pid 12384 (this can take some time). [I 130404 19:17:28 termio:1491] Finalizing the log for pid 12388 (this can take some time). [I 130404 19:17:29 gateone:1147] WebSocket closed (ANONYMOUS). [I 130404 19:17:29 termio:1491] Finalizing the log for pid 12392 (this can take some time). [W 130404 19:17:29 iostream:432] Read error on 15: [Errno 104] Connection reset by peer [W 130404 19:17:29 iostream:366] error on read Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/tornado/iostream.py", line 361, in _handle_read if self._read_to_buffer() == 0: File "/usr/local/lib/python2.7/site-packages/tornado/iostream.py", line 428, in _read_to_buffer chunk = self._read_from_socket() File "/usr/local/lib/python2.7/site-packages/tornado/iostream.py", line 409, in _read_from_socket chunk = self.socket.recv(self.read_chunk_size) error: [Errno 104] Connection reset by peer [W 130404 19:17:29 iostream:432] Read error on 10: [Errno 104] Connection reset by peer [W 130404 19:17:29 iostream:366] error on read Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/tornado/iostream.py", line 361, in _handle_read if self._read_to_buffer() == 0: File "/usr/local/lib/python2.7/site-packages/tornado/iostream.py", line 428, in _read_to_buffer chunk = self._read_from_socket() File "/usr/local/lib/python2.7/site-packages/tornado/iostream.py", line 409, in _read_from_socket chunk = self.socket.recv(self.read_chunk_size) error: [Errno 104] Connection reset by peer [W 130404 19:17:29 iostream:432] Read error on 12: [Errno 104] Connection reset by peer [W 130404 19:17:29 iostream:366] error on read Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/tornado/iostream.py", line 361, in _handle_read if self._read_to_buffer() == 0: File "/usr/local/lib/python2.7/site-packages/tornado/iostream.py", line 428, in _read_to_buffer chunk = self._read_from_socket() File "/usr/local/lib/python2.7/site-packages/tornado/iostream.py", line 409, in _read_from_socket chunk = self.socket.recv(self.read_chunk_size) error: [Errno 104] Connection reset by peer [W 130404 19:17:29 iostream:432] Read error on 14: [Errno 104] Connection reset by peer [W 130404 19:17:29 iostream:366] error on read Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/tornado/iostream.py", line 361, in _handle_read if self._read_to_buffer() == 0: File "/usr/local/lib/python2.7/site-packages/tornado/iostream.py", line 428, in _read_to_buffer chunk = self._read_from_socket() File "/usr/local/lib/python2.7/site-packages/tornado/iostream.py", line 409, in _read_from_socket chunk = self.socket.recv(self.read_chunk_size) error: [Errno 104] Connection reset by peer [I 130404 19:17:31 gateone:3084] Caught KeyboardInterrupt. Killing sessions... [I 130404 19:17:31 gateone:3088] pid file removed.

liftoff commented 11 years ago

What version of Gate One are you using?

Normally when you have a loop of terminals closing and re-opening it is because the configured command is failing to run (for whatever reason). If you look at the session logs they'll usually tell you why...

/opt/gateone/logviewer.py /opt/gateone/users/ANONYMOUS/logs/`ls -tr | tail -1`
# Or try other logs in the same dir

That'll play back the given log (ls -tr | tail -1 is just the last log in the directory) on the command line.

ghost commented 11 years ago

I am using rpm based installation of gateone. https://github.com/downloads/liftoff/GateOne/gateone-1.1-1.noarch.rpm

== ERROR== [E 130412 15:49:46 ioloop:435] Exception in callback <tornado.stack_context._StackContextWrapper object at 0x1fbd36d8> Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/tornado/ioloop.py", line 421, in _run_callback callback() File "/opt/gateone/termio.py", line 1412, in resize os.kill(self.pid, signal.SIGWINCH) # Send the resize signal OSError: [Errno 3] No such process [I 130412 15:49:47 termio:1491] Finalizing the log for pid 17609 (this can take some time). [E 130412 15:49:47 ioloop:435] Exception in callback <tornado.stack_context._StackContextWrapper object at 0x1fc12fc8> Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/tornado/ioloop.py", line 421, in _run_callback callback() File "/opt/gateone/termio.py", line 1412, in resize os.kill(self.pid, signal.SIGWINCH) # Send the resize signal OSError: [Errno 3] No such process [I 130412 15:49:47 termio:1491] Finalizing the log for pid 17613 (this can take some time). [E 130412 15:49:47 ioloop:435] Exception in callback <tornado.stack_context._StackContextWrapper object at 0x1fc12628> Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/tornado/ioloop.py", line 421, in _run_callback callback() File "/opt/gateone/termio.py", line 1412, in resize os.kill(self.pid, signal.SIGWINCH) # Send the resize signal OSError: [Errno 3] No such process [I 130412 15:49:47 termio:1491] Finalizing the log for pid 17617 (this can take some time). [E 130412 15:49:47 ioloop:435] Exception in callback <tornado.stack_context._StackContextWrapper object at 0x1fd572b8> Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/tornado/ioloop.py", line 421, in _run_callback callback() File "/opt/gateone/termio.py", line 1412, in resize os.kill(self.pid, signal.SIGWINCH) # Send the resize signal OSError: [Errno 3] No such process [I 130412 15:49:47 termio:1491] Finalizing the log for pid 17621 (this can take some time). [E 130412 15:49:47 ioloop:435] Exception in callback <tornado.stack_context._StackContextWrapper object at 0x1fd576d8> Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/tornado/ioloop.py", line 421, in _run_callback callback() File "/opt/gateone/termio.py", line 1412, in resize os.kill(self.pid, signal.SIGWINCH) # Send the resize signal OSError: [Errno 3] No such process [I 130412 15:49:47 termio:1491] Finalizing the log for pid 17625 (this can take some time). [I 130412 15:49:48 gateone:1147] WebSocket closed (ANONYMOUS). [I 130412 15:49:48 termio:1491] Finalizing the log for pid 17629 (this can take some time). [I 130412 15:49:56 gateone:3084] Caught KeyboardInterrupt. Killing sessions... [I 130412 15:49:56 gateone:3088] pid file removed.

liftoff commented 11 years ago

What OS/distribution? RHEL/CentOS 6 I assume?

Pleas try that command I posted previously:

/opt/gateone/logviewer.py /opt/gateone/users/ANONYMOUS/logs/`ls -tr | tail -1`

Use that to look at a number of logs--they'll probably all have similar errors but I need to know what they are to solve the problem. What's going on is that Gate One is attempting to run it's configured 'commands' but it is dying immediately after execution for some reason. That output will be in the session logs.