# ODK central build fails on AWS EC2 instance

**URL:** <https://forum.getodk.org/t/odk-central-build-fails-on-aws-ec2-instance/35484>\
**Category:** Support\
**Tags:** odk-central\
**Created:** [October 22, 2021, 1:15pm UTC](https://forum.getodk.org/t/odk-central-build-fails-on-aws-ec2-instance/35484 "2021-10-22T13:15:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sudhir2016](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/sudhir2016/32/16562_2.png) [@sudhir2016](https://forum.getodk.org/u/sudhir2016)\
**Post date:** [October 22, 2021, 1:15pm UTC](https://forum.getodk.org/t/odk-central-build-fails-on-aws-ec2-instance/35484/1 "2021-10-22T13:15:59Z")

</div>

I tried building ODK Central on an AWS EC2 instance by following the Setting up ODK Central Docs. But I am getting build failure. Here is the error message.

Step 5/13 : COPY server/package\*.json ./  
COPY failed: no source files were specified  
ERROR: Service 'service' failed to build : Build failed

Please help.

---

<div class="post-metadata">

**Author:** ![danbjoseph](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/danbjoseph/32/21901_2.png) [@danbjoseph](https://forum.getodk.org/u/danbjoseph)\
**Post date:** [October 22, 2021, 7:15pm UTC](https://forum.getodk.org/t/odk-central-build-fails-on-aws-ec2-instance/35484/2 "2021-10-22T19:15:01Z")

</div>

Welcome to the forum @sudhir2016 and thanks for adding your profile picture. It helps build community! We're glad you're here. When you get a chance, please [introduce yourself on this forum thread](https://forum.getodk.org/t/-/6671).

What AWS AMI and what EC2 size are you using? Also, it will be hard to troubleshoot without knowing all the steps taken before that particular error message and a more complete log. Are you able to try and again and note down each step you take as you go?

---

<div class="post-metadata">

**Author:** ![sudhir2016](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/sudhir2016/32/16562_2.png) [@sudhir2016](https://forum.getodk.org/u/sudhir2016)\
**Post date:** [October 23, 2021, 8:51am UTC](https://forum.getodk.org/t/odk-central-build-fails-on-aws-ec2-instance/35484/3 "2021-10-23T08:51:23Z")

</div>

Thanks Dan. I have introduced myself. As suggested in the docs I used t2.micro and Ubuntu Server 20.04 LTS. I also tried to follow all the steps to build as per the doc. However I will try again and provide a more details.

---

<div class="post-metadata">

**Author:** ![sudhir2016](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/sudhir2016/32/16562_2.png) [@sudhir2016](https://forum.getodk.org/u/sudhir2016)\
**Post date:** [October 23, 2021, 4:57pm UTC](https://forum.getodk.org/t/odk-central-build-fails-on-aws-ec2-instance/35484/4 "2021-10-23T16:57:44Z")

</div>

I tried again and was able to build. I guess I missed apt upgrade before starting. Now I am struggling to connect to Central from Chrome browser. Quick question on this. I just provided public IP4 address in env file. Will this work.

---

<div class="post-metadata">

**Author:** ![KeynesYouDigIt](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/keynesyoudigit/32/4714_2.png) [@KeynesYouDigIt](https://forum.getodk.org/u/KeynesYouDigIt)\
**Post date:** [October 23, 2021, 7:34pm UTC](https://forum.getodk.org/t/odk-central-build-fails-on-aws-ec2-instance/35484/5 "2021-10-23T19:34:09Z")

</div>

I am not sure but can provide some steps for debugging. What happens when you plug that IP into a browser? Can you get a response when you ping it?

You'll eventually want to go through Route 53 and setup a domain and such, for security reasons. I have fairly limited experience doing that but here is the AWS guide on the topic [https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-to-ec2-instance.html](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-to-ec2-instance.html)

---

<div class="post-metadata">

**Author:** ![yanokwa](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/yanokwa/32/1695_2.png) [@yanokwa](https://forum.getodk.org/u/yanokwa)\
**Post date:** [October 23, 2021, 10:34pm UTC](https://forum.getodk.org/t/odk-central-build-fails-on-aws-ec2-instance/35484/6 "2021-10-23T22:34:00Z")

</div>

> [@sudhir2016](#):
>
> I just provided public IP4 address in env file. Will this work.

It will not. Which is why we have it in the documentation at [https://docs.getodk.org/central-install-digital-ocean/#getting-a-web-address-domain-name](https://docs.getodk.org/central-install-digital-ocean/#getting-a-web-address-domain-name) and have a comment in the the env file that says "Use fully qualified domain names".

---

<div class="post-metadata">

**Author:** ![sudhir2016](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/sudhir2016/32/16562_2.png) [@sudhir2016](https://forum.getodk.org/u/sudhir2016)\
**Post date:** [October 24, 2021, 2:38pm UTC](https://forum.getodk.org/t/odk-central-build-fails-on-aws-ec2-instance/35484/7 "2021-10-24T14:38:38Z")

</div>

Thank you Yanokwa. So there is no temporary work around like setting Domain=Local and SQL\_TYPE=Selfsign and using http instead of https in browser just for testing. Or maybe something else.
