Open GoogleCodeExporter opened 9 years ago
Which OS's are you running on the client and the server?
Original comment by dbothwell.home@gmail.com
on 28 Jul 2014 at 10:37
Hi
I was running application on windows 7 machine and the target was
Linux with Ubuntu 12.04 LTS.
I was able to access Linux machine through putty in ssh mode from
windows machine.
Original comment by deevis...@gmail.com
on 28 Jul 2014 at 11:25
I just tested the remote-linux-monitor-v1.0.03.jar on a Windows 7 box against a
Ubuntu 12.10 Linux server. I was not able to reproduce the problem. Are you
sure you downloaded the version 1.0.03 jar? I noticed in "What steps will
reproduce the problem?" you are using an older version of the jar.
Original comment by dbothwell.home@gmail.com
on 29 Jul 2014 at 4:24
That was just a typo, I just tried again, used the below:
c:\> java -jar c:\temp\remote-linux-monitor-v1.03.jar
I even tried with "remote-linux-monitor-v1.04_test.jar" that was part of one of
the issues.
Here is the console output if it can help:
>>
U:\>java -jar c:\temp\remote-linux-monitor-v1.03.jar
java.lang.Exception: [Illegal variable name.]
at db.remoteLinuxMonitor.SSHSession.getStandardOutput(SSHSession.java:170)
at db.remoteLinuxMonitor.SystemInfo.factory(SystemInfo.java:55)
at db.remoteLinuxMonitor.RemoteMain.start(RemoteMain.java:649)
at db.remoteLinuxMonitor.RemoteMain.login(RemoteMain.java:558)
at db.remoteLinuxMonitor.RemoteMain.access$7(RemoteMain.java:545)
at db.remoteLinuxMonitor.RemoteMain$21.actionPerformed(RemoteMain.java:498)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:25
2)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
at java.awt.Component.processMouseEvent(Component.java:6505)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
at java.awt.Component.processEvent(Component.java:6270)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4861)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
at java.awt.Container.dispatchEventImpl(Container.java:2273)
at java.awt.Window.dispatchEventImpl(Window.java:2719)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:729)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:688)
at java.awt.EventQueue$3.run(EventQueue.java:686)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:702)
at java.awt.EventQueue$4.run(EventQueue.java:700)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:699)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
java.lang.Exception: [Illegal variable name.]
at db.remoteLinuxMonitor.SSHSession.getStandardOutput(SSHSession.java:170)
at db.remoteLinuxMonitor.SystemInfo.factory(SystemInfo.java:55)
at db.remoteLinuxMonitor.RemoteMain.start(RemoteMain.java:649)
at db.remoteLinuxMonitor.RemoteMain.login(RemoteMain.java:558)
at db.remoteLinuxMonitor.RemoteMain.access$7(RemoteMain.java:545)
at db.remoteLinuxMonitor.RemoteMain$21.actionPerformed(RemoteMain.java:498)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:25
2)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
at java.awt.Component.processMouseEvent(Component.java:6505)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
at java.awt.Component.processEvent(Component.java:6270)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4861)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
at java.awt.Container.dispatchEventImpl(Container.java:2273)
at java.awt.Window.dispatchEventImpl(Window.java:2719)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:729)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:688)
at java.awt.EventQueue$3.run(EventQueue.java:686)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:702)
at java.awt.EventQueue$4.run(EventQueue.java:700)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:699)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
java.lang.Exception: [Illegal variable name.]
at db.remoteLinuxMonitor.SSHSession.getStandardOutput(SSHSession.java:170)
at db.remoteLinuxMonitor.SystemInfo.factory(SystemInfo.java:55)
at db.remoteLinuxMonitor.RemoteMain.start(RemoteMain.java:649)
at db.remoteLinuxMonitor.RemoteMain.login(RemoteMain.java:558)
at db.remoteLinuxMonitor.RemoteMain.access$7(RemoteMain.java:545)
at db.remoteLinuxMonitor.RemoteMain$21.actionPerformed(RemoteMain.java:498)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:25
2)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
at java.awt.Component.processMouseEvent(Component.java:6505)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
at java.awt.Component.processEvent(Component.java:6270)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4861)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
at java.awt.Container.dispatchEventImpl(Container.java:2273)
at java.awt.Window.dispatchEventImpl(Window.java:2719)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:729)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:688)
at java.awt.EventQueue$3.run(EventQueue.java:686)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:702)
at java.awt.EventQueue$4.run(EventQueue.java:700)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:699)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
U:\>
<<
Thanks
Original comment by deevis...@gmail.com
on 29 Jul 2014 at 4:55
Run these commands on the Ubuntu command line and show me what the output says.
uname -srm; uname -n; df -h | grep -m 1 " /"$; grep "MemTotal" /proc/meminfo;
grep "^processor\|^model name" /proc/cpuinfo
Original comment by dbothwell.home@gmail.com
on 29 Jul 2014 at 5:06
Here is the output of what you asked for:
sxxxx@adp-2-linux:/local/mnt/workspace$ uname -srm; uname -n; df -h | grep
-m 1 " /"$; grep "MemTotal" /proc/meminfo; grep "^processor\|^model name"
/proc/cpuinfo
Linux 3.2.0-61-generic x86_64
adp-2-linux
/dev/mapper/vg00-rootvol 9.9G 3.6G 5.8G 39% /
MemTotal: 16226648 kB
processor : 0
model name : Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
processor : 1
model name : Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
processor : 2
model name : Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
processor : 3
model name : Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
processor : 4
model name : Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
processor : 5
model name : Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
processor : 6
model name : Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
processor : 7
model name : Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
sxxxx@adp-2-linux:/local/mnt/workspace$
On Tue, Jul 29, 2014 at 10:07 AM, <remote-linux-monitor@googlecode.com>
wrote:
Original comment by deevis...@gmail.com
on 29 Jul 2014 at 5:12
The bad news is output is correct. The exception you sent says that the server
is throwing an error when one of those commands runs. As it appears you are
running the commands through an SSH session, you got me stumped.
Original comment by dbothwell.home@gmail.com
on 29 Jul 2014 at 5:41
Am I missing anything else? Looks like ssh connection seems to be OK through
the app.
Original comment by deevis...@gmail.com
on 29 Jul 2014 at 6:51
Are you using the same user id with the putty connection that your using with
the remote-linux-monitor?
Original comment by dbothwell.home@gmail.com
on 29 Jul 2014 at 7:08
Is user on the Ubuntu box defaulting to a bash shell?
Original comment by dbothwell.home@gmail.com
on 29 Jul 2014 at 7:15
It defaults to tcsh:
adp-2-linux{52}> ps -p $$
PID TTY TIME CMD
1408 pts/4 00:00:00 tcsh
adp-2-linux{53}>
On Tue, Jul 29, 2014 at 12:15 PM, <remote-linux-monitor@googlecode.com>
wrote:
Original comment by deevis...@gmail.com
on 29 Jul 2014 at 7:51
Try adding a user which defaults to bash and connect to that user.
Original comment by dbothwell.home@gmail.com
on 29 Jul 2014 at 8:19
Added the following line to .cshrc file
exec bash
which makes it move to bash shell from putty SSH terminal. But with remote
linux monitor, it just hangs there.
On Tue, Jul 29, 2014 at 1:20 PM, <remote-linux-monitor@googlecode.com>
wrote:
Original comment by deevis...@gmail.com
on 29 Jul 2014 at 8:46
Original issue reported on code.google.com by
deevis...@gmail.com
on 24 Jul 2014 at 11:33Attachments: