日常报错
CwSunlit
IT民工一枚
展开
-
ERROR: Linux route delete command failed: external program exited with error status: 2
openvpn报错 重启失败原创 2022-07-28 19:22:02 · 2445 阅读 · 0 评论 -
Kubesphere的ingress提示414 Request-URI Too Large
kubesphere的ingress提示414 Request-URI Too Large的解决办法原创 2022-07-21 16:38:41 · 1133 阅读 · 0 评论 -
mysqldump: Couldn‘t execute ‘SHOW VARIABLES LIKE ‘ndbinfo\_version‘‘: Native table ‘performance_sche
mysql备份错误原创 2022-07-15 17:49:28 · 476 阅读 · 0 评论 -
Only the install user can be defined in the new cluster
使用pg_upgrade升级数据库报错原创 2022-07-07 14:34:21 · 349 阅读 · 0 评论 -
unhandled exception in login function “public.login“
postgresql14配置session_exec 登录报错问题及处理原创 2022-07-07 11:39:00 · 439 阅读 · 0 评论 -
antd modal组件多次渲染的临时解决办法
解决 antd Modal+Form情况表单多次渲染的问题原创 2022-06-07 17:49:24 · 1941 阅读 · 0 评论 -
You are running `create-react-app` 5.0.0, which is behind the latest release (5.0.1)
➜ test create-react-app react_mockYou are running `create-react-app` 5.0.0, which is behind the latest release (5.0.1).We no longer support global installation of Create React App.Please remove any global installs with one of the following commands:原创 2022-04-18 20:28:06 · 1348 阅读 · 4 评论 -
crontab定时任务未执行
1 问题背景公司某线上环境服务down掉后没有按照crontab设置的定时任务自动拉起crontab 任务设置如下[user@onlinehost scripts]$ crontab -l* * * * * bash /data/app/scripts/auto_start.sh2 问题排查过程2.1 权限问题如下所示 权限没问题[user@onlinehost scripts]$ ll /data/app/scripts/auto_start.sh-rwxrwxr-x 1 user u原创 2022-04-12 07:39:36 · 1257 阅读 · 0 评论 -
磁盘空间未释放 df命令看到的空间和du看到的空间不同
1 问题描述公司线上数据库主机告警,数据盘使用率已超过80%。数据目录是/data,基于基本的运维素养,我马上执行了如下的命令,找到了占用空间较大的目录[root@db1 ~]# du -sh /data/*34.7G /data/app15G /data/appData17G /data/db_backup3.3G /data/logs4.0G /data/packages0 /data/pid4.0K /data/tmp不出所料 直接看到了罪魁祸首 /data/app目录空间异常3原创 2022-04-07 11:01:20 · 494 阅读 · 0 评论 -
记一次alertmanager发送邮件失败的处理过程
文章目录1 先验证smtp信息是否正确2 配置alertmanager配置文件并触发告警3 解决 smtp.plainAuth failed: wrong host name4 解决 dial tcp 127.0.0.1:5001: connect: connection refused5 解决 配置文件不对应的问题6 解决configmap跟挂载文件名不对应的问题如下的过程记录了我遇到alertmanager不发送告警邮件后完整的排查过程,也贴有详细的报错信息,如果有时间可以通读,没时间可以直接在全文搜原创 2022-03-23 11:18:32 · 5994 阅读 · 2 评论 -
zabbix自定义监控server获取不到值
问题描述:监控的时候 发现无法获取自定义监控的值自己在agent手动执行脚本没问题在zabbix-server上get不到问题原因:执行自定义脚本的用户是zabbix用户 不是root用户 没有权限执行dh命令#!/bin/bashserviceName=$1case $serviceName in'nacos-mysql') echo `df -h | grep '/dev/sda'|awk '{print $5}'| awk -F'%' '{print $1}'`;;原创 2021-09-28 17:29:21 · 727 阅读 · 0 评论 -
shell脚本中CURRENT_DIR会发生覆盖的解决办法
1. 情景复现脚本之间相互引用的实例 如下[root@ck01 test]# pwd/root/test[root@ck01 test]# lsabc test.sh[root@ck01 test]# ls abcinter_variables.sh test_variables.sh[root@ck01 test]# cat abc/internal_variables.sh#!/bin/bashpackageVersion=1.0installMethod=yumcreat原创 2020-06-12 14:02:08 · 1500 阅读 · 0 评论 -
解决普通用户无法通过脚本添加自动化任务的问题
1. root与普通用户非交互模式添加自动化任务的区别一般想通过非交互方式添加crontab任务 可以通过echoecho "自动化任务内容" >> /var/spool/cron/用户名/var/spool/cron/用户名 表示某用户的所有自动化任务如下 root用户添加自动化任务[root@localhost ~]# echo "* * * * * echo hello" >> /var/spool/cron/root[root@localhost ~]# cr原创 2020-06-12 12:07:11 · 373 阅读 · 0 评论 -
/usr/sbin/zabbix_agentd: error while loading shared libraries: libcurl.so.4
问题描述:启动zabbix-agent的时候报错 如下[root@vm-172-16-1-113 ~]# systemctl start zabbix-agentJob for zabbix-agent.service failed because the control process exited with error code. See "systemctl status zabbix-agent.service" and "journalctl -xe" for details.[root@v原创 2021-09-08 22:05:28 · 1605 阅读 · 0 评论 -
No package centos-release-scl available.
问题描述:安装zabbix的时候 需要安装centos-release-scl 但是安装的时候提示如下[root@localhost install_zabbix]# yum -y install centos-release-sclLoaded plugins: fastestmirror, langpacks, versionlockLoading mirror speeds from cached hostfileNo package centos-release-scl available.原创 2021-09-08 16:44:25 · 5254 阅读 · 1 评论 -
设置ssh免密登录 非22端口
如下 需要做一个 3000端口的免密登录 还是传统的配方 还是原来的味道 但是报错了 不行[username@localhost ~]$ ssh-keygenGenerating public/private rsa key pair.Enter file in which to save the key (/home/username/.ssh/id_rsa): /home/username/.ssh/id_rsa already exists.Overwrite (y/n)? [userna原创 2021-09-07 16:42:13 · 1078 阅读 · 0 评论 -
使用非默认秘钥文件做免密登录后 无法直接登录
问题:使用非默认秘钥文件做免密登录后 免密失效问题描述:使用两个主机的普通用户one做测试,分别增加用户并设置密码(此步骤略)在主机1上对主机2做免密登录 操作如下[root@centos7 ~]# su - one[one@centos7 ~]$ ssh-keygen -t rsa -f ~/.ssh/id_rsa_oneGenerating public/private rsa key pair.Created directory '/home/one/.ssh'.Enter passp原创 2021-09-07 16:38:34 · 70 阅读 · 0 评论 -
nginx配置证书后无法加载文件: 06C:PEM routines:get_name:no start line:Expecting: ANY PRIVATE KEY)
问题描述:nginx配置文件里配置ssl证书 证书文件的权限也是对的 但是reload的时候 报错如下nginx: [emerg] cannot load certificate key "/etc/nginx/path2/zhengshu.key": PEM_read_bio_PrivateKey() failed (SSL: error:0909006C:PEM routines:get_name:no start line:Expecting: ANY PRIVATE KEY)问题分析:报错是说原创 2021-09-03 16:07:33 · 13238 阅读 · 4 评论 -
centos6不能使用网络yum的解决办法
目前各大镜像网站已经不支持6版本的epel源了 如果想使用 可以按照如下的办法进行配置 就可以使用epel源了 前提是机器可以通外网# cd /etc/yum.repos.d# mkdir bak# mv * bak/# cat ba.repo [base]name=CentOS-$releasever - Base#baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/$releasever/os/$basearch/#mirrorlis原创 2021-09-02 19:08:37 · 272 阅读 · 0 评论 -
no active checks on server [zabbix-ali.gs.com:10051]: host [moore] not found
zabbix_agent的配置如下zabbix页面定义的主机名如下两个设置成一致的 然后重启agent原创 2021-08-24 11:00:28 · 1101 阅读 · 0 评论 -
rpcbind.socket failed to listen on sockets: Address family not supported...
文章目录1 问题描述2 解决办法2.1 修改 /etc/sysctl.conf 文件2.2 修改 rpcbind.socket 文件2.3 重启服务1 问题描述在使用 “sudo systemctl start rpcbind” 报错 错误信息提示可以查看systemctl status rpcinbd.service或者journalctl -xe 但是我们都知道 status是看不出来的 所以 直接查看详细信息 执行journalctl -xe 看到如下关键信息 而且说到了Address fam原创 2021-08-09 18:09:06 · 2072 阅读 · 0 评论 -
常见错误整理
1. Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2) when trying to connect[root@ck01 ~]# /mysqldump -P3307 -uRoot -pRoot777 -a --default-character-set=utf8 --skip-comments test | gzip -n > /data/Backup/mysql/test.sql.gzWarning:原创 2020-06-13 17:18:05 · 306 阅读 · 0 评论 -
rsync: chgrp “/data/app/mobile(in backup) failed: Operation not permitted
场景:从客户端同步服务端mobile目录及其下边的所有文件命令如下rsync -az tsbweb1:/data/app/mobile /data/app/mobile/现象:从服务端使用rsync往客户端 可以同步 从客户端rsync 同步服务端数据报错rsync: chgrp "/data/app/mobile(in backup) failed: Operation not permitted (1)查看lsattr 发现没有异常 selinux firewalld也是关闭的[tsb@ts原创 2020-07-15 10:50:40 · 755 阅读 · 0 评论 -
samba挂载报错:mount: wrong fs type, bad option, bad superblock on //192.168.20.132/pub, missing c
[root@localhost ~]# mount -t cifs //192.168.20.132/pub /sharemount: wrong fs type, bad option, bad superblock on //192.168.20.132/pub, missing codepage or helper program, or other error ...原创 2020-05-07 14:55:40 · 636 阅读 · 0 评论 -
fatal: Unable to find remote helper for https
处理方法 把https换成git原创 2020-06-12 14:05:02 · 79 阅读 · 0 评论 -
pymysql模块批量插入数据报错问题处理
文章目录1. 问题现象2. 问题分析3. 执行批量插入1. 问题现象如下 用pymysql建立的连接 一次执行多个sql时候会报错 说语法错误In [1]: import pymysqlIn [2]: conn = pymysql.connect(host='10.1.2.154',port=3306,user='root',password='',db='one',charset='utf8')In [3]: cursor = conn.cursor()In [4]: sql = "in原创 2021-04-26 13:44:47 · 1456 阅读 · 1 评论 -
mysql段错误
登录mysql的时候提示段错误 直接退出客户端root@DevOps:/data/app/mysql/share# mysql -h127.0.0.1 -P3307 -u root Enter password:Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 5 to server version: 5.7.29Type 'help;' or '\h' for help. T原创 2020-09-22 18:00:09 · 1006 阅读 · 5 评论 -
libselinux conflicts with systemd-219-19.el7.x86_64
问题描述:安装某环境 不能使用网络 自己准备包 制作了本地yum进行rpm包安装时提示-->软件包libsmartcols.x86_ 64. 0.2.23.2-63.el7将被安装-->处理libselinux-2.5-15.el7.x86_ 64与systemd < 219-20的冲突-->处理libselinux-2.5-15.el7.x86_ 64与selinux-policy-base < 3.13.1-66的冲突--> 解决依赖关系完成完成错误: l原创 2020-08-29 13:46:02 · 1153 阅读 · 0 评论 -
shell脚本中遇到的八进制与十进制的问题: 08: value too great for base (error token is “08“)
问题描述:因项目需求 要取出月份的数字 做相应的操作 月份的数字一般是07 08这样的 被默认识别为八进制 导致异常 在执行shell脚本时抛出异常 如下[postgres@localhost ~]$ sh auto_partition.shuto_partition.sh: line 15: 08: value too great for base (error token is "08")这种异常主要是由于在shell中以0开头的 例如06 会默认被识别为八进制数字 如果使用八进制数字与十进制原创 2020-08-01 11:07:54 · 1412 阅读 · 0 评论 -
telnet haproxy端口 提示Connection closed by foreign host
用haproxy代理两个后端数据库 监听端口设置为15432使用ss可以看到监听端口[root@cloudwise-docp-1 ~]# ss -nptl | grep 15432LISTEN 0 2000 *:15432 *:* users:(("haproxy",pid=9449,fd=5))telnet报错如下[root@cloudwise-docp-1 ~]# telnet 127原创 2020-07-30 16:10:19 · 4305 阅读 · 2 评论 -
AIX7.1安装gcc 并编译安装NGINX
查看本主机是否有已经存在的gcc libgcc如果有 记得卸载掉-bash-5.0# rpm -qa | grep gcclibgcc-8.3.0-2.ppcgcc6-cpp-6.3.0-1.ppclibgcc6-6.3.0-1.ppcgcc6-6.3.0-1.ppc-bash-5.0# yum -y install gcc6-c++.ppc-bash-5.0# yum -y remove libgcc-8.3.0-2.ppc-bash-5.0# yum -y remove gcc6-c原创 2020-07-10 15:49:19 · 1000 阅读 · 0 评论 -
使用xmanger报错Could not open display because no X server is running.
问题及解决使用xmanager时报错“使用xmanger报错Could not open display because no X server is running.”这是因为缺少一个包 安装上即可yum -y install xorg-x11-xauth安装完毕后 重新连接即可...原创 2020-03-14 15:12:07 · 2363 阅读 · 0 评论 -
gitlab-ctl reconfigure启动报错
gitlab-ctl reconfigure 报错Recipe: monitoring::user * account[Prometheus user and group] action create * group[Prometheus user and group] action create ==============================...原创 2019-10-16 20:13:12 · 2845 阅读 · 0 评论 -
Existing lock /var/run/yum.pid: another copy is running as pid 44478
1. yum lock错误代码如下:[root@localhost ~]# yum -y install epel-releaseLoaded plugins: fastestmirror, langpacksExisting lock /var/run/yum.pid: another copy is running as pid 44478.Another app is curren...原创 2019-10-16 18:51:07 · 282 阅读 · 0 评论 -
Apache虚拟主机报错:NameVirtualHost has no effect and will be removed in the next release
Apache2.4添加虚拟主机提示:NameVirtualHost has no effect and will be removed in the next release /usr/local/apache/conf/extra/httpd-vhosts.conf提示2.4版本中提示NameVirtual将在以后的版本中去掉,所以,从2.4版本开始,做虚拟主机可以不加NameVirtual...原创 2019-09-16 10:25:07 · 2075 阅读 · 0 评论 -
访问varnish提示403 forbidden
报错如下[root@localhost ~]# curl -I http://192.168.20.104HTTP/1.1 403 ForbiddenServer: Apache/2.4.6 (CentOS)Last-Modified: Thu, 16 Oct 2014 13:20:58 GMTETag: "1321-5058a1e728280"Content-Type: text/h...原创 2019-08-23 17:21:08 · 628 阅读 · 0 评论 -
centos运行httpd报错: httpd[5165]: (13)Permission denied: AH00072: make_sock: could not bind to address
1. 报错如下Aug 12 10:11:01 localhost httpd[5165]: (13)Permission denied: AH00072: make_sock: could not bind to address [::]:8078Aug 12 10:11:01 localhost httpd[5165]: (13)Permission denied: AH00072: mak...原创 2019-08-12 10:16:57 · 3074 阅读 · 6 评论 -
[root@localhost squid]# squid -z squid: relocation error: squid: symbol SSL_set_alpn_protos, version
squid缓存服务器启动失败问题描述[root@localhost squid]# squid -z squid: relocation error: squid: symbol SSL_set_alpn_protos, version解决办法:[root@localhost squid]# yum -y install openssl openssl-devel[root@local...原创 2019-07-25 09:59:34 · 1284 阅读 · 2 评论