# Git failed to push dataset files on Jupyterlab

**URL:** <https://renku.discourse.group/t/git-failed-to-push-dataset-files-on-jupyterlab/70>\
**Category:** Renku (CLI)\
**Created:** [19 March 2020 14:36 UTC](https://renku.discourse.group/t/git-failed-to-push-dataset-files-on-jupyterlab/70 "2020-03-19T14:36:48Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jen-thomas](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/jen-thomas/32/55_2.png) [@jen-thomas](https://renku.discourse.group/u/jen-thomas)\
**Post date:** [19 March 2020 14:36 UTC](https://renku.discourse.group/t/git-failed-to-push-dataset-files-on-jupyterlab/70/1 "2020-03-19T14:36:48Z")

</div>

Hi All,

Just come across this git problem and I wondered if you might be able to help please? I’m not sure what to try next or check from here…

I’m working on Jupterlab in the private repo: [https://renkulab.io/gitlab/ACE-ASAID/cruise-track-legs0-4](https://renkulab.io/gitlab/ACE-ASAID/cruise-track-legs0-4)

I’ve imported a dataset and tried to add the files to git.

(Copied from Jupyterlab output)

```auto
work ❯ cruise-track-legs0-4 ▶ master ▶ 3? ▶ $ ▶ git add data/qualitychecked_onesec_10*

work ❯ cruise-track-legs0-4 ▶ master ▶ 8✔ ▶ 2? ▶ $ ▶ git commit -a
[master b5c9722] Added dataset quality checked one second resolution cruise track files.
git push orign m 8 files changed, 5976974 insertions(+)
 create mode 100644 data/qualitychecked_onesec_10/README.txt
 create mode 100644 data/qualitychecked_onesec_10/ace_cruise_track_1sec_2016-12.csv
 create mode 100644 data/qualitychecked_onesec_10/ace_cruise_track_1sec_2017-01.csv
 create mode 100644 data/qualitychecked_onesec_10/ace_cruise_track_1sec_2017-02.csv
 create mode 100644 data/qualitychecked_onesec_10/ace_cruise_track_1sec_2017-03.csv
 create mode 100644 data/qualitychecked_onesec_10/ace_cruise_track_1sec_2017-04.csv
 create mode 100644 data/qualitychecked_onesec_10/ace_cruise_track_trimble_example_deviation_2016-12-24.png
 create mode 100644 data/qualitychecked_onesec_10/data_file_header.txt

 work ❯ cruise-track-legs0-4 ▶ master ▶ ⬆ ▶ 2? ▶ $ ▶ git push origin master
Locking support detected on remote "origin". Consider enabling it with:
  $ git config lfs.https://oauth2:8509a6e80fe14fc384d7bce1c06c72d4f3782bd0997c5e58a6a342901cba2f20@renkulab.io/gitlab/ACE-ASAID/cruise-track-legs0-4.git/info/lfs.locksverify true
Counting objects: 9, done.
Delta compression using up to 8 threads.
error: pack-objects died of signal 9
error: pack-objects died of signal 9
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
error: failed to push some refs to 'https://oauth2:8509a6e80fe14fc384d7bce1c06c72d4f3782bd0997c5e58a6a342901cba2f20@renkulab.io/gitlab/ACE-ASAID/cruise-track-legs0-4.git'

 work ❯ cruise-track-legs0-4 ▶ master ▶ ⬆ ▶ 2? ▶ $ ▶ git config lfs.https://oauth2:8509a6e80fe14fc384d7bce1c06c72d4f3782bd0997c5e58a6a342901cba2f20@renkulab.io/gitlab/ACE-ASAID/cruise-track-legs0-4.git/info/lfs.locksverify true

work ❯ cruise-track-legs0-4 ▶ master ▶ ⬆ ▶ 2? ▶ $ ▶ git push origin masterCounting objects: 9, done.
Delta compression using up to 8 threads.
error: pack-objects died of signal 9
error: pack-objects died of signal 9
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
error: failed to push some refs to 'https://oauth2:8509a6e80fe14fc384d7bce1c06c72d4f3782bd0997c5e58a6a342901cba2f20@renkulab.io/gitlab/ACE-ASAID/cruise-track-legs0-4.git'

```

Thank you for your help and patience with all these questions 🙂

---

<div class="post-metadata">

**Author:** ![rrrrrok](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/rrrrrok/32/117_2.png) [@rrrrrok](https://renku.discourse.group/u/rrrrrok)\
**Post date:** [19 March 2020 14:39 UTC](https://renku.discourse.group/t/git-failed-to-push-dataset-files-on-jupyterlab/70/2 "2020-03-19T14:39:40Z")

</div>

It looks to me like you just checked in data directly to the repo (without adding them to LFS) - how big are those csv files?

---

<div class="post-metadata">

**Author:** ![jen-thomas](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/jen-thomas/32/55_2.png) [@jen-thomas](https://renku.discourse.group/u/jen-thomas)\
**Post date:** [19 March 2020 15:00 UTC](https://renku.discourse.group/t/git-failed-to-push-dataset-files-on-jupyterlab/70/3 "2020-03-19T15:00:22Z")

</div>

The total is ~ 1 GB, so a few hundred MB each

---

<div class="post-metadata">

**Author:** ![rrrrrok](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/rrrrrok/32/117_2.png) [@rrrrrok](https://renku.discourse.group/u/rrrrrok)\
**Post date:** [19 March 2020 15:05 UTC](https://renku.discourse.group/t/git-failed-to-push-dataset-files-on-jupyterlab/70/4 "2020-03-19T15:05:30Z")

</div>

And you didn’t add them to git-lfs beforehand, correct? Did you upload the files through the jupyterlab interface?

---

<div class="post-metadata">

**Author:** ![jen-thomas](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/jen-thomas/32/55_2.png) [@jen-thomas](https://renku.discourse.group/u/jen-thomas)\
**Post date:** [19 March 2020 15:07 UTC](https://renku.discourse.group/t/git-failed-to-push-dataset-files-on-jupyterlab/70/5 "2020-03-19T15:07:55Z")

</div>

> And you didn’t add them to git-lfs beforehand, correct?

No I didn’t, that is correct. Although since your message I have been trying and am now in a funny state of having some in lfs and others not…

> Did you upload the files through the jupyterlab interface?

Yes

---

<div class="post-metadata">

**Author:** ![rrrrrok](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/rrrrrok/32/117_2.png) [@rrrrrok](https://renku.discourse.group/u/rrrrrok)\
**Post date:** [19 March 2020 15:14 UTC](https://renku.discourse.group/t/git-failed-to-push-dataset-files-on-jupyterlab/70/6 "2020-03-19T15:14:59Z")

</div>

Ok, so we do actually now have a UI to do this 🙂

If you go to the project and go to the datasets tab for the project, you can either modify existing datasets (and add files there) or create a new dataset. You can drag and drop files to add them.

To resolve your situation, here’s what I would do:

```auto
git reset <commit-id-before-git-add>
git lfs track <data files>
git add .gitattributes
git add <data files>
git commit -m "msg"

```

I _think_ this should work.

---

<div class="post-metadata">

**Author:** ![jen-thomas](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/jen-thomas/32/55_2.png) [@jen-thomas](https://renku.discourse.group/u/jen-thomas)\
**Post date:** [19 March 2020 15:27 UTC](https://renku.discourse.group/t/git-failed-to-push-dataset-files-on-jupyterlab/70/7 "2020-03-19T15:27:27Z")

</div>

ok thanks I’ll give it a go!

---

<div class="post-metadata">

**Author:** ![jen-thomas](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/jen-thomas/32/55_2.png) [@jen-thomas](https://renku.discourse.group/u/jen-thomas)\
**Post date:** [19 March 2020 15:39 UTC](https://renku.discourse.group/t/git-failed-to-push-dataset-files-on-jupyterlab/70/8 "2020-03-19T15:39:01Z")

</div>

Succeeded, thank you! Help much appreciated 😀

---

<div class="post-metadata">

**Author:** ![rrrrrok](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/rrrrrok/32/117_2.png) [@rrrrrok](https://renku.discourse.group/u/rrrrrok)\
**Post date:** [19 March 2020 15:41 UTC](https://renku.discourse.group/t/git-failed-to-push-dataset-files-on-jupyterlab/70/9 "2020-03-19T15:41:37Z")

</div>

whew I’m glad it was that easy 😃
