Open sstamatiadis-dlt opened 1 year ago
I can't help about kubernetes, but for a local install please check preinstall and postinstall scripts, they should be executed before and after doing docker-compose up
Hello again,
Is there a detailed guide on how to run this locally at least? I am following these steps but the problem seems to be the same:
Clone repo and move inside
Export env vars
export ADMIN_LOGIN=knime
export ADMIN_PASSWORD=knime
export SOFTWARE_VERSION_TAG=latest
Run preInstall script (there is no .cache/.config in data-src)
sh scripts/preInstall.sh
cp: cannot stat './data-src/.cache/': No such file or directory
cp: cannot stat './data-src/.config/': No such file or directory
docker-compose up
[+] Running 2/0
✔ Network elestio-examples-knime_default Created 0.0s
✔ Container elestio-examples-knime-desktop-1 Created 0.0s
Attaching to elestio-examples-knime-desktop-1
Error response from daemon: Ports are not available: exposing port TCP 172.17.0.1:4901 -> 0.0.0.0:0: listen tcp 172.17.0.1:4901: can't bind on the specified endpoint
docker-compose.yaml
portsversion: "3"
services:
desktop:
image: elestio/knime:${SOFTWARE_VERSION_TAG}
restart: always
dns:
- 8.8.8.8
ports:
# - "172.17.0.1:6901:6901"
# - "172.17.0.1:4901:4901"
- "6901:6901"
- "4901:4901"
volumes:
- ./data:/home/kasm-user
- ./scripts/vnc_startup.sh:/dockerstartup/vnc_startup.sh
- ./data-src/jsmpeg:/dockerstartup/jsmpeg
- ./data-src/jsmpeg/injectaudio.js:/usr/share/kasmvnc/www/dist/style.bundle.js
- ./data-src/jsmpeg/jsmpeg.min.js:/usr/share/kasmvnc/www/dist/jsmpeg.min.js
- ./data-src/jsmpeg/audio.html:/usr/share/kasmvnc/www/dist/audio.html
shm_size: "512m"
environment:
VNC_USER: ${ADMIN_LOGIN}
VNC_PW: ${ADMIN_PASSWORD}
6) Try again docker-compose up
docker-compose up
[+] Running 2/0
✔ Network elestio-examples-knime_default Created 0.0s
✔ Container elestio-examples-knime-desktop-1 Created 0.0s
Attaching to elestio-examples-knime-desktop-1
elestio-examples-knime-desktop-1 | + DEFAULT_PROFILE_HOME=/home/kasm-default-profile
elestio-examples-knime-desktop-1 | + PROFILE_SYNC_DIR=/kasm_profile_sync
elestio-examples-knime-desktop-1 | + '[' -f /home/kasm-user/.bashrc ']'
elestio-examples-knime-desktop-1 | + echo 'Profile Sync Directory Does Not Exist. No Sync will occur'
elestio-examples-knime-desktop-1 | + copy_default_profile_to_home
elestio-examples-knime-desktop-1 | Profile Sync Directory Does Not Exist. No Sync will occur
elestio-examples-knime-desktop-1 | Copying default profile to home directory
elestio-examples-knime-desktop-1 | + echo 'Copying default profile to home directory'
elestio-examples-knime-desktop-1 | + cp -rp /home/kasm-default-profile/. /home/kasm-user/
elestio-examples-knime-desktop-1 | + ls -la /home/kasm-user
elestio-examples-knime-desktop-1 | total 32
elestio-examples-knime-desktop-1 | drwxrwxrwx 6 kasm-user kasm-user 4096 Sep 4 07:09 .
elestio-examples-knime-desktop-1 | drwxr-xr-x 1 root root 4096 Jun 30 2022 ..
elestio-examples-knime-desktop-1 | -rw-rw-rw- 1 kasm-user kasm-user 43 Jun 30 2022 .bashrc
elestio-examples-knime-desktop-1 | drwxrwxrwx 2 kasm-user kasm-user 4096 Jun 30 2022 .cache
elestio-examples-knime-desktop-1 | drwxrwxrwx 3 kasm-user kasm-user 4096 Jun 30 2022 .config
elestio-examples-knime-desktop-1 | drwxrwxrwx 2 kasm-user kasm-user 4096 Sep 4 07:09 Desktop
elestio-examples-knime-desktop-1 | drwxrwxrwx 3 kasm-user kasm-user 4096 Jun 30 2022 .pki
elestio-examples-knime-desktop-1 | -rw-rw-rw- 1 kasm-user kasm-user 168 Sep 4 07:06 .wget-hsts
elestio-examples-knime-desktop-1 | + verify_profile_config
elestio-examples-knime-desktop-1 | + echo 'Verifying Uploads/Downloads Configurations'
elestio-examples-knime-desktop-1 | + mkdir -p /home/kasm-user/Uploads
elestio-examples-knime-desktop-1 | Verifying Uploads/Downloads Configurations
elestio-examples-knime-desktop-1 | Creating Uploads Desktop Symlink
elestio-examples-knime-desktop-1 | + '[' -d /home/kasm-user/Desktop/Uploads ']'
elestio-examples-knime-desktop-1 | + echo 'Creating Uploads Desktop Symlink'
elestio-examples-knime-desktop-1 | + ln -sf /home/kasm-user/Uploads /home/kasm-user/Desktop/Uploads
elestio-examples-knime-desktop-1 | + mkdir -p /home/kasm-user/Downloads
elestio-examples-knime-desktop-1 | Creating Download Desktop Symlink
elestio-examples-knime-desktop-1 | + '[' -d /home/kasm-user/Desktop/Downloads ']'
elestio-examples-knime-desktop-1 | + echo 'Creating Download Desktop Symlink'
elestio-examples-knime-desktop-1 | + ln -sf /home/kasm-user/Downloads /home/kasm-user/Desktop/Downloads
elestio-examples-knime-desktop-1 | + '[' -d /usr/share/kasmvnc/Downloads/Downloads ']'
elestio-examples-knime-desktop-1 | + echo 'Creating Downloads RX Symlink'
elestio-examples-knime-desktop-1 | + ln -sf /home/kasm-user/Downloads /usr/share/kasmvnc/www/Downloads/Downloads
elestio-examples-knime-desktop-1 | Creating Downloads RX Symlink
elestio-examples-knime-desktop-1 | + ls -la /home/kasm-user/Desktop
elestio-examples-knime-desktop-1 | total 24
elestio-examples-knime-desktop-1 | drwxrwxrwx 2 kasm-user kasm-user 4096 Sep 6 08:59 .
elestio-examples-knime-desktop-1 | drwxrwxrwx 8 kasm-user kasm-user 4096 Sep 6 08:59 ..
elestio-examples-knime-desktop-1 | lrwxrwxrwx 1 kasm-user kasm-user 25 Sep 6 08:59 Downloads -> /home/kasm-user/Downloads
elestio-examples-knime-desktop-1 | -rwxrwxrwx 1 kasm-user kasm-user 8494 Sep 4 07:09 google-chrome.desktop
elestio-examples-knime-desktop-1 | -rwxr-xr-x 1 kasm-user kasm-user 345 Sep 6 08:54 knime.desktop
elestio-examples-knime-desktop-1 | lrwxrwxrwx 1 kasm-user kasm-user 23 Sep 6 08:59 Uploads -> /home/kasm-user/Uploads
elestio-examples-knime-desktop-1 | + rm -rf /home/kasm-user/.config/pulse
elestio-examples-knime-desktop-1 | + echo 'Removing Default Profile Directory'
elestio-examples-knime-desktop-1 | Removing Default Profile Directory
elestio-examples-knime-desktop-1 | + rm -rf /home/kasm-default-profile/Desktop
elestio-examples-knime-desktop-1 | + /dockerstartup/browser_proxy_config.sh
elestio-examples-knime-desktop-1 | proxy configs not set
elestio-examples-knime-desktop-1 | browser_startup_url not set
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 | ------------------ EXECUTE COMMAND ------------------
elestio-examples-knime-desktop-1 | Executing command: '/dockerstartup/vnc_startup.sh /dockerstartup/kasm_startup.sh --tail-log'
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 | + echo -e '\n\n------------------ EXECUTE COMMAND ------------------'
elestio-examples-knime-desktop-1 | + echo 'Executing command: '\''/dockerstartup/vnc_startup.sh' /dockerstartup/kasm_startup.sh '--tail-log'\'''
elestio-examples-knime-desktop-1 | + exec /dockerstartup/vnc_startup.sh /dockerstartup/kasm_startup.sh --tail-log
elestio-examples-knime-desktop-1 | Generating a RSA private key
elestio-examples-knime-desktop-1 | .
elestio-examples-knime-desktop-1 | +
elestio-examples-knime-desktop-1 | +
elestio-examples-knime-desktop-1 | +
elestio-examples-knime-desktop-1 | +
elestio-examples-knime-desktop-1 | +
elestio-examples-knime-desktop-1 | .
elestio-examples-knime-desktop-1 | .
elestio-examples-knime-desktop-1 | .
elestio-examples-knime-desktop-1 | .
elestio-examples-knime-desktop-1 | .
elestio-examples-knime-desktop-1 | .
elestio-examples-knime-desktop-1 | .
elestio-examples-knime-desktop-1 | .
elestio-examples-knime-desktop-1 | .
elestio-examples-knime-desktop-1 | .
elestio-examples-knime-desktop-1 | .
elestio-examples-knime-desktop-1 | .
elestio-examples-knime-desktop-1 | .
elestio-examples-knime-desktop-1 | .
elestio-examples-knime-desktop-1 | .
elestio-examples-knime-desktop-1 | .
elestio-examples-knime-desktop-1 | .
elestio-examples-knime-desktop-1 | .
elestio-examples-knime-desktop-1 | .
elestio-examples-knime-desktop-1 | .
elestio-examples-knime-desktop-1 | .
elestio-examples-knime-desktop-1 | +
elestio-examples-knime-desktop-1 | +
elestio-examples-knime-desktop-1 | +
elestio-examples-knime-desktop-1 | +
elestio-examples-knime-desktop-1 | +
elestio-examples-knime-desktop-1 | writing new private key to '/home/kasm-user/.vnc/self.pem'
elestio-examples-knime-desktop-1 | -----
elestio-examples-knime-desktop-1 | xauth: file /home/kasm-user/.Xauthority does not exist
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 | New 'b945360a41d8:1 ()' desktop is b945360a41d8:1
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 | Username: kasm-user
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 | Creating default startup script /home/kasm-user/.vnc/xstartup
elestio-examples-knime-desktop-1 | Creating default config /home/kasm-user/.vnc/config
elestio-examples-knime-desktop-1 | Starting applications specified in /home/kasm-user/.vnc/xstartup
elestio-examples-knime-desktop-1 | Log file is /home/kasm-user/.vnc/b945360a41d8:1.log
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 | ------------------ Xfce4 window manager startup------------------
elestio-examples-knime-desktop-1 | Starting XFCE
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 | Starting audio websocket server
elestio-examples-knime-desktop-1 | Starting audio server
elestio-examples-knime-desktop-1 | Starting Pulse
elestio-examples-knime-desktop-1 | /usr/bin/startxfce4: X server already running on display :1
elestio-examples-knime-desktop-1 | Starting audio service
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 | ------------------ Started Audio Out ----------------------------
elestio-examples-knime-desktop-1 | Kasm Audio Out PID: 62
elestio-examples-knime-desktop-1 | Starting audio input server
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 | Starting upload server
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 | ------------------ KasmVNC environment started ------------------
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 | + USERXSESSION=/home/kasm-user/.xsession
elestio-examples-knime-desktop-1 | + USERXSESSIONRC=/home/kasm-user/.xsessionrc
elestio-examples-knime-desktop-1 | + ALTUSERXSESSION=/home/kasm-user/.Xsession
elestio-examples-knime-desktop-1 | + ERRFILE=/home/kasm-user/.xsession-errors
elestio-examples-knime-desktop-1 | + [ -w /home/kasm-user/.xsession-errors ]
elestio-examples-knime-desktop-1 | + [ ! -L /home/kasm-user/.xsession-errors ]
elestio-examples-knime-desktop-1 | + chmod 600 /home/kasm-user/.xsession-errors
elestio-examples-knime-desktop-1 | + stat -c%s /home/kasm-user/.xsession-errors
elestio-examples-knime-desktop-1 | + [ 0 -gt 500000 ]
elestio-examples-knime-desktop-1 | + exec
elestio-examples-knime-desktop-1 | Kasm User () started container id b945360a41d8 with local IP address 192.168.16.2
elestio-examples-knime-desktop-1 | _IceTransmkdir: ERROR: euid != 0,directory /tmp/.ICE-unix will not be created.
elestio-examples-knime-desktop-1 | gpg-agent[173]: WARNING: "--write-env-file" is an obsolete option - it has no effect
elestio-examples-knime-desktop-1 | gpg-agent[174]: gpg-agent (GnuPG) 2.2.19 started
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 | (xfce4-session:62): xfce4-session-WARNING **: 08:59:22.603: gpg-agent returned no PID in the variables
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 | (xfce4-session:62): xfce4-session-WARNING **: 08:59:22.605: xfsm_manager_load_session: Something wrong with /home/kasm-user/.cache/sessions/xfce4-session-b945360a41d8:1, Does it exist? Permissions issue?
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 | Failed to unload module: Module module-pipe-source not loaded
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 | (xfsettingsd:183): libupower-glib-WARNING **: 08:59:22.717: Couldn't connect to proxy: Could not connect: No such file or directory
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 | (xfsettingsd:183): libupower-glib-CRITICAL **: 08:59:22.717: up_client_get_lid_is_closed: assertion 'UP_IS_CLIENT (client)' failed
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 | (xfsettingsd:183): GLib-GObject-WARNING **: 08:59:22.717: invalid (NULL) pointer instance
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 | (xfsettingsd:183): GLib-GObject-CRITICAL **: 08:59:22.717: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 | * Serving Flask app 'kasm_upload_server' (lazy loading)
elestio-examples-knime-desktop-1 | * Environment: production
elestio-examples-knime-desktop-1 | WARNING: This is a development server. Do not use it in a production deployment.
elestio-examples-knime-desktop-1 | Use a production WSGI server instead.
elestio-examples-knime-desktop-1 | * Debug mode: off
elestio-examples-knime-desktop-1 | * Running on all addresses.
elestio-examples-knime-desktop-1 | WARNING: This is a development server. Do not use it in a production deployment.
elestio-examples-knime-desktop-1 | * Running on https://192.168.16.2:4902/ (Press CTRL+C to quit)
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 | (wrapper-2.0:206): Gtk-WARNING **: 08:59:22.917: gtk_widget_size_allocate(): attempt to allocate widget with width -1 and height 28
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 | (wrapper-2.0:206): Gtk-WARNING **: 08:59:22.917: Negative content width -1 (allocation 1, extents 1x1) while allocating gadget (node border, owner GtkFrame)
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 | ** (agent:214): CRITICAL **: 08:59:22.924: Failed to get connection to system bus: Could not connect: No such file or directory
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 | ** (xiccd:210): CRITICAL **: 08:59:22.925: Failed to connect to colord: Could not connect: No such file or directory
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 | (xfce4-session:62): xfce4-session-WARNING **: 08:59:22.940: ICE connection 0x55c062de9c20 rejected
elestio-examples-knime-desktop-1 | Failure: Module initialization failed
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 | (nm-applet:218): nm-applet-WARNING **: 08:59:22.978: Error connecting to system D-Bus: Could not connect: No such file or directory
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 | (nm-applet:218): nm-applet-WARNING **: 08:59:22.978: Could not connect: No such file or directory
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 | (nm-applet:218): libnm-CRITICAL **: 08:59:22.980: ((libnm/nm-client.c:3905)): assertion '<dropped>' failed
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 | (nm-applet:218): libnm-CRITICAL **: 08:59:22.981: ((libnm/nm-client.c:3859)): assertion '<dropped>' failed
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 | (nm-applet:218): libnm-CRITICAL **: 08:59:22.981: ((libnm/nm-client.c:3937)): assertion '<dropped>' failed
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 | (nm-applet:218): libnm-CRITICAL **: 08:59:22.981: ((libnm/nm-client.c:3986)): assertion '<dropped>' failed
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 | (nm-applet:218): libnm-CRITICAL **: 08:59:22.981: ((libnm/nm-client.c:4026)): assertion '<dropped>' failed
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 | (nm-applet:218): libnm-CRITICAL **: 08:59:22.981: ((libnm/nm-client.c:4042)): assertion '<dropped>' failed
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 | (nm-applet:218): libnm-CRITICAL **: 08:59:22.981: ((libnm/nm-client.c:4080)): assertion '<dropped>' failed
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 | (nm-applet:218): libnm-CRITICAL **: 08:59:22.981: ((libnm/nm-client.c:4598)): assertion '<dropped>' failed
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 | (nm-applet:218): libnm-CRITICAL **: 08:59:22.981: ((libnm/nm-client.c:4598)): assertion '<dropped>' failed
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 | system-config-printer-applet: failed to connect to system D-Bus
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 | (xfdesktop:203): GVFS-RemoteVolumeMonitor-WARNING **: 08:59:23.095: remote volume monitor with dbus name org.gtk.vfs.UDisks2VolumeMonitor is not supported
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 |
elestio-examples-knime-desktop-1 | ** (xfdesktop:203): WARNING **: 08:59:23.143: Failed to get system bus: Could not connect: No such file or directory
elestio-examples-knime-desktop-1 |
7) Run postinstall script in another terminal in same folder
sh scripts/postInstall.sh
cp: cannot stat './data-src/.cache/': No such file or directory
cp: cannot stat './data-src/.config/': No such file or directory
8) Try to open exposed ports:
elestio-examples-knime-desktop-1 | 2023-09-06 09:01:30,277 [INFO] websocket 0: got client connection from 192.168.16.1
elestio-examples-knime-desktop-1 | 2023-09-06 09:01:30,288 [INFO] websocket 1: got client connection from 192.168.16.1
elestio-examples-knime-desktop-1 | 2023-09-06 09:01:30,346 [INFO] websocket 2: got client connection from 192.168.16.1
elestio-examples-knime-desktop-1 | 2023-09-06 09:01:30,347 [INFO] websocket 3: got client connection from 192.168.16.1
elestio-examples-knime-desktop-1 | 2023-09-06 09:01:31,402 [INFO] websocket 4: got client connection from 192.168.16.1
elestio-examples-knime-desktop-1 | 2023-09-06 09:01:31,408 [INFO] websocket 5: got client connection from 192.168.16.1
elestio-examples-knime-desktop-1 | 2023-09-06 09:01:31,408 [INFO] websocket 6: got client connection from 192.168.16.1
elestio-examples-knime-desktop-1 | 2023-09-06 09:01:36,439 [INFO] websocket 7: got client connection from 192.168.16.1
elestio-examples-knime-desktop-1 | 2023-09-06 09:01:36,445 [INFO] websocket 8: got client connection from 192.168.16.1
elestio-examples-knime-desktop-1 | 2023-09-06 09:01:36,445 [INFO] websocket 9: got client connection from 192.168.16.1
What am I doing wrong?
hey @sstamatiadis-dlt ,
Did you try to open the url using your browser?
hey @sstamatiadis-dlt ,
Did you try to open the url using your browser?
Yes, and I get an empty response, hence the logs in the docker-compose up process. Same for both ports.
I have fixed my issue with the previous archived image (https://github.com/elestio/docker-desktop-vnc-knime/issues/1) by passing flags to knime that disable GPU acceleration for the browser engine:
echo "-Dchromium.args=--disable-gpu;--disable-gpu-compositing;--disable-dev-shm-usage" >> /opt/knime/knime.ini
Now the white/empty screen issue seems to have gone away.
Maybe this might help with new images as well.
Hello and thank you very much for all your effort. I hope I am not being pushy here, I understand it is possibly too early, as this image is fresh 😃
I tried building the image and deploying it locally and in my K8s cluster (AWS EKS) without any luck so far. I am attaching the logs generated and perhaps you can point me to the correct direction.
In the container I provided the two env variables which are passed as I can see them in the k8s dashboard: