ERROR: Failed to harvest environment variables

I had the same issue, I think there may be a maxlength on the Path variable.