debug/错误日志
Jeff_Scott
Less is more
展开
-
frpc客户端连接会提示 login to server failed: EOF
1.frpc客户端连接会提示 login to server failed: EOF2. 解决办法vim your_path/frpc.ini原创 2020-06-09 16:20:06 · 30086 阅读 · 17 评论 -
TypeError: transpose(): argument 'dim0' (position 1) must be int, not tuple
1. 问题描述TypeError: transpose(): argument 'dim0' (position 1) must be int, not tuple如图所示:2. 原因分析代码中的 i 是tensor类型的,不是narray类型的,pytorch中的tensor.transpose()只支持两维的张量形变,两维以上可以使用tensor.permute()。3...原创 2020-01-14 11:20:46 · 2768 阅读 · 0 评论 -
Error starting agent: Failed to start Consul server: Failed to start RPC layer: listen tcp 192.168.
1.问题描述刚搭建使用以下命令下载并安装的consul服务。wget https://releases.hashicorp.com/consul/1.4.4/consul_1.4.4_linux_amd64.zipunzip consul_1.4.4_linux_amd64.zipsudo mv consul /usr/local/bin/可见consul的安装十分简...原创 2019-03-29 15:28:36 · 41366 阅读 · 0 评论 -
Caused by: java.io.FileNotFoundException: class path resource [templates/500] cannot be opened
1.问题描述在WebMvcConfig中配置模板解析器后,反而无法加载模板,报找不到模板的错误。诡异的地方是,删掉自定义配置,使用系统自带的配置就完全没问题。org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.thymeleaf.exc...原创 2019-03-27 12:53:23 · 4526 阅读 · 0 评论 -
Uncaught TypeError: Cannot read property 'nodeName' of null
1.问题描述Uncaught TypeError: Cannot read property 'nodeName' of nullUncaught TypeError: Cannot read property 'getAttribute' of nullechartsUncaughtTypeError:Cannotreadproperty'setOptions'of...原创 2019-04-07 10:57:35 · 8403 阅读 · 0 评论 -
Refused to execute script from ';because its MIME type ('text/html') is not executable,
1.问题描述Refused to execute script from 'http://localhost:8080/static/lib/jquery/1.9.1/jquery.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.2.问...原创 2019-04-07 16:42:45 · 4514 阅读 · 0 评论 -
from origin 'http://localhost:8080' has been blocked by CORS policy:
1.问题描述from origin 'http://localhost:8080' has been blocked by CORS policy2.问题分析CORS跨域访问错误3.问题解决编写一个配置类package com.demo.config;import org.springframework.context.annotation.Configuratio...原创 2019-04-03 19:58:32 · 95948 阅读 · 10 评论 -
[LogStash::Runner] runner - The given configuration is invalid. Reason: Expected one of #, => at lin
1.问题描述2.问题分析出现这种问题,要么就是拼写有问题,要们就是少了一些符号,由于对配置文件格式要求较高,不要复制粘贴,这里的错误提示不是很准确,到时候出问题了debug时间会更长。3.解决办法找出配置文件错误,并使用以下命令测试:#conf_file_path 代表你的配置文件路径,请替换/usr/share/logstash/bin/logstash -f c...原创 2019-06-06 15:42:35 · 3424 阅读 · 0 评论 -
error_type=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::BadResponseCodeError, :error=>"Got r
1.错误描述error_type=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::BadResponseCodeError, :error=>"Got response code '503'2.原因分析这个错误表示elasitcsearch服务处于不可访问状态,通常是elasticsearch集群内部出现问题了,...原创 2019-06-06 16:20:47 · 6471 阅读 · 0 评论 -
redis-cli -h 192.168.108.117 Could not connect to Redis at 192.168.108.117:6379: Connection refused
1.问题描述2.问题分析通常来说,生产环境下的Redis服务器只设置为仅本机访问(Redis默认也只允许本机访问)。3.解决办法3.1置Redis允许远程访问sudo vim /etc/redis/redis.conf将此处改为bind 0.0.0.03.2指定配置文件然后重启Redis服务sudo redis-server /etc/redis...原创 2019-03-12 10:05:10 · 936 阅读 · 0 评论 -
Process: 1542 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p ${PID_DIR}/elast Process:
1.错误描述elasticsearch.service - Elasticsearch Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset Active: failed (Result: exit-code) since Wed 2019-02-27 19...原创 2019-03-01 13:45:13 · 5116 阅读 · 0 评论 -
Makefile:14: config-host.mak: No such file or directory
Makefile:14: config-host.mak: No such file or directoryRunning configure for you...make: execvp: ./configure: Permission deniedmake: *** [config-host.mak] Error 127原创 2017-03-31 12:42:43 · 5908 阅读 · 0 评论 -
two or more data types in declaration
一、错误详情1)two or more data types in declaration2)expected identifier or '(' at end of input二、错误原因一般情况出现这两种情况,要么就是在某个地方少了东西,如‘;’。要么就是多了不该多的东西,这次我这边是多了一个标点,奇葩的是codeblocks竟然没显示出来,隐藏着。后来粘贴到txt中才发现原创 2018-01-07 21:51:19 · 6359 阅读 · 0 评论 -
array type has an incomplete element type
一、错误详情array type has an incomplete element type二、错误分析·1)错误代码:int readInfo(int B[][],int n);int findMax(int B[][],int n,int m);2)错误原因:可以用二维数组名作为实参或者形参,在被调用函数中对形参数组定义时可以指定所有维数的大小,也可以省略第一维的大小说原创 2018-01-09 21:27:35 · 15520 阅读 · 1 评论 -
setTimeout() 方法在for循环中失效?
一、代码先行 var progressNum=0; var that = this; var timestep=100; for (progressNum = 0; progressNum <= 100; progressNum++) { timestep = (100 - progressNum) * 10;//计算当前的时延参量 ...原创 2018-05-10 21:11:14 · 2947 阅读 · 0 评论 -
invalid block tag on line 4: 'static', expected 'endblock'. Did you forget to register or load this
问题描述:产生原因:没有加载static标签解决办法:在submit.html文件中添加:{% load static %}原创 2018-06-21 12:42:57 · 16970 阅读 · 1 评论 -
EnvironmentError: mysql_config not found
描述:报错:Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-NLNeBe/mysqlclient/原因:缺少安装包办法:sudo apt-get install libmysqlclient-dev原创 2018-06-20 12:38:19 · 138 阅读 · 0 评论 -
ImportError:cannot import name 'distribute_covar_matrix_to_match_covariance_type'
1.bug详情2.bug原因sklearn包和hmmlearn包不兼容3.解决办法找到对应的包,这里经过实验sklearn0.19.2和hmmlearn0.2.1是兼容的conda install scikit-learn==0.19.2 /*安装0.19.2版本的scikit-learn*/安装之前如果已经安装过,需要先卸载conda remove sc...原创 2018-12-02 21:15:37 · 1398 阅读 · 0 评论 -
the superclass httpserverlet "javax.servlet.http.HttpServlet" was not found on the Java Build Path
一、bug描述:二、产生原因:在STS中新建一个springmvc工程,Javaweb工程类中没有添加Web 容器Runtime相关类。三、解决办法:以tomcat为例1.STS IDE中配置Tomcat服务器:打开STS IDE,Window---->Preference---->Server---->Runtime---->Environme...原创 2018-12-16 15:15:37 · 635 阅读 · 0 评论