# Amazon AWS Failed to load environment files: no such file or directory

**URL:** <https://forums.kodeco.com/t/amazon-aws-failed-to-load-environment-files-no-such-file-or-directory/99242>\
**Category:** Server Side Swift with Vapor\
**Created:** [February 22, 2020, 5:04pm UTC](https://forums.kodeco.com/t/amazon-aws-failed-to-load-environment-files-no-such-file-or-directory/99242 "2020-02-22T17:04:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![marconi](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/marconi/32/102075_2.png) [@marconi](https://forums.kodeco.com/u/marconi)\
**Post date:** [February 22, 2020, 5:04pm UTC](https://forums.kodeco.com/t/amazon-aws-failed-to-load-environment-files-no-such-file-or-directory/99242/1 "2020-02-22T17:04:35Z")

</div>

First time attempting to Deploy Vapor on AWS per Chapter 33. Cannot get the service to run. I read the Chapter twice and checked all my work. Seems to be a resource issue with files.

vapor-til.service: Failed to load environment files: No such file or directory\*\*

tried restart

root@ip-xxxxx :/# systemctl restart vapor-til.service  
Job for vapor-til.service failed because of unavailable resources or another system error.

> systemctl status vapor-til.service

Logs:

– Unit vapor-til.service has finished shutting down.  
Feb 22 16:33:17 ip- xxx systemd[1]: **vapor-til.service: Start request repeated too quickly.**  
Feb 22 16:33:17 ip-xxx systemd[1]: **vapor-til.service: Failed with result ‘resources’.**  
Feb 22 16:33:17 ip-xxx systemd[1]: **Failed to start “Vapor TILapp”.**  
– Subject: Unit vapor-til.service has failed

And

– Unit vapor-til.service has finished shutting down.  
Feb 22 16:33:16 ip-xxx systemd[1]: **vapor-til.service: Failed to load environment files: No such file or directory**  
Feb 22 16:33:16 ip-xxx systemd[1]: **vapor-til.service: Failed to run ‘start’ task: No such file or directory**  
Feb 22 16:33:16 ip-xxx systemd[1]: **vapor-til.service: Failed with result ‘resources’.**  
Feb 22 16:33:16 ip-xxx systemd[1]: **Failed to start “Vapor TILapp”.**  
– Subject: Unit vapor-til.service has failed

Help!

---

<div class="post-metadata">

**Author:** ![erdmzgr](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/erdmzgr/32/81494_2.png) [@erdmzgr](https://forums.kodeco.com/u/erdmzgr)\
**Post date:** [February 23, 2020, 12:21pm UTC](https://forums.kodeco.com/t/amazon-aws-failed-to-load-environment-files-no-such-file-or-directory/99242/2 "2020-02-23T12:21:59Z")

</div>

i am getting the same problem with my vapor app. I spent maybe 8 hours to try it. But i did not solve this problem.

---

<div class="post-metadata">

**Author:** ![0xtim](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/0xtim/32/111111_2.png) [@0xtim](https://forums.kodeco.com/u/0xtim)\
**Post date:** [February 24, 2020, 5:13pm UTC](https://forums.kodeco.com/t/amazon-aws-failed-to-load-environment-files-no-such-file-or-directory/99242/3 "2020-02-24T17:13:08Z")

</div>

@erdmzgr are you getting the exact same error messages?

@marconi can you post your service file, the version of Swift you have installed and any differences to the sample project?

---

<div class="post-metadata">

**Author:** ![marconi](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/marconi/32/102075_2.png) [@marconi](https://forums.kodeco.com/u/marconi)\
**Post date:** [March 7, 2020, 7:33pm UTC](https://forums.kodeco.com/t/amazon-aws-failed-to-load-environment-files-no-such-file-or-directory/99242/4 "2020-03-07T19:33:38Z")

</div>

I’ve put this on hold for now. Will try to deploy with Heroku instead.

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [April 5, 2020, 12:00am UTC](https://forums.kodeco.com/t/amazon-aws-failed-to-load-environment-files-no-such-file-or-directory/99242/5 "2020-04-05T00:00:47Z")

</div>

@erdmzgr @marconi Do you still have issues with this?
