Category Archives: How to Fix

Fedora32 start container error – OCI runtime create failed: This version of runc doesn’t work on cgroups V2: unknown

background: Fedora 32 version of the operating system, running the container times error

[root@Fedora4 ~]# docker run -d -p 1001:80 --name blog1 tutum/wordpress
97da5679108744a76fda3e171d49304cce059091ee321d6fd08c8d61a4300ee8
docker: Error response from daemon: OCI runtime create failed: this version of runc doesn't work on cgroups v2: unknown.

try again to start the container as well:

[root@Fedora4 ~]# docker start blog1
Error response from daemon: OCI runtime create failed: this version of runc doesn't work on cgroups v2: unknown

The

solution is configured as follows:

[root@Fedora4 ~]# grubby --update-kernel=ALL --args="systemd.unified_cgroup_hierarchy=0"
[root@Fedora4 ~]# reboot

after restart, the container can be started normally.

[root@Fedora4 ~]# docker start blog1
blog1
[root@Fedora4 ~]# docker ps -a
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS                            NAMES
97da56791087        tutum/wordpress     "/run.sh"           4 minutes ago       Up 11 seconds       3306/tcp, 0.0.0.0:1001->80/tcp   blog1

Reference documents:


https://jaranguda.com/fedora-docker-this-version-of-runc-doesnt-work-on-cgroups-v2/

The app failed to start because there is no Qt platform to initialize

problem description: This application failed to start because no Qt platform plugin could be initialized.


I installed the python environment and PyQt5 library


solution:

CMD command line input PIP list to view the installed python library

1, first uninstall PyQt5, enter PIP uninstall PyQt5 to uninstall

2. Find the installation location of PyQt5 after uninstalling, and directly delete the folder

3. Delete environment variables

win10: this computer — > Property – & gt; Advanced system Setup — & GT; Advanced – & gt; Environmental variable — & GT; The system variable
removes the variable named QT_QPA_PLATFORM_PLUGIN_PATH
4. Delete and reinstall PyQt5

command PIP install PyQt5
(download slow if the command line, you can go to the website https://pypi.org/project/PyQt5/#files links from thunderbolt download, download after install, remember not to the right version, don’t know which version download can on the command line input PIP install PyQt5 enter, displays are behind the download version, I download file is the following version
)

5. Configure environment variables after installation, and restart the computer after configuration.

variable name: QT_QPA_PLATFORM_PLUGIN_PATH
variable value: C:(PyQt5 installation path)\Python\ python38-32 \Lib\site-packages\PyQt5\Qt\plugins

Solve the MAC terminal download error curl: (7) failed to connect to raw.githubusercontent.com port 443: Connection refused

directory

    • a, error source
    • 2, analysis and solve
      • 1, test links
      • 2, query url information
      • 3, configuration, hosts
      • 4, the results

    — error source

    in the download node. Js package management tool, it found that incredibly connect address, the error is as follows:

    2. Analysis and solution

1, test link



after testing, it was found that the connection could not be connected, access was denied.

2, query url information

IP address query in

website: https://githubusercontent.com.ipaddress.com/raw.githubusercontent.com
the query results are as follows:

3. Configure hosts

USES software called SwitchHosts, an open source tool for modifying, managing, and switching multiple hosts schemes.
download address: https://oldj.github.io/SwitchHosts/#cn

Android project error: could not resolve com.android.support .c onstraint:constraint-layout :2.0.2.

error message

Unable to resolve the dependency for ': app @ the debug/compileClasspath: Could not resolve com. Android. Support. The constraint, the constraint - layout: 2.0.2. & lt; a href="disable.gradle.offline.mode"> Disable offline mode and sync project< /a> < br> < a href="Unable%20to%20resolve%20dependency%20for%20&%20#%2039;%20:app@debug/compileClasspath&%20#%2039;%20:%20Could%20not%20resolve%20com.%20Android.%20Support.%20The%20constraint,%20the%20constraint%20-%20layout:%202.0.2.%20"& gt; Show Details< /a> Affected Modules: < a href="openFile:D:/android3/app/build.gradle"> app< /a>

solution :

change build. Gradle (:app) (note with app suffix)
to

The first installation of zookeeper on Linux failed to start

error is as follows:
[root @ hecs 2 – Linux – 20200625134441 – x – medium – bin] #./zkServer sh start
ZooKeeper JMX enabled by default
Using the config:/home/they/they/bin /…/conf/zoo. CFG
Starting zookeeper… Zookeep’s default START port is also 8080
. Therefore, we need TO modify the zookeeper’s port
solution:
. ./ zkserver.sh start-foreground

, so my port 8080 was taken up, causing zookeeper to fail to launch
. Add
admin.serverport =8123

3, restart
./ zkserver.sh start
perfectly fixed.

Packet Title: logs.pcapng

