git push impossible due to unpacker error - gitlab

can anyone help me please ? I can't push due to :
C:\projects\MadmaqsSF>git push origin dev
Enumerating objects: 2125, done.
Counting objects: 100% (2125/2125), done.
Delta compression using up to 8 threads
Compressing objects: 100% (1473/1473), done.
Writing objects: 100% (2124/2124), 127.61 MiB | 233.35 MiB/s, done.
Total 2124 (delta 539), reused 2047 (delta 494)
remote: error: inflate: data stream error (invalid stored block lengths)
remote: fatal: pack has bad object at offset 43619424: inflate returned -3
error: remote unpack failed: index-pack abnormal exit
To http://midex/moud/MadmaqsSF.git
! [remote rejected] dev -> dev (unpacker error)
error: failed to push some refs to 'http://midex/moud/MadmaqsSF.git'
I think it's about long file name..
I tried:
git push -f origin dev
Its not a permission issue

Finally i just created a new repository and pushed my work on it. I think the old repo was corrupted.

Related

git clone deletes everything in my project

I am facing an issue with git.
I was cloning my git repo with git clone
However, i get this error message.
and the project folder is empty.
When i search about this issue online, people suggested git reset
but i got an error saying
error: invalid path 'nodejs/blog_mvc/public /style.css'
fatal: make_cache_entry failed for path 'nodejs/blog_mvc/public /style.css'
I am not getting what this error message is telling me to do.
Cloning into 'WebApps'...
remote: Enumerating objects: 488, done.
remote: Counting objects: 100% (488/488), done.
remote: Compressing objects: 100% (272/272), done.
remote: Total 5294 (delta 201), reused 426 (delta 142), pack-reused 4806
Receiving objects: 100% (5294/5294), 10.40 MiB | 2.91 MiB/s, done.
Resolving deltas: 100% (1361/1361), done.
error: invalid path 'nodejs/blog_mvc/public /style.css'
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'
and as it suggested, i did git restore --source=HEAD :/
and i got this error.
error: invalid path 'nodejs/blog_mvc/public /style.css'
when i checked git status, everything in the project was deleted.
But on my github account, everything is still there as usual.
Can someone tell me what is going on?
I am not sure if the best solution is rollback to the previous commit and start from there or if i could figure out in a better way, please let me know. that would help me.
Thank you in advance.

Gitlab shows remote: This server is readonly

Can't push the changes to any existing repository (Or) to new repository.
Error while pushing the changes:-
git push -u origin master
Enumerating objects: 3, done.
Counting objects: 100% (3/3), done.
Writing objects: 100% (3/3), 226 bytes | 226.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: ================================================
remote: This server is readonly
remote: ================================================
To gitlab.domain.com:gitlab-user/test30-jan-2020.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git#gitlab.domain.com:gitlab-user/test30-jan-2020.git'
GitLab GUI --> Under Admin--> Settings-->General & Repository settings checked, seems settings are fine.
And GitLab Server gitlab.rb file also doesn't have readonly settings mode enabled.
Any other clue/input to enable write mode?
Server side there was a custom hook /opt/gitlab/embedded/service/gitlab-shell/hooks/pre-receive.d which was preventing the push. Same has been removed it started working.

Dyno won't show up when I push Procfile to master to deploy the app

When trying to deploy my app; (an app for posting 18,982 screenshots to Twitter with a twitterbot I made, trying to run it in the background), I use Windows Command Prompt and I utilize node for pushing code to the master of my app but it I keep getting an error message and my dyno won't show up (even though the Procfile I made includes worker: node server.js
Here is the error message whenever I try to push to master.
F:\xxxxxxxxxxxxxxxx>git push heroku master
Enumerating objects: 18996, done.
Counting objects: 100% (18996/18996), done.
Delta compression using up to 12 threads
Compressing objects: 100% (18988/18988), done.
Writing objects: 100% (18996/18996), 4.38 GiB | 108.26 MiB/s, done.
Total 18996 (delta 6), reused 18992 (delta 5)
remote:
remote: ! Size of checkout and restored submodules exceeds 1 GB. Reduce size and try pushing again.
remote:
To https://git.heroku.com/xxxxxxxxxxxxxxxxx.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/xxxxxxxxxxxxxxxxx.git'
I followed instructions from these tutorials:
Tutorial blog
Video Tutorial
The problem is not in your code.
The problem is that you are trying to upload code which exceeds 1GB....
Size of checkout and restored submodules exceeds 1 GB. Reduce size and try pushing again.
Heroku limit your size to 500MB

