Tag Archives: cents

[Solved] Raspberry Pi Error: VNC error “No configured security type is supported by 3.3 VNC Viewer“

Raspberry Pi Error: VNC error “No configured security type is supported by 3.3 VNC Viewer”

# Command Line Configuration Startup
sudo raspi-config 

Enter interface options

there are VNC options inside. Enter enable

Step 2: modify VNC configuration (Note: the following command lines are executed)

# Note: Here the first step of the change password command line is also executed, change the password to the same password as your original start on the line
# Do not ask why, just change it
$ sudo passwd
passwd: password updated successfully
$ su root
$ sudo echo 'Authentication=VncAuth' >> /root/.vnc/config.d/vncserver-x11
$ sudo vncpasswd -service
# Execute here to enter the password (occasionally you have to wait a few seconds), here is to set the password to log in to VNC
Successfully set "Password" VNC parameter in /root/.vnc/config.d/vncserver-x11
$ sudo cat /root/.vnc/config.d/vncserver-x11
_AnlLastConnTime=int64:0000000000000000
_LastUpdateCheckSuccessTime=int64:01d7d31e1f95ea36
_LastUpdateCheckTime=int64:01d7d31e1f95ea36
Authentication=VncAuth
Password=c3abbea3b003a0b231737c0541892d72

Start VNC/mobaxterm again to connect normally

[Solved] minio Failed to Upload File Error: The difference between the request time and the server‘s time is too large.

Problem Description:

Minio upload failed. The background controller reports an error. The error information is as follows:

The difference between the request time and the server's time is too large.

Cause analysis:

The system time zone is inconsistent with the hardware time zone

Solution:

Note: when uploading files, you need to adjust the time of Linux server to be consistent with that of windows!

Step 1: install NTP service

yum -y install ntp


Step 2: start the startup service

systemctl enable ntp


Step 3: start the service

systemctl start ntpq


Step 4: change the time zone

timedatectl set-timezone Asia/Shanghai


Step 5: enable NTP synchronization

timedatectl set-ntp yes


Step 6: synchronize time

ntpq -p

Finally, you can try to enter the command} on the console to check whether it is consistent with the windows system time

date

[Solved] Centos Mount Error: XFS: log mount mount/recovery failed : error -117

Virtual machine startup error XFS

XFS: log mount mount/recovery failed: error – 117 when the virtual machine is started. In fact, the virtual machine cannot be mounted. The solution is as follows:


Solution:

① Restart the virtual machine. After entering the startup interface, press e to enter the editing interface

② Find the line of linux16 and make the following modifications
change RO to RW init =/sysboot/bin/sh, and delete console = ttys0


③ After modification, press Ctrl + X to start
④ a few minutes after startup, the command line will appear

⑤ On the command line, enter systemctl status sysboot Mount
⑥ enter XFS_ Repair – V – L path in the figure above
⑦ wait for the file to be cleaned before the command line appears. Enter the command reboot to restart the virtual machine

[Solved] Centos8 openssh Compile Error: error while loading shared libraries


When running the program under CentOS 8, I found the error while loading shared libraries. I didn’t know the solution for a while. Now I have explored and solved it, as follows:

1. Find the path where the missing library is located {find/- name} XXX

2. Put the path in /etc/ld.so.conf

3. At the command line, enter ldconfig

4. No error will be reported after compiling again

[Solved] Docker failed to delete image error: no such image: CentOS

The docker image cannot be deleted. If you view the image through docker images, it clearly exists, but it cannot be deleted.

Deletion prompt: error: no such image: XXXXXXXX

The specific screenshots are as follows:

Problem solving:

get into

cd /var/lib/docker/image/overlay2/imagedb/content/sha256

This directory is all the image files in docker

Which to delete? Don’t panic, image ID in docker images can determine the image file.

Delete the file after confirmation: RM -rf + file name

After deletion, there is no in the docker images list.

[Solved] CentOS Network Card startup error: RTNETLINK answers: File exist

Error Messages:

Dec 09 15:26:16 test01 network[7599]: Bringing up loopback interface:  [  OK  ]
Dec 09 15:26:16 test01 network[7599]: Bringing up interface ens33:  Error: Connection activation failed: No suitable device found for this connection.
Dec 09 15:26:16 test01 network[7599]: [FAILED]
Dec 09 15:26:16 test01 network[7599]: RTNETLINK answers: File exists
Dec 09 15:26:16 test01 network[7599]: RTNETLINK answers: File exists
Dec 09 15:26:16 test01 network[7599]: RTNETLINK answers: File exists
Dec 09 15:26:16 test01 network[7599]: RTNETLINK answers: File exists
Dec 09 15:26:16 test01 network[7599]: RTNETLINK answers: File exists
Dec 09 15:26:16 test01 network[7599]: RTNETLINK answers: File exists
Dec 09 15:26:16 test01 network[7599]: RTNETLINK answers: File exists
Dec 09 15:26:16 test01 network[7599]: RTNETLINK answers: File exists
Dec 09 15:26:16 test01 network[7599]: RTNETLINK answers: File exists
Dec 09 15:26:16 test01 systemd[1]: network.service: control process exited, code=exited status=1
Dec 09 15:26:16 test01 systemd[1]: Failed to start LSB: Bring up/down networking.
Dec 09 15:26:16 test01 systemd[1]: Unit network.service entered failed state.
Dec 09 15:26:16 test01 systemd[1]: network.service failed.

 

Solution:
Stop NetworkManager service
systemctl stop NetworkManager
systemctl disable NetworkManager
restart network
systemctl restart network

Reason:
The reason for this failure under centos is that there is a conflict between the two services that start the network: network and NetworkManager, I think.
Fundamentally, the conflict is caused by NetworkMaganager (NM), so disable NetworkManager to solve it. Just restart it.

[Solved] Gbase Install Error: service cgconfig is not exist on hosts

Gbase8a install Error:

Environmental Checking on gcluster nodes.
Cgconfig service is not exist on host [‘192.168.48.18’, ‘192.168.48.19’, ‘192.168.48.20’], resource manangement can not be used, continue ([Y,y]/[N,n])?

Check whether the following installation packages are installed, if they are missing, please install

yum list installed | grep libcgroup
yum list installed | grep libcgroup-tools

Install if missing

yum -y install libcgroup
yum -y install libcgroup-tools

Set CGroup service startup after installation

systemctl enable cgconfig.service

Start cgconfig service

systemctl start cgconfig.service 

Here if the execution reports an error.

Job for cgconfig.service failed because the control process exited with error code. See “systemctl status cgconfig.service” and “journalctl -xe” for details.

Then use the command to check the cause of the error

systemctl status cgconfig.service

If the reasons are as follows.

Error: cannot mount cpu to /cgroup/cpu: Device or resource busy
or
Failed to start Control Group configuration service.

then execute

cgclear - unload the cgroup filesystem
systemctl start cgconfig.service

Then restart the installer.

linux use sh execute source error [How to Solve]

Error: In the shell script, execute the file with sh and report source: not found

Reason: sh and bash are different shells, there is no source command in sh. So when running with sh or ./, this error will be prompted.

Solution: replace sh with bash, eg. bash test.sh
is to use bash to execute it.

[Solved] curl: (6) Could not resolve host: harbor.od.com; Unknown error

implement

curl harbor.od.com

The following error occurred

curl: (6) Could not resolve host: harbor.od.com; Unknown error

The reason is that there is an error in DNS

Open DNS profile

vim /etc/resolv.conf

Find the following. It is found that the DNS is inconsistent with your own configuration.

Modify the content behind the nameserver

Run again and you’ll succeed