Tag Archives: github

[Solved] Jekyll Install Error: cannot load such file — webrick (LoadError)

Jekyll install cannot load such file – webrick (LoadError)

catalogue

Jekyll installation cannot load such file — webrick (LoadError) fast track problem background, problem analysis and solution summary

Express Lane

bundle add webrick


Problem background

I use archlinux. Recently, on a whim, I wanted to build a blog on GitHub pages. I looked for it and found two mainstream ones, one is Jekyll and the other is hexo. I heard that the previous one has richer functions, but the syntax is not friendly to programmers, and someone around me uses hexo, but I chose the former, which has rich functions and attracts me more.
but I followed the quick start on the home page

  ~ $ gem install bundler jekyll

  ~ $ jekyll new my-awesome-site

  ~ $ cd my-awesome-site

  ~/my-awesome-site $ bundle exec jekyll serve

# => Now browse to http://localhost:4000

When starting the service in the last step, it reports an error

cannot load such file -- webrick (LoadError)

Problem analysis

After checking a bunch of things on the Internet, we finally found the answer from the official website. The problem is solved by the official documents and is
UE (which tells us that the official documents and GitHub issue are preferred for problems). Through the official website, we can know that we can solve the problem by running bundle add webrick : QuickStart https://jekyllrb.com/docs/,

From the answer given in the issue link on the official website, we can know that ruby3.0.0 and above will no longer bring their own webrick and need to be manually added to the environment

Solution:

Add webrick to dependency: bundle add webrick
this should be implemented in the project

In addition, I tossed around some things, which should not have much to do with the solution of the problem
if webrick does not exist, I can use gem installation: gem install webrick
in addition, I also installed GitHub pages: gem install GitHub pages

Summary

Read more official documents and turn to issue

Support for password authentication was removed on August 13, 2021

Support for password authentication was removed on August 13, 2021

When using git upload to push the local warehouse to the remote server, the following problems occur:

remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: Inaccessible 'https://github.com/LiuXianghai-coder/Study.git/':The requested URL returned error: 403

Since August 13, 2021, the authentication method of user name + password in GitHub has been removed and can only be authenticated by personal access code.

      1. first, you need to create a personal access code, that is,

    persona access tokenfirst, enter the GitHub main interface:

    1. select “meeting”, enter the setting interface:

    1. select “developer meetings” in the navigation column on the left, Enter the developer settings page

    1. select “personal access tokens” and click “generate new token”:

    1. you will see the following interface:

    1.   enter “note” and select “expiration”. You can define the effective time by yourself. If there are no special requirements, check all the check boxes below, and then go to the bottom of the page and click “generate token” to generate the corresponding personal access code

    1. now you can see the generated personal access code. Copy it and save it to a file

      1. use

    personal access token

    1. for authentication

 

    1.   execute the push command again. At this time, you will be prompted to enter the user name. Just enter it normally; After entering the user name, you will be prompted to enter the password. Here, you need to enter the personal access token generated before. You can copy it directly

 

    1.   then you will find that you can push to the local warehouse

 

The idea code pushes to GitHub and reports an error fatal: unable to access

Error:

fatal: unable to access ‘ https://github.com/ …


terms of settlement:

1. Execute SSH keygen – t RSA on the idea terminal and press enter to generate the public key and private key. By default, it is saved in the. SSH directory under the user directory of Disk C
2. Find settings in the GitHub homepage, as shown in the figure below. Create a new SSH
note: when creating a new SSH, fill in the ID_ Contents in rsa.pub
3. Set the private key in idea


Reference link: https://blog.csdn.net/qianlixiaomage/article/details/114681364

[Solved] Github Push Codes Error: “error:RPC failed;curl 56 OpenSSL SSL_read:SSL_ERROR_SYSCALL,errno 10054”

Error description

At the weekend, I did something with my computer, installed GitHub again, and reported an error “error: RPC failed” when I made some changes to the cloning project and prepared to push it; curl 56 OpenSSL SSL_ read: SSL_ ERROR_ Syscall, errno 10054 “, searched various solutions on the Internet. It is found that the GIT upload file has a limited file size. Just set the cache size.

Solution

Use Git   Bash enter the code under the current project:

git config --global http.postBuffer 1048576000

Globally set the cache size to 1g, and the problem is solved. I guess this may be because I use HTTPS. I don’t encounter this problem with SSH transmission and pull code in my office.

