clone fails with "smudge filter lfs failed (...) HTTP_1_1_REQUIRED" - azure-devops

I'm trying to clone a git repo from my corp locally-hosted TFS/devops. However, I get failure:
batch response: Post (...) HTTP_1_1_REQUIRED
I saw recommendation to skip smudge by running git lfs install --skip-smudge
or setting GIT_LFS_SKIP_SMUDGE=1, but then the lfs-provided binaries don't get pulled and I get compile errors.

Solution - Before clone, run: git config --global --replace-all http.version HTTP/1.1
Ref, from the git-lfs developer which added the http.version option: https://github.com/git-lfs/git-lfs/issues/3875#issuecomment-607260728

Related

vercel deployment failed: Host key verification failed

I got this error when deploying a project on vercel. I have 4 other projects hosted on vercel and never had this issue before:
warning Pattern ["ethereumjs-abi#git+https://github.com/ethereumjs/ethereumjs-abi.git"]
is trying to unpack in the same destination
"/vercel/.cache/yarn/v6/npm-ethereumjs-abi-0.6.8-ee3994657fa7a427238e6ba92a84d0b529bbcde0/node_modules/ethereumjs-abi"
as pattern ["ethereumjs-abi#^0.6.8"]. This could result in non-deterministic behavior, skipping.
error Command failed.
Exit code: 128
Command: git
Arguments: ls-remote --tags --heads ssh://git#github.com/ethereumjs/ethereumjs-abi.git
Directory: /vercel/path0
Output:
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Error: Command "yarn install" exited with 128
deleted the package-lock.json and tried it
I made sure dev dependencies are correctly separated from dependencies.
BUt still same error. I could successfully build with
npm run build
yarn build
locally.
What worked for me was deleting my git repository using:
rm -fr .git
and initializing a new repository in the same directory but this time I didn't use npm , instead used yarn. So make sure to delete package-lock.json and node modules and then run :
yarn
In your package.json you will have this dependency:
"ethereumjs-abi": "github:ethereumjs/ethereumjs-abi"
This kind of reference defaults to access github over ssh, but github have deprecated this mode of access. Instead you should use https like this:
"ethereumjs-abi": "https://github.com/ethereumjs/ethereumjs-abi"

How to do_fetch by hand in a Yocto Project

My question is raised because my build-yocto server ran into the error:
ERROR: Fetcher failure: Fetch command failed with exit code 128, output:
Cloning into bare repository '/mnt/wd2tb/home/Work/skrzg1h_iWg21m_QtHmi/build/downloads/git2/github.com.qtproject.qtenginio.git'...
Fetcher failure for URL: 'git://github.com/qtproject/qtenginio.git;name=qtenginio;branch=5.6;protocol=git'. Unable to fetch URL from any source.
In the meantime, my PC can do that. So, I cloned the qtenginio repo to my local PC.
$ git clone git://github.com/qtproject/qtenginio.git;name=qtenginio;branch=5.6;protocol=git
And copy the downloaded source code above into the downloads/git2/github.com.qtproject.qtenginio.git folder of Yocto project.
Finally, I run the bitbake command.
$ bitbake qtenginio
But the fetch still fails.
Anyone can help me in this case ?
bitbake clones bare git repo, please add option '--bare' and touch a .done file to tell bitbake that do_fetch has been done already:
$ git clone --bare git://github.com/qtproject/qtenginio.git;name=qtenginio;branch=5.6 /mnt/wd2tb/home/Work/skrzg1h_iWg21m_QtHmi/build/downloads/git2/github.com.qtproject.qtenginio.git
$ touch /mnt/wd2tb/home/Work/skrzg1h_iWg21m_QtHmi/build/downloads/git2/github.com.qtproject.qtenginio.git.done
Step 1: download the package by hand (wget, git clone ...)
Step 2: copy the package into ./build/downloads
Step 3: touch a package_name.done file.
Step 4: change permission for the *.done file: chmod 777 package_name.done

Connection error with cocoapods. Proxy CONNECT aborted

