Category Archives: How to Fix

git clone Error “Clone failed: Authentication failed for xxxxx”

When I clone the clone warehouse project from the company, I kept receiving this error.
Possible scenarios include:
1. There is no project operation permission in the warehouse, so I need to contact master or master programmer to pull you into the project and authorize
2. Open “Git bash”; Add user.name and user.email; The identity authentication

And you can view it through Git Config — List
3. If clone or push had been normal all the time; Suddenly failed; Think about whether you’ve ever changed your Git password. If it has been modified, this error is sure to occur
The solution is to open Windows’ credential manager; It will automatically record your Git address, username, password, etc. Change the password inside

SSH connection to MAC server shows No route to host solution

First, the MAC operating system is 10

When other computers SSH into a MAC server, sometimes they can log in, and the display shows no route to host
Jenkins installed on the MAC was also accessed through the browser, but the response was slow. After the following modifications, it could be used normally.
 
1. System preference setting & GT; > Sharing & gt; > Check file sharing, log in, remote management

 
It is also possible that the computer is in sleep state, so cut off the network, the following configuration, so that the computer does not go to sleep even if the monitor is turned off.
2. System preference setting & GT; > Energy-saving & gt; > When the monitor is turned off, prevent the computer from falling asleep automatically

3. Desktop and Protector & GT; > Screen saver & GT; > Idle options before starting [never]

With reference to
https://jingyan.baidu.com/article/ae97a64606acfabbfd461d9d.html
 
 
 
 
 
 
 
 
 

Reproduced in: https://www.cnblogs.com/kaerxifa/p/11382652.html

Failed to load resource: net::ERR_CONNECTION_RESET

Failed to load resource: net::ERR_CONNECTION_RESET
init.js:568 Uncaught TypeError: Unable read property ‘_getInfo’ of undefined

reported two consecutive errors. After baidu, I found that the problem was caused by the failure of a resource loading in the page, but I refreshed the page before opening the chrome developer tool. This error occurs when the developer tool loads the cache and the resource is not found. If you open the developer tool and then refresh it, the error will not be reported.
The answer here: https://zhidao.baidu.com/question/1385177154063329420.html
Failed to load the resource: net: : ERR_CACHE_MISS developer tools into the cache, said can’t find the resources.
the problem is that you open the page before you open chrome’s developer tools. The page itself is set to no-store without cache, so developer tools opened by the latter cannot reach the cache.
if you have already opened developer tools, refresh again will not have this error

mysql configuration supports SSL connection

Confirm the mysql Server environment with the following command:

MariaDB [(none)]> Show variables like ‘% % SSL;

If I show,

+---------------+----------+
| Variable_name | Value    |
+---------------+----------+
| have_openssl  | DISABLED |
| have_ssl      | DISABLED |
| ssl_ca        |          |
| ssl_capath    |          |
| ssl_cert      |          |
| ssl_cipher    |          |
| ssl_key       |          |
+---------------+----------+
7 rows in set (0.01 sec)

indicates that Mysql Server does not support SSL.

Complete the configuration by modifying my.CNF
vim /etc/my.cnf

After adding SSL under [mySQld], save.
service mariadb stop
service mariadb start
Restart the mysql service

At this point, open the database again to query SSL status:

MariaDB [(none)]> show variables like '%ssl%';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| have_openssl  | YES   |
| have_ssl      | YES   |
| ssl_ca        |       |
| ssl_capath    |       |
| ssl_cert      |       |
| ssl_cipher    |       |
| ssl_key       |       |
+---------------+-------+
7 rows in set (0.00 sec)

found that mysql already supports SSL

# Use OpenSSL to create certificates and private keys
First confirm the OpensSL installation

[root@mcu web]# openssl version
OpenSSL 1.0.1e-fips 11 Feb 2013
[root@mcu web]# 

Create a./ CERT directory for the generated certificates and private keys

[root@mcu mcu]# mkdir ./cert
[root@mcu mcu]# cd ./cert/

# create CA private key and CA certificate
Then, let’s first generate a CA private key:
openssl genrsa 2048 > ca-key.pem

Once we have a CA private key, we can then use this private key to generate a new digital certificate:
openssl req -sha1 -new -x509 -nodes -days 3650 -key ca-key.pem > ca-cert.pem
When executing this command, you will need to fill in some questions, just fill in whatever you want.

After executing the above command, we have a CA private key and a CA certificate.

# create server-side RSA private key and digital certificate
Next, we need to create the private key on the server side and a certificate request file with the following command:
openssl req -sha1 -newkey rsa:2048 -days 3650 -nodes -keyout server-key.pem > server-req.pem
This command will generate a new private key (server-key.pem), and will be used to generate a certificate request file (server-req.pem).
this command also needs to answer a few questions, just fill in. Note, however, that the term A challenge password needs to be empty.

Next, we need to convert the generated private key into RSA private key file format:
openssl rsa -in server-key.pem -out server-key.pem

As a final step, we need to use the original generated CA certificate to generate a server-side digital certificate:
openssl x509 -sha1 -req -in server-req.pem -days 3650 -CA ca-cert.pem -CAkey ca-key.pem -set_serial 01 > server-cert.pem

