[Self-hosted Mender 1.7] Deployment Stalls at 99%

Hi @ajithpv,

I work with @fbeachler and am involved with this troubleshooting effort. I can confirm that my test device did completely reboot on the new image. It then went into the mode of trying to POST and update status report back to the server to show the deployment as complete. Here is a log from the device when it is in this state:

Apr 11 15:05:57 boomtown-agent mender[230]: [[0;1;31mlevel=error msg="failed to report data success: reporting status failed, bad status 404" module=state[[0m
Apr 11 15:10:57 boomtown-agent mender[230]: level=info msg="attempting to report data of deployment [4340f1ee-d1ea-4dfe-8e08-8cc510d55e0f] to the backend; deployment status [success], try 2" module=state
Apr 11 15:10:57 boomtown-agent mender[230]: time="2019-04-11T15:10:57-07:00" level=info msg="attempting to report data of deployment [4340f1ee-d1ea-4dfe-8e08-8cc510d55e0f] to the backend; deployment status [success], try 2" module=state
Apr 11 15:10:57 boomtown-agent mender[230]: [[0;1;31mlevel=error msg="got unexpected HTTP status when reporting status: 404" module="client_status"[[0m
Apr 11 15:10:57 boomtown-agent mender[230]: [[0;1;31mlevel=error msg="error reporting update status: reporting status failed, bad status 404" module=mender[[0m
Apr 11 15:10:57 boomtown-agent mender[230]: time="2019-04-11T15:10:57-07:00" level=error msg="got unexpected HTTP status when reporting status: 404" module="client_status"
Apr 11 15:10:57 boomtown-agent mender[230]: time="2019-04-11T15:10:57-07:00" level=error msg="error reporting update status: reporting status failed, bad status 404" module=mender
Apr 11 15:10:57 boomtown-agent mender[230]: time="2019-04-11T15:10:57-07:00" level=error msg="failed to report data success: reporting status failed, bad status 404" module=state
Apr 11 15:10:57 boomtown-agent mender[230]: [[0;1;31mlevel=error msg="failed to report data success: reporting status failed, bad status 404" module=state[[0m

And here is what the corresponding request looked like in the mender-api-gateway log:

Apr 11 15:05:57 oa.uat.sjc.boomtown.cloud run[5737]: mender-api-gateway_1 | 172.24.10.2 - - [11/Apr/2019:22:05:57 +0000] "PUT //api/devices/v1/deployments/device/deployments/4340f1ee-d1ea-4dfe-8e08-8cc510d55e0f/status HTTP/1.1" 404 59 "-" "Go-http-client/1.1" "74.123.252.3" request ID "533d8e73-4c62-4081-8c3c-bf05582c1d5e" 0.003

Notice the double // in the URL seems to cause it to get a 404.
Any clues?

Thanks,
Daniel