Category Archives: Error

VirtualBox: How to Enable Nested VT-x/AMD-V

First, install the VirtualBox on windows. In order to create nested virtual machines on the VirtualBox, you need to turn on the virtualization function of the CPU.

VirtualBox enables nested VT-x/amd-v.

If you open the virtual machine, an error is reported:

Cannot enable nested VT-x/AMD-V without nested-paging and unresricted guest execution

(VERR_CPUM_INVALID_HWVIRT_CONFIG).

Result Code: E_FAIL (0x80004005).....

Refer to this article again.

The specific solutions are as follows:

1. At the command prompt, run: bcdedit /set hypervisorlaunchtype off
2. Reboot

Enter the virtual machine and execute:

egrep -o '(vmx|svm)' /proc/cpuinfo

You can see VMX, indicating OK.

Accessors are only available when targeting ECMAScript 5 and higher [Solved]

Coming here shows that you are smart and diligent. You must be learning the super cluster typescript of JavaScript. Fortunately, you have worked hard to write the code: the running results are as follows

- error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.

It generally means that you need to compile to version Es5 or above
that is, you need to specify that you need to compile to version Es5 or above
then you can specify this:

tsc project_name.ts -t es5
// example:
tsc class.ts -t es5

Run successfully, continue to write the set/get method happily

MAC VS Error: SDK package not found “Microsoft.NET.SDK [Solved]

ref: https://developercommunity.visualstudio.com/t/monodevelopcoreuserexception-unable-to-find-sdk-mi/1459162#T-N1460014

This is a problem with the .NET 6 preview 5 – https://github.com/dotnet/core/blob/main/release-notes/6.0/known-issues.md#preview-5
The workload manifest files were renamed in .NET 6 preview 5 which results in duplicate ids and causes the workload resolver to fail. This then results in Visual Studio for Mac showing an error about the WorkloadAutoImportPropsLocator sdk not being found.
A workaround is to remove the sdk-manifests directory /usr/local/share/dotnet/sdk-manifests/6.0.100 and then install the .NET 6 preview sdk again so it adds back the manifest files it needs.

Solution:
Delete all file in the directory of /usr/local/share/dotnet/sdk-manifests/, and reinstall dotnet 6 SDK, this issue will be solved

[Solved] Error: TSV flashing service failed (STM32CubeProgrammer)

Burn bearpi HM with stm32cubeprogrammer_Micro_Small development board program exception

1. Exception error message:

09:43:24 : Error: Error while reading the file
09:43:25 : Error: Download partition 0x22 failed
09:43:25 : Error: TSV flashing service failed

2. Abnormal phenomenon

3. Analysis of abnormal causes:

1. Create virtual machine Ubuntu 20.0 using hyper-v.04. The network adopts the internal network mode.

2. The IP address adopts static IP address.

2. The physical host network is bridged.

4. Preliminary cause analysis

Cause: physical host and virtual host cannot use bridged network settings.

5. Solution

Cancel the bridging network setting between physical machine and virtual machine, Hyper-V adopts the default network exchange, and Ubuntu network adopts DHCP mode setting.

6. After setting, burn the original program again and burn it successfully.

10:30:31 : STM32CubeProgrammer API v2.5.0
10:30:35 : USB speed : High Speed (480MBit/s)
10:30:35 : Manuf. ID : STMicroelectronics
10:30:35 : Product ID : USB download gadget@Device ID /0x500, @Revision ID /0x2001, @Name /STM32MP157AAC Rev.Z,
10:30:35 : SN : 003C00343030510B34343437
10:30:35 : FW version : 0x0110
10:30:35 : Device ID : 0x0500
10:30:52 : Read TSV File: M:\BearPi_Micro\bearpi-hm_micro_small\applications\BearPi\BearPi-HM_Micro\tools\download_img\flashlayout\bearpi-hm_micro.tsv
10:30:52 : Number of partitions: 8
10:31:04 : Start Embedded Flashing service
10:31:04 : Memory Programming ...
10:31:04 : Opening and parsing file: rootfs_vfat.img
10:31:04 : File : rootfs_vfat.img
10:31:04 : Size : 18175 KBytes
10:31:04 : Partition ID : 0x22
10:31:04 : Download in Progress:
10:31:16 : File download complete
10:31:16 : Time elapsed during download operation: 00:00:12.118
10:31:16 : RUNNING Program ...
10:31:16 : PartID: :0x22
10:31:16 : Start operation done successfully at partition 0x22
10:31:16 : Memory Programming ...
10:31:16 : Opening and parsing file: userfs_vfat.img
10:31:17 : File : userfs_vfat.img
10:31:17 : Size : 50 MBytes
10:31:17 : Partition ID : 0x23
10:31:17 : Download in Progress:
10:31:50 : File download complete
10:31:

How to Solve JMeter beanshellsampler error

1. Error calling BSH method: Eval

Error content: error – JMeter util. BeanShellInterpreter: Error invoking bsh method: eval In file: inline evaluation of: “import

The test in eclipse is normal, and the same code is put into JMeter to prompt errors

The first reason is that the data type cannot be specified in the map method, and the same is true in the list