max object size in GIT HUB

I am trying to push my EAR into GIT repo on Blue mix Dev Ops.
I tried force push as well. Git push fails with below error
Counting objects: 4, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 17.35 MiB | 48.00 KiB/s, done.
Total 4 (delta 1), reused 0 (delta 0)
error: unpack failed: error Object too large (108,624,080 bytes), rejecting the pack. Max object size limit is 104,857,600 bytes.
To https://hub.jazz.net/git/poem/InspectionsPOEM
! [remote rejected] master -> master (n/a (unpacker error))
error: failed to push some refs to 'https://hub.jazz.net/git/poem/InspectionsPOEM'
Please let me know how to set the max limit, size for the file in GIT and who has the access to do it
Thanks
Mathangi

How to remove big files from local repo for successful push

I've just created local repo and commited all files from the root dir.
But GiutHub failed to receive a push to remote hub cause of giant file limitations:
[srv50213#cl10-m htdocs]$ git push -u origin master
Counting objects: 17875, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (17645/17645), done.
Writing objects: 100% (17875/17875), 413.33 MiB | 3.69 MiB/s, done.
Total 17875 (delta 5496), reused 0 (delta 0)
remote: warning: File 20140924.srv50213_tarex.dump is 82.14 MB; this is larger than GitHub's recommended maximum file size of 50 MB
remote: error: GH001: Large files detected.
remote: error: Trace: ac437f9f600e8418e6bf5065e472204c
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File htdocs/2014-10-09-10:40-site-archive.zip is 227.12 MB; th exceeds GitHub's file size limit of 100 MB
To git#github.com:igorsavinkin/tarex.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git#github.com:igorsavinkin/tarex.git'
after that I tried to remove those files from local repo but failed, according to this instruction:
[srv50213#cl10-m htdocs]$ git rm --cached 20140924.srv50213_tarex.dump
fatal: pathspec 'htdocs/20140924.srv50213_tarex.dump' did not match any files
[srv50213#cl10-m ~]$ git rm --cached 20140924.srv50213_tarex.dump
rm '20140924.srv50213_tarex.dump'
[srv50213#cl10-m ~]$ git rm --cached htdocs/2014-10-09-10:40-site-archive.zip
fatal: pathspec 'htdocs/2014-10-09-10:40-site-archive.zip' did not match any files
[srv50213#cl10-m ~]$ git rm --cached 2014-10-09-10:40-site-archive.zip
fatal: pathspec '2014-10-09-10:40-site-archive.zip' did not match any files
Even though I amend:
[srv50213#cl10-m ~]$ git commit --amend -CHEAD
[master 35dc27d] remove file1.txt
6 files changed, 1249 insertions(+), 2072 deletions(-)
delete mode 100644 20140924.srv50213_tarex.dump
delete mode 100644 20140924.srv50213_yupe.dump
delete mode 100644 htdocs/2014-10-09-10:40-site-archive.zip
when I want to push it again I get the same result:
[srv50213#cl10-m ~]$ git push -u origin master
Counting objects: 17875, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (17645/17645), done.
Writing objects: 100% (17875/17875), 413.33 MiB | 3.63 MiB/s, done.
Total 17875 (delta 5499), reused 0 (delta 0)
remote: warning: File 20140924.srv50213_tarex.dump is 82.14 MB; this is larger than GitHub's recommended maximum file size of 50 MB
remote: error: GH001: Large files detected.
remote: error: Trace: 7abab285207c27988ceddd39f61f25cd
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File htdocs/2014-10-09-10:40-site-archive.zip is 227.12 MB; this exceeds GitHub's file size limit of 100 MB
To git#github.com:igorsavinkin/tarex.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git#github.com:igorsavinkin/tarex.git'
How to resolve this quest with 2 big files stored/stuck in the local repo?
When I want to remove them from git by git rm --cached 2014-10-09-10:40-site-archive.zip should an instance of it be in the corresponding folder of working copy?

Resources