# Maven Build Failure when setting up odk-x sync endpoint manually

**URL:** <https://forum.odk-x.org/t/maven-build-failure-when-setting-up-odk-x-sync-endpoint-manually/1214>\
**Category:** Support\
**Created:** [March 18, 2021, 5:35am UTC](https://forum.odk-x.org/t/maven-build-failure-when-setting-up-odk-x-sync-endpoint-manually/1214 "2021-03-18T05:35:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hissdev](https://odkx.b-cdn.net/user_avatar/forum.odk-x.org/hissdev/32/653_2.png) [@hissdev](https://forum.odk-x.org/u/hissdev)\
**Post date:** [March 18, 2021, 5:35am UTC](https://forum.odk-x.org/t/maven-build-failure-when-setting-up-odk-x-sync-endpoint-manually/1214/1 "2021-03-18T05:35:03Z")

</div>

Hello Team,  
Am getting the attached error when setting up odk-x sync endpoint. Am using ubuntu 18.04 as a guest os and the host os is microsoft server 2012r2.What could be the problem?

 ![Error from installing maven in ubuntu 18.04](https://odkx.b-cdn.net/uploads/default/original/1X/a59a1db33268cddfd363b75eedec689636a1b6bf.png)

---

<div class="post-metadata">

**Author:** ![Prashant](https://odkx.b-cdn.net/user_avatar/forum.odk-x.org/prashant/32/906_2.png) [@Prashant](https://forum.odk-x.org/u/Prashant)\
**Post date:** [March 18, 2021, 6:52am UTC](https://forum.odk-x.org/t/maven-build-failure-when-setting-up-odk-x-sync-endpoint-manually/1214/2 "2021-03-18T06:52:01Z")

</div>

Hi @hissdev ,

Check that the Docker is running in the background before running the command and make sure that the ‘Swarm mode’ is also active. You can check the swarm mode is active or not by running the command `docker info`.

---

<div class="post-metadata">

**Author:** ![hissdev](https://odkx.b-cdn.net/user_avatar/forum.odk-x.org/hissdev/32/653_2.png) [@hissdev](https://forum.odk-x.org/u/hissdev)\
**Post date:** [March 18, 2021, 8:09am UTC](https://forum.odk-x.org/t/maven-build-failure-when-setting-up-odk-x-sync-endpoint-manually/1214/3 "2021-03-18T08:09:16Z")

</div>

Many many Thanks @Prashant  
Am still getting the error message.  
The swarm mode is active as you can see from the attachment. I do not know what have not done right

 ![snip for docker swarm active](https://odkx.b-cdn.net/uploads/default/original/1X/067b12e1383cdc5d09744a9a13ab40450df793dd.png)

Many many Thanks

---

<div class="post-metadata">

**Author:** ![linl33](https://odkx.b-cdn.net/letter_avatar_proxy/v4/letter/l/b487fb/32.png) [@linl33](https://forum.odk-x.org/u/linl33)\
**Post date:** [March 18, 2021, 8:14am UTC](https://forum.odk-x.org/t/maven-build-failure-when-setting-up-odk-x-sync-endpoint-manually/1214/4 "2021-03-18T08:14:10Z")

</div>

@hissdev could you try adding your user to the `docker` group?

---

<div class="post-metadata">

**Author:** ![Prashant](https://odkx.b-cdn.net/user_avatar/forum.odk-x.org/prashant/32/906_2.png) [@Prashant](https://forum.odk-x.org/u/Prashant)\
**Post date:** [March 18, 2021, 8:14am UTC](https://forum.odk-x.org/t/maven-build-failure-when-setting-up-odk-x-sync-endpoint-manually/1214/5 "2021-03-18T08:14:38Z")

</div>

Did you try login to docker through command prompt and then running the command?

---

<div class="post-metadata">

**Author:** ![hissdev](https://odkx.b-cdn.net/user_avatar/forum.odk-x.org/hissdev/32/653_2.png) [@hissdev](https://forum.odk-x.org/u/hissdev)\
**Post date:** [March 18, 2021, 1:30pm UTC](https://forum.odk-x.org/t/maven-build-failure-when-setting-up-odk-x-sync-endpoint-manually/1214/7 "2021-03-18T13:30:02Z")

</div>

Many thanks @Prashant and @linl33  
I was running the command  
mvn clean install instead of sudo mvn clean install

Once again  
Many thanks