The command above creates a digital certificate file on the server side.

# Create the client’s RSA private key and digital certificate
Similar to the command executed on the server side, we also need to generate a private key and certificate request file for the client. The command is as follows. Challenge Password is left blank:
openssl req -sha1 -newkey rsa:2048 -days 3650 -nodes -keyout client-key.pem > client-req.pem

Similarly, we need to convert the generated private key to the RSA private key file format:
openssl rsa -in client-key.pem -out client-key.pem


Finally, we also need to create a digital certificate for the client:
openssl x509 -sha1 -req -in client-req.pem -days 3650 -CA ca-cert.pem -CAkey ca-key.pem -set_serial 01 > client-cert.pem


# SSL configuration
In the previous step, we have generated 8 files, which are respectively:
Ca cert. Pem: ca certificate for generating digital certificates on the server/client side.
ca-key. Pem: ca private key for generating digital certificates on the server side.
server-key.
client-key.pem: client RSA private key
client-req.pem: client certificate request file, used to generate client digital certificate.
client cert. Pem: client digital certificate.
Next we need to configure the server side and the client side respectively.

# server side configuration
The server side needs to use three files, namely: CA certificate, RSA private key on the server side, and digital certificate on the server side. We need to add the following contents in the [mySQld] configuration field:

?

ssl-ca=/etc/mysql/ca-cert.pem
ssl-cert=/etc/mysql/server-cert.pem
ssl-key=/etc/mysql/server-key.pem

Then we can change the Bind-Address so that the MySQL service can receive clients from all IP addresses, that is:
bind-address = *
When configured, we need to restart the MySQL service to enable configuration.
As a final step, we add an account that requires SSL to log in to verify that our SSL configuration is working:

copy code
The code is as follows:

GRANT ALL PRIVILEGES ON *.* TO ‘ssl_test’@’%’ IDENTIFIED BY ‘sSL_test’ REQUIRE SSL;
FLUSH PRIVILEGES;

When configured, use root to log into MySQL and execute the show Variables like ‘% SSL %’ statement with the following output:

MariaDB [(none)]> show variables like '%ssl%'
    -> ;
+---------------+----------------------------+
| Variable_name | Value                      |
+---------------+----------------------------+
| have_openssl  | YES                        |
| have_ssl      | YES                        |
| ssl_ca        | /etc/mysql/ca-cert.pem     |
| ssl_capath    |                            |
| ssl_cert      | /etc/mysql/server-cert.pem |
| ssl_cipher    |                            |
| ssl_key       | /etc/mysql/server-key.pem  |
+---------------+----------------------------+
7 rows in set (0.00 sec)

# client configuration
Client configuration is relatively simple. First we need to copy ca-CERt.pem, Client-cert.pem, and client-key.pem to the client host. Then we can execute the following command to use SSL to connect to MySQL service:
mysql --ssl-ca=/path/to/ca-cert.pem --ssl-key=/path/to/client-key.pem --ssl-key=/path/to/ client-key.pem-h host_name-u ssl_test-p
in addition to the above command line configuration for SSL, we can also use the configuration file. Add the following contents to the etc/my.cnf file:

[client]
default-character-set=utf8
ssl-ca=/path/to/ca-cert.pem
ssl-cert=/path/to/client-cert.pem
ssl-key=/path/to/client-key.pem

if the following error occurs

ERROR 2026 (HY000): SSL connection error: SSL_CTX_set_default_verify_paths failed

indicates that the SSL authentication file cannot be accessed. Place the CA file in an accessible directory.

If the following error occurs

ERROR 2026 (HY000): SSL connection error: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

maybe the Common Name field in the cert file the certificate of the server and the certificate of the client are identical. This field cannot be consistent

If the following error occurs

ERROR 1045 (28000): Access denied for user 'ssl_test'@'10.35.8.182' (using password: YES)

requires the following options to be added when connecting

--ssl-cipher=AES128-SHA

When the connection is successful, we execute the following instructions

MariaDB [(none)]> \s
--------------
mysql  Ver 15.1 Distrib 5.5.41-MariaDB, for Linux (x86_64) using readline 5.1

Connection id:          13
Current database:
Current user:           [email protected]
SSL:                    Cipher in use is AES128-SHA
Current pager:          stdout
Using outfile:          ''
Using delimiter:        ;
Server:                 MariaDB
Server version:         5.5.44-MariaDB MariaDB Server
Protocol version:       10
Connection:             10.35.11.196 via TCP/IP
Server characterset:    utf8
Db     characterset:    utf8
Client characterset:    utf8
Conn.  characterset:    utf8
TCP port:               3306
Uptime:                 1 hour 6 min 31 sec

Threads: 6  Questions: 3135  Slow queries: 0  Opens: 13  Flush tables: 2  Open tables: 39  Queries per second avg: 0.785
--------------

MariaDB [(none)]> 

?If the output contains information such as SSL: Cipher in use is HE-RSA-AES256-SHA, then SSL has been used to connect.