I have problem with instalation cococapods. I have done following steps in terminal:
~sudo gem update --system
~sudo gem install cocoapods
and after
~pod setup
I have this error message
MacBook-Pro-Aleksandr:~ aleksandrkarpov$ pod setup
Setting up CocoaPods master repo
[!] /usr/bin/git clone https://github.com/CocoaPods/Specs.git master --depth=1
Cloning into 'master'...
fatal: unable to access 'https://github.com/CocoaPods/Specs.git/': Proxy CONNECT aborted
I worked before with cocoapods and it was ok. In this case I don't know what to do. Can anyone help me, please?
I found solution here.
I wrote only in terminal:
git config --global http.proxy
git config --global --unset http.proxy
and it resolved my problem.

bower ECMDERR Failed to execute "git ls-remote --tags --heads > git#github.om:mobify/bellows.git", exit code of #128

I am trying to install the pinny1.0 plugin using bower as:
bower install https://github.com/mobify/pinny.git#pinny-1.0
But meanwhile installing the plugin, I am getting issues as:
bower ECMDERR Failed to execute "git ls-remote --tags --heads
git#github.com:mobify/bellows.git", exit code of #128
Additional error details: Host key verification failed. fatal: Could
not read from remote repository.
Please make sure you have the correct access rights and the repository
exists.
I am not sure how this is redirecting from pinny1.0 to bellows.git.
I have tried to check the issue on Github bug tracking and find some discussion at #1426
but did not get much idea as I am not working on some proxy server.
I had The same Problem with Install packages using Bower.
This Problem happen because bower proxy configuration, you need to make bower use http:// Instead of git:// when install packages. you can Solve this problem using .bowerrc File.
Just create .bowerrc File and set proxy and https-proxy configuration :
{
"proxy" : "http://<host>:<port>",
"https-proxy" : "http://<host>:<port>"
}
More About Bower Documentation for .bowerrc File
There Two Questions about bower proxy configuration in StackOverflow :
First Question , second Question
Update:
IF the First Solution Does not Work, you can try suggest #thebignet into same issue on GitHub
Set proxy, https-proxy and strict-ssl configuration into .bowerrc File :
{
"proxy" : "http://<host>:<port>",
"https-proxy" : "http://<host>:<port>",
"strict-ssl" : false
}
But you must run Command from terminal:
git config --global url."https://".insteadOf git://
That is indeed an odd error. Interestingly, the git URL looks malformed.
git#github.om:mobify/bellows.git
There's no 'c' in .com. It is also weird that pinny is trying to pull bellows in; they're totally unrelated.
Could you let me know what OS and version of bower you're using?
I'll try to reproduce this and let you know if I find anything.

Can't build Facebooks HHVM from Github (git submodule init)

When I run these steps:
mkdir dev
cd dev
git clone git://github.com/facebook/hhvm.git
cd hhvm
git submodule init
export CMAKE_PREFIX_PATH=`pwd`/..
export HPHP_HOME=`pwd`
cd ..
url: https://github.com/facebook/hhvm/wiki/Building-and-installing-HHVM-on-Ubuntu-12.04
I get stuck at the git submodule init I get the error: Submodule 'hphp/submodules/folly' () registered for path 'hphp/submodules/folly'
I have no clue what it means and it doesn't look like a fatal error...
UPDATE:
git submodule sync does sync php/submodules/folly but still the same error...
I would try:
git submodule update --init --recursive
And make sure that "Submodule 'xxx' registered for path 'yyy'" is indeed an error message: it looks like a standard answer for a git submodule init command.
From the git submodule book page:
The rack directory is there, but empty.
You must run two commands:
git submodule init to initialize your local configuration file, and
git submodule update to fetch all the data from that project and check out the appropriate commit listed in your superproject:
$ git submodule init
Submodule 'rack' (git://github.com/chneukirchen/rack.git) registered for path 'rack'
$ git submodule update
Initialized empty Git repository in /opt/myproject/rack/.git/
remote: Counting objects: 3181, done.
remote: Compressing objects: 100% (1534/1534), done.
remote: Total 3181 (delta 1951), reused 2623 (delta 1603)
Receiving objects: 100% (3181/3181), 675.42 KiB | 173 KiB/s, done.
Resolving deltas: 100% (1951/1951), done.
Submodule path 'rack': checked out '08d709f78b8c5b0fbeb7821e37fa53e69afcf433'
I prefer running only one command:
git submodule update --init