Category Archives: How to Fix

Ubuntu 20.04 connection failed activation of network connection failed

Today, I tried to run wsa (Windows subsystem for Android) with win11. I found that I had to turn on Hyper-V to run. Then I found that the virtual machine VMware could not run. So I turned off Hyper-V and finally opened the virtual machine, but the network could not be connected (NAT mode is OK, but bridge mode is not)

after searching on the Internet, I changed this and that, Still No.
I fumbled and succeeded.
here is my solution:

No, as long as you have opened Hyper-V, there will be more of these two below. The default is automatic. It will give priority to these two, so we need to cancel these two checks

OK, and then enter the Ubuntu virtual machine, It is found that the network has returned to normal.

it took an afternoon to solve it. I hope I can help my friends in the future

Prompt IPA processing failed when exporting IOS adhoc

Prompt IPA processing failed when IOS adhoc

View the log of standard to view errors

View standard’s log

The log contains a large string of simulator information, so directly search the x86 keyword, and then check which framework is included, and then CD go in. Remember to enter the framework and remove i386 and x86_ 64

lipo -info xxxx

Remove command:

lipo -remove i386 xxxx -o xxxx
lipo -remove x86_64 xxxx -o xxxx

View errors

Before, I was misled by the Internet. I had to search all the "x86" keywords, and then search out Ruby (universal. X86_64) , thinking about viewing or updating with lipo , which wasted a lot of time and failed… Finally, homebrew
is also updated

Finally, I tried to search error , and found that framework was included in bundle of tent , and finally it was OK to remove it
IPA processing failed will be prompted when IOS ad hoc , the framework in tencetopen is attached with x86 , after removal, you can check the keywords of failed or error in your log.

Mon 08

03:00

06:00

09:00

12:00

03:00

06:00

09:00

Tue 09

Remove all SDK schemas

Update relevant environment

IOS tasks

IOS diagram functionality to mermaid

Follow up interest can be focused on the following column or official account number [Python2048].

"Android - the world of hackers"
"difficult and miscellaneous bugs - no language"


Author: Altman Superman dujinyang

Source: CSDN

Original text: https://dujinyang.blog.csdn.net/

Copyright notice: This is the original article of blogger Du Jinyang. Please attach the blog link for reprint!

zookeeper_ An error is reported when the exporter starts

Problem Description: two machines, one zookeeper_ Data can be found when the exporter is started normally, and the other one can be started normally, and then no data can be detected.

note: check through Prometheus ZK_ The exporter is alive, but the data of the machine reporting an error cannot be found

Error log: erro [0014] unable to open connection to zookeeper error = “dial TCP: lookup localhost on 8.8.8.8:53: no such host”

resolvent:

It’s a DNS problem, so check the/etc/resolv.conf file of the machine that reports an error and compare it with the file of the machine that does not report an error. If it is found that there is an inconsistency, change it to the constant one, and then solve the problem

Log in to Prometheus to view ZK_ Up data

Then the problem is solved

An error is reported during Java operation due to the problem of static resource export

In this case, you need to add the following configuration in the pom.xml file

 <build>
    <resources>
        <resource>
            <directory>src/main/resources</directory>
            <includes>
                <include>**/*.properties</include>
                <include>**/*.xml</include>
            </includes>
            <filtering>true</filtering>
        </resource>

        <resource>
            <directory>src/main/java</directory>
            <includes>
                <include>**/*.properties</include>
                <include>**/*.xml</include>
            </includes>
            <filtering>true</filtering>
        </resource>
    </resources>
</build>

When a system is deployed on weblogic12.2.1.3, it reports an error “IllegalStateException zip file closed”. When it is deployed on weblogic12.2.1.2, it does not report an error and can be accessed normally.

Problem phenomenon

When a system is deployed on weblogic12.2.1.3, it reports an error “IllegalStateException zip file closed”. When it is deployed on weblogic12.2.1.2, it does not report an error and can be accessed normally.

Problem analysis

