Closed zhengkang2020 closed 1 month ago
可以尝试删除 用户家目录/scow/desktops/desktops.json 文件再看看能否正常创建。此外可以提供 portal-server 日志方便排查问题
问题依旧,下面是日志:
portal-server 日志
scow-portal-server-1 | {"level":30,"time":"2024-10-14T09:28:08.448Z","pid":18,"hostname":"b219a7f3ae3a","msg":"Checking activation status of clusters with ids ([\"hpc01\"]) "}
scow-portal-server-1 | {"level":30,"time":"2024-10-14T09:28:09.421Z","pid":18,"hostname":"b219a7f3ae3a","req":"1vrl","path":"/scow.portal.DesktopService/CreateDesktop","msg":"Command execCommand sudo -u jiaweitang -s /opt/TurboVNC/bin/vncserver -list, options %o"}
scow-portal-server-1 | {"level":30,"time":"2024-10-14T09:28:11.372Z","pid":18,"hostname":"b219a7f3ae3a","req":"1vrl","path":"/scow.portal.DesktopService/CreateDesktop","msg":"Command execCommand sudo -u jiaweitang -s /opt/TurboVNC/bin/vncserver -securitytypes OTP -otp -wm 2d -name desktop-20241014-172806, options %o"}
scow-portal-server-1 | {"level":30,"time":"2024-10-14T09:28:11.883Z","pid":18,"hostname":"b219a7f3ae3a","req":"1vrl","path":"/scow.portal.DesktopService/CreateDesktop","msg":"Command execCommand eval echo ~jiaweitang, options %o"}
scow-portal-server-1 | {"level":30,"time":"2024-10-14T09:28:12.505Z","pid":18,"hostname":"b219a7f3ae3a","req":"1vrl","path":"/scow.portal.DesktopService/CreateDesktop","msg":"Command execCommand sudo -u jiaweitang -s mkdir -p /data/home/jiaweitang/scow/desktops, options %o"}
scow-portal-server-1 | {"level":30,"time":"2024-10-14T09:28:13.534Z","pid":18,"hostname":"b219a7f3ae3a","req":"1vrl","path":"/scow.portal.DesktopService/CreateDesktop","msg":"Desktop desktop-20241014-172806 added"}
scow-portal-server-1 | {"level":30,"time":"2024-10-14T09:28:13.534Z","pid":18,"hostname":"b219a7f3ae3a","req":"1vrl","path":"/scow.portal.DesktopService/CreateDesktop","msg":"Request completed."}
scow-portal-server-1 | {"level":30,"time":"2024-10-14T09:28:13.699Z","pid":18,"hostname":"b219a7f3ae3a","req":"1vrm","path":"/scow.common.ConfigService/GetClusterConfigFiles","msg":"Starting request"}
scow-portal-server-1 | {"level":30,"time":"2024-10-14T09:28:13.735Z","pid":18,"hostname":"b219a7f3ae3a","req":"1vrm","path":"/scow.common.ConfigService/GetClusterConfigFiles","msg":"Request completed."}
scow-portal-server-1 | {"level":30,"time":"2024-10-14T09:28:13.748Z","pid":18,"hostname":"b219a7f3ae3a","req":"1vrn","path":"/scow.portal.DesktopService/ListUserDesktops","msg":"Starting request"}
scow-portal-server-1 | {"level":30,"time":"2024-10-14T09:28:13.758Z","pid":18,"hostname":"b219a7f3ae3a","msg":"Checking activation status of clusters with ids ([\"hpc01\"]) "}
scow-portal-server-1 | {"level":30,"time":"2024-10-14T09:28:14.728Z","pid":18,"hostname":"b219a7f3ae3a","req":"1vrn","path":"/scow.portal.DesktopService/ListUserDesktops","msg":"Command execCommand sudo -u jiaweitang -s /opt/TurboVNC/bin/vncserver -list, options %o"}
scow-portal-server-1 | {"level":30,"time":"2024-10-14T09:28:15.293Z","pid":18,"hostname":"b219a7f3ae3a","req":"1vrn","path":"/scow.portal.DesktopService/ListUserDesktops","msg":"Command execCommand eval echo ~jiaweitang, options %o"}
scow-portal-server-1 | {"level":30,"time":"2024-10-14T09:28:15.857Z","pid":18,"hostname":"b219a7f3ae3a","req":"1vro","path":"/scow.common.ConfigService/GetClusterConfigFiles","msg":"Starting request"}
scow-portal-server-1 | {"level":30,"time":"2024-10-14T09:28:15.888Z","pid":18,"hostname":"b219a7f3ae3a","req":"1vro","path":"/scow.common.ConfigService/GetClusterConfigFiles","msg":"Request completed."}
scow-portal-server-1 | {"level":30,"time":"2024-10-14T09:28:15.932Z","pid":18,"hostname":"b219a7f3ae3a","req":"1vrn","path":"/scow.portal.DesktopService/ListUserDesktops","msg":"Command execCommand sudo -u jiaweitang -s mkdir -p /data/home/jiaweitang/scow/desktops, options %o"}
scow-portal-server-1 | {"level":30,"time":"2024-10-14T09:28:16.409Z","pid":18,"hostname":"b219a7f3ae3a","req":"1vrn","path":"/scow.portal.DesktopService/ListUserDesktops","msg":"Request completed."}
scow-portal-server-1 | {"level":30,"time":"2024-10-14T09:28:21.806Z","pid":18,"hostname":"b219a7f3ae3a","req":"1vrp","path":"/scow.common.ConfigService/GetClusterConfigFiles","msg":"Starting request"}
scow-portal-server-1 | {"level":30,"time":"2024-10-14T09:28:21.846Z","pid":18,"hostname":"b219a7f3ae3a","req":"1vrp","path":"/scow.common.ConfigService/GetClusterConfigFiles","msg":"Request completed."}
scow-portal-server-1 | {"level":30,"time":"2024-10-14T09:28:26.371Z","pid":18,"hostname":"b219a7f3ae3a","req":"1vrq","path":"/scow.portal.AppService/ListAppSessions","msg":"Starting request"}
scow/desktops/desktops.json清空后重新生成的文件:
[{"host":"hpc-login","displayId":1,"desktopName":"desktop-20241014-172806","wm":"2d","createTime":"2024-10-14T09:28:11.374Z"}]
scow 节点能访问到 192.168.55.83:5901 吗?
目前内网测试环境,防火墙关闭,正常连接192.168.55.83:5901
[root@hpc-scow ~]# nc -zv 192.168.55.83 5901
Ncat: Version 7.92 ( https://nmap.org/ncat )
Ncat: Connected to 192.168.55.83:5901.
Ncat: 0 bytes sent, 0 bytes received in 0.05 seconds.
如果只有单个用户有问题的话,请去该用户的文件夹下查看他是否安装了其它软件,或者修改了某些环境变量,可能与此有关
问题已经解决,经确认是用户环境变量 .bashrc
文件最后多了一行 export DISPLAY=:11.0
,以下是具体步骤:
## 1、修改用户环境变量,用户自己操作
cd && cp .bashrc .bashrc.bak && sed -i '/^export DISPLAY=:11.0/s/^/#/' ~/.bashrc && source .bashrc
## 2、root权限登陆"登陆节点",注销用户会话,然后用户重新测试
pkill -u xxxx
感谢 @tongchong
发生了什么 | What happened
其他用户使用正常,只有用户A新建桌面失败,偶尔会有提示"无法以用户身份连接到登录节点。请确认您的家目录的权限为700、750或者755" ,但是检查和其他用户的权限是一样的。
portal-web
日志:登陆节点message日志:
vnc日志:
运行环境 | Environment