Failed: Bad exit code

Cant upgrade agents from console or directly. Get Failed: Bad Exit code from console and when manually, get "the feature you are trying to use is on a network resource that is unavailable"

Going from 10.1 to 10.2. Reboot do not solve the issue.