Category Archives: Windows

[Solved] ElasticSearch Error: FORBIDDEN/12/index read-only/allow delete (api) ,read_only_allow_delete Set windows

Elasticsearch reports an error. For bind/12/index read only/allow delete (API)
this error is because the indexes in elasticsearch are read-only and cannot be added or modified. Query the official website. The reason for this problem may be that the storage disk where es is located does not have enough space, which causes es to automatically turn on data protection and limit it to read-only
just execute the following command. If curl is not installed in the window, please install curl first

Note: when executing the following commands in Windows system, because the single quotation mark “‘” cannot be recognized, please modify it to double quotation mark and or escape the double quotation mark

The windows system executes the following commands:

curl -XPUT -H "Content-Type: application/json" http://127.0.0.1:9200/_all/_settings -d "{\"index.blocks.read_only_allow_delete\": null}"

the Linux system executes the following command:

curl -XPUT -H "Content-Type: application/json" http://127.0.0.1:9200/_all/_settings -d '{"index.blocks.read_only_allo

[Solved] idea Start Project Error: idea Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.

Question:

After the company takes a new MAC system notebook and installs idea, start the code on GitHub and report the following exception: idea error: could not create the Java virtual machine Error: A fatal exception has occurred. Program will exit.

Find out the reason later. It turns out that the newly installed version of idea is too new, and the default JDK version of idea is inconsistent with the JDK version installed by the operating system. Finally, modify the JDK version of idea to keep up with the operating system. It’s OK.

Solution: enter the CMD window and enter Java – version to view the current JDK version and idea –> File–> Project Structure–> Project Settings–> Project view the JDK version used by the current project

DOTNET Run AES-GCM Program ON MACOS (ERROR ALGORITHM ‘AESGCM’ IS NOT SUPPORTED ON THIS PLATFORM)

Error algorithm 'aesgcm' is not supported on this platform

If the dotnet program of AES GCM is used, an error will be reported in MacOS

Aesgcm is a very popular symmetric encryption algorithm, so I was surprised by this error. At first, I thought it was the problem of dotnet core adapting Apple silicon. After consulting the document, I found that the original MacOS had this adaptation error. Mac’s security policy does not allow third-party programs to call the system’s encryption interface, so only third-party encryption libraries can be used. I really want to spray Microsoft here. Since it can’t be used, give me a solution. Why don’t I copy and paste it. Just earlier, I encountered the OpenSSL configuration problem when solving dotnet5 under Apple silicon. Pass in the Lib path of OpenSSL arm. The problem is solved. The following is the latest version I use. You can modify the corresponding path of other versions

Add running environment: dyld_LIBRARY_PATH=/opt/homebrew/opt/openssl@3/lib

[Solved] MacOS Monterey Use bizhub C308 to Print PDF Error: offending command: binary token type 151

Problem Restatement:

As shown in the title, when using MAC to print a paper today, the paper is generally terminated, and the following errors occur:

Error syntax error

OFFENDING COMMAND: binary token, type=151

STACK: 

At first I thought it was a driver problem. I reinstalled the latest driver of c308 and found that there were still errors. Not all PDF sheets failed to print, and some of them failed to print.

Through some exploration, it is found that it is a software problem. Using the preview software of MAC to call the printer to print PDF will cause the above problems;

Solution:

By using standard adobe reader to reprint the above files, it is perfectly solved.

Reason guess:

I guess that the preview program of MAC uses some commands incompatible with the printer, which makes it impossible to print.

When adobe reader is used for printing, its software will process PDF files and output compatible printing instructions, so it can print normally.

How to solve Visual Studio error C4996

error C4996: ‘fopen’: This function or variable may be unsafe. Consider using fopen_ s instead. To disable deprecation, use _ CRT_ SECURE_ NO_ WARNINGS. See online help for details.

1> f:\program files (x86)\microsoft visual studio 12.0\vc\include\stdio. H (211): see the statement of “fopen”

Quick solutions are as follows

Right click project file 1 and select 2

2

Then pop up the property page of the file, click 1Processor, and then click 2processor to open the preprocessor, as shown in the figure below

3

Copy “_crt_secure_no_warnings” in the following red box, then click OK and then click apply.

4

Problem solving

[Solved] Uniapp packaging IOS error: Apple root certificate is not installed in the current system

Hbuilderx: for IOS peace of mind packaging, MacOSX 10.14 and below systems need to install relevant certificates

Treatment method:

1. Open the certificate directory

2. Click the certificate, enter the computer password, allow the key chain to access, and confirm that the certificate is valid in the key chain

3. Other certificates in the certificate directory should also be obtained

[Solved] IDEA Startup Error: Cound not Find or Load the main class

Problem Description: because computer is so laggy, after restarting, it opens the project. It finds that the function before is unable to use, and the wrong report: unable to find or unable to load the main class. Mainly clear the cache: use file → invalidate caches/restart, Select invalidate to clear the cache.

Solution:

1. Because I knew that the module name could not be started after changing the module name, I guess it caused the compilation problem, so try to rebuild, use Build→Rebuild Project.

But the problem has not been solved yet, and it is suspected to be a caching problem.

2. Use File→Invalidate Caches/Restart…, select Invalidate, and clear the cache.

 

3. Use File→Project Structure, select Modules on the left, click the minus sign to remove the problematic module, and then click the plus sign to re-import the module.

 

4. Restart the module and find the problem solved.

Mac: How to Solve global module install error

When NPM or cnpm is used to install the global module, an error message will be prompted:

LDX@admin88 ~ % npm install --global nodemon
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules
npm ERR! code EACCES
npm ERR! syscall access
npm ERR! path /usr/local/lib/node_modules
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
npm ERR! [Error: EACCES: permission denied, access '/usr/local/lib/node_modules'] {
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/usr/local/lib/node_modules'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

Solution: modify user permissions

sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}

Just use NPM again to install the global module

Vs publish error: NETSDK1152: multiple publishing output files with the same relative path were found

 

report errors

C:\Program Files\dotnet\sdk\6.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ConflictResolution.targets(112,5):

Error netsdk1152: multiple publication output files with the same relative path were found:

D:\backup – work\project – February 27, 2020\Luzhou Yangtze River sixth bridge\SRC\lzcjlqbim.Webapp.MVC\lzcjlqbim.Webapp.MVC.XML, bin\debug\netcoreapp2.2\netcoreapp2.2\lzcjlqbim.Webapp.MVC.XML.

There was no such thing in the previous release. I don’t know why this release overturned. Find out the reason slowly in the future…

Solution:

New code in lzcjlqbim.webapp.mvc.csproj

  <PropertyGroup>
    <ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles>
  </PropertyGroup>

[Solved] “\\.\Global\vmx86”: The system cannot find the specified file

1. Problem Description:

1) VMware 14 virtual machine error: unable to open kernel device\.\global\vmx86: the system could not find the specified file

2) Screenshot of error reporting

2. Cause: this virtual machine has abnormal shutdown

3. Recovery steps:

1. To raise rights, you must run as an administrator, window + R, and enter in the run box: runas /user:administrator cmd.exe   Enter the administrator password and press enter;

2. Enter the following in sequence:

net start vmci

net start vmx86

net start VMnetuserif

sc config vmci=auto

sc config vmx86=auto

sc config VMnetuserif=auto

3. Enter services.msc in the window + R box, restart the VMware Workstation server service, and restart the virtual machine.