You can find the clear reason on the official website through the error report. The main reason is a bug in Weblogic. Because the application jar file is closed silently due to inactivity, because the jarfile class implements the autoclosable interface, and jarurlhandler does not handle this exception at present, this error is reported. Therefore, it is repaired through patch 27774698. The repair principle is to add a catch block to handle exceptions, And reopen the jar file when there is an IllegalStateException.

In addition, the official suggestion is to apply this patch only when reporting this error. It is not necessary to apply this patch to every system.

Problem continuation

       The above problems are solved by patching 27774698, and the deployment application reports an error error creating bean with name ‘wsrmsafregistrationservice’. After that, you can see that spring is initializing bean and wsrmsafregistrationservice in the log, but its full class name is com.oracle.webservices.impl.wls.wsrmsafregistrationservice, which is used internally, @ inject @ named (“safserverservice”), private SAFServerService safServerService; Therefore, when spring does autowire automatic link, it scans the classes inside Weblogic. This scanning should not occur. Therefore, spring autowire filter should be added to the code to avoid scanning the classes inside Weblogic. For the specific adding method, see the official website link doc ID 2397321.1.

Problem handling

       The problem of “IllegalStateException zip file closed” is solved by patching 27774698. After the application code is changed and the spring autowire filter is added, the application is successfully deployed and can be accessed normally. This problem is solved!

Gt Report Error ssh:connect to host github.com port 22

kex_exchange_identification: Connection closed by remote host
Connection closed by 140.82.121.3 port 22
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

  It is suddenly found that git cannot operate, and an error is reported, as shown in the figure above.

Thought the SSH key failed?Check it. It’s corresponding.

Testing

$   ssh -T   [email protected]

The result is still  

Internet search method:

Test port 443 can be successful  

$ ssh -T -p 443 [email protected]

Referring to the online method, the solution is as follows:

  Locate git’s config file  /etc/ssh/ssh_ Config and edit

$   vi /etc/ssh/ssh_ config     

If you don’t have permission, use sudo

Add the following code at the end and save

Host github.com
User git
Hostname ssh.github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
Port 443

success!  

Then you can operate git normally!

Invalid column reference when using round in hive



Group by must be added to the hive query SQL, otherwise the column col in the selection list is invalid because it is not included in the aggregate function or group by clause.

Generally speaking, count , round should be regarded as aggregate functions without group by
however, hive does not consider the use of round as an aggregate function. The fields used should be added to group by, and the fields used in round should be added to group by
otherwise, an error is reported invalid column reference

Solution to the error of ODBC driver in windows installation of Postgres database

Solution to the error of ODBC driver in windows installation of Postgres database

Installing postgressql driver on Windows reports an error “the specified module cannot be found”

terms of settlement

Find another system of the same version, which can install the modified drive computer normally. Paste the contents of the two folders in the windows folder of drive C into the system that cannot be installed

copy the two folders in the above figure to the problem computer. Select duplicate files, ignore them, and do not select replacement, so as not to affect the use of the system

Solutions to errors in the final running of JDBC programming

An error is reported at the end of JDBC programming:

Exception in thread “main“ java.sql.SQLException: Unknown initial character set index ‘255‘ received

  resolvent:

When establishing a connection between JDBC and the database, add the following after the URL:

?useUnicode=true&characterEncoding=utf-8

As shown in the figure:

Add reason:

        Mysql database uses GBK coding, while the project database uses UTF-8 coding.

An error occurs when pymysql uses% d to pass in parameters

Error:

When using pymysql, an error occurs when using% d to pass parameters in the SQL statement. As shown in the figure:

Error information: typeerror:% d format: a number is required, not str

Cause of problem:

         When a parameter of type int is passed in, it is converted to a parameter of type str. Therefore, the solution is to change% d into% s, pass in int type, and it can still be executed.

Modified:

Data of type int passed in:

Can execute successfully

Solution:

          When data of type int is passed in, the parameter is still passed with% s.