Vue Error: Error in v-on handler (Promise/async): “Error: Error“

The error message is as follows

[Vue warn]: Error in v-on handler (Promise/async): "Error: Error"

found in

---> <Navbar> at src/layout/components/Navbar.vue
       <Layout> at src/layout/index.vue
         <App> at src/App.vue
           <Root>

The solution is as follows

1. F12 enter the developer mode and click the area in the box

2. Check the response code, which is the value on the right side of res.code

3. Add code to easy mock

How to Solve RuntimeError: cuDNN error: CUDNN_STATUS_EXECUTION_FAILED

Case 1: the versions of CUDA, cudnn, Python and python do not match. Note that the python version, in particular, is easy to ignore.

Case 2 (my case is this): under the condition of case 1, check whether the graphics card used by your program is full, and if it is full, replace the unused card(‘ cuda:3 ’ —> ‘ cuda:0 ’)。

Case 3: add
torch. Backends. Cudnn. Enabled = false in the code

[Solved] when using jupyter notebook, “terminated worker error” appears

Error:
When calling pandas_profiling.ProfileReport(df) using Jupyter Notebook, an error is reported “A worker process managed by the executor was unexpectedly terminated. This could be caused by a segmentation fault while calling the function or by an excessive memory usage causing the Operating System to kill the worker.”The solution is as follows.
    Terminal type pip list , view joblib-0.13.2 type pip uninstall joblib type pip install -U joblib

Restart the kernel, then execute the code again and it runs successfully!

ValueError: Negative dimension size caused by subtracting 2 from 1 for…

ValueError: Negative dimension size caused by subtracting 2 from 1 for ‘{{node max_pooling2d_1/MaxPool}} = MaxPoolT=DT_FLOAT, data_format=“NHWC”, explicit_paddings=[], ksize=[1, 2, 2, 1], padding=“VALID”, strides=[1, 2, 2, 1]’ with input shapes: [?,1,128,64].
channel Order problem
Add the code
from keras import backend as K
K.set_image_data_format(‘channel_first’)
Done!

How to Solve k8s Nodal issues: /sys/fs/cgroup/memory/docker: no space left on device\““: unknown.

When some nodes of k8s run for a period of time, an error is reported: sys/FS/CGroup/memory/docker: no space left on device \ “: unknown

The docker’s memory is full, probably because SELinux = is on

Permanent closure solution:

VI/etc/SELinux/config, change SELinux = enforcing to SELinux = disabled, then save and exit

Then restart the computer

The node can be used after re running

Of course, this is: basic entrance examination of intelligent gtalent operation engineer

If it is only used temporarily, then directly: setenforce 0

docker: Error response from daemon: OCI runtime create failed: container_ linux.go:345: starting container process caused “process_ linux.go:275: applying cgroup configuration for process caused \”mkdir /sys/fs/cgroup/memory/docker: no space left on device\””: unknown.
ERRO[0000] error waiting for container: context canceled

Max virtual memory areas vm.max_map_count [65530] is too low, increase to at least 

