Category Archives: Error

[Solved] Failed to get node ip address matching nodeport cidr: no addresses found for cidrs [172.16.19.0/24]

The nodeport defined by the k8s cluster cannot take effect. There is no corresponding port listening in netstat

Check the Kube proxy log and find that

Guess, the address has run out. Temporary solution:

Modify Kube proxy configuration

kubectl edit cm kube-proxy  -n kube-system

# Add in the Path of nodePortAddresses
nodePortAddresses: ["172.16.0.0/16"]

# Delete kube-proxy pod working

The cluster is generated using kubedm. I guess you need to specify the address range of nodeportaddresses in kubedm

Anki cannot start on Debian Buster [How to Solve]

The default Anki package v2.1.8 in Debian Buster cannot start normally with the following error message.

qt: Could not load the Qt platform plugin "xcb" in "" even though it was found.
qt: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.
Aborted

This message is not detailed enough to locate the cause of the problem. To make more starting information of Anki printed out, set the environment variable QT_DEBUG_PLUGINS as

export QT_DEBUG_PLUGINS=1

Then, restart Anki and at the end of the error message, it reads as

qt: Got keys from plugin meta data ("xcb")
qt: QFactoryLoader::QFactoryLoader() checking directory path "/usr/bin/platforms" ...
qt: Cannot load library /home/username/.local/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqxcb.so: (libxcb-util.so.1: cannot open shared object file: No such file or directory)
qt: QLibraryPrivate::loadPlugin failed on "/home/username/.local/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqxcb.so" : "Cannot load library /home/username/.local/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqxcb.so: (libxcb-util.so.1: cannot open shared object file: No suchfile or directory)"
qt: Could not load the Qt platform plugin "xcb" in "" even though it was found.
qt: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.
Aborted

So it is obvious that the shared library libxcb-util.so.1 cannot be found on my system and what has actually been installed is libxcb-util.so.0, which is provided by the package libxcb-util0. Luckily, this problem can be easily solved by creating a symbolic link from libxcb-util.so.0 as below.

cd /usr/lib/x86_64-linux-gnu
sudo ln -sf libxcb-util.so.0 libxcb-util.so.1

Now, Anki can start and work properly.
Unfortuntely, there is still a shortcoming that it does not support the Chinese input method Fcitx. It is said that the input method ibus can be supported, but I refuse to switch to it, since it has another problem which, according to here, makes the first character in the selection list blocked by a black box. Then I suggest you download the newest version of Anki from its official site.

[Solved] rocky-linux8.5 Install gitea Error: services.server Additional property db is not allowed

problem

Today we use rocky – Linux 8 5 installed docker composer and then gitea. An error was encountered during installation services server Additional property db is not allowed

Solution:

First of all, other errors were reported for the yml format problem. After the problem was resolved, the above error was reported. Some people on the Internet said that it is related to the version of docker-compose, but it is not. The docker version I use is 20.10.12, and the version of docker-compose is v2.2.2 (offline installation), finally check the yml format, where the mirror image gitea and mysql are not at the same level, mysql is used as a sub-layer of gitea, and gitea is depend-on mysql. You can adjust it to the same level later.

version: "3"

networks:
  gitea:
    external: false

services:
  server:
    image: gitea/gitea:1.15.7
    container_name: gitea
    environment:
      - USER_UID=1000
      - USER_GID=1000
      - DB_TYPE=mysql
      - DB_HOST=db:3306
      - DB_NAME=gitea
      - DB_USER=gitea
      - DB_PASSWD=gitea
    restart: always
    networks:
      - gitea
    volumes:
      - ./gitea:/data
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    ports:
       - "3000:3000"
       - "222:22"
    depends_on:
       - db
 
  db:
    image: mysql:8
    restart: always
    environment:
      - MYSQL_ROOT_PASSWORD=gitea
      - MYSQL_USER=gitea
      - MYSQL_PASSWORD=gitea
      - MYSQL_DATABASE=gitea
    networks:
      - gitea
    volumes:
         - ./mysql:/var/lib/mysql

The reason for the error is that depends_on is db, and db and server are not at the same level. You can find the reason by comparing with online yml or a text editor.

[Solved] IDEA: JSP Could Not Use session Build-in Object

Problem description

Cause

since the author uses Tomcat 10, the servlet dependency used is Jakarta Servlet. For details, see building a servlet using Tomcat 10. An error is reported: class XXX is not a servlet. The error is because the servlet API package is not imported.

Solution:

Import servlet API dependencies.

<!-- https://mvnrepository.com/artifact/javax.servlet/javax.servlet-api -->
<dependency>
  <groupId>javax.servlet</groupId>
  <artifactId>javax.servlet-api</artifactId>
  <version>4.0.1</version>
</dependency>

Qitemselectionmodel: How to Fix Getting qmodelindexlist program crash Issue

There are no trivial things in work: turning a stone into gold and a drop into a river. Only by taking everything you do seriously can you overcome all difficulties and achieve success.

