Author Archives: Robins

[Solved] error running ‘xx‘ Command line is too long shorten command line for xx or also for Spring Boot defa

Problem description:

This problem occurred when the idea started the microservice project, causing the project to fail to start

error running ‘xx’ Command line is too long shorten command line for xx or also for Spring Boot default configuration.

Solution:

My idea uses the 2019 version.

Step 1: Open edit Configurations

Step 2:

Modify shorten command line to JAR manifest.

Restart, complete.

[Solved] Ubuntu16.4Install vcs2016 Error: mount.vboxsf: mounting failed with the error: Invalid argument

Cause of the problem

VCS 2016 requires gcc4.8 and g++4.8, while VBoxGuestAdditions-6.1 – * * requires version 4.9+ to install (the ‘-fstack-protector-strong compilation option need to be supported).

Solution:

1. Check the version through
ls /usr/bin/gcc*. If not, install the corresponding version;

2. Then use the following command to perform version management
sudo update-alternatives –install /usr/bin/gcc gcc /usr/bin/gcc-5 100

3. Switch the new version of gcc with the following command
sudo update-alternatives –config gcc

4. Reinstall the VBoxGuestAdditions tool
cd /opt/VBoxGuestAdditions-6.1.36/init
sudo vboxadd setup

5. Finally, the problem was solved by re-hanging it in the directory

[Solved] KVM Failed to Startup Error: error: Network not found: no network with matching name ‘default‘

An error was reported when starting the KVM virtual machine on the command line: startup failed, and the default network could not be found

[root@localhost ~]# virsh start centos7.0
error: Failed to start domain centos7.0
error: Network not found: no network with matching name 'default'

However, there was a default network before, and an error was reported when it was restarted after a night. First, find the path of default.xml,

[root@localhost ~]# find/-name "default.xml"
/run/libvirt/storage/default.xml
/etc/libvirt/storage/default.xml
/etc/libvirt/storage/autostart/default.xml
/usr/share/backgrounds/default.xml
/usr/share/libvirt/networks/default.xml

It can be seen that there are many xml files. Select those related to network and libvirt for execution

[root@localhost ~]# virsh net-define /usr/share/libvirt/networks/default.xml
Network default defined from /usr/share/libvirt/networks/default.xml

[root@localhost ~]# virsh net-start default
Network default started

Start successfully, check:

[root@localhost ~]# virsh net-list
 Name                 State      Autostart     Persistent
----------------------------------------------------------
 default              active     no            yes

Finally, just start the KVM virtual machine:

[root@localhost ~]# virsh start centos7.0
Domain centos7.0 started

The graphical interface has also been viewed successfully:

[Solved] AttributeError: module ‘tensorboard.summary._tf.summary‘ has no attribute ‘merge‘

The environment is TensorFlow2.9

The code to be run on github The TensorFlow environment is 1.x

Many apis cannot be called

Original code

train_summary_op = tf.summary.merge([loss_summary])

Error reporting in method 1

train_summary_op = tf.compat.v1.summary.merge([loss_summary])

display

TypeError: Tensors in list passed to 'inputs' of 'MergeSummary' Op have types [bool] that do not match expected type string.

If it can’t be solved, I will try

import tensorflow as tf

Modified as

import tensorflow._api.v2.compat.v1 as tf
tf.disable_v2_behavior()

Finally, solve the problem successfully

Two Way Communication Error: Function two_way_comm_post_message / two_way_comm_post_message_ex faile

Fangfa project scenario:

lr runs 1000 concurrent operations for 20 minutes, and some errors occur during execution


Problem description

The error message is as follows: a small number of errors are reported as follows:

Error: Two Way Communication Error: Function two_way_comm_post_message / two_way_comm_post_message_ex failed.

Error: Failed to deliver a p2p message from parent to child process, reason - communication error.

 


Cause analysis:

Generally, there is no specific prompt information. Considering that it is a problem with the press, the concurrency is too large to handle


