Keyboard Shortcuts
Likes
Search
Newbie Qn
I'm attempting to run IBC on AWS lightsail (ubuntu).
I have basically followed the directions from :? When I connect to my running IBC/GW instance using TightVNC all is good until it isnt. i.e if my computer goes to sleep or restarts I can't get back in to see what is going on My question is how do I know if my GW is still running when my viewing terminal is lost, i.e my client (local computer) has an evernt, (like it goes to sleep or something worse) I can't seem to get any information out the /Jts/launcher.log file. The last line useful is always? 2023-04-13 08:25:34.309 [AG] INFO? [JTS-PostAuthenticateS2-24] - Switching to a new encrypted log... And then I don't see any logging info |
¿ªÔÆÌåÓýWell, I think you really need to fix the problem with TightVNC. I can¡¯t give you any advice about that. ? Other than that, not sure what you can do other than standard Linux commands over SSH. ? Regarding log files, IBC took a silly decision several years ago to encrypt the Gateway and TWS logfiles, as you¡¯ve discovered. The launcher.log file only contains information from the startup phase, so it will never tell you about anything later. And to view the encrypted logfiles you have to use the GUI, which is a bit tricky if your VNC session is inaccessible (you REALLY need to fix that problem¡!). ? The only other thing is the IBC logfile, but that won¡¯t tell you much either. Though if IBC has shutdown for some reason, that should be recorded in the logfile. ? Oh, there is one other possibility: you can use IBC¡¯s command sever port (see the settings for this in config.ini) to send a dummy command, say ¡°HELLO¡±, and you¡¯ll get an ¡®ERROR Command invalid¡¯ response if IBC is running. You can send such a command using telnet, for example: ? telnet 10.252.0.7 7462 ? Here 10.252.0.7 is the IP address of my server running Gateway, and 7462 is the port number configured for the IBC command server. This will start an interactive telnet session if IBC is running, then just type in any command (other than STOP and RESTART which do exactly what they say). ? Alternatively you could script this: ? (echo restart; sleep 1; echo "HELLO" ) | telnet 10.252.0.7 7462 ? Richard |