Win 10 System Restore Fail 0x80070091

Question:
The following about says it all. I have tried SysRes from both sides and failed.
System Restore did not complete successfully. Your computer’s system files and
The settings have not changed.
Details:
System restore fails when restoring a directory from a restore point.
Source:AppxStaging
Target: %ProgramFiles%\WindowsApps
An unspecified error occurred during system recovery. (0 x80070091)
The two attempts come from:Select different recovery points to show more backups of the recovery point type. I really need this function to work. Is there a solution?

Answer:
Renaming the folder WindowsApps, restarting the system and trying system recovery should fix the problem.

1. Download an iso image file of Win10 (the official original).
2. use ultraiso to write the image to U disk (method baidu)
3. Use the boot sequence provided by the BIOS to switch, boot from the USB flash drive, and wait patiently.
4. After selecting the language next, on the second screen in the lower left corner, tap "Repair Computer (R)", tap "Troubleshooting", tap "Command Line Prompt".
  Typing in the order.
  c:
  cd "Program Files"
  md "WindowsApps-"
  xcopy "WindowsApps" "WindowsApps-" /s /e /y /h
  rd "WindowsApps"
  Close the command line window, click "Troubleshooting", click "System Restore", and then execute OK.

I described a solution Windows 10 1607 version:System recovery error 0x80070091 [fixed] here.
Add:This issue seems to have been fixed in the Windows 10 creator update. There is a batch file to fix this issue. For more information, see:
Message about System Recovery Error 0x80070091.

From:https://answers.microsoft.com/en – us/windows/forum/windows_10 update/win – 10 – system-restore-failure- 0 – x80070091/7f690ec3 a3da – 4 – c14 – 90 – fd – 3 – eb0ba83f4ac

SC OpenService failed 5: Access denied

Sc OpenService failed 5: access denied error when we used SC Delete XXX in CMD to delete the service
The solution is as follows:
Run CMd.exe with administrator privileges, and then proceed. Enter the command: SC DELETE to delete the name of the service so that the service can be deleted normally
 

thanks for the reward, WeChat two-dimensional code

Alipay Qr Code:

Fsync failed


Today, when Solving the interface program generation file, I found that the generated file size was not 0, but there was no data inside vi after it was opened, as shown in the figure below:
After editing and modification, Fsync Failed error occurred when saving the cached data. This means that an error occurred when the cached data was synchronized to the disk. After checking the disk space, it was found that the disk occupied 100%, and the disk space was cleared to solve the problem.

php Error failed to open stream: HTTP request failed!

1. Change Php.ini to allow_url_fopen and change allow_url_fopen = On
2. But sometimes there is a warning, and you have to set the user_agent in PHp.ini. The default user_agent in PHP is PHP. MSIE 6.0; Windows NT 5.0) to simulate the browser
user_agent = “Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)”

Upgrade/reinstall win10 system–prompt the solution to fail to verify the key

When upgrading from Win7 system to Win10, there was a problem that the key could not be verified (when the key was not prompted, it was directly prompted that the key could not be verified). The error in English version was: Windows 10 setup has failed to validate the product key.
 
Here is the solution (shipped from YouTube) (this method is used by the ISO after decompression in the installation method)
The original web site: https://www.youtube.com/watch?v=vrWhxPnCtY4
The original video is not very clear. The original Po owner wrote the steps in the comments, as shown in the figure below:

After unzipping the ISO, the following folder will appear:

Step 1: Open the Sources folder and find the file with the suffix CFG (just one CFG file)
Step 2: Copy the file and paste it into the Sources folder

Step 3: Rename the copied CFG copy to EI

Step 4: Double-click setup.exe to install Win10, no longer unable to verify the key problem
 
Xiaobian pro test effective, I hope to help you!!

ImportError: ‘DLL load failed: %1 is not a valid Win32 application.

Problem description

Windows: 64-bit win7 system
python: download from the official website is python 2.7.2 64-bit. The actual folder would look like this:

Then install scrapy and try scrapy. CMD: open the command prompt, enter scrapy shell http://cn.bing.com/
and output a heap. The last line: ImportError: No module named win32api.
Go to http://sourceforge.net/projects/pywin32/files/pywin32/ to download win32api
select version for pywin32-219. The win – amd64 – py2.7. Exe, (because the system is 64, so choose amd64)
Install the win32api.
and then enter the command prompt: scrapy shell http://cn.bing.com/
. The last line: ‘scrapy shell: DLL load failed: %1 is not an valid Win32 application.’
An attempt to solve a problem
View the information on the Internet, pywin32-219. Win-amd64-py2.7. exe to reinstall, but the problem is still in, in python IDE input Import Win32API, or the above problems, that is to say, this problem as to Win32API, has nothing to do with the package installed.
Since I installed other Python versions yesterday (the file is integrated), the Python file is confused, so I uninstall Python again, delete the Python path in the system environment variable path and the python file in the registry, find python methods in the registry, and enter: HKEY_CURRENT_USER – > The software.
Reinstall Python, follow the previous steps again, and you get the same error.
looked at the messy material on the Internet.
then try it: