elestio-examples / knime

Deploy Knime with CI/CD on Elestio
Other
2 stars 0 forks source link

Issue when deploying locally or on K8s (AWS EKS) #1

Open sstamatiadis-dlt opened 1 year ago

sstamatiadis-dlt commented 1 year ago

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.

+ 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 8
drwxrwxrwx 1 kasm-user root       95 Sep  5 11:32 .
drwxr-xr-x 1 root      root       23 Jun 30  2022 ..
-rw-rw-rw- 1 kasm-user kasm-user  43 Jun 30  2022 .bashrc
drwxrwxrwx 2 kasm-user kasm-user   6 Jun 30  2022 .cache
drwxrwxrwx 3 kasm-user kasm-user  19 Jun 30  2022 .config
drwxrwxrwx 2 kasm-user kasm-user  35 Sep  5 11:32 Desktop
drwxrwxrwx 3 kasm-user kasm-user  19 Jun 30  2022 .pki
-rw-rw-rw- 1 kasm-user kasm-user 168 Sep  5 11:28 .wget-hsts
+ verify_profile_config
Verifying Uploads/Downloads Configurations
+ echo 'Verifying Uploads/Downloads Configurations'
+ mkdir -p /home/kasm-user/Uploads
+ '[' -d /home/kasm-user/Desktop/Uploads ']'
+ echo 'Creating Uploads Desktop Symlink'
+ ln -sf /home/kasm-user/Uploads /home/kasm-user/Desktop/Uploads
Creating Uploads Desktop Symlink
+ 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 ']'
Creating Downloads RX Symlink
+ echo 'Creating Downloads RX Symlink'
+ ln -sf /home/kasm-user/Downloads /usr/share/kasmvnc/www/Downloads/Downloads
+ ls -la /home/kasm-user/Desktop
total 12
drwxrwxrwx 2 kasm-user kasm-user   67 Sep  5 14:36 .
drwxrwxrwx 1 kasm-user root       127 Sep  5 14:36 ..
lrwxrwxrwx 1 kasm-user kasm-user   25 Sep  5 14:36 Downloads -> /home/kasm-user/Downloads
-rwxrwxrwx 1 kasm-user kasm-user 8494 Sep  5 11:32 google-chrome.desktop
lrwxrwxrwx 1 kasm-user kasm-user   23 Sep  5 14:36 Uploads -> /home/kasm-user/Uploads
+ rm -rf /home/kasm-user/.config/pulse
Removing Default Profile Directory
+ echo '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

------------------ EXECUTE COMMAND ------------------
Executing command: '/dockerstartup/vnc_startup.sh /dockerstartup/kasm_startup.sh --tail-log'
+ echo -e '\n\n------------------ EXECUTE COMMAND ------------------'
+ echo 'Executing command: '\''/dockerstartup/vnc_startup.sh' /dockerstartup/kasm_startup.sh '--tail-log'\'''
+ exec /dockerstartup/vnc_startup.sh /dockerstartup/kasm_startup.sh --tail-log
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 'knime-1693924514-6cfbc7fdf7-749gl:1 ()' desktop is knime-1693924514-6cfbc7fdf7-749gl:1

Username: kasm-user

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/knime-1693924514-6cfbc7fdf7-749gl:1.log

------------------ Xfce4 window manager startup------------------
Starting XFCE
Starting audio websocket server
Starting audio server
Starting Pulse
/usr/bin/startxfce4: X server already running on display :1
Starting audio service

------------------ Started Audio Out  ----------------------------
Kasm Audio Out PID: 109
Starting audio input server
Starting upload server

------------------ KasmVNC environment started ------------------
Kasm User () started container id knime-1693924514-6cfbc7fdf7-749gl with local IP address 10.0.165.21
+ USERXSESSION=/home/kasm-user/.xsession
+ USERXSESSIONRC=/home/kasm-user/.xsessionrc
+ ALTUSERXSESSION=/home/kasm-user/.Xsession
+ ERRFILE=/home/kasm-user/.xsession-errors
+ [ -w /home/kasm-user/.xsession-errors ]
+ [ ! -L /home/kasm-user/.xsession-errors ]
+ chmod 600 /home/kasm-user/.xsession-errors
+ stat -c%s /home/kasm-user/.xsession-errors
+ [ 0 -gt 500000 ]
+ exec
Listening for incomming MPEG-TS Stream on https://127.0.0.1:8081/<secret>
Awaiting WebSocket connections on wss://127.0.0.1:4901/
_IceTransmkdir: ERROR: euid != 0,directory /tmp/.ICE-unix will not be created.
gpg-agent[181]: WARNING: "--write-env-file" is an obsolete option - it has no effect
gpg-agent[182]: gpg-agent (GnuPG) 2.2.19 started

