Page 1 of 1

screen issue

PostPosted: Thu Apr 20, 2023 7:57 am
by mr.indranathghosh
In a proactive check I found that ASTVDremote is crashing.

I am getting the below logs

2023-04-19 14:35:00|HANGING UP||
2023-04-19 14:35:00|CLOSING DB CONNECTION||
2023-04-19 14:36:02|PROGRAM STARTED|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
2023-04-19 14:36:02|LOGGED INTO MYSQL SERVER ON 1 CONNECTION||

Please suggest if there is something wrong or it is a normal behavior.

Re: screen issue

PostPosted: Thu Apr 20, 2023 8:02 am
by jamiemurray
That's normal for the log file, the lack of additional lines suggest no issues.
If you were seeing that repeatedly on the same day then that would suggest the process is crashing and being restarted by the keepalive script.

Re: screen issue

PostPosted: Thu Apr 20, 2023 8:14 am
by martinch
Hey,

--Do you have any entries in /var/log/astguiclient/remoteagent.x ?-- Whoops these are the log entries we were looking for. :)

Do you use remote agents?

It appears the endless loop is being escaped from. Debug the issue by running the script by hand...it could reveal a broken query or something.

Re: screen issue

PostPosted: Thu Apr 20, 2023 8:55 am
by jamiemurray
The log put up by mr.indranathghosh is the remoteagent.YYYY-MM-DD which is perfectly normal on a working system.

The loop is visible in the screen session it self.

screen -r ASTVDremote

Where would be seen output like this:

Code: Select all
loop counter: |28517|1|     |2000|
TIME DEBUG: -5.00|-4|1|   GMT: 13:54
2 live remote agents ACTIVE
0 remote agents on calls
 CALL WIPE UPDATE: 0E0|READY|||
 CALL WIPE UPDATE: 0E0|READY|||


CTRL + A, CTRL + D to exit.

Re: screen issue

PostPosted: Thu Apr 20, 2023 9:01 am
by martinch
Ah thanks jamie yeah the posted logs were indeed the logs we were looking for...couldn't find a strikethrough option on the board options so use --

From the looks of it, the script is crashing almost immediately after launch. If you have trouble getting into the screen before it crashes, you can run it by hand and Perl should give you an indication of why it's crashing.

Re: screen issue

PostPosted: Thu Apr 20, 2023 11:05 am
by jamiemurray
That's the point Martin, the lack of additional lines in the log the OP posted doesn't show the script restarting at all which it would attempt to do during the next keepalive run at the top of the minute if it had crashed. The lines would populate over and over again.

I deliberately killed ASTremote on a server that uses remote agents, the next keepalive then ran and the additional lines appeared showing the program starting:

Code: Select all
vmi1178730:/var/log/astguiclient # tail -f remoteagent.2023-04-20
2023-04-20 01:34:40|HANGING UP||
2023-04-20 01:34:40|CLOSING DB CONNECTION||
2023-04-20 01:35:03|PROGRAM STARTED|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
2023-04-20 01:35:03|LOGGED INTO MYSQL SERVER ON 1 CONNECTION||
2023-04-20 12:03:03|PROGRAM STARTED|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
2023-04-20 12:03:03|LOGGED INTO MYSQL SERVER ON 1 CONNECTION||


The hangup and close of the connection I believe is normal at the end of day, then keepalive starts it again.