ImportError: libGL.so.1: cannot open shared object file: No such file or directory
Solution:
Yum install mesa-libGL.x86 64
ImportError: libGL.so.1: cannot open shared object file: No such file or directory
Solution:
Yum install mesa-libGL.x86 64
curl: symbol lookup error: curl: undefined symbol: curl_mime_free
Execute curl command to report error
curl -s https://www.adas.com
report errors:
curl: symbol lookup error: curl: undefined symbol: curl_mime_free
Solution:
#ubuntu system
apt-get update -y
#centos
yum update -y
Execute curl – s again, normal
Android studio solves error: mouse not specified
When using Android studio for builder apks, if you find that you can’t degub,
No module can be specified during configuration, as shown in (borrow a figure)
The reason for the problem is that the grade files are not synchronized effectively.
1. First ensure grade Synchronization is complete.
2. Perform manual synchronization
Old as version Click Tools – > Android—> Sync Project With Gradle Files
The new version (I am the new version) is shown in the figure:
Generally, you can debug, and the module has been configured
Error: Could not open client transport with JDBC Uri: jdbc:hive2://node01:10000: java.net.ConnectException: Connection refused (Connection refused) (state=08S01,code=0)
Error: unable to open client transport with JDBC URI: JDBC: hive2:// node01:10000: java.net.connectexception: connection rejected (connection rejected) (state = 08s01, code = 0)
Solution
When connecting to beeline through the command, it is found that the client connection fails
[ root@node03 ~]# beeline -u jdbc:hive2://node01:10000 -n root
Check port 10000 and find that it is not started
[ root@node01 ~]# netstat -anp|grep 10000
It takes time for hiveserver2 to start. You need to wait for a while. It will not start until hiveserver2 displays four hive session IDs (I just started four successfully).
Then I realized that no wonder the teacher mentioned that he had to wait a while to connect beeline.
This is a successful start, so don’t worry and deal with it calmly when you report an error.
cp /usr/share/libtool/config/config.guess.
cp /usr/share/libtool/config/config.sub.
./configure --enable-shared --enable-static
–enable-lib64 –libdir=/usr/lib64
Tens of millions of errors are reported. My error is that during clang compilation, do not pass in the header file, but use – I/xxx to pass in the header file path
Error demonstration
clang -o out main.c ./dir/xxx.h
Correct practice
clang -o out main.c -I./dir
There are a lot of mce log we can check from the mcelog file. Indeed, this is a HW issue and some part is defective one, almost is memory. But a lot of vender don’t want to replace it for this is a correctable error. And we can also check this error at ilom (different vendor have different name but almost of them is built by polit 3,4 arch) as bellow.
2021-11-14/20:09:00 ereport.cpu.intel.quickpath.mem_ce@/SYS/MB/P1/D3
count = 0x1
system_component_firmware_versions = (ILOM)5.0.1.28 r140973,(BIOS)38340900
2021-11-14/20:17:57 ereport.cpu.intel.quickpath.mem_ce@/SYS/MB/P1/D3
count = 0x1
system_component_firmware_versions = (ILOM)5.0.1.28 r140973,(BIOS)38340900
—
If you want to disable them for some monitor policy pls check as bellow
Solution:
Machine Check Exception
mce=off
Disable machine check
mce=no_cmci
Disable CMCI(Corrected Machine Check Interrupt) that
Intel processor supports. Usually this disablement is
not recommended, but it might be handy if your hardware
is misbehaving.
Note that you’ll get more problems without CMCI than with
due to the shared banks, i.e. you might get duplicated
error logs.
mce=dont_log_ce
Don’t make logs for corrected errors. All events reported
as corrected are silently cleared by OS.
This option will be useful if you have no interest in any
of corrected errors.
mce=ignore_ce
Disable features for corrected errors, e.g. polling timer
and CMCI. All events reported as corrected are not cleared
by OS and remained in its error banks.
Usually this disablement is not recommended, however if
there is an agent checking/clearing corrected errors
(e.g. BIOS or hardware monitoring applications), conflicting
with OS’s error handling, and you cannot deactivate the agent,
then this option will be a help.
mce=bootlog
Enable logging of machine checks left over from booting.
Disabled by default on AMD because some BIOS leave bogus ones.
If your BIOS doesn’t do that it’s a good idea to enable though
to make sure you log even machine check events that result
in a reboot. On Intel systems it is enabled by default.
mce=nobootlog
Disable boot machine check logging.
mce=tolerancelevel[,monarchtimeout] (number,number)
tolerance levels:
0: always panic on uncorrected errors, log corrected errors
1: panic or SIGBUS on uncorrected errors, log corrected errors
2: SIGBUS or log uncorrected errors, log corrected errors
3: never panic or SIGBUS, log all errors (for testing only)
Default is 1
Can be also set using sysfs which is preferable.
monarchtimeout:
Sets the time in us to wait for other CPUs on machine checks. 0
to disable.
The mcelog is loging to message by default but you want to check this HW issue separately, audit the /etc/mcelog/mcelog.conf as bellow.
Before:
/usr/sbin/mcelog –ignorenodev –syslog –foreground
After:
/usr/sbin/mcelog –ignorenodev –syslog –foreground –logfile=/var/log/mcelog
Now restart the service
#service mcelog restart
You can find the /var/log/mcelog as expected.
Error while loading shared libraries: libmysql.So.16
my personal test is available. Here we only introduce the current environment with libmysqlclient.So.*
Step 1: ldconfig – V | grep MySQL
The red box indicates my Linux environment
Ln – S/usr/lib64/MySQL/libmysqlclient.So.18.0.0/lib/libmysql.So.16
the problem is solved here
1. MongoDB error content and solution
This is an error when entering mongo startup
[root@g3dhkzznakmqafv5-1029528 mongodb]# Error: coul-bash: connecting: command not found
.1:27017 :: caused by :: Connection refused :ction attempt failed: SocketException: Error connecting to 127.0.0
[1]+ Exit 127 connecting to: mongodb://127.0.0.1:27017/?compressors=disabled
connect@src/mongo/shell/mongo.js:374:17
@(connect):2:6
exception: connect failed
exiting with code 1
Change the permission of .sock file.
Next, we check the error report of the MongoDB log
"ctx":"SignalHandler","msg":"Shutdown: going to close listening sockets"}
{"t":{"$date":"2021-11-14T21:50:59.901+08:00"},"s":"I", "c":"NETWORK", "id":23017, "ctx":"listener","msg":"removing socket file","attr":{"path":"/tmp/mongodb-27017.sock"}}
{"t":{"$date":"2021-11-14T21:50:59.901+08:00"},"s":"I", "c":"NETWORK", "id":4784905, "ctx":"SignalHandler","msg":"Shutting down the global connection pool"}
Solution:
The above log has said to remove mongodb-27017.sock in the/tmp directory
here, you can switch to the TMP directory to view the mongodb-xxx.sock file
remove the mongodb-27017.sock file, and then restart OK successfully
if you have tried to switch ports, remove all mongodb-xxx.sock files
Yum to install the package and prompt the error “error: rpmdb open failed”.
Solution:
rpm --rebuilddb
Solve the error reported by the running shell
-bash: ./test.sh: /bin/bash^M: bad interpreter: No such file or directory
What is the reason? There is reason to suspect that it is a file format problem? We use VIM test.sh to enter the test.sh file, and then execute it in the bottom mode: set FF to check. The result shows that fileformat = DOS. Look, it is indeed a file format problem. How to solve it?
Solution:
[root@admin .sh]# vim test.sh
Execute: e + + FF = UNIX%, then delete the ^ m symbol
save and exit
or:
[root@admin .sh]# sed -i "s/\r//" test.sh
Or:
[root@admin .sh]# dos2unix test.sh
Or: VIM test.sh open the file, execute: set FF = UNIX, set the file to UNIX, then execute: WQ, and save it in UNIX format.
The error information is as follows:
Caused by inconsistent JDK environment
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/springframework/boot/loader/JarLauncher : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
Solution:
First, download the appropriate JDK on the Linux server. I have re downloaded JDK1.8, and the original 1.7 has been installed
Start command:
To find the installation directory of JDK, start the project through the corresponding version of JDK
nohup /usr/local/jdk8/bin/java -jar -Dspring.profiles.active=test read.jar &