After modifying the code, it will execute successfully

Reason 2: imported package error

Specific errors need to be analyzed and solved according to the returned error code.

2. The request returns an error message error invoking BSH method:

How to Solve:

1. Find the location of the Java source file and class file, eclipse -> Alt + enter can open the file path address

2. Configure the information in beanshellsampler collector and add addclasspaths import file without adding class file name. Fill in the path, as shown in the following figure:

[Solved] hive beeline Connect Error: User:*** is not allowed to impersonate

Beeline connection exception in hive user: * * * is not allowed to impersonate

1. Details of error reporting

When beeline connects hive, the following occurs:

The command causing the error is:

 bin/beeline -u jdbc:hive2://hadoop01:10000 -n root

2. Solutions

Restart the hadoop cluster after adding the configuration to /etc/hadoop/core-site.xml in the hadoop directory: (root is the username that reported the error)

<property>
        <name>hadoop.proxyuser.root.hosts</name>
        <value>*</value>
</property>
<property>
        <name>hadoop.proxyuser.root.groups</name>
        <value>*</value>
</property>

3. Reference

Hadoop2.0 version began to support the ProxyUser mechanism. The meaning is to use User A’s user authentication information to access the hadoop cluster in the name of User B. For the server, it is considered that User B is accessing the cluster at this time, and the corresponding authentication of the access request (including the permission of the HDFS file system and the permission of YARN to submit the task queue) is performed by the user User B.

Assume superuser user name super, you want to make the user joesubmit any and access hdfs. kerberos have superuser credentials, but the user joedoes not. Tasks need to be joerun as a user , and access to any files on the namenode must also be joedone as a user . Requires kerberos credentials that the user joecan use superto establish a connection to the namenode or job tracker. In other words, the superuser is being impersonating joe.

By core-site.xmlit is provided, superuser supercan and only from host1 and host2 to simulate the user belongs group1 and group2:

<property>
     <name>hadoop.proxyuser.super.hosts</name>
     <value>host1,host2</value>
</property>
<property>
     <name>hadoop.proxyuser.super.groups</name>
     <value>group1,group2</value>
</property>

In a workaround, the security requirements are not high, wildcards *can be used for impersonation (impersonation) from any host or any user, user root from any host can impersonate (impersonate) any user belonging to any group, there is no need to impersonate a user here , but created its own authentication information for the root user, the root user also has access to the hadoop cluster:

<property>
        <name>hadoop.proxyuser.root.hosts</name>
        <value>*</value>
</property>
<property>
        <name>hadoop.proxyuser.root.groups</name>
        <value>*</value>
</property>

[Solved] scss File Use the Depth Selector /deep/ Error: Expected selector

When using the latest version of hbuilder x editor to open the applet project built in the old version 3.2.3, the package/deep/error will occur. The previous question is vue3.0, then use vue2.0 does not report an error, and the latest version of hbuilder x editor seems to specify vite engineering by default. I’m tired of this

.mait-delegate{
    /deep/.uni-date__icon-clear {
        display: none !important;
    }
}

Change to

.mait-delegate{
    ::v-deep .uni-date__icon-clear {
        display: none !important;
    }
}

How to Solve .Net Core Class Library Import System.Windows.Forms Error

Net Framework framework references are mostly added directly on the Internet
But this method of packaging is very unfriendly

After going through the Microsoft documentation, I found a direct reference to the System. Froms assembly. It is also hidden deep, at: link

Net Core version >= 3.0

In fact, just modify the project’s csproj file

The original file

<Project Sdk=”Microsoft.NET.
<PropertyGroup
<TargetFramework>netcoreapp3.1</TargetFramework
<OutputType>Library</OutputType>
</PropertyGroup>
</Project>.
Modify the SDK in the first line

<Project Sdk=”Microsoft.NET.Sdk.WindowsDesktop”>
<PropertyGroup
<TargetFramework>netcoreapp3.1</TargetFramework
<OutputType>Library</OutputType>
</PropertyGroup>
</Project>.
Note this extra WindowsDesktop

Just add this reference to find System.Windows.

[Solved] Kali hydra update Error: hydra: symbol lookup error

 hydra: symbol lookup error:/lib/x86_64-linux-gnu/libmongoc-1.0.so.0: undefined symbol: mongocrypt_kms_ctx_get_kms_provider

Problems found during solution:

dpkg: warning: downgrading libmongoc-1.0-0 from 1.20.0-1 to 1.17.6-1
(Reading database … 496048 files and directories currently installed.)
Preparing to unpack libmongoc-1.0-0_ 1.17.6-1_ amd64. deb …
Unpacking libmongoc-1.0-0 (1.17.6-1) over (1.20.0-1) …
Setting up libmongoc-1.0-0 (1.17.6-1) …
Processing triggers for libc-bin (2.33-1) …

come to conclusion:

libmongoc-1.0. so. 0 incompatibility due to dynamic link library version upgrade

Resolution process:

From link https://packages.debian.org/bullseye/libmongoc-1.0-0

Download the package and replace the latest package.

There may be other follow-up problems. In addition, the problem that cannot be used has been solved at present.