APM server failed to listen:listen tcp 127.0.0.1:8200

Try sudo service apm-server stop and then run the sudo lsof -i :8200 command? Do you still see an apm-server process listening on 8200?