Author Archives: Robins

(26)RuntimeError: Error(s) in loading state_dict for YoloBody:size mismatch for yolo_head3.1.weight

Run B_ Yolov4 an error is reported when calculating the map:

RuntimeError: Error(s) in loading state_dict for YoloBody:
	size mismatch for yolo_head3.1.weight: copying a param with shape torch.Size([75, 256, 1, 1]) from checkpoint, the shape in current model is torch.Size([255, 256, 1, 1]).
	size mismatch for yolo_head3.1.bias: copying a param with shape torch.Size([75]) from checkpoint, the shape in current model is torch.Size([255]).
	size mismatch for yolo_head2.1.weight: copying a param with shape torch.Size([75, 512, 1, 1]) from checkpoint, the shape in current model is torch.Size([255, 512, 1, 1]).
	size mismatch for yolo_head2.1.bias: copying a param with shape torch.Size([75]) from checkpoint, the shape in current model is torch.Size([255]).
	size mismatch for yolo_head1.1.weight: copying a param with shape torch.Size([75, 1024, 1, 1]) from checkpoint, the shape in current model is torch.Size([255, 1024, 1, 1]).
	size mismatch for yolo_head1.1.bias: copying a param with shape torch.Size([75]) from checkpoint, the shape in current model is torch.Size([255]).

resolvent:

Check class in train.py_ Names and num_ The classes are all right, so it is determined that it is a problem in several programs called when calculating map. Finally, it is found that the number of classes in yolo.py is wrong,

"classes_path"      : 'model_data/coco_classes.txt',

Replace with:

"classes_path"      : 'model_data/voc_classes.txt',

ginseng https://github.com/bubbliiiing/yolo3-pytorch/issues/17

https://blog.csdn.net/nangg1047/article/details/116073131

SpringBoot: Whitelabel Error Page 404 [How to Solve]

Project: springboot + Vue

Reason: after the online environment is released, it can’t get into the system. The above error has been reported all the time, and it’s useless to repackage and compile. The original reason is that the front end downloaded a new dependency and didn’t upload the updated version number, resulting in the above error
solution: import the dependencies downloaded from the front end into the local NPM install, submit the package.json file to the online server, and redistribute the version to solve the problem.

SpringCloud: Error creating bean with name ‘configurationPropertiesBeans‘

[problem phenomenon]

When the springcloud system is built in the idea, a red error is prompted at runtime:


org.springframework.beans.factory.BeanCreationException: 
Error creating bean with name 'configurationPropertiesBeans' defined in class path resource 
[org/springframework/cloud/autoconfigure/ConfigurationPropertiesRebinderAutoConfiguration.class]: 
Post-processing of merged bean definition failed; nested exception is java.lang.IllegalStateException: 
Failed to introspect Class 
[org.springframework.cloud.context.properties.ConfigurationPropertiesBeans] 
from ClassLoader [sun.misc.Launcher$AppClassLoader@18b4aac2]

......

Caused by: java.lang.IllegalStateException: 
Failed to introspect Class 
[org.springframework.cloud.context.properties.ConfigurationPropertiesBeans] 
from ClassLoader [sun.misc.Launcher$AppClassLoader@18b4aac2]

......

Caused by: java.lang.NoClassDefFoundError: 
org/springframework/boot/context/properties/ConfigurationBeanFactoryMetadata

......

Caused by: java.lang.ClassNotFoundException: 
org.springframework.boot.context.properties.ConfigurationBeanFactoryMetadata

[reason]

This is a very common problem in the spring cloud system because the spring boot version is incompatible with the spring cloud version.

[solution]

The spring boot version and spring cloud version should be matched in strict accordance with the official version. Link to the official website:
https://spring.io/projects/spring-cloud

Different clouds need different boot versions, as shown in the figure:

Example of version change:

after version replacement, reload all Maven items, as shown in the figure:

If an error is still reported, re-execute the MVN clean package

ros2 apt-get install error: E: Failed to fetch http://packages.ros.org…

version: foxy

apt install