[2021-05-03T11:54:49,018][INFO ][o.e.p.PluginsService     ] [search-node1] loaded plugin [ingest-geoip]
[2021-05-03T11:54:49,018][INFO ][o.e.p.PluginsService     ] [search-node1] loaded plugin [ingest-user-agent]
[2021-05-03T11:54:52,096][INFO ][o.e.x.s.a.s.FileRolesStore] [search-node1] parsed [0] roles from file [/usr/share/elasticsearch/config/roles.yml]
[2021-05-03T11:54:52,684][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [search-node1] [controller/89] [Main.cc@109] controller (64 bit): Version 6.6.1 (Build a033f1b9679cab) Copyright (c) 2019 Elasticsearch BV
[2021-05-03T11:54:53,296][INFO ][o.e.d.DiscoveryModule    ] [search-node1] using discovery type [zen] and host providers [settings]
[2021-05-03T11:54:53,875][INFO ][o.e.n.Node               ] [search-node1] initialized
[2021-05-03T11:54:53,875][INFO ][o.e.n.Node               ] [search-node1] starting ...
[2021-05-03T11:54:54,067][INFO ][o.e.t.TransportService   ] [search-node1] publish_address {192.168.0.108:9300}, bound_addresses {0.0.0.0:9300}
[2021-05-03T11:54:54,091][INFO ][o.e.b.BootstrapChecks    ] [search-node1] bound or publishing to a non-loopback address, enforcing bootstrap checks
ERROR: [1] bootstrap checks failed
[1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
[2021-05-03T11:54:54,115][INFO ][o.e.n.Node               ] [search-node1] stopping ...
[2021-05-03T11:54:54,140][INFO ][o.e.n.Node               ] [search-node1] stopped
[2021-05-03T11:54:54,140][INFO ][o.e.n.Node               ] [search-node1] closing ...
[2021-05-03T11:54:54,154][INFO ][o.e.n.Node               ] [search-node1] closed
[2021-05-03T11:54:54,156][INFO ][o.e.x.m.p.NativeController] [search-node1] Native controller process has stopped - no new native processes can be started

ERROR: [1] bootstrap checks failed
[1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least

 

Solution.

Add a line to the end of the /etc/sysctl.conf file
vm.max_map_count=262144
Run /sbin/sysctl -p to take effect immediately

Qt error: no matching function for call to ‘MainWindow::connect(QAction*&, void (QAction::*)

Error in QT compilation:

error: no matching function for call to 'MainWindow::connect(QAction*&, void (QAction::*)(bool), MainWindow* const, MainWindow::MainWindow(QWidget*)::__lambda0)'});

Error reason: QT software version is too low, lower than qt5.4.

Solution: add code to. Pro file:

CONFIG   += C++11

Problem solving.

ImportError: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.23‘ not found

ImportError: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.23’ not found (required by /data/ty19/miniconda3/envs/casrel/lib/python3.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so)

Reason: The current version of python is 3.7
Solution: lower the python version – use conda create -n py36 python=3.6.8 to create a new virtual environment

Springboot Run Error: java.lang.NoClassDefFoundError: org/eclipse/jetty/server/Handler

1. Problem description


Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
[APP_IS_UNDEFINED:10.164.194.116:0000] [,,,] 2021-05-05 10:08:54.933 ERROR 18128 [main] org.springframework.boot.SpringApplication Application run failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xxlJobExecutor' defined in class path resource [com/haiercash/marketcontrol/schedule/config/XxlJobConfig.class]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/eclipse/jetty/server/Handler
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1778)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
	at org.springframework.beans.factory.support.AbstractBeanFactory$$Lambda$168/331510866.getObject(Unknown Source)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:843)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549)
	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142)
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775)
	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:316)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248)
	at com.haiercash.marketcontrol.schedule.ScheduleApplication.main(ScheduleApplication.java:27)
	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:497)
	at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
	at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
	at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
	at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
Caused by: java.lang.NoClassDefFoundError: org/eclipse/jetty/server/Handler
	at com.xxl.job.core.rpc.netcom.jetty.server.JettyServer.start(JettyServer.java:23)
	at com.xxl.job.core.rpc.netcom.NetComServerFactory.start(NetComServerFactory.java:25)
	at com.xxl.job.core.executor.XxlJobExecutor.start(XxlJobExecutor.java:60)
	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:497)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1903)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1846)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1774)
	... 25 common frames omitted
Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.server.Handler
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:93)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 35 common frames omitted

[APP_IS_UNDEFINED:10.164.194.116:0000] [,,,] 2021-05-05 10:09:07.905 INFO 29248 [AsyncResolver-bootstrap-executor-0] com.netflix.discovery.shared.resolver.aws.ConfigClusterResolver Resolving eureka endpoints via configuration
[APP_IS_UNDEFINED:10.164.194.116:0000] [,,,] 2021-05-05 10:09:22.905 INFO 29248 [AsyncResolver-bootstrap-executor-0] com.netflix.discovery.shared.resolver.aws.ConfigClusterResolver Resolving eureka endpoints via configuration
^Z
[3]+  Stopped                 tail -f detail.2021-05-05.0.log

2. Solutions

gradle

// https://mvnrepository.com/artifact/org.eclipse.jetty/jetty-servlet
implementation group: 'org.eclipse.jetty', name: 'jetty-servlet', version: '9.4.35.v20201120'

maven

<!-- https://mvnrepository.com/artifact/org.eclipse.jetty/jetty-servlet -->
<dependency>
    <groupId>org.eclipse.jetty</groupId>
    <artifactId>jetty-servlet</artifactId>
    <version>9.4.35.v20201120</version>
</dependency>