I do not know why but at a time when I tried to add my progress to my deposit I had:
(MoodEnv) mike@mike-thinks:~/Programing/Rasa/Moodbot$ git add .
Bus error (core dumped)
Then I try again but it tells me that a file already exists:
(MoodEnv) mike@mike-thinks:~/Programing/Rasa/Moodbot$ git add .
fatal: Unable to create '/home/mike/Programing/Rasa/Moodbot/.git/index.lock': File exists.
If no other git process is currently running, this probably means a
git process crashed in this repository earlier. Make sure no other git
process is running and remove the file manually to continue.
That's why:
(MoodEnv) mike@mike-thinks:~/Programing/Rasa/Moodbot$ rm .git/index.lock
error: short read No such file or directory
error: MoodEnv/lib/python3.5/site-packages/libfuturize/fixes/__pycache__/fix_UserDict.cpython-35.pyc: failed to insert into database
error: unable to index file MoodEnv/lib/python3.5/site-packages/libfuturize/fixes/__pycache__/fix_UserDict.cpython-35.pyc
fatal: updating files failed
Update 05/31/2018
I'm not sure that's what worked, but he did:
rm -f ./.git/index.lock
And now he says:
(MoodEnv) mike@mike-thinks:~/Programing/Rasa/Moodbot$ git add .
(MoodEnv) mike@mike-thinks:~/Programing/Rasa/Moodbot$ git commit -m "milestone : ready to work, don't forget to add the true credentials"
[master 5db6840] milestone : ready to work, don't forget to add the true credentials
19 files changed, 2127 insertions(+), 524 deletions(-)
rewrite models/dialogue/policy_1_KerasPolicy/featurizer.json (92%)
rewrite models/dialogue/policy_1_KerasPolicy/keras_arch.json (100%)
rewrite models/dialogue/policy_1_KerasPolicy/keras_weights.h5 (73%)
(MoodEnv) mike@mike-thinks:~/Programing/Rasa/Moodbot$ git push origin master
Username for 'https://github.com': antoinecomp
Password for 'https://[email protected]':
Counting objects: 23662, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (20906/20906), done.
Writing objects: 100% (23662/23662), 392.91 MiB | 1.41 MiB/s, done.
Total 23662 (delta 3553), reused 11501 (delta 2261)
remote: Resolving deltas: 100% (3553/3553), completed with 13 local objects.
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
remote: error: Trace: 18f9ed182009e2704aa994c425387a10
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File MoodEnv/lib/python3.5/site-packages/en_core_web_md/en_core_web_md-2.0.0/vocab/lexemes.bin is 123.03 MB; this exceeds GitHub's file size limit of 100.00 MB
remote: error: File MoodEnv/lib/python3.5/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so is 112.42 MB; this exceeds GitHub's file size limit of 100.00 MB
To https://github.com/antoinecomp/moodbot4.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://github.com/antoinecomp/moodbot4.git'
It seems that the reason why it does not work is because of a file that weighs more than 100Mb. It's strange because I thought I added them all in the .gitignore
but maybe one was added. Here is the .gitignore
:
/MoodbotEnv/*
Attempting to remove large files that have ever gone through version control by following this answer I got:
mike@mike-thinks:~/Programing/Rasa/Moodbot$ git rev-list --objects --all |\
git cat-file --batch-check='%(objectsize) %(rest)' |\
awk '$1 >= 100 * 2^20' |\
sort --numeric-sort --key=1 |\
numfmt --field=1 --to=iec-i --suffix=B --padding=7 --round=nearest
112MiB MoodEnv/lib/python3.5/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so
123MiB MoodEnv/lib/python3.5/site-packages/en_core_web_md/en_core_web_md-2.0.0/vocab/lexemes.bin
But to eliminate that file from the story forever, it does not work as in the answer, there seems to be some commitment to do:
mike@mike-thinks:~/Programing/Rasa/Moodbot$ git filter-branch -f --index-filter
'git rm --cached --ignore-unmatch
MoodEnv/lib/python3.5/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so' HEAD
Cannot rewrite branches: Your index contains uncommitted changes.