Wireshark packet analysis (logs. Pcapng)

  1. USES Wireshark to view and analyze the logs.pcapng packet file under Kali desktop. Through analyzing the packet logs.pcapng, it finds the 9th file scanned by the malicious user directory and USES the file name as FLAG (form: [robots.txt])

flag: [star] PHP

  1. continues to view the packet file logs. Pcapng analyzes which ports the malicious user scans and USES all ports as flags (form: [port name 1, port name 2, port name 3… port name n]) from low to high

flag: [21,80,445,1433,3306,3389,500

Yocto practice (2) — running QEMU

the last article recorded the Yocto environment construction, compilation.

home network wind, very slow to compile.

note the problems and solutions encountered while running qemu today.

run:

runqemu qemux86-64

result: the qemu window pops up, but closes after running for a while. Finally, Failed to run qemu: X Error: BadValue.

currently found method:

runqemu qemux86-64 nographic

Once

runs the command, qemu should be up and running. But you can’t see the UI.

solution reference from: https://stackoverflow.com/questions/56237078/yocto-failed-to-run-qemu-could-not-initialize-sdlx11-not-available

someone in the comment explains to connect with VNC server and create a virtual display so that you can not only run but also see the UI. I’ll try it later, and I’ll update the results.

(20200915 solved) vscope appears unable to open ‘hashable’_ class_ helper.pxi ‘

  • problem description

    Unable to open ‘hashtable_class_helper. Pxi’ : Unable to read file ‘vscode – remote:// SSH remote + data1/home/data/anaconda3/lib/python3.7/site – packages/pandas/_libs/hashtable_class_helper pxi’ (the Error: Unable to resolve non – existing file ‘vscode – remote:// SSH remote + data1/home/data/anaconda3/lib/python3.7/site – packages/pandas/_libs/hashtable_class_helper pxi’).
    Blockquote>

  • solution

    occurs when using vscode.

    is usually caused by index problems.

    for example, null dataframe, select data from null df, etc.

Spring boot problem solving record (1)

exercise author: pure smile project spring-boot-examples encountered problems

problem 1:

demo spring – the boot – web: maven error after install Failed to execute goal. Org. Apache maven. Plugins: maven – surefire plugin: 2.22.1: test (default – test) on the project spring – the boot – web: There are test failures.

solution: add configuration skip test

at the bottom of the pot.xml


	<build>
		<plugins>
			<plugin>
				<groupId>org.springframework.boot</groupId>
				<artifactId>spring-boot-maven-plugin</artifactId>
			</plugin>
			<!--添加配置跳过测试-->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-plugin</artifactId>
				<version>2.22.1</version>
				<configuration>
					<skipTests>true</skipTests>
				</configuration>
			</plugin>
			<!--添加配置跳过测试-->
		</plugins>
	</build>

question 2: we are Unable to import maven project: See logs for details by clicking the maven reimport icon

view error log: Help> > Show Log in finder (Help> > Show Log in Explorer)

2020-10-19 09:12:17,669 [ 538013]  ERROR -      #org.jetbrains.idea.maven - com.google.inject.CreationException: Unable to create injector, see the following errors:

1) No implementation for org.apache.maven.model.path.PathTranslator was bound.
  while locating org.apache.maven.model.path.PathTranslator
    for field at org.apache.maven.model.interpolation.AbstractStringBasedModelInterpolator.pathTranslator(Unknown Source)
  at org.codehaus.plexus.DefaultPlexusContainer$1.configure(DefaultPlexusContainer.java:350)

2) No implementation for org.apache.maven.model.path.UrlNormalizer was bound.
  while locating org.apache.maven.model.path.UrlNormalizer
    for field at org.apache.maven.model.interpolation.AbstractStringBasedModelInterpolator.urlNormalizer(Unknown Source)
  at org.codehaus.plexus.DefaultPlexusContainer$1.configure(DefaultPlexusContainer.java:350)

2 errors 
java.lang.RuntimeException: com.google.inject.CreationException: Unable to create injector, see the following errors:

1) No implementation for org.apache.maven.model.path.PathTranslator was bound.
  while locating org.apache.maven.model.path.PathTranslator
    for field at org.apache.maven.model.interpolation.AbstractStringBasedModelInterpolator.pathTranslator(Unknown Source)
  at org.codehaus.plexus.DefaultPlexusContainer$1.configure(DefaultPlexusContainer.java:350)

2) No implementation for org.apache.maven.model.path.UrlNormalizer was bound.
  while locating org.apache.maven.model.path.UrlNormalizer
    for field at org.apache.maven.model.interpolation.AbstractStringBasedModelInterpolator.urlNormalizer(Unknown Source)
  at org.codehaus.plexus.DefaultPlexusContainer$1.configure(DefaultPlexusContainer.java:350)

