Category Archives: Error

[Solved] git add Error: warning: LF will be replaced by CRLF in ……

Causes and solutions of directory error

Error reporting reason

The file added to the cache contains /, which is escaped by default. A problem will occur at this time

Solution:

git config --global core.autocrlf false

Modify git config , and put core The value of autocrlf is changed to false, that is, it is not escaped by default.

Node Rabbit: How to Enable Plugins

Install RabbitMQ on Windows 7
cmd:
rabbitmq-plugins enable rabbitmq_management
Error:

 

Solution:(CMD)

C:\xxx\RabbitMQ\rabbitmq_server-3.7.16\sbin>rabbitmq-service remove
C:\xxx\erlang\erl10.4\erts-10.4\bin\erlsrv: Service RabbitMQ removed fr
om system.
C:\xxx\RabbitMQ\rabbitmq_server-3.7.16\sbin>rabbitmq-service install
C:\xxx\erlang\erl10.4\erts-10.4\bin\erlsrv: Service RabbitMQ added to s
ystem.
“WARNING: Using RABBITMQ_ADVANCED_CONFIG_FILE: C:\Users\ADMINI~1\AppData\Roaming
\RabbitMQ\advanced.config”
C:\xxx\RabbitMQ\rabbitmq_server-3.7.16\sbin>rabbitmq-service start
The RabbitMQ service is starting up .
The RabbitMQ service has started successfully.

The installation was successful, as follows (account and password are both guest).

[Solved] GVM 21.4.3 Failed to find port_list ’33d0cd82-57c6-11e1-8ed1-406186ea4fc5′

Question:

When task is used for scan in GVM 21.4.3, it will report failed to find port_ list ’33d0cd82-57c6-11e1-8ed1-406186ea4fc5′

reason:

File in port_lists under gvmd not found.

Solution:

The download package is not available on the network. I made one. The time is January 2022

Download replacement: https://github.com/karqical/community-nvt-feed-current/blob/main/gvmd.tar.gz

[Solved] Maven Compile Error: “java.lang.OutOfMemoryError: Java heap space”

The project executes MVN clean install successfully.
an error is always reported during the debug startup in the idea,
a compilation error is reported: Maven resources production: XXX Java.nio.file.invalidpathexception:

java.lang.OutOfMemoryError: Java heap space

↓↓↓↓↓↓↓↓

After trying all kinds of methods, I still don’t know

Select build -> on the idea directory; Rebuild project (build -> rebuild project) and idea recompile the project

Perfect solution

Greenplum Error: query plan with multiple segworker groups is not supported

Error message:

ERROR:  query plan with multiple segworker groups is not supported
HINT:  likely caused by a function that reads or modifies data in a distributed table
CONTEXT:  PL/pgSQL function actv_comp(date,date) line 4 at RETURN QUERY

We may often encounter the need to call custom functions in query, but in Greenplum, if you have query in the function and then call the function in query, you will report it wrong.

example:

Create function

iap=# create or replace function f1() returns text as $$
declare
c1 text;
begin
execute 'select info from tt1 limit 1' into c1;
return c1;
end;
$$ language plpgsql;

Invocation in query:

iap=# select f1() from tt1;
ERROR: query plan with multiple segworker groups is not supported
HINT: likely caused by a function that reads or modifies data in a distributed table
CONTEXT: SQL statement 'select info from tt1 limit 1'
PL/pgSQL function f1() line 5 at EXECUTE statement

This is due to the MPP feature in greenplus. Only part of the data is saved in each node. GP6 starts to support replication tables, so we need to change the table into a replication table to ensure that there is a complete data in each node.

In addition, we need to modify the function to immutable type.

– modify the table distribution to replicated type

alter table tt1 set Distributed REPLICATED;

Second, modify the function to immutable type

iap=# create or replace function f1() returns text as $$
declare
c1 text;
begin
execute 'select info from tt1 limit 1' into c1;
return c1;
end;
$$ language plpgsql immutable;
CREATE FUNCTION

Call again:

iap=# select f1() from tt1 limit 1;
f1
----------------------------------
d810ed19ec188ddf3af8a14dbd341c3c
(1 row)

Summary:
, if you need to call UDF function in query, if you encounter “ERROR: query plan with multiple segworker groups is is,” then the solution is as follows:

Modify table to copy table

Modify the function to immutable type

Android customize output path and file name compile error [How to Solve]

API ‘variant.getPackageApplication()’ is obsolete and has been replaced with ‘variant.getPackageApplicationProvider()’.
It will be removed in version 5.0 of the Android Gradle plugin.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getPackageApplication(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information.
Affected Modules: app

Solution:
Modify
variant.getPackageApplication().outputDirectory
to
variant.getPackageApplicationProvider().get().outputDirectory

[Solved] Redis Install Error: jemalloc/jemalloc.h: No such file or directory

reason:

Redis compilation failed before, for example, PKG config plug-in is not installed. This error will be reported when redis compiles again after PKG config is installed, because the cache file remains when the last compilation fails.

Solution:

Clear the residual files before recompiling:

make distclean && make

solr Error: SolrException:org.apache.solr.common.SolrException: Error opening new searcher Please check your logs for more information

1. The exception thrown in the code causes Solr not to be closed. The control panel prompts as follows. What should I do?

2. Solution

This is caused by an index error

After closing the Solr service, find the data in the core and delete the two. However, the index will be lost. At this time, you need to import the data again