Error report after solving git push origin master

After Solving git push origin master , there is an error:

remote: Permission to `USer-A/project.git` denied to `User-B`.
fatal: unable to access `https://github.com/User-A/project.git/`: The requested URL returned error: 403

Environment: git version 2.24.3 (apple git-128)

The user.name I set in Git is the same as the name of GitHub

Solution:

    1. into your own project
cd [project_path]
      1. Edit URL in. Git/config
vim .git/config

You will see the following code block

[core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true
        ignorecase = true
        precomposeunicode = true
[user]
        name = user-A
        email = [email protected]
[remote "origin"]
        url = https://github.com/User-A/project.git
        fetch = +refs/heads/*:refs/remotes/origin/*

[UNK]
url = https://github.com/User-A/project.git
[email protected]/User-A/project.git

then [UNK] git push origin master,[UNK];

Password for 'https://[email protected]':

Just enter the password

[Solved] Git Error: client_global_hostkeys_private_confirm: server gave bad signature for RSA key 0

Error message:

client_ global_ hostkeys_ private_ confirm: server gave bad signature for RSA key 0

Client \ global \ host key \ private \ confirm: the server provided the wrong signature for RSA key 0

When I submit git using the following instruction

git add .
git commit -m 'feat :Push'
git push origin

Solution:

Scheme 1: make sure your ~ /. SSH/config contains the following:

Host gitlab.com
UpdateHostKeys no

Scheme 2: try regenerating the public-private key

[Solved] Logon failed, use ctrl+c to cancel basic credential prompt. unable to access

Welcome to reprint the original blog. Please attach the blog link when reprinting. Thank you for your respect.


Problem Description:

Local environment: Windows 10 system

Compiler: idea 2018.3.4

Code warehouse: GitHub

When submitting the test code with [git push], the prompt “login failed, use Ctrl + C to cancel the basic voucher” appears, as follows:

Logon failed, use ctrl+c to cancel basic credential prompt. unable to access…

Because the incident happened suddenly, only the error information was copied, and there was no screenshot to keep the certificate. Forgive me, O (╯ □ ╯) O


Cause analysis:

Ha ha, to tell you the truth, it’s really not clear.

However, after the problem was finally solved, the GitHub official website sent me an email, which roughly said that they “do not recommend using git’s password for basic authentication”.

Therefore, I have reason to suspect that this is the result of my login with GitHub account and password in idea. It is recommended to log in in in the way of “git account + token”, which should be all right.

The screenshot of the email content is as follows:


Solution:

On the [git bash] command line, enter the following command, and then push the branch again.

setx GIT_TRACE ""

My case:

There are other methods, such as [git account + token] login recommended by the government, but they are not as simple as the above method. It is not a big problem and there is no need to pay attention, so I won’t be wordy.

I hope I can help you!!

Terminal appears after anconda is installed on MAC (base)

After MAC reinstalls anaconda, it is found that each time terminal is opened, anconda’s environment is started by default. However, I don’t want to use anconda’s environment by default, as shown in the following figure.

The closing method is as follows

Method 1:

Every time you exit the base environment through CONDA deactivate on the command line, return to the automatic environment of the system

Method 2

1. By setting Auto_ activate_ Set the base parameter to false to implement:

conda config --set auto_activate_base false

2. If you want to enter, you can use CONDA activate base

3. If you go back and hope to keep it all the time, pass

conda config --set auto_activate_base true

recovery

[Solved] error: Microsoft Visual C++ 14.0 or greater is required

error: Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft C++ Build Tools”: https://visualstudio.microsoft.com/visual-cpp-build-tools/

For the problem of error: Microsoft C + + build tools  error, most of the partners have tried to install Microsoft C + + build tools 3.13mb, but it seems that they can’t continue to use it at present. Here, the author provides a new version of Microsoft C + + build tools 2017/2019. This version of Microsoft C + + build tools is downward compatible with Microsoft C + + build tools. If you need, you can try it

First download: Microsoft Visual C + + build tools. If the link fails, you can go to to download from this link

Here, we only need to select visual c + + generation tool, and the installation location can be modified by ourselves

You can see that the installation size is about 4GB

The following errors may occur during the installation. This is only because there is no corresponding file. It is because of the library version problem. You can view it in the corresponding location or change the version to solve it (not a problem)

If there is no such problem, you can easily solve it by installing the python library again

Good luck!