草庐IT

删除维护计划时报错:索引超出范围必 须为⾮负值并⼩于集合⼤⼩

问题:删除维护计划时报错:索引超出范围必须为⾮负值并⼩于集合⼤⼩在SQLServer2016上删除已运行维护计划后,维护计划job没有自动删除掉,手工再删除维护计划job,提示删除失败。错误现象:delete  语句与reference约束"FK_subplan_job_id"冲突。该冲突发生于数据库"msdb",表"dbo.sysmaintplan_subplans",column'job_id'。语句已终止。(MicrosoftSQLServer,错误:547)原因分析:从错误信息我们可以看出是删除某个系统表中记录时,由于外键约束关系,导致删除失败。最后导致存储过程msdb.dbo.sp_

Python 使用pip install 时报错(WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, )

出错:使用python命令pipinstallpandas如下图:解决方法:python-mpipinstall--upgradepip-ihttps://pypi.tuna.tsinghua.edu.cn/simplesome-packagepipconfigsetglobal.index-urlhttps://pypi.tuna.tsinghua.edu.cn/simple此时运行 pipinstallpandas 成功。参考一:关于Python3中的WARNING:Retrying(Retry(total=4,connect=None,read=None,redirect=None,st

解决pytorch明明已经安装好了但是import时报错ModuleNotFoundError: No module named ‘torch‘

问题:按照b站一些up主的方法来安装,结果运行时却告诉我:报错ModuleNotFoundError:Nomodulenamed‘torch‘可是我明明已经装了torch安装教程参考的是(https://www.bilibili.com/video/BV1o3411V7Zz/?spm_id_from=333.880.my_history.page.click&vd_source=ad813e1004be679f01f964a5bda10dd8)解决:后来看了一些人的经验,总算没再有这个问题,解决如下:按照上面那个教程按照anaconda,注意一定要installforjustme!justme

启动docker容器时报iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport(Docker容器九类常见故障)

Docker容器九类常见故障错误原因: 在防火墙中默认nat是REJECT的,所以端口映射被拒绝。解决方法:vim/etc/sysconfig/iptables##注释掉下面这一行,这行的意思是拒绝掉所有的FORWARD,拒绝的提示信息是icmp-host-prohibited(禁止)#-AFORWARD-jREJECT--reject-withicmp-host-prohibited#重启iptablessystemctlrestartiptables.service网上其他的解决方法:基本都是重置docker0网络,重启dockerpkilldockeriptables-tnat-Fifc

安装和运行DeepTE时报错的解决办法

DeepTE是一款非常实用的转座子分类工具,一般在跑完EDTA重复序列注释后可以运行一下DeepTE对unknown的转座子进行进一步分类。然而,我在安装这个软件时遇到了报错的情况,主要错误是不存在某个模块,或模块的版本不兼容,下面来具体说一说情况和解决办法一软件安装方法软件官网:https://github.com/LiLabAtVT/DeepTEgitclone https://github.com/LiLabAtVT/DeepTE.gitconda create  -nDeepTEsource  activate DeepTEconda  install tensorflow-gpu=1

php - Joomla 数据库-> 查询。填充查询对象时报价类型之间有什么区别

我在Joomla3.x下工作构建查询对象有许多不同的解决方案。最近的文档似乎更喜欢这种方法:$query->select("*")$query->from($db->nameQuote('#__example_table'))$query->where($db->nameQuote('id')."=".$db->quote('999999'));在类似的页面中有一些名为“完全引用”的例子:$query="SELECT*FROM".$db->nameQuote('#__example_table')."WHERE".$db->nameQuote('id')."=".$db->quote(

mysql启动时报错:Starting MySQL... ERROR! The server quit without updating PID file快速解决

mysql启动时报错:StartingMySQL…ERROR!TheserverquitwithoutupdatingPIDfile(/opt/mysql/data/mysql.pid)的解决方法出现问题的可能性1、可能是/opt/mysql/data/数据目录mysql用户没有权限(修改数据目录的权限)解决方法:给予权限,执行“chown-Rmysql.mysql/opt/mysql/data”然后重新启动mysqld2、可能进程里已经存在mysql进程解决方法:用命令“ps-ef|grepmysqld”查看是否有mysqld进程,如果有使用“kill-9进程号”杀死,然后重新启动mysql

SpringBoot+Mybatis中Service单元测试时报错 Unsatisfied dependency expressed through field ‘XXXService‘;

项目场景:在编写SpringBoot+Mybatis项目时,进行Service单元测试时的报错问题描述主要问题:Unsatisfieddependencyexpressedthroughfield‘XXXService’;org.springframework.beans.factory.UnsatisfiedDependencyException:Errorcreatingbeanwithname'com.passwordtranslate.Service.ServiceImpl.UsersServiceImplTest':Unsatisfieddependencyexpressedthro

git使用git push -u origin master提交远程仓库时报错error: failed to push some refs to ‘‘https://gitee.com/xx报错解决

今天使用git提交到远程仓库时报错,报错如下:error:failedtopushsomerefsto‘https://gitee.com/hxxx-d/gitstudy.git’错误原因:未将远程仓库克隆到本地正确解决办法:1.先与远程仓库建立连接gitremoteaddoriginhttps://gitee.com/hxxx-d/gitstudy.git2.gitcheckoutmaster切换到默认分支3.然后使用gitpulloriginmaster--allow-unrelated-histories将远程仓库的master与本地仓库的进行合并。(–allow-unrelated-h

Java-Maven-解决maven deploy时报 401 Reason Phrase Unauthorized 错误

Java-Maven-解决mavendeploy时报401ReasonPhraseUnauthorized错误环境JavaJDK1.8Maven3.3.9引言项目需要打成jar包上传到私服,供其它项目引用。此时需要执行mvncleandeploy命令,执行过程中报401错误。解决401错误报错信息执行命令:mvncleandeploy-DskipTests[ERROR]Failedtoexecutegoalorg.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy(default-deploy)onprojectxxxxx:Failedt