Tag Archives: solution

How to Solve elasticSearch8.1.2 Install Error in Win10

 

1. Error: there should be no \java\jdk1.8.0_20

Solution:
when the Java environment variables are set correctly, it may be because the Java installation path contains spaces and brackets. Reinstall java to a new path without spaces to start successfully
for example, the location of my environment variable JAVAHOME was original:

C:\Program Files (x86)\Java\jdk1.8.0_20

Change it to:

C:\Progra\Java\jdk1.8.0_20

2. An error is reported: ‘elasticsearch.bat ‘is not an internal or external command, nor is it a runnable program or batch file

Check whether you filled in the configuration file, if not, just add the following configuration parameters at the bottom of the elasticsearch.yml file

# Change the name of the cluster so that it doesn't get mixed up with someone else's cluster
cluster.name: el-m

# Change the name of the node
node.name: el_node_m1

# Change the listening address of the ES so that other machines can access it
network.host: 0.0.0.0

# Set the http port for the external service, the default is 9200
http.port: 9200

# Set the path to store the index data
path.data: E:\elasticsearch-8.1.2\data #Switch to your own path
# Set the path to store log files
path.logs: E:\elasticsearch-8.1.2\logs #Switch to your own path

# Turn off http access restrictions
xpack.security.enabled: false

# Add new parameter, head plugin can access es

http.cors.enabled: true
http.cors.allow-origin: "*"

3. Command line printing error log

please check that any required plugins are installed, or check the breaking changes documentation for removed settings

Solution: please refer to the above configuration file
the version of elasticSearch has been updated and changed greatly. When the configuration file is filled with redundant configuration, the above error message may be reported.

Quartus compile error: Error (10170): Verilog HDL syntax error at Verilog1.v(8)

Codes:
module adder(
input [31:0] operand1,
input [31:0] operand2,
input cin,
output [31:0] result,
output cout
);
assign {cout,result} = operand1 + operand2 + cout;
endmodule

 

Error Messages:

Error (10170): Verilog HDL syntax error at Verilog1.v(8) near text: “cout”; expecting “highz0”, or “highz1”, or “large”, or “medium”, or “pull0”, or “pull1”, or “small”, or “strong0”, or “strong1”, or “supply0”, or “weak0”, or “weak1”. Check for and fix any syntax errors that appear immediately before or at the specified keyword. The Intel FPGA Knowledge Database contains many articles with specific details on how to resolve this error. Visit the Knowledge Database at https://www.altera.com/support/support-resources/knowledge-base/search.html and search for this specific error message number.
Error (10759): Verilog HDL error at Verilog1.v(8): object result declared in a list of port declarations cannot be redeclared within the module body
Error (10112): Ignored design unit “adder” at Verilog1.v(1) due to previous errors
Error: Quartus Prime Analysis & Synthesis was unsuccessful. 3 errors, 1 warning
Error: Peak virtual memory: 4702 megabytes
Error: Processing ended: Sat Nov 27 15:57:22 2021
Error: Elapsed time: 00:00:12
Error: Total CPU time (on all processors): 00:00:27
Error (293001): Quartus Prime Full Compilation was unsuccessful. 5 errors, 1 warning


Solution:

Select the option in the red box.

Done!

Appium Top 10 Common Error [How to Solve]

(1) Appium service is not started

[error message] urllib.error.urlerror: & lt; Urlopen error [winerror 10061] unable to connect because the target computer actively refused.

[solution] after clicking the start appium button, the [appium] welcome to appium v1.7.2 prompt appears, and then run the script

(2) Session conflict

Error: failed to start an appium session, err was: error: requested a new session but one was in progress

[solution] restart the appium service, start the appium service, check the allow session override option in the advanced interface, restart the appium test, and add driver. Quit() in afterclass at the end of the test

(3) Device not connected

[error message] selenium. Common. Exceptions. Webdriverexception: Message: an unknown server side error occurred while processing the command. Original error: could not find a connected Android device

[solution] ADB ensure that the device is connected

(4) Java not installed or version problem

[error message] selenium.common.exceptions.webdriverexception: Message: a new session could not be created. (original error: ‘Java – version’ failed. Error: command failed: C: \ windows \ system32 \ cmd.exe/S/C “Java – version”“

[solution] check Java environment variables

(5) The launchable activity value is written incorrectly

[error message] activity used to start app doesn’t exist or cannot be launched! Make sure it exists and is a launching activity

[solution]  correct the misspelling of launch activity.

(6) System permission problem

[error message] failure [install_failed_user_restricted])

