Tag Archives: git

Vue-element-admin Use npm install Error: npm ERR! Error while executing:

This post is about solving the error when installing dependencies on vue-element-admin.
When using npm install to download dependencies, the first problem I encountered was as follows.

npm ERR! Error while executing:
npm ERR! D:\git\Git\cmd\git.EXE ls-remote -h -t https://github.com/nhn/raphael.git
npm ERR!
npm ERR! fatal: unable to access ‘https://github.com/nhn/raphael.git/’: OpenSSL SSL_read: Connection was reset, errno 10054
npm ERR!
npm ERR! exited with error code: 128
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\new\AppData\Roaming\npm-cache_logs\2021-09-08T01_40_03_853Z-debug.log

This is a bad network, you can change a network and then re-download the dependency, I re-downloaded after changing the network, and encountered another kind of error, as follows.

npm ERR! Error while executing:
npm ERR! D:\git\Git\cmd\git.EXE ls-remote -h -t https://github.com/nhn/raphael.git
npm ERR!
npm ERR! fatal: unable to access ‘https://github.com/nhn/raphael.git/’: Failed to connect to github.com port 443: Timed out
npm ERR!
npm ERR! exited with error code: 128
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\new\AppData\Roaming\npm-cache_logs\2021-09-08T01_23_18_405Z-debug.log

This problem can be solved by executing directly from the terminal.

git config –global url.“https://”.insteadOf git://

After execution, download the dependency again, and it will download normally

Flutter upgrade upgrade SDK SSL_ERROR_Syscall error [How to Solve]

Execute the following commands when upgrading the flutter

Flutter upgrade

Unfortunately, for some reason, it cannot be accessed. The following error is reported

Standard error: fatal: unable to access
'https://github.com/flutter/flutter.git/': LibreSSL SSL_connect:
SSL_ERROR_SYSCALL in connection to github.com:443

You can set the routing agent. The command is as follows:

git config --global http.proxy http://127.0.0.1:1080
git config --global https.proxy http://127.0.0.1:1080

Note that the port can be modified according to its own configuration. Set or not set HTTPS according to your needs
if you want to cancel the proxy setting, you can use the following command:

git config --global --unset http.proxy 
git config --global --unset https.proxy

After setting, test OK

Git config — the global command will add the following configuration in the ~ /. Gitconfig file

[http]
	proxy = http://127.0.0.1:1080
[https]
	proxy = https://127.0.0.1:1080

Note:
there is another way to use this command. It has not been tested yet. Save it first

git config --global --add remote.origin.proxy

When Jenkins deploys the project, GIT reports an error fatal: index file smaller than expected

@When Jenkins deploys the project, GIT reports an error fatal: index file smaller than expectedtoc

Recently, when learning to deploy Jenkins, microservice construction has been reporting errors:

Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress https://gitee.com/xxx +refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout: 
stderr: fatal: index file smaller than expected

	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2450)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2051)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:84)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:573)
	at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:994)
	... 11 more
ERROR: Error fetching remote repo 'origin'
Finished: FAILURE

The GIT problem found on the Internet is solved as follows:

View links

Because Jenkins uses git deployed on the server to pull the remote warehouse, I handle it according to the above method and re push it. It still doesn’t work.

Later, it was found that the workspace in Jenkins should be cleaned up first, and Jenkins should be pulled from the remote warehouse again. The problem was solved. As shown in the figure:

Solve the problem of reporting errors when tsfresh downloads UCI har dataset

Problem description

Run this code`

from tsfresh.examples.har_dataset import download_har_dataset, load_har_dataset, load_har_classes

# fetch dataset from uci
download_har_dataset()

Then an error is reported
connectionerror: httpsconnectionpool (host = ‘GitHub. Com’, port = 443): Max retries exceeded with URL:/maxbenchrist/human activity dataset/blob/Master/UCI% 20har% 20dataset. Zip?Raw = true (caused by newconnectionerror (‘lt; urllib3.connection.HTTPSConnection object at 0x0000023C7EDBDEE0>: Failed to establish a new connection: [winerror 10060] the connection attempt failed because the connecting party did not reply correctly after a period of time or the connected host did not respond. ‘)

resolvent

    open link
    [ https://github.com/MaxBenChrist/human-activity-dataset.git ]
    manually download the dataset, manually copy the human activity dataset master to ~/anaconda3/lib/site packages/tsfresh/examples/data/UCI har dataset, and rename it to UCI har dataset

    be careful:

    The location of the folder must be correct, otherwise an error will be reported
    location: ~/anaconda3/lib/site packages/tsfresh/examples/data/UCI har dataset/UCI har dataset

    Then you can load the data correctly!!!!!!

Git report HTTP Basic: Access denied

Recently, when submitting code on the company intranet using git, the following error message was encountered:

remote: HTTP Basic: Access denied
fatal: Authentication failed for 'http://dev.xxxxx/gitlab/XXXX.git/'

1、 Error reason

The reason for this error is an error in the verification of user name or password .

I have changed the configuration under the. SSH file before, but the verification is not successful.

2、 Settle

Find the corresponding project directory, execute the following git command, and re-enter the account and password

git config --system --unset credential.helper

Git remote: error: this exceeds file size limit of 100.0 MB

It is mainly aimed at the problems encountered by novices. When I first upload code with GitHub, the above errors are reported because individual files are large. After local deletion, the same error will still be reported, indicating that it has been saved to a cache area of GIT. You can modify it as follows:

For example, the large file I deleted before is a.txt (the same is true for folders). Execute the following code to delete it in a git cache

git filter-branch -f --prune-empty --index-filter 'git rm -rf --cached --ignore-unmatch a.txt' --tag-name-filter cat -- --all

How to Solve Git clone Error: error: RPC failed; result=35, HTTP code = 0

When installing odoo, GIT clone downloads odoo and reports an error
error: RPC failed; result=35, HTTP code = 0

[odoo@node02 src]$ git clone https://www.github.com/odoo/odoo --depth 1 --branch 14.0 /opt/odoo/odoo14
Cloning into '/opt/odoo/odoo14'...
error: RPC failed; result=35, HTTP code = 0
fatal: The remote end hung up unexpectedly

The Internet says the error cache is small

Solution: set the cache to 50m or greater
I set 50m

git config --global http.postBuffer 50M

The above error does not appear, but a new error appears

[odoo@node02 src]$ git config --global http.postBuffer 50M
[odoo@node02 src]$ git clone https://www.github.com/odoo/odoo --depth 1 --branch 14.0 /opt/odoo/odoo14
Cloning into '/opt/odoo/odoo14'...
fatal: unable to access 'https://www.github.com/odoo/odoo/': Encountered end of file

This is a mistake, fatal: unable to access ‘ https://www.github.com/odoo/odoo/ ’: Encountered end of file
clicking on the Internet:
git config –global http.proxy
git config –global –unset http.proxy

or not.

[odoo@node02 src]$ git config --global http.proxy
[odoo@node02 src]$ git config --global --unset http.proxy
[odoo@node02 src]$ git clone https://www.github.com/odoo/odoo --depth 1 --branch 14.0 /opt/odoo/odoo14
Cloning into '/opt/odoo/odoo14'...
fatal: unable to access 'https://www.github.com/odoo/odoo/': Encountered end of file
[odoo@node02 src]$ rm ~/.gitconfig
[odoo@node02 src]$ git clone https://www.github.com/odoo/odoo --depth 1 --branch 14.0 /opt/odoo/odoo14
Cloning into '/opt/odoo/odoo14'...
fatal: unable to access 'https://www.github.com/odoo/odoo/': Encountered end of file

The ultimate solution:
change HTTPS to GIT and you will succeed in Git clone git://www.github.com/ ****

[odoo@node02 src]$ git clone git://www.github.com/odoo/odoo --depth 1 --branch 14.0 /opt/odoo/odoo14     
Cloning into '/opt/odoo/odoo14'...
remote: Enumerating objects: 31507, done.
remote: Counting objects: 100% (31507/31507), done.
remote: Compressing objects: 100% (25092/25092), done.
Receiving objects:  20% (6511/31507), 22.17 MiB | 64.00 KiB/s