The program crashed when using QT’s qitemselectionmodel to get qmodelindexlist in the project.

Usage scenario:

QItemSelectionModel *selections =pTreeView->selectionModel();
QModelIndexList selectedindexes = selections->selectedRows();

In this way, an error will be reported after calling.

Solution: find the source code of selectedrows and implement the currently selected item by yourself

    QItemSelectionModel *selections = pTreeView->selectionModel();

    QModelIndexList selectedindexes;
    //the QSet contains pairs of parent modelIndex
    //and row number
    QSet<QPair<QModelIndex, int>> rowsSeen;

    const QItemSelection ranges = selections->selection();
    for (int i = 0; i < ranges.count(); ++i)
    {
        const QItemSelectionRange& range = ranges.at(i);
        QModelIndex parent = range.parent();
        for (int row = 0; i < range.top(); row <= range.bottom(); row++)
        {
            QPair<QModelIndex, int> rowDef = qMakePair(parent, row);
            if (!rowsSeen.contains(rowDef))
            {
                rowsSeen << rowDef;
                if (selections->isRowSelected(row, parent))
                {
                    selectedindexes.append(pModel->index(row, 0, parent));
                }
            }
        }
    }

[Solved] Jenkins deploy task error: Host key verification failed

Environment configuration: Jenkins + gitlab deployment

Jenkins reported the following error: host key verification failed; could not read from remote repository

Xshell logs in to the background to view the problems during deployment

The background directly uses the GIT command gitllab to check in locally

Then go to the page to deploy the task, and you can succeed

[Solved] Jupyter notebook Startup Crash Error in Tensorflow Environment: ssl.SSLError: Unknow error (_ssl.c:4034)

I tried many methods and saw an explanation on the Internet. I think it should be the python version, so I upgraded the python version in Anaconda navigator. Then enter in Anaconda prompt

You can successfully open the Jupiter notebook page

Here’s how to upgrade Python

[Solved] C# Error: Could Not Find Net Framework Data ProVider, It may not be installed.

If the problem is reported incorrectly, the screenshot is as above, and the solution is as follows

Step 1: find MySQL in [reference] Version number in data

The second step is on the web Add the following configuration to config

<system.data>
		<DbProviderFactories>
			<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=8.0.24.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d"/>
		</DbProviderFactories>
	</system.data>

Note that the version of the above configuration information needs to be changed to the mysql. XML you just viewed Data version number

Then switch to release, regenerate the solution, regenerate the project, and republish.

However, it is strange that I need to delete this configuration information when running locally; This configuration information needs to be added when the server is running

I don’t know why.

[Solved] HiC-Pro mergeSAM.py Error: Forward and reverse reads not paired. Check that BAM files have the same read names and are sorted.

Error message

 Forward and reverse reads not paired. Check that BAM files have the same read names and are sorted.

analysis

The prompt is that there is no sorting or R1 and R2 are not paired. Manually sort and then run HIC Pro step by step

samtools sort -@ 10 -n -m 10G -T temp1 xxxR1.bam > xxxR1.sort.bam
samtools sort -@ 10 -n -m 10G -T temp2 xxxR2.bam > xxxR2.sort.bam
mv xxxR1.sort.bam xxxR1.bam
mv xxxR1.sort.bam xxxR1.bam

be careful

It cannot be sorted by chromosome position, because HIC Pro needs pairing relationship in processing HIC data, so BAMS of R1 and R2 need to be sorted by name

-M cannot be set too low. If the HIC sequencing depth is high, there will be too many sorting process files and cannot be merged

It is best to set – t because there is a lot of IO interaction at this time.

Finally, modify and name the ordered documents according to their original names.

It cannot be executed with nohup, because it will redirect characters in standard output to BAM, resulting in some strange errors. You can use screen.

 

[antd vue Update] Some Components Error: Error in data(): “TypeError” & Cannot read properties of undefined (reading ‘pageSize’)

As mentioned, due to the previous upgrade of the antd vue framework, and the vue version has not been upgraded, a series of error issues have been reported

1. Cannot read properties of undefined (reading’pageSize’)
2. Error in data(): “TypeError”
3. Cannot set properties of undefined (setting’selectedRowKeys’)

Looking at the code, there is no problem with the corresponding parameter configuration, but the
best solution is to upgrade the matching dependency.

ant-design – vue 1.7.4 must use vue@^2.6.0 version, so you can upgrade vue, I personally test and upgrade the latest version @ 2.6.14

Specific steps:

1. Delete package-lock.json first, so that the installation dependencies can take effect
. 2. Manually find the corresponding vue and vue-template-compiler in node_modules to prevent incomplete updates. The latter depends on the former, and the version number must be consistent@ 2.6.14
3. Modify the version of vue and vue-template-compiler in package.json to @2.6.14, and save it
. 4. Run npm install to update and upgrade dependencies. After
updating, you can run npm run dev to debug and develop