[solution] 1. USB installation management permission limit. Just close it. 2. Turn on the option to allow unknown source app installation

(7) Appium service exception

[error message] an unknown server side error occurred while processing the command “while opening the app

[solution] restart appium service

(8) JRE environmental issues

[error message] are you sure you have installed JDK/JRE?

[solution] check whether there is JRE in the same level directory of JDK, and check the environment variable configuration of JDK

(9) Android SDK environment

[error message] no such file or directory “E: \ android_sdk”

[solution] check the environment variable configuration of Android SDK, especially android_home

(10) Uiautomator error

[error message] uiautomator version is too low/high

[solution] add “automationname”: “uiautomator2” to the capability configuration information

Mobaxterm connects to Ubuntu server through SSH network error: software caused connection abort

Recently, mobaxterm is used to connect to the remote Ubuntu server through SSH. After not operating for a period of time, the connection will be broken and a prompt “network error: software caused connection abort” will be displayed.

You can modify the SSH configuration item in mobaxterm and check SSH keepalive to solve the problem of disconnection.

In addition, you need to modify the configuration file on the Ubuntu server side.

sudo vi /etc/ssh/sshd_config

1. Find tcpkeepalive yes and # remove the previous one;

2. Find the clientaliveinterval parameter, remove the previous #, and change the following 0 to 60, indicating that the request is sent every minute to maintain the connection.


Digression. To maintain the connection, you can use commands such as top to refresh the command line in real time.

[Solved] ERROR com.alibaba.druid.pool.DruidDataSource – init datasource error, url jdbcmysql

Error reporting when deploying an open source project

ERROR com.alibaba.druid.pool.DruidDataSource - init datasource error, url jdbcmysql://

Obviously, there is a database connection error

But after eliminating the error, I can find the real cause of the error

Database connection address error

Network problems

Wrong user name and password

Finally, it was found that there was a problem with the MySQL driver version of the open source project, which was inconsistent with the MySQL I installed

Solution:

Go to POM.XML and delete the version information of MySQL, which can be used by default, as shown below

<dependency>
    <groupId>mysql</groupId>
    <artifactId>mysql-connector-java</artifactId>
</dependency>

error Expected indentation of 2 spaces but found 8

 

Originally, two spaces were needed, but there were actually eight. The appearance of eight spaces is generally caused by the tab key

Comment out this line:         ‘@ vue/standard’

It is important to note that after modifying the. Eslintrc.js file, it can take effect only after restarting
according to the startup command of your project: NPM run serve

NestedServletException, Handler dispatch failed; nested exception is java.lang.StackOverflowError [Solved]

After setting up the spring security oauth2 environment, conduct interface test with postman:

Postman returned an error message:

The idea console outputs the following warnings:

WARN 4344 — [nio-8082-exec-1] o.s.s.o.provider.endpoint.TokenEndpoint  : Handling error: NestedServletException, Handler dispatch failed; nested exception is java.lang.StackOverflowError

After investigation, it is found that a method in the spring security configuration class securityconfiguration written by myself is wrong and written as: AuthenticationManager. The correct method name should be authenticationmanagerbean.

The complete and correct method is:

@Bean
@Override
public AuthenticationManager authenticationManagerBean() throws Exception {
      return super.authenticationManagerBean();
}

Retest after modification and return the correct result:

If you encounter any problems during browsing, please leave me a message in the comment area below.

[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.

[Solved] Error “incorrect padding” in decoding of Base64 module in Python

Problem description
decodes the field information encoded by Base64, which is normally decoded in the base64 encoding and decoding tool, but b64decode and A2B in the modules Base64 and binascii under python_ Decoding error in Base64 and other methods
the error information is as follows

---------------------------------------------------------------------------
Error                                     Traceback (most recent call last)
<ipython-input-11-787bc11958b4> in get_proxies(urls)
     14         try:
---> 15             raw = base64.b64decode(response)
     16         except Exception as r:

c:\program files\python3\lib\base64.py in b64decode(s, altchars, validate)
     86         raise binascii.Error('Non-base64 digit found')
---> 87     return binascii.a2b_base64(s)
     88 

Error: Incorrect padding

Solution

Base64 in Python is read in 4, so the field to be decoded should be a multiple of 4, not enough to add ‘=’

# The field a to be decoded is judged, and if it is a multiple of 4, it is unchanged, and if not, how much is missing, how much is made up
a = a + '=' * (4 - len(a) % 4) if len(a) % 4 != 0 else a