2 errors
	at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:543)
	at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:159)
	at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:106)
	at com.google.inject.Guice.createInjector(Guice.java:87)
	at com.google.inject.Guice.createInjector(Guice.java:69)
	at com.google.inject.Guice.createInjector(Guice.java:59)
	at org.codehaus.plexus.DefaultPlexusContainer.addComponent(DefaultPlexusContainer.java:344)
	at org.codehaus.plexus.DefaultPlexusContainer.addComponent(DefaultPlexusContainer.java:332)
	at org.jetbrains.idea.maven.server.Maven3ServerEmbedderImpl.customizeComponents(Maven3ServerEmbedderImpl.java:557)
	at org.jetbrains.idea.maven.server.Maven3ServerEmbedderImpl.customize(Maven3ServerEmbedderImpl.java:527)
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:564)
	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:359)
	at sun.rmi.transport.Transport$1.run(Transport.java:200)
	at sun.rmi.transport.Transport$1.run(Transport.java:197)
	at java.security.AccessController.doPrivileged(AccessController.java:691)
	at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:587)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:828)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:705)
	at java.security.AccessController.doPrivileged(AccessController.java:391)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:704)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
	at java.lang.Thread.run(Thread.java:832)
	at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:276)
	at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:253)
	at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:162)
	at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:227)
	at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:179)
	at com.sun.proxy.$Proxy165.customize(Unknown Source)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.intellij.execution.rmi.RemoteUtil.invokeRemote(RemoteUtil.java:179)
	at com.intellij.execution.rmi.RemoteUtil.access$300(RemoteUtil.java:39)
	at com.intellij.execution.rmi.RemoteUtil$2$1$1.compute(RemoteUtil.java:160)
	at com.intellij.openapi.util.ClassLoaderUtil.runWithClassLoader(ClassLoaderUtil.java:66)
	at com.intellij.execution.rmi.RemoteUtil.executeWithClassLoader(RemoteUtil.java:231)
	at com.intellij.execution.rmi.RemoteUtil$2$1.invoke(RemoteUtil.java:157)
	at com.sun.proxy.$Proxy165.customize(Unknown Source)
	at org.jetbrains.idea.maven.server.MavenEmbedderWrapper.doCustomize(MavenEmbedderWrapper.java:96)
	at org.jetbrains.idea.maven.server.MavenEmbedderWrapper.lambda$customizeForResolve$1(MavenEmbedderWrapper.java:69)
	at org.jetbrains.idea.maven.server.RemoteObjectWrapper.perform(RemoteObjectWrapper.java:76)
	at org.jetbrains.idea.maven.server.MavenEmbedderWrapper.customizeForResolve(MavenEmbedderWrapper.java:68)
	at org.jetbrains.idea.maven.project.MavenProjectsTree.resolve(MavenProjectsTree.java:1272)
	at org.jetbrains.idea.maven.project.MavenProjectsProcessorResolvingTask.perform(MavenProjectsProcessorResolvingTask.java:45)
	at org.jetbrains.idea.maven.project.MavenProjectsProcessor.doProcessPendingTasks(MavenProjectsProcessor.java:134)
	at org.jetbrains.idea.maven.project.MavenProjectsProcessor.access$000(MavenProjectsProcessor.java:32)
	at org.jetbrains.idea.maven.project.MavenProjectsProcessor$2.run(MavenProjectsProcessor.java:109)
	at org.jetbrains.idea.maven.utils.MavenUtil.lambda$runInBackground$5(MavenUtil.java:451)
	at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:314)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
2020-10-19 09:12:17,670 [ 538014]  ERROR -      #org.jetbrains.idea.maven - IntelliJ IDEA 2018.3.5  Build #IU-183.5912.17 
2020-10-19 09:12:17,670 [ 538014]  ERROR -      #org.jetbrains.idea.maven - JDK: 1.8.0_152-release; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o 
2020-10-19 09:12:17,670 [ 538014]  ERROR -      #org.jetbrains.idea.maven - OS: Mac OS X 
2020-10-19 09:12:17,686 [ 538030]  ERROR -      #org.jetbrains.idea.maven - Last 

cause: Maven3.6.2 version compatibility issues.
solution: download the lower version of Maven3.6.0 and the following versions to solve the problem.

(20200916 Solved)Docker||redis-cli Could not connect to Redis at 127.0.0.1:6379: Connection refused

  • problem description

    redis-cli is the redis command line interface to interact with the redis service.

  • solution

    1. via configuration file
      $ vi /etc/redis.conf
      # daemonize no 改为 yes
      redis-server /etc/redis.conf
      

      docker startup redis has no configuration file in it. You need to build it yourself.

    2. start directly
      redis-server &
      

      <李>

      引用

      1. 无法连接到127.0.0.1:6379的Redis:使用自制程序拒绝连接

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile)

packaging error as shown in the figure below. Prompt: Compile the JDK version too low. Add maven packaging plug-in

to the parent project

adds the packaging plug-in

<build>

    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>3.8.1</version>
            <configuration>
                <source>11</source>
                <target>11</target>
            </configuration>
        </plugin>
    </plugins>
</build>