# Dvc external output add after changing files data in remote is failing

**URL:** https://discuss.dvc.org/t/dvc-external-output-add-after-changing-files-data-in-remote-is-failing/731
**Category:** Questions
**Created:** [April 19, 2021, 7:52am UTC](https://discuss.dvc.org/t/dvc-external-output-add-after-changing-files-data-in-remote-is-failing/731 "2021-04-19T07:52:28Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![veeresh](https://avatars.discourse-cdn.com/v4/letter/v/df705f/32.png) [@veeresh](https://discuss.dvc.org/u/veeresh)
#### Post date: [April 19, 2021, 7:52am UTC](https://discuss.dvc.org/t/dvc-external-output-add-after-changing-files-data-in-remote-is-failing/731/1 "2021-04-19T07:52:28Z")

</div>

I know that, after changing data being tracked by dvc, we can use “dvc add” command and then “dvc push” to github. I can use different .dvc files to get back data using “dvc pull”.

The same when am trying to do with dvc external output, it is not working,  
I’m using remote storage and remote cache. And adding data of remote using “add --external” command.

- dvc add --external remote://s3remote/wine-quality.csv # tracks data, creates a cache folder in remote
- git push

Now, am changing data in remote place, and I want to track the news changes,

- dvc add --external remote://s3remote/wine-quality.csv  
[I’m using custom hosted Minion s3 bucket, to make changes am deleting the data file and uploading new one with same name with changes in data]  
This is failing with following error,  
 ![image](https://canada1.discourse-cdn.com/flex035/uploads/dataversioncontrol/original/1X/73a7302944e800f404f5a12f8b6123e45fbaa3bd.png)

FYI,

- **config file**  
[cache]  
s3 = s3cache  
[‘remote “s3remote”’]  
url = S3://datasource-bucket/  
endpointurl = [http://localhostminio:10009/](http://localhostminio:10009/)  
access\_key\_id = user  
secret\_access\_key = password  
use\_ssl = false  
[‘remote “s3cache”’]  
url = s3://datasource-bucket/cache/  
endpointurl = [http://localhostminio:10009/](http://localhostminio:10009/)  
access\_key\_id = user  
secret\_access\_key = password  
use\_ssl = false

---

<div class="post-metadata">

### Author: ![isidentical](https://avatars.discourse-cdn.com/v4/letter/i/c68b51/32.png) [@isidentical](https://discuss.dvc.org/u/isidentical)
#### Post date: [April 19, 2021, 7:58am UTC](https://discuss.dvc.org/t/dvc-external-output-add-after-changing-files-data-in-remote-is-failing/731/2 "2021-04-19T07:58:49Z")

</div>

> [@veeresh](#):
>
> This is failing with following error,

It seems like you initially added data in a folder named `remoteTrack` and now you are trying to add it again from a different folder. This is trying to create a new stage but then it fails since the stage already exists. You can do either go to the `remoteTrack\` folder and use the same command or specify the filename that belongs to the previous stage via `--file remoteTrack\wine-quality.csv.dvc`.

---

<div class="post-metadata">

### Author: ![veeresh](https://avatars.discourse-cdn.com/v4/letter/v/df705f/32.png) [@veeresh](https://discuss.dvc.org/u/veeresh)
#### Post date: [April 19, 2021, 8:40am UTC](https://discuss.dvc.org/t/dvc-external-output-add-after-changing-files-data-in-remote-is-failing/731/3 "2021-04-19T08:40:59Z")

</div>

Thanks @isidentical 🙂
