Log Erase through mavproxy not working on Cube Orange with AC 4.0.5

Pixhawk Model - Cube Orange

Version - AC 4.0.5

In my application i am using two mavproxy and the second mavproxy is initiated only i want to download log and erase from pixhawk… for erasing i do the following

Terminal -1
mavproxy.py --master=/dev/ttyPixhawk --out tcpin:0.0.0.0:5790
Terminal -2
mavproxy.py --master tcp:0.0.0.0:5790
GUIDED> log list
GUIDED>log erase all

This works as expected… even the log erase works fine

But if i have many udp outs and a tcp like below
Terminal -1
mavproxy.py --master=/dev/ttyPixhawk --out udp:0.0.0.0:14550 --out udp:0.0.0.0:14551 --out tcpin:0.0.0.0:5790
Terminal -2
mavproxy.py --master tcp:0.0.0.0:5790
GUIDED> log list
GUIDED>log erase all

In this case logs are not getting erased… and it returns no error… I tried connecting through mission planner on that TCP port of mavproxy and tried erasing… No success

However
If i use 3 mavproxy’s instead of 2 like above then the log erase works fine

Example:
Terminal -1
mavproxy.py --master=/dev/ttyPixhawk --out udp:0.0.0.0:14550 --out udp:0.0.0.0:14551 --out tcpin:0.0.0.0:5790
Terminal -2
mavproxy.py --master tcp:0.0.0.0:5790 --out tcpin:0.0.0.0:5780
Terminal -3
mavproxy.py --master tcp:0.0.0.0:5780
GUIDED> log list
GUIDED>log erase all
Logs are getting erased successfully by this method…

But i don’t want to use multiple mavproxy instances…

Pls help