# Build failing in travis: "No stash entries found" and "missing access\_key\_id"

**URL:** <https://travis-ci.community/t/build-failing-in-travis-no-stash-entries-found-and-missing-access-key-id/11102>\
**Category:** Deployment\
**Tags:** travis-build\
**Created:** [January 30, 2021, 12:44pm UTC](https://travis-ci.community/t/build-failing-in-travis-no-stash-entries-found-and-missing-access-key-id/11102 "2021-01-30T12:44:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![dkmaruthi](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/dkmaruthi/32/6102_2.png) [@dkmaruthi](https://travis-ci.community/u/dkmaruthi)\
**Post date:** [January 30, 2021, 12:44pm UTC](https://travis-ci.community/t/build-failing-in-travis-no-stash-entries-found-and-missing-access-key-id/11102/1 "2021-01-30T12:44:01Z")

</div>

Hi Team,

Im trying to build and deploy to the AWS elasticbeakstalk its getting failing throwing the below error. can you someone please help me on this

```auto
Installing deploy dependencies
dpl.2
356Preparing deploy
358No stash entries found.
359missing access_key_id
360failed to deploy.

```

Travis.yml file.

```auto
sudo: required
language: generic

services:
  - docker

before_install:
  - docker build -t dkmaruthi/docker-react -f Dockerfile.dev .

script:
  - docker run -e CI=true dkmaruthi/docker-react npm run test

deploy:
  provider: elasticbeanstalk
  region: 'ap-south-1'
  app: 'docker'
  env: 'docker-env'
  bucket_name: 'elasticbeanstalk-ap-south-1-275166638116'
  bucket_path: 'docker'
  on:
    branch: master

    
    acces_key_id: $AWS_ACCESS_KEY
    secure_key_id: "$AWS_SECRET_KEY"

```

---

<div class="post-metadata">

**Author:** ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)\
**Post date:** [January 30, 2021, 6:12pm UTC](https://travis-ci.community/t/build-failing-in-travis-no-stash-entries-found-and-missing-access-key-id/11102/2 "2021-01-30T18:12:09Z")

</div>

- `acces_key_id`?

- ["No stash entries found" and " API request failed" - #4 by native-api](https://travis-ci.community/t/no-stash-entries-found-and-api-request-failed/119/4)

---

<div class="post-metadata">

**Author:** ![dkmaruthi](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/dkmaruthi/32/6102_2.png) [@dkmaruthi](https://travis-ci.community/u/dkmaruthi)\
**Post date:** [February 3, 2021, 9:51am UTC](https://travis-ci.community/t/build-failing-in-travis-no-stash-entries-found-and-missing-access-key-id/11102/3 "2021-02-03T09:51:49Z")

</div>

Getting same error again

---

<div class="post-metadata">

**Author:** ![sharanraj124](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/sharanraj124/32/7277_2.png) [@sharanraj124](https://travis-ci.community/u/sharanraj124)\
**Post date:** [October 11, 2021, 5:55am UTC](https://travis-ci.community/t/build-failing-in-travis-no-stash-entries-found-and-missing-access-key-id/11102/4 "2021-10-11T05:55:07Z")

</div>

Hi @dkmaruthi this is a solution. indentation mistake

```auto
deploy:
  provider: elasticbeanstalk
  region: 'ap-south-1'
  app: 'docker'
  env: 'docker-env'
  bucket_name: 'elasticbeanstalk-ap-south-1-275166638116'
  bucket_path: 'docker'
  on:
    branch: master
  acces_key_id: $AWS_ACCESS_KEY
  secure_key_id: "$AWS_SECRET_KEY"

```

---

<div class="post-metadata">

**Author:** ![achaJackson](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/achajackson/32/7811_2.png) [@achaJackson](https://travis-ci.community/u/achaJackson)\
**Post date:** [March 20, 2022, 8:10am UTC](https://travis-ci.community/t/build-failing-in-travis-no-stash-entries-found-and-missing-access-key-id/11102/5 "2022-03-20T08:10:12Z")

</div>

Based on the Travis update, you need to modify a few lines of code, Alse need to add **“skip\_cleanup: true”** under deploy:  
Because Travis CI now consider default variable as secure.

```auto
deploy:
  provider: elasticbeanstalk
  edge: true
  region: 'ap-south-1'
  app: 'docker'
  env: 'docker-env'
  bucket_name: 'elasticbeanstalk-ap-south-1-275166638116'
  bucket_path: 'docker'
  on:
    branch: master
  access_key_id: $AWS_ACCESS_KEY
  secure_key_id: "$AWS_SECRET_KEY"
  skip_cleanup: true

```

This worked for me.

---

<div class="post-metadata">

**Author:** ![muhammadhussain78](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/muhammadhussain78/32/8561_2.png) [@muhammadhussain78](https://travis-ci.community/u/muhammadhussain78)\
**Post date:** [February 26, 2023, 3:14pm UTC](https://travis-ci.community/t/build-failing-in-travis-no-stash-entries-found-and-missing-access-key-id/11102/6 "2023-02-26T15:14:51Z")

</div>

> [@achaJackson](#):
>
> `skip_cleanup: true`

Is this something coincidental or it is a must that the few additional lines of code must be applied in order for Travis to build the app ?

---

<div class="post-metadata">

**Author:** ![muhammadhussain78](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/muhammadhussain78/32/8561_2.png) [@muhammadhussain78](https://travis-ci.community/u/muhammadhussain78)\
**Post date:** [February 26, 2023, 3:19pm UTC](https://travis-ci.community/t/build-failing-in-travis-no-stash-entries-found-and-missing-access-key-id/11102/7 "2023-02-26T15:19:35Z")

</div>

I actually did what you suggested and i get the following in the Travis console

> $ rvm $(travis\_internal\_ruby) --fuzzy do ruby -S gem uninstall -aIx dpl
> 
> 272Unknown option: --secrect\_access\_key you mean? secret-access-key
> 
> 273failed to deploy

From that I would assume that the issue would be to the actual build engine due to recent updates, because I have following a course and the line of codes is word for word
