Comments (7)
如下命令试下
login 1 -A # 高权限账户登录
login 1 --account root_hy # 指定账户登录
from opscloud4.
opscloud shell>login 1 -A
java.lang.NullPointerException
Details of the error have been omitted. You can use the stacktrace command to print the full stacktrace.
opscloud shell>login 1 --account root_hy
java.lang.NullPointerException
Details of the error have been omitted. You can use the stacktrace command to print the full stacktrace.
opscloud shell>stacktrace
java.lang.NullPointerException
at com.baiyi.opscloud.sshserver.command.server.ServerLoginCommand.login(ServerLoginCommand.java:103)
at com.baiyi.opscloud.sshserver.command.server.ServerLoginCommand$$FastClassBySpringCGLIB$$e626b320.invoke()
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:783)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:753)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:58)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:753)
at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:89)
at com.baiyi.opscloud.sshserver.aspect.InvokeSessionUserAspect.around(InvokeSessionUserAspect.java:78)
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 org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:634)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:624)
at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:72)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:753)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:753)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:698)
at com.baiyi.opscloud.sshserver.command.server.ServerLoginCommand$$EnhancerBySpringCGLIB$$766110b9.login()
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 org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:282)
at org.springframework.shell.Shell.evaluate(Shell.java:180)
at com.baiyi.opscloud.sshserver.ExtendedShell.evaluate(ExtendedShell.java:94)
at com.baiyi.opscloud.sshserver.ExtendedShell.run(ExtendedShell.java:84)
at com.baiyi.opscloud.sshserver.ExtendedShell.run(ExtendedShell.java:62)
at com.baiyi.opscloud.sshserver.SshShellRunnable.run(SshShellRunnable.java:227)
at java.lang.Thread.run(Thread.java:748)
一样的错误,会是配置的问题?
from opscloud4.
看问题好像是sshkey没配置
from opscloud4.
新问题: 服务器里的账户是不能删除的吗 ?我测试了服务器数量为零的账户也不能删除
from opscloud4.
我看了下代码的确没有删除接口,一般不需要删除你可以修改这个账户为有效的账户即可
from opscloud4.
删除代码开发完成 5be5d8d
需要在RBAC中新增资源(API)
from opscloud4.
OK多谢
from opscloud4.
Related Issues (20)
- 关于k8s的pod容器终端无法登录问题 HOT 12
- V4.0.4不支持AWS HOT 8
- 资产订阅有用例吗? HOT 9
- 服务器批量登入不了 HOT 18
- 默认用户名密码是什么 HOT 6
- 部署时发现redis地址写死这个能配置吗,而且也发现注册失败,编译部署和下载jar试过都报错 HOT 57
- 创建用户或者凭证报的加密错误,请问这个要怎么处理 HOT 6
- 数据源管理:prometheus 这个数据源功能是不是还没有开发完成? HOT 1
- It will be better to support upload file. HOT 1
- 协议的端口号可否能自定义一下 HOT 3
- 大佬好 HOT 2
- 前端工程 HOT 3
- 已知漏洞的依赖库(snakeyml)安全漏洞 HOT 1
- 大佬好,角色权限这块数据库的数据是清理了一些吗 HOT 9
- 前端登录otp access code怎么配置 HOT 1
- 大佬有时间再更新下sql文件呗 HOT 2
- 4.2.0 SQL
- 您好,方便更新下前端工程吗,现在仓库中的前端工程和后端工程严重不匹配 HOT 7
- 数据源可以配置多个账号吗 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opscloud4.