Solution:

Method 1: You need to modify the dat file in two locations

1. C:\Program Files (x86)\HP\LoadRunner\launch_service\dat\channel_configure.dat

2. C:\Program Files (x86)\HP\LoadRunner\dat\channel_configure.dat

Method 2: Add a press.

[Solved] TUM associate.py Scripte Error: AttributeError: ‘dict_keys‘ object has no attribute ‘remove‘

Running the script file reports an error


Cause of error.
Version difference between python2 and python3
In Python 3, dict.keys() returns the dict_keys object without the remove method. Unlike Python 2, Python 2 dict.keys() returns the list object.
In Python 3, dict.keys() returns a dict_ keys object (a view of the dictionary) which does not have remove method; unlike Python 2, where dict.keys() returns a list object.

 

Solution:
(1) Directly run with Python 2 forcely:

python2 associate.py rgb.txt depth.txt > associate.txt

(2) Still run it in python 3. Make a small change to the original source code

	for diff, a, b in potential_matches:
        if a in first_keys and b in second_keys:
            first_keys.remove(a)
            second_keys.remove(b)
            matches.append((a, b))
    
    matches.sort()
    return matches

Add two sentences above to change dict into list

	# two new lines
	first_keys = list(first_keys)
    second_keys = list(second_keys)
    for diff, a, b in potential_matches:
        if a in first_keys and b in second_keys:
            first_keys.remove(a)
            second_keys.remove(b)
            matches.append((a, b))
    
    matches.sort()
    return matches

Run again (Python here points to python3 by default)

python associate.py rgb.txt depth.txt > associate.txt

[Solved] ERROR: URL ‘s3://‘ is supported but requires these missing dependencies: [‘s3fs‘]. To install dvc wi

0. Preface
dvc error log

1. Main text
1.1 Problems

ERROR: URL 's3://' is supported but requires these missing dependencies: ['s3fs']. To install dvc with those dependencies, run:

	pip install 'dvc[s3]'

See <https://dvc.org/doc/install> for more info.

Enter as prompted

pip install 'dvc[s3]'

It doesn’t work…

1.2 Solutions

conda install -c conda-forge mamba
mamba install -c conda-forge dvc-s3

reference resources

[1] https://blog.csdn.net/scgaliguodong123_/article/details/122781190

department

[Solved] Cannot run program “svn” (in directory “D: xxxx”): CreateProcess error=2, the system cannot find the specified file.

 

1. Error content

Cannot run program “svn” (in directory “xxxx”): CreateProcess error=2, the system cannot find the specified file

2. Reason

The command was not installed when TortoiseSVN was installed, so version management cannot be performed through the command

3. Solution

1. Find the TortoiseSVN installation package you downloaded at that time and reinstall it

2. Select the first one here

3. The second option is X, which means that you have not installed the command. Click on and check the first one, and then confirm the next step

[Solved] Redis New Version Install Error: server.c:3014:36: error: ‘struct redisServer’ has no member named ‘aof_filename’

The installation of a new version of Redis reports an error, as follows:

Current gcc version:

Upgrade gcc version:

yum -y install centos-release-scl
yum -y install devtoolset-9-gcc devtoolset-9-gcc-c++ devtoolset-9-binutils
scl enable devtoolset-9 bash

Install again using make

rsyslog Write into Log File Error [How to Solve]

1. Use logger to send system notification logs,

[root@Infor-test01 ~]# logger cccccccaaaaaaaadddddddd

 

The error message is also written to the log,

 

 Modify the type, and modify the permission 777. :

The most important one is the type tag of the file. For example, the httpd process can only run in httpd_t, and /etc/passwd only has type

It can only work for passwd_file_t. If the /var/log/messages file is not of type var_log_t, it will not be able to record logs, etc.

In the SELinux security policy, the type type is modified, which may cause the file to fail to be used normally .