screen issue

Any and all non-support discussions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

screen issue

Postby mr.indranathghosh » Thu Apr 20, 2023 7:57 am

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.
mr.indranathghosh
 
Posts: 6
Joined: Mon Jul 14, 2014 9:35 pm

Re: screen issue

Postby jamiemurray » Thu Apr 20, 2023 8:02 am

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.
Skype: live:support_71847 | Tel: (US) +1 646 647 8850 (CA) +1 613 900 6456 (MX) +52 55 9990 3550 (UK) +44 1324 285022 (ES) +34 922 937 384
Managed Hosting - No tech skills required | VoIP Termination & DID numbering | https://jmurraysolutions.com
jamiemurray
 
Posts: 179
Joined: Fri Jan 11, 2013 4:12 pm
Location: Tenerife, Canary Islands

Re: screen issue

Postby martinch » Thu Apr 20, 2023 8:14 am

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.
Project Lead @ mDial -> https://github.com/TheBlode/mDial
martinch
 
Posts: 273
Joined: Thu Nov 15, 2018 9:14 am
Location: England, UK

Re: screen issue

Postby jamiemurray » Thu Apr 20, 2023 8:55 am

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.
Skype: live:support_71847 | Tel: (US) +1 646 647 8850 (CA) +1 613 900 6456 (MX) +52 55 9990 3550 (UK) +44 1324 285022 (ES) +34 922 937 384
Managed Hosting - No tech skills required | VoIP Termination & DID numbering | https://jmurraysolutions.com
jamiemurray
 
Posts: 179
Joined: Fri Jan 11, 2013 4:12 pm
Location: Tenerife, Canary Islands

Re: screen issue

Postby martinch » Thu Apr 20, 2023 9:01 am

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.
Project Lead @ mDial -> https://github.com/TheBlode/mDial
martinch
 
Posts: 273
Joined: Thu Nov 15, 2018 9:14 am
Location: England, UK

Re: screen issue

Postby jamiemurray » Thu Apr 20, 2023 11:05 am

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.
Skype: live:support_71847 | Tel: (US) +1 646 647 8850 (CA) +1 613 900 6456 (MX) +52 55 9990 3550 (UK) +44 1324 285022 (ES) +34 922 937 384
Managed Hosting - No tech skills required | VoIP Termination & DID numbering | https://jmurraysolutions.com
jamiemurray
 
Posts: 179
Joined: Fri Jan 11, 2013 4:12 pm
Location: Tenerife, Canary Islands


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 45 guests