Can't connect to standalone core-image
Goro2030 opened this issue · 3 comments
Goro2030 commented
When running just a standalone image, with this command:
sudo docker run --rm -it --shm-size=512m -p 6901:6901 -e VNC_PW=password kasmweb/core-ubuntu-bionic:1.9.0
I can't connect just pointing an Edge browser to: http://server_ip:6901/
(server_ip is 10.147.18.72)
This is the docker log:
+ DEFAULT_PROFILE_HOME=/home/kasm-default-profile
+ PROFILE_SYNC_DIR=/kasm_profile_sync
+ '[' -f /home/kasm-user/.bashrc ']'
+ echo 'Profile Sync Directory Does Not Exist. No Sync will occur'
Profile Sync Directory Does Not Exist. No Sync will occur
+ copy_default_profile_to_home
+ echo 'Copying default profile to home directory'
Copying default profile to home directory
+ cp -rp /home/kasm-default-profile/. /home/kasm-user/
+ ls -la /home/kasm-user
total 28
drwxrwxrwx 1 1000 root 4096 Jun 12 10:46 .
drwxr-xr-x 1 root root 4096 Jun 12 10:46 ..
-rw-rw-rw- 1 1000 root 43 Jun 12 10:46 .bashrc
drwxrwxrwx 3 1000 root 4096 Jun 12 10:45 .config
drwxrwxrwx 2 1000 root 4096 Jun 12 10:43 Desktop
drwxrwxrwx 3 1000 root 4096 Jun 12 10:46 .pki
+ verify_profile_config
+ echo 'Verifying Uploads/Downloads Configurations'
Verifying Uploads/Downloads Configurations
+ mkdir -p /home/kasm-user/Uploads
+ '[' -d /home/kasm-user/Desktop/Uploads ']'
+ echo 'Creating Uploads Desktop Symlink'
Creating Uploads Desktop Symlink
+ ln -sf /home/kasm-user/Uploads /home/kasm-user/Desktop/Uploads
+ mkdir -p /home/kasm-user/Downloads
+ '[' -d /home/kasm-user/Desktop/Downloads ']'
+ echo 'Creating Download Desktop Symlink'
Creating Download Desktop Symlink
+ ln -sf /home/kasm-user/Downloads /home/kasm-user/Desktop/Downloads
+ '[' -d /usr/share/kasmvnc/Downloads/Downloads ']'
+ echo 'Creating Downloads RX Symlink'
Creating Downloads RX Symlink
+ ln -sf /home/kasm-user/Downloads /usr/share/kasmvnc/www/Downloads/Downloads
+ ls -la /home/kasm-user/Desktop
total 8
drwxrwxrwx 2 1000 root 4096 Oct 23 05:41 .
drwxrwxrwx 1 1000 root 4096 Oct 23 05:41 ..
lrwxrwxrwx 1 1000 root 25 Oct 23 05:41 Downloads -> /home/kasm-user/Downloads
lrwxrwxrwx 1 1000 root 23 Oct 23 05:41 Uploads -> /home/kasm-user/Uploads
+ rm -rf /home/kasm-user/.config/pulse
+ echo 'Removing Default Profile Directory'
Removing Default Profile Directory
+ rm -rf /home/kasm-default-profile/Desktop
+ /dockerstartup/browser_proxy_config.sh
proxy configs not set
browser_startup_url not set
+ echo -e '\n\n------------------ EXECUTE COMMAND ------------------'
------------------ EXECUTE COMMAND ------------------
+ echo 'Executing command: '\''/dockerstartup/vnc_startup.sh' /dockerstartup/kasm_startup.sh '--wait'\'''
Executing command: '/dockerstartup/vnc_startup.sh /dockerstartup/kasm_startup.sh --wait'
+ exec /dockerstartup/vnc_startup.sh /dockerstartup/kasm_startup.sh --wait
Can't load /home/kasm-user/.rnd into RNG
140695006365504:error:2406F079:random number generator:RAND_load_file:Cannot open file:../crypto/rand/randfile.c:88:Filename=/home/kasm-user/.rnd
Generating a RSA private key
............................................................+++++
..........................................+++++
writing new private key to '/home/kasm-user/.vnc/self.pem'
-----
xauth: file /home/kasm-user/.Xauthority does not exist
New '769db9b8223c:1 ()' desktop is 769db9b8223c:1
Username: default
Creating default startup script /home/kasm-user/.vnc/xstartup
Creating default config /home/kasm-user/.vnc/config
Starting applications specified in /home/kasm-user/.vnc/xstartup
Log file is /home/kasm-user/.vnc/769db9b8223c:1.log
start window manager
...
------------------ Xfce4 window manager startup------------------
Skipping XFCE Startup
Starting audio websocket server
Starting audio server
Starting audio service
------------------ Started Audio Out ----------------------------
Kasm Audio Out PID: 84
Starting audio input server
Starting upload server
------------------ KasmVNC environment started ------------------
_XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.
Xvnc KasmVNC 0.9 - built May 10 2021 16:27:35
Copyright (C) 1999-2018 KasmVNC Team and many others (see README.me)
See http://kasmweb.com for information on KasmVNC.
Underlying X server release 12010000, The X.Org Foundation
vncext: VNC extension running!
vncext: Listening for websocket connections on 0.0.0.0 interface(s), port 6901
vncext: created VNC server for screen 0
server does not have extension for -dpms option
Kasm User () started container id 769db9b8223c with local IP address 172.17.0.2
Listening for incomming MPEG-TS Stream on https://127.0.0.1:8081/<secret>
Awaiting WebSocket connections on wss://127.0.0.1:4901/
Failed to unload module: Module module-pipe-source not loaded
* Serving Flask app "kasm_upload_server" (lazy loading)
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: off
* Running on https://0.0.0.0:4902/ (Press CTRL+C to quit)
Stream Connected: ::ffff:127.0.0.1:39362
websocket 0: got client connection from 10.147.18.72
websocket 1: got client connection from 10.147.18.72
websocket 2: got client connection from 10.147.18.72
websocket 3: got client connection from 10.147.18.72
websocket 4: got client connection from 10.147.18.72
websocket 5: got client connection from 10.147.18.72
mmcclaskey commented
It is HTTPS please give that a shot and confirm
aldobranti commented
thanks for the pointer to https: protocol which allows me to proceed to a login/password dialog
I have tried kasm-user/password ( reusing the vnc password e/v )
null/null
kasm-user/null
scott/tiger ( for old times sake !)
Any ideas ?
aldobranti commented
OK kasm_user / password makes for a win!, thanks again @mmcclaskey mmcclaskey