Skip to main content

Hello,



I am investigating a case where amagent service has been stopped. In that process, I went through logs prior to service got stopped. I find hourly hearbeater a lot which is considered normal but prior to service got stopped MQCLIENT got stopped which I believe is the reason it service got stopped. If that’s the case, what are the reasons mqclient can get stopped.



2020/12/09 23:39:02 cmd.go:158: Received nop command

2020/12/09 23:39:02 asclient.go:241: POST https://api.automox.com/checkin?uptime=2080479&ver=1.0-29&tz=UTC-0500&diag=1

2020/12/09 23:39:02 asclient.go:583: No proxy found. Using direct connection

2020/12/09 23:39:58 main.go:436: Backing off on NOP

2020/12/10 00:18:04 main_windows.go:87: Service shutting down.

2020/12/10 00:18:04 mqclient.go:209: MQ Client Stopping

2020/12/10 00:18:04 stompclient.go:318: Stopping heartbeater

2020/12/10 00:18:05 stompclient.go:378: Stopping consumer

2020/12/10 00:18:05 mqclient.go:220: MQ waiting for mq workers to terminate...

2020/12/10 00:18:05 mqclient.go:123: MQ exit...

2020/12/10 00:18:05 mqclient.go:250: MQ Exiting checkin loop

2020/12/10 00:18:05 mqclient.go:222: MQ Client stopped

2020/12/10 00:18:05 main_windows.go:96: Waiting for 10 workers to terminate...

2020/12/10 00:18:05 axbackoff.go:35: Backoff interrupted.

2020/12/10 00:18:05 axbackoff.go:43: Backoff duration was 58m27.6393111s

2020/12/10 00:18:05 cmd.go:158: Received nop command

2020/12/10 00:18:05 client.go:19: Routine terminated... Event={} OK=false

2020/12/10 00:18:05 main.go:356: HTTP Client exited...

2020/12/10 00:18:05 axbackoff.go:35: Backoff interrupted.

2020/12/10 00:18:05 axbackoff.go:43: Backoff duration was 38m7.1025419s

2020/12/10 00:18:05 cmd.go:158: Received nop command

2020/12/10 00:18:05 client.go:19: Routine terminated... Event={} OK=false

2020/12/10 00:18:05 main.go:356: HTTP Client exited...

2020/12/10 00:18:05 main_windows.go:98: All workers terminated

Hello @ravan, welcome. From the looks of that log, it was a normal termination and not an error condition. The mqclient message you will see if the service is stopped on a machine. Is it possible it was stopped manually, or the host machine shut down at that time?


Just went through syslogs and found that host machine was going through windows update at that time. Could that affect amagent to enter stopped state?


It could indeed if the patching involved a reboot.


Reply