# Build failed: Unexpected error

**URL:** <https://forums.docker.com/t/build-failed-unexpected-error/16238>\
**Category:** Docker Hub\
**Tags:** dockerhub\
**Created:** [June 22, 2016, 12:49am UTC](https://forums.docker.com/t/build-failed-unexpected-error/16238 "2016-06-22T00:49:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![millerdev](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/millerdev/32/9700_2.png) [@millerdev](https://forums.docker.com/u/millerdev)\
**Post date:** [June 22, 2016, 12:49am UTC](https://forums.docker.com/t/build-failed-unexpected-error/16238/1 "2016-06-22T00:49:41Z")

</div>

My Docker Hub automated build is failing with an “Unexpected Error”:

```nohighlight
Building in Docker Cloud's infrastructure...
Starting to clone
Cloning into '.'...
Building in Docker Cloud's infrastructure...
Starting to clone
Cloning into '.'...
Submodule 'corehq/apps/hqmedia/static/hqm...

<snip>

Cloning done
Starting Build
KernelVersion: 4.4.0-21-generic
Os: linux
BuildTime: 2016-04-26T23:43:49.174056600+00:00
ApiVersion: 1.23
Version: 1.11.1
GitCommit: 5604cbe
Arch: amd64
GoVersion: go1.5.4
Starting build of index.docker.io/dimagi/commcarehq_base:latest...
Unexpected error

```

Full log here: [https://hub.docker.com/r/dimagi/commcarehq\_base/builds/bagclwyk86g5mugdotg7fpd/](https://hub.docker.com/r/dimagi/commcarehq_base/builds/bagclwyk86g5mugdotg7fpd/)

I can successfully build on Docker for Mac (Docker version 1.11.1, build 5604cbe) and Docker Toolbox (Docker version 1.11.2, build b9f10c9).

Edit: the last successful build on Docker Hub is here: [https://hub.docker.com/r/dimagi/commcarehq\_base/builds/btxpswbhlxknmvj8sswxgco/](https://hub.docker.com/r/dimagi/commcarehq_base/builds/btxpswbhlxknmvj8sswxgco/) I believe this was just before the Dockerfile was edited.

Why is it failing on Docker Hub?

---

<div class="post-metadata">

**Author:** ![millerdev](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/millerdev/32/9700_2.png) [@millerdev](https://forums.docker.com/u/millerdev)\
**Post date:** [June 30, 2016, 11:42am UTC](https://forums.docker.com/t/build-failed-unexpected-error/16238/2 "2016-06-30T11:42:11Z")

</div>

Our builds are still failing. Please help.

---

<div class="post-metadata">

**Author:** ![millerdev](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/millerdev/32/9700_2.png) [@millerdev](https://forums.docker.com/u/millerdev)\
**Post date:** [July 19, 2016, 10:52pm UTC](https://forums.docker.com/t/build-failed-unexpected-error/16238/3 "2016-07-19T22:52:01Z")

</div>

do the people who run [hub.docker.com](http://hub.docker.com) read this forum or am I asking in the wrong place?

---

<div class="post-metadata">

**Author:** ![rabrams](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/rabrams/32/12499_2.png) [@rabrams](https://forums.docker.com/u/rabrams)\
**Post date:** [July 20, 2016, 9:46pm UTC](https://forums.docker.com/t/build-failed-unexpected-error/16238/4 "2016-07-20T21:46:54Z")

</div>

Hello millerdev,

Thank you for filing this issue and for your patience. It looks like your Dockerfile is a symlink which causes a bug in our autobuild system. We will be working to address this issue but in the meantime I recommend you put the full path to your Dockerfile in your autobuild rule or moving your Dockerfile to your root directory.

Regards

---

<div class="post-metadata">

**Author:** ![millerdev](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/millerdev/32/9700_2.png) [@millerdev](https://forums.docker.com/u/millerdev)\
**Post date:** [July 21, 2016, 2:42pm UTC](https://forums.docker.com/t/build-failed-unexpected-error/16238/5 "2016-07-21T14:42:08Z")

</div>

Thanks! That appears to have fixed the issue.
