Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

桌面连接被拒绝 #1043

Open
liu-shaobo opened this issue Dec 21, 2023 · 3 comments
Open

桌面连接被拒绝 #1043

liu-shaobo opened this issue Dec 21, 2023 · 3 comments

Comments

@liu-shaobo
Copy link

liu-shaobo commented Dec 21, 2023

发生了什么 | What happened

交互式应用里面创建一个桌面,进入桌面一段时间后,如果鼠标或键盘没有动,就会出现:

连接被拒绝,原因:the one-time password has not been set on the server

运行环境 | Environment

- OS:ubuntu-20.04
- Scheduler: slurm 23.11.0
- Docker: 24.0.7
- Docker-compose: 2.23.3
- SCOW cli: 1.2.3
- SCOW: master
- Adapter: master
@lingbozeng
Copy link
Contributor

请问是哪个交互式应用?WEB类型的交互式应用需要设置访问密码,可以根据交互式应用的示例文档配置一下。

@liu-shaobo
Copy link
Author

只是一个desktop应用

id: desktop
name: desktop
logoPath: /apps/desktop.png
type: vnc
vnc:
  beforeScript: |
    export XDG_RUNTIME_DIR="$(mktemp -d)"
  xstartup: |
    unset SESSION_MANAGER
    unset DBUS_SESSION_BUS_ADDRESS

        xfconf-query -c xfce4-session -p /startup/ssh-agent/enabled -n -t bool -s false
        xfconf-query -c xfce4-session -p /startup/gpg-agent/enabled -n -t bool -s false
        xfconf-query --channel xfce4-desktop -p /desktop-icons/file-icons/show-filesystem -s false --create -t bool
        xfconf-query --channel xfce4-desktop -p /desktop-icons/file-icons/show-removable -s false --create -t bool
        if [ ! -d "${HOME}/.config/xfce4/panel/launcher-9" ] || [ ! -d "${HOME}/.config/xfce4/panel/launcher-10" ] || [ ! -d "${HOME}/.config/xfce4/panel/launcher-11" ] || [ ! -d "${HOME}/.config/xfce4/panel/launcher-12" ]; then
          cp -f /etc/xdg/xfce4/panel/default.xml ${HOME}/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml
        fi
        cd ~
        startxfce4

attributes:
  - type: text
    name: sbatchOptions
    label: 其他sbatch参数
    required: false
    placeholder: "比如:--gpus gres:2 --time 10"

@vanstriker
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants