MAD icon indicating copy to clipboard operation
MAD copied to clipboard

Autocommands.json seems to disable madmin

Open Axiangel opened this issue 4 years ago • 4 comments

I tried to add a autocommands.json file as described in the docs file by placing a slightly modified version of the example files in files/autocommands.json as described in the docs. When i start MAD, Madmin is not running nor is MADdevice able to get status. As soon as i remove the autocommands.json file and restart, madmin runs again.

Don't know if i'm doing anything wrong (most likely) or if there is a bug? Is the location files/ even correct? Seems a bit odd to put it where all the .stat files are.

Axiangel avatar Mar 03 '20 12:03 Axiangel

Does this still occur?

sn0opy avatar Mar 16 '20 17:03 sn0opy

No, it seems to be fixed or caused by a misconfiguration on my part. I tried to reproduce in order to flush out any bugs, but failed - Everything is running smooth. Closing this for now.

Axiangel avatar Mar 17 '20 09:03 Axiangel

It seems this is still a thing - atleast for me.

I create a job called 'autocommands.json' in the default MAD/files folder. When i restart MAD, the logs tell me that the autojob aws found and added. But the log never shows me a line, telling me that Madmin was started. And its not. As soon as i remove the autojob file and restart, madmin works again. This is the logline missing when i try to start with a autojob:

 File "/home/axi/MAD/mapadroid/madmin/madmin.py", line 59, in madmin_start
    app.run(host=args.madmin_ip, port=int(args.madmin_port), threaded=True)`

The job itself it very basic and propely formatted:

[{
	"redo": true,
	"algotype": "daily",
	"algovalue": "21:00",
	"startwithinit": false,
	"origins": "ATV",
	"job": "ATV - Reboot",
	"redoonerror": false
}]

I got both -vvv and a -vvvvv log but they are not anonymized. I can send them over if needed. Please PM-

Axiangel avatar Jun 29 '20 13:06 Axiangel

You can send the logs my way

Expl0dingBanana avatar Jun 29 '20 13:06 Expl0dingBanana