sudo apt-get install ros-foxy-serial-driver 
[sudo] password for mi: 
Sorry, try again.
[sudo] password for mi: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  ros-foxy-serial-driver
0 upgraded, 1 newly installed, 0 to remove and 769 not upgraded.
Need to get 9,508 B of archives.
After this operation, 61.4 kB of additional disk space will be used.
Err:1 http://packages.ros.org/ros2/ubuntu focal/main amd64 ros-foxy-serial-driver amd64 0.0.6-1focal.20210423.022509
  404  Not Found [IP: 64.50.233.100 80]
E: Failed to fetch http://packages.ros.org/ros2/ubuntu/pool/main/r/ros-foxy-serial-driver/ros-foxy-serial-driver_0.0.6-1focal.20210423.022509_amd64.deb  404  Not Found [IP: 64.50.233.100 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Apt update error:

W: An error occurred during the signature verification.
 The repository is not updated and the previous index files will be used.
 GPG error: http://packages.ros.org/ros/ubuntu focal InRelease: The following signatures were invalid: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <[email protected]>

Solution:

 curl http://repo.ros2.org/repos.key | sudo apt-key add -

ERROR 1820 (HY000): Unknown error 1820,ERROR 1046 (3D000):

After MySQL logs in, an error occurs when executing the statement:

root@localhost 09:05:  [(none)]> use mysql;
ERROR 1820 (HY000): Unknown error 1820
root@localhost 09:05:  [(none)]> show tables;
ERROR 1046 (3D000): 

terms of settlement:

root@localhost 09:06:   [(none)]> Set password = password (‘password ‘);

  I hope it will help you

Flutter upgrade upgrade SDK SSL_ERROR_Syscall error [How to Solve]

Execute the following commands when upgrading the flutter

Flutter upgrade

Unfortunately, for some reason, it cannot be accessed. The following error is reported

Standard error: fatal: unable to access
'https://github.com/flutter/flutter.git/': LibreSSL SSL_connect:
SSL_ERROR_SYSCALL in connection to github.com:443

You can set the routing agent. The command is as follows:

git config --global http.proxy http://127.0.0.1:1080
git config --global https.proxy http://127.0.0.1:1080

Note that the port can be modified according to its own configuration. Set or not set HTTPS according to your needs
if you want to cancel the proxy setting, you can use the following command:

git config --global --unset http.proxy 
git config --global --unset https.proxy

After setting, test OK

Git config — the global command will add the following configuration in the ~ /. Gitconfig file

[http]
	proxy = http://127.0.0.1:1080
[https]
	proxy = https://127.0.0.1:1080

Note:
there is another way to use this command. It has not been tested yet. Save it first

git config --global --add remote.origin.proxy

/usr/sbin/zabbix_agentd: error while loading shared libraries: libcurl.so.4

Problem Description: the following error is reported when starting ZABBIX agent:

[root@vm-172-16-1-113 ~]# systemctl start zabbix-agent
Job for zabbix-agent.service failed because the control process exited with error code. See "systemctl status zabbix-agent.service" and "journalctl -xe" for details.
[root@vm-172-16-1-113 ~]# journalctl -xe
-- Subject: Unit zabbix-agent.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit zabbix-agent.service has begun starting up.
Sep 08 21:02:51 vm-172-16-1-113 zabbix_agentd[15221]: /usr/sbin/zabbix_agentd: error while loading shared libraries: libcurl.so.4:
Sep 08 21:02:51 vm-172-16-1-113 systemd[1]: zabbix-agent.service: control process exited, code=exited status=127
Sep 08 21:02:51 vm-172-16-1-113 systemd[1]: Failed to start Zabbix Agent.
-- Subject: Unit zabbix-agent.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit zabbix-agent.service has failed.
-- 
-- The result is failed.
Sep 08 21:02:51 vm-172-16-1-113 systemd[1]: Unit zabbix-agent.service entered failed state.
Sep 08 21:02:51 vm-172-16-1-113 systemd[1]: zabbix-agent.service failed.
Sep 08 21:02:51 vm-172-16-1-113 polkitd[3455]: Unregistered Authentication Agent for unix-process:15210:141884514 (system bus name
Sep 08 21:03:01 vm-172-16-1-113 systemd[1]: zabbix-agent.service holdoff time over, scheduling restart.
Sep 08 21:03:01 vm-172-16-1-113 systemd[1]: Stopped Zabbix Agent.
-- Subject: Unit zabbix-agent.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit zabbix-agent.service has finished shutting down.
Sep 08 21:03:01 vm-172-16-1-113 systemd[1]: Starting Zabbix Agent...
-- Subject: Unit zabbix-agent.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit zabbix-agent.service has begun starting up.
Sep 08 21:03:01 vm-172-16-1-113 zabbix_agentd[15230]: /usr/sbin/zabbix_agentd: error while loading shared libraries: libcurl.so.4:
Sep 08 21:03:01 vm-172-16-1-113 systemd[1]: zabbix-agent.service: control process exited, code=exited status=127
Sep 08 21:03:01 vm-172-16-1-113 systemd[1]: Failed to start Zabbix Agent.
-- Subject: Unit zabbix-agent.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit zabbix-agent.service has failed.
-- 
-- The result is failed.
Sep 08 21:03:01 vm-172-16-1-113 systemd[1]: Unit zabbix-agent.service entered failed state.
Sep 08 21:03:01 vm-172-16-1-113 systemd[1]: zabbix-agent.service failed

The keyword is /usr/SBIN/ZABBIX_ agentd: error while loading shared libraries: libcurl.so.4

Indeed, the libcurl installation is as follows. It is found that it is still not possible

[root@vm-172-16-1-113 ~]# yum -y install libcurl
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.tuna.tsinghua.edu.cn
 * extras: mirrors.huaweicloud.com
 * updates: mirrors.tuna.tsinghua.edu.cn
Resolving Dependencies
--> Running transaction check
---> Package libcurl.x86_64 0:7.29.0-51.el7 will be updated
--> Processing Dependency: libcurl = 7.29.0-51.el7 for package: curl-7.29.0-51.el7.x86_64
---> Package libcurl.x86_64 0:7.29.0-59.el7_9.1 will be an update
--> Processing Dependency: libssh2(x86-64) >= 1.8.0 for package: libcurl-7.29.0-59.el7_9.1.x86_64
--> Running transaction check
---> Package curl.x86_64 0:7.29.0-51.el7 will be updated
---> Package curl.x86_64 0:7.29.0-59.el7_9.1 will be an update
---> Package libssh2.x86_64 0:1.4.3-12.el7 will be updated
---> Package libssh2.x86_64 0:1.8.0-4.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================================================
 Package                     Arch                       Version                                 Repository                   Size
==================================================================================================================================
Updating:
 libcurl                     x86_64                     7.29.0-59.el7_9.1                       updates                     223 k
Updating for dependencies:
 curl                        x86_64                     7.29.0-59.el7_9.1                       updates                     271 k
 libssh2                     x86_64                     1.8.0-4.el7                             base                         88 k

Transaction Summary
==================================================================================================================================
Upgrade  1 Package (+2 Dependent packages)

Total download size: 582 k
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/3): libcurl-7.29.0-59.el7_9.1.x86_64.rpm                                                                | 223 kB  00:00:00     
(2/3): curl-7.29.0-59.el7_9.1.x86_64.rpm                                                                   | 271 kB  00:00:00     
(3/3): libssh2-1.8.0-4.el7.x86_64.rpm                                                                      |  88 kB  00:00:00     
----------------------------------------------------------------------------------------------------------------------------------
Total                                                                                             3.4 MB/s | 582 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : libssh2-1.8.0-4.el7.x86_64                                                                                     1/6 
  Updating   : libcurl-7.29.0-59.el7_9.1.x86_64                                                                               2/6 
  Updating   : curl-7.29.0-59.el7_9.1.x86_64                                                                                  3/6 
  Cleanup    : curl-7.29.0-51.el7.x86_64                                                                                      4/6 
  Cleanup    : libcurl-7.29.0-51.el7.x86_64                                                                                   5/6 
  Cleanup    : libssh2-1.4.3-12.el7.x86_64                                                                                    6/6 
  Verifying  : curl-7.29.0-59.el7_9.1.x86_64                                                                                  1/6 
  Verifying  : libssh2-1.8.0-4.el7.x86_64                                                                                     2/6 
  Verifying  : libcurl-7.29.0-59.el7_9.1.x86_64                                                                               3/6 
  Verifying  : libssh2-1.4.3-12.el7.x86_64                                                                                    4/6 
  Verifying  : libcurl-7.29.0-51.el7.x86_64                                                                                   5/6 
  Verifying  : curl-7.29.0-51.el7.x86_64                                                                                      6/6 