(xfce4-session:62): xfce4-session-WARNING **: 14:36:37.775: gpg-agent returned no PID in the variables

(xfce4-session:62): xfce4-session-WARNING **: 14:36:37.776: xfsm_manager_load_session: Something wrong with /home/kasm-user/.cache/sessions/xfce4-session-knime-1693924514-6cfbc7fdf7-749gl:1, Does it exist? Permissions issue?
Failed to unload module: Module module-pipe-source not loaded

(xfsettingsd:189): libupower-glib-WARNING **: 14:36:38.265: Couldn't connect to proxy: Could not connect: No such file or directory

(xfsettingsd:189): libupower-glib-CRITICAL **: 14:36:38.265: up_client_get_lid_is_closed: assertion 'UP_IS_CLIENT (client)' failed

(xfsettingsd:189): GLib-GObject-WARNING **: 14:36:38.265: invalid (NULL) pointer instance

(xfsettingsd:189): GLib-GObject-CRITICAL **: 14:36:38.265: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
 * 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

(wrapper-2.0:213): Gtk-WARNING **: 14:36:39.257: gtk_widget_size_allocate(): attempt to allocate widget with width -1 and height 28

(wrapper-2.0:213): Gtk-WARNING **: 14:36:39.257: Negative content width -1 (allocation 1, extents 1x1) while allocating gadget (node border, owner GtkFrame)

** (agent:218): CRITICAL **: 14:36:39.289: Failed to get connection to system bus: Could not connect: No such file or directory

** (xiccd:236): CRITICAL **: 14:36:39.458: Failed to connect to colord: Could not connect: No such file or directory
Stream Connected: ::ffff:127.0.0.1:47824

(xfce4-session:62): xfce4-session-WARNING **: 14:36:39.563: ICE connection 0x560d91916bc0 rejected
Failure: Module initialization failed
 * Running on all addresses.
   WARNING: This is a development server. Do not use it in a production deployment.
 * Running on https://10.0.165.21:4902/ (Press CTRL+C to quit)

(nm-applet:228): nm-applet-WARNING **: 14:36:39.860: Error connecting to system D-Bus: Could not connect: No such file or directory

(nm-applet:228): nm-applet-WARNING **: 14:36:39.861: Could not connect: No such file or directory

(nm-applet:228): libnm-CRITICAL **: 14:36:39.862: ((libnm/nm-client.c:3905)): assertion '<dropped>' failed

(nm-applet:228): libnm-CRITICAL **: 14:36:39.863: ((libnm/nm-client.c:3859)): assertion '<dropped>' failed

(nm-applet:228): libnm-CRITICAL **: 14:36:39.863: ((libnm/nm-client.c:3937)): assertion '<dropped>' failed

(nm-applet:228): libnm-CRITICAL **: 14:36:39.863: ((libnm/nm-client.c:3986)): assertion '<dropped>' failed

(nm-applet:228): libnm-CRITICAL **: 14:36:39.863: ((libnm/nm-client.c:4026)): assertion '<dropped>' failed

(nm-applet:228): libnm-CRITICAL **: 14:36:39.863: ((libnm/nm-client.c:4042)): assertion '<dropped>' failed

(nm-applet:228): libnm-CRITICAL **: 14:36:39.863: ((libnm/nm-client.c:4080)): assertion '<dropped>' failed

(nm-applet:228): libnm-CRITICAL **: 14:36:39.863: ((libnm/nm-client.c:4598)): assertion '<dropped>' failed

(nm-applet:228): libnm-CRITICAL **: 14:36:39.863: ((libnm/nm-client.c:4598)): assertion '<dropped>' failed
system-config-printer-applet: failed to connect to system D-Bus

(xfdesktop:210): GVFS-RemoteVolumeMonitor-WARNING **: 14:36:40.379: remote volume monitor with dbus name org.gtk.vfs.UDisks2VolumeMonitor is not supported

** (xfdesktop:210): WARNING **: 14:36:40.561: Failed to get system bus: Could not connect: No such file or directory

In the container I provided the two env variables which are passed as I can see them in the k8s dashboard:

image

jbenguira commented 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

sstamatiadis-dlt commented 1 year ago

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:

  1. Clone repo and move inside

  2. Export env vars

    export ADMIN_LOGIN=knime
    export ADMIN_PASSWORD=knime
    export SOFTWARE_VERSION_TAG=latest
  3. 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
  1. Run 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
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
  1. Run docker-compose down & update docker-compose.yaml ports
version: "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?

AmsellemJoseph commented 1 year ago

hey @sstamatiadis-dlt ,

Did you try to open the url using your browser?

sstamatiadis-dlt commented 1 year ago

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.

image

sstamatiadis-dlt commented 1 year ago

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.