Updated:
  libcurl.x86_64 0:7.29.0-59.el7_9.1                                                                                              

Dependency Updated:
  curl.x86_64 0:7.29.0-59.el7_9.1                                   libssh2.x86_64 0:1.8.0-4.el7                                  

Complete!
[root@vm-172-16-1-113 ~]# systemctl start zabbix-agent
Job for zabbix-agent.service failed because the control process exited with error code. See "systemctl status zabbix-agent.service" and "journalctl -xe" for details.
[root@vm-172-16-1-113 ~]# journalctl -xe
-- Unit zabbix-agent.service has begun starting up.
Sep 08 21:03:52 vm-172-16-1-113 zabbix_agentd[15278]: /usr/sbin/zabbix_agentd: error while loading shared libraries: libcurl.so.4:
Sep 08 21:03:52 vm-172-16-1-113 systemd[1]: zabbix-agent.service: control process exited, code=exited status=127
Sep 08 21:03:52 vm-172-16-1-113 systemd[1]: Failed to start Zabbix Agent.
-- Subject: Unit zabbix-agent.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit zabbix-agent.service has failed.
-- 
-- The result is failed.
Sep 08 21:03:52 vm-172-16-1-113 systemd[1]: Unit zabbix-agent.service entered failed state.
Sep 08 21:03:52 vm-172-16-1-113 systemd[1]: zabbix-agent.service failed.
Sep 08 21:03:54 vm-172-16-1-113 yum[15277]: Updated: libssh2-1.8.0-4.el7.x86_64
Sep 08 21:03:54 vm-172-16-1-113 yum[15277]: Updated: libcurl-7.29.0-59.el7_9.1.x86_64
Sep 08 21:03:55 vm-172-16-1-113 yum[15277]: Updated: curl-7.29.0-59.el7_9.1.x86_64
Sep 08 21:03:58 vm-172-16-1-113 polkitd[3455]: Registered Authentication Agent for unix-process:15291:141892032 (system bus name :
Sep 08 21:04:02 vm-172-16-1-113 systemd[1]: zabbix-agent.service holdoff time over, scheduling restart.
Sep 08 21:04:02 vm-172-16-1-113 systemd[1]: Stopped Zabbix Agent.
-- Subject: Unit zabbix-agent.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit zabbix-agent.service has finished shutting down.
Sep 08 21:04:02 vm-172-16-1-113 systemd[1]: Starting Zabbix Agent...
-- Subject: Unit zabbix-agent.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit zabbix-agent.service has begun starting up.
Sep 08 21:04:02 vm-172-16-1-113 zabbix_agentd[15300]: /usr/sbin/zabbix_agentd: error while loading shared libraries: libcurl.so.4:
Sep 08 21:04:02 vm-172-16-1-113 systemd[1]: zabbix-agent.service: control process exited, code=exited status=127
Sep 08 21:04:02 vm-172-16-1-113 systemd[1]: Failed to start Zabbix Agent.
-- Subject: Unit zabbix-agent.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit zabbix-agent.service has failed.
-- 
-- The result is failed.
Sep 08 21:04:02 vm-172-16-1-113 systemd[1]: Unit zabbix-agent.service entered failed state.
Sep 08 21:04:02 vm-172-16-1-113 systemd[1]: zabbix-agent.service failed.
Sep 08 21:04:02 vm-172-16-1-113 polkitd[3455]: Unregistered Authentication Agent for unix-process:15291:141892032 (system bus name

See if libcurl. So. 4 does exist. It seems that the system does not recognize it

[root@vm-172-16-1-113 ~]# ls /usr/lib64/libcurl.so.4
/usr/lib64/libcurl.so.4

Join ld.so.conf and try ldconfig

[root@vm-172-16-1-113 ~]# cat /etc/ld.so.conf
include ld.so.conf.d/*.conf

[root@vm-172-16-1-113 ~]# echo '/usr/lib64' >> /etc/ld.so.conf.d/zabbix.conf
[root@vm-172-16-1-113 ~]# ldconfig

Starting ZABBIX again still doesn’t work

Take another look at SELinux

I looked around because of it

Set setenforce 0
temporarily, and then you can start it