Unable to use the integrated shell in the new VS Code window

Hello,

I have created a dev container image using this Dockerfile

ARG VERSION=19
FROM node:$VERSION

WORKDIR /usr/src/app

# setup okteto message
COPY bashrc /root/.bashrc

#RUN npm install -g nodemon

CMD ["bash"]

and the following bashrc:

cat << EOF
Welcome to your development container. Happy coding!
EOF

export PS1="\[\e[36m\]\${OKTETO_NAMESPACE:-okteto}:\[\e[32m\]\${OKTETO_NAME:-dev} \[\e[m\]\W> "

[source]

Whenever I try to open the integrated shell in vscode it prints out the prompt that is in the basrc and after several seconds it closes it, and then create a file called core. Which seem to some sort of binary.

The same thing happens with Okteto’s images too (I tried with okteto/dev and okteto/node:18)

Any help understanding what is happening would be greatly appreciated!

I believe that core is a memory dump. That most likely means that something is crashing in the dev container.

  1. could you provide a repository with the repro steps?
  2. Can you provide more info on the environment where you are running this? (your own cluster, Okteto SaaS, Okteto Self-Hosted)
  3. Can you provide pod-level logs?
  1. The repo is this this. Sorry for not having a README, it’s a proof of concept I am working on :sweat_smile:

  2. I tried to run on a local cluster with Rancher Desktop, Linode and Azure Kuberenetes

  3. These are the logs from the pods

Defaulted container "nodejs-hello-world" out of: nodejs-hello-world, okteto-bin (init), okteto-init-volume (init)
USER:0
2023-01-25T10:24:27 development container starting
2023-01-25T10:24:27 Copying secret authorized_keys to /var/okteto/remote/authorized_keys
2023-01-25T10:24:27 Copying secret .stignore-1 to /usr/src/app/.stignore
2023-01-25T10:24:27 Copying configuration files to /var/syncthing
2023-01-25T10:24:27 Executing okteto-supervisor --remote  --verbose
time="2023-01-25T10:24:27Z" level=info msg="supervisor started" commit=fd46232832a3a2d36885d179006b7b90e20952d7
time="2023-01-25T10:24:27Z" level=info msg="starting monitor"
time="2023-01-25T10:24:27Z" level=info msg="starting remote for the first time"
time="2023-01-25T10:24:27Z" level=info msg="starting /var/okteto/bin/okteto-remote " process=remote
time="2023-01-25T10:24:27Z" level=info msg="starting syncthing for the first time"
time="2023-01-25T10:24:27Z" level=info msg="starting /var/okteto/bin/syncthing -home /var/syncthing -gui-address 0.0.0.0:8384 -verbose" process=syncthing
time="2023-01-25T10:24:27Z" level=info msg="time=\"2023-01-25T10:24:27Z\" level=info msg=\"bash exists at /bin/bash\"" process=remote
time="2023-01-25T10:24:27Z" level=info msg="time=\"2023-01-25T10:24:27Z\" level=info msg=\"ssh server 99de42c0414824ace9f8f93b99ac7dd35f212fb2 started in 0.0.0.0:2222\"" process=remote
time="2023-01-25T10:24:27Z" level=info msg="[start] 2023/01/25 10:24:27 INFO: syncthing v1.21.0 \"Fermium Flea\" (go1.19 linux-amd64) docker@build.syncthing.net 2022-08-16 08:01:49 UTC [noupgrade]" process=syncthing
time="2023-01-25T10:24:27Z" level=info msg="[start] 2023/01/25 10:24:27 INFO: Archiving a copy of old config file format at: /var/syncthing/config.xml.v32" process=syncthing
time="2023-01-25T10:24:27Z" level=info msg="[ATOPH] 2023/01/25 10:24:27 INFO: My ID: ATOPHFJ-VPVLDFY-QVZDCF2-OQQ7IOW-OG4DIXF-OA7RWU3-ZYA4S22-SI4XVAU" process=syncthing
time="2023-01-25T10:24:28Z" level=info msg="[ATOPH] 2023/01/25 10:24:28 INFO: Single thread SHA256 performance is 390 MB/s using crypto/sha256 (387 MB/s using minio/sha256-simd)." process=syncthing
time="2023-01-25T10:24:28Z" level=info msg="[ATOPH] 2023/01/25 10:24:28 VERBOSE: Starting up (/var/syncthing)" process=syncthing
time="2023-01-25T10:24:28Z" level=info msg="[ATOPH] 2023/01/25 10:24:28 INFO: Hashing performance is 347.92 MB/s" process=syncthing
time="2023-01-25T10:24:28Z" level=info msg="[ATOPH] 2023/01/25 10:24:28 INFO: Overall send rate is unlimited, receive rate is unlimited" process=syncthing
time="2023-01-25T10:24:28Z" level=info msg="[ATOPH] 2023/01/25 10:24:28 INFO: TCP listener ([::]:22000) starting" process=syncthing
time="2023-01-25T10:24:28Z" level=info msg="2023/01/25 10:24:28 failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/lucas-clemente/quic-go/wiki/UDP-Receive-Buffer-Size for details." process=syncthing
time="2023-01-25T10:24:28Z" level=info msg="[ATOPH] 2023/01/25 10:24:28 INFO: GUI and API listening on [::]:8384" process=syncthing
time="2023-01-25T10:24:28Z" level=info msg="[ATOPH] 2023/01/25 10:24:28 INFO: Access the GUI via the following URL: http://127.0.0.1:8384/" process=syncthing
time="2023-01-25T10:24:28Z" level=info msg="[ATOPH] 2023/01/25 10:24:28 VERBOSE: Listen address tcp://0.0.0.0:22000 resolution has changed: lan addresses: [tcp://0.0.0.0:22000 tcp://10.42.0.177:22000] wan addresses: [tcp://0.0.0.0:0 tcp://0.0.0.0:22000]" process=syncthing
time="2023-01-25T10:24:28Z" level=info msg="[ATOPH] 2023/01/25 10:24:28 VERBOSE: Listen address quic://0.0.0.0:22000 resolution has changed: lan addresses: [quic://0.0.0.0:22000 quic://10.42.0.177:22000] wan addresses: [quic://0.0.0.0:22000]" process=syncthing
time="2023-01-25T10:24:28Z" level=info msg="[ATOPH] 2023/01/25 10:24:28 INFO: Ready to synchronize \"1\" (okteto-1) (sendreceive)" process=syncthing
time="2023-01-25T10:24:28Z" level=info msg="[ATOPH] 2023/01/25 10:24:28 INFO: QUIC listener ([::]:22000) starting" process=syncthing
time="2023-01-25T10:24:28Z" level=info msg="[ATOPH] 2023/01/25 10:24:28 INFO: My name is \"remote\"" process=syncthing
time="2023-01-25T10:24:28Z" level=info msg="[ATOPH] 2023/01/25 10:24:28 INFO: Device ABKAVQF-RUO4CYO-FSC2VIP-VRX4QDA-TQQRN2J-MRDXJUC-FXNWP6N-S6ZSAAR is \"local\" at [dynamic]" process=syncthing
time="2023-01-25T10:24:28Z" level=info msg="[ATOPH] 2023/01/25 10:24:28 WARNING: Syncthing should not run as a privileged or system user. Please consider using a normal user account." process=syncthing
time="2023-01-25T10:24:28Z" level=info msg="[ATOPH] 2023/01/25 10:24:28 VERBOSE: Startup complete" process=syncthing
time="2023-01-25T10:24:28Z" level=info msg="[ATOPH] 2023/01/25 10:24:28 VERBOSE: Folder \"okteto-1\" is now scan-waiting" process=syncthing
time="2023-01-25T10:24:28Z" level=info msg="[ATOPH] 2023/01/25 10:24:28 VERBOSE: Folder \"okteto-1\" is now scanning" process=syncthing
time="2023-01-25T10:24:28Z" level=info msg="[ATOPH] 2023/01/25 10:24:28 INFO: Completed initial scan of sendreceive folder \"1\" (okteto-1)" process=syncthing
time="2023-01-25T10:24:28Z" level=info msg="[ATOPH] 2023/01/25 10:24:28 VERBOSE: Folder \"okteto-1\" is now idle" process=syncthing
time="2023-01-25T10:24:30Z" level=info msg="time=\"2023-01-25T10:24:30Z\" level=info msg=\"Accepted forward 0.0.0.0 22000\"" process=remote
time="2023-01-25T10:24:30Z" level=info msg="[ATOPH] 2023/01/25 10:24:30 INFO: Established secure connection to ABKAVQF-RUO4CYO-FSC2VIP-VRX4QDA-TQQRN2J-MRDXJUC-FXNWP6N-S6ZSAAR at 127.0.0.1:22000-127.0.0.1:51414/tcp-server/TLS1.3-TLS_AES_128_GCM_SHA256" process=syncthing
time="2023-01-25T10:24:30Z" level=info msg="[ATOPH] 2023/01/25 10:24:30 INFO: Device ABKAVQF-RUO4CYO-FSC2VIP-VRX4QDA-TQQRN2J-MRDXJUC-FXNWP6N-S6ZSAAR client is \"syncthing v1.21.0\" named \"local\" at 127.0.0.1:22000-127.0.0.1:51414/tcp-server/TLS1.3-TLS_AES_128_GCM_SHA256" process=syncthing
time="2023-01-25T10:24:30Z" level=info msg="[ATOPH] 2023/01/25 10:24:30 VERBOSE: Connected to device ABKAVQF-RUO4CYO-FSC2VIP-VRX4QDA-TQQRN2J-MRDXJUC-FXNWP6N-S6ZSAAR at 127.0.0.1:51414 (type tcp-server)" process=syncthing
time="2023-01-25T10:24:30Z" level=info msg="[ATOPH] 2023/01/25 10:24:30 VERBOSE: Received ClusterConfig from device ABKAVQF-RUO4CYO-FSC2VIP-VRX4QDA-TQQRN2J-MRDXJUC-FXNWP6N-S6ZSAAR" process=syncthing
time="2023-01-25T10:24:30Z" level=info msg="time=\"2023-01-25T10:24:30Z\" level=info msg=\"Accepted forward 0.0.0.0 8384\"" process=remote
time="2023-01-25T10:24:31Z" level=info msg="time=\"2023-01-25T10:24:31Z\" level=info msg=\"Accepted forward 0.0.0.0 8384\"" process=remote
time="2023-01-25T10:24:32Z" level=info msg="process started" process=syncthing
time="2023-01-25T10:24:32Z" level=info msg="process started" process=remote
time="2023-01-25T10:24:32Z" level=info msg="[ATOPH] 2023/01/25 10:24:32 VERBOSE: Summary for folder \"okteto-1\" is &{Errors:0 PullErrors:0 Invalid: GlobalFiles:33 GlobalDirectories:8 GlobalSymlinks:0 GlobalDeleted:0 GlobalBytes:85508 GlobalTotalItems:41 LocalFiles:33 LocalDirectories:8 LocalSymlinks:0 LocalDeleted:0 LocalBytes:85508 LocalTotalItems:41 NeedFiles:0 NeedDirectories:0 NeedSymlinks:0 NeedDeletes:0 NeedBytes:0 NeedTotalItems:0 ReceiveOnlyChangedFiles:0 ReceiveOnlyChangedDirectories:0 ReceiveOnlyChangedSymlinks:0 ReceiveOnlyChangedDeletes:0 ReceiveOnlyChangedBytes:0 ReceiveOnlyTotalItems:0 InSyncFiles:33 InSyncBytes:85508 State:idle 10:24:28 +0000 UTC Error: Version:46 Sequence:46 WatchError:}" process=syncthing
time="2023-01-25T10:24:32Z" level=info msg="[ATOPH] 2023/01/25 10:24:32 VERBOSE: Completion for folder \"okteto-1\" on device ABKAVQF-RUO4CYO-FSC2VIP-VRX4QDA-TQQRN2J-MRDXJUC-FXNWP6N-S6ZSAAR is 100% (state: valid)" process=syncthing
time="2023-01-25T10:24:33Z" level=info msg="[ATOPH] 2023/01/25 10:24:33 INFO: Connection to ABKAVQF-RUO4CYO-FSC2VIP-VRX4QDA-TQQRN2J-MRDXJUC-FXNWP6N-S6ZSAAR at 127.0.0.1:22000-127.0.0.1:51414/tcp-server/TLS1.3-TLS_AES_128_GCM_SHA256 closed: reading length: EOF" process=syncthing
time="2023-01-25T10:24:33Z" level=info msg="[ATOPH] 2023/01/25 10:24:33 VERBOSE: Disconnected from device ABKAVQF-RUO4CYO-FSC2VIP-VRX4QDA-TQQRN2J-MRDXJUC-FXNWP6N-S6ZSAAR" process=syncthing
time="2023-01-25T10:24:33Z" level=info msg="time=\"2023-01-25T10:24:33Z\" level=info msg=\"starting ssh session with command 'sh'\" session.id=12ca1ab2-164a-429c-b2ad-04b3b8c55345" process=remote
time="2023-01-25T10:24:33Z" level=info msg="/bin/bash -c sh" process=remote
time="2023-01-25T10:24:33Z" level=info msg="time=\"2023-01-25T10:24:33Z\" level=info msg=\"agent requested\" session.id=12ca1ab2-164a-429c-b2ad-04b3b8c55345" process=remote
time="2023-01-25T10:24:33Z" level=info msg="time=\"2023-01-25T10:24:33Z\" level=info msg=\"handling PTY session\" session.id=12ca1ab2-164a-429c-b2ad-04b3b8c55345" process=remote
time="2023-01-25T10:24:35Z" level=info msg="time=\"2023-01-25T10:24:35Z\" level=info msg=\"starting ssh session with command ''\" session.id=60b97ab1-e946-49fb-958d-bac6a2128bc6" process=remote
time="2023-01-25T10:24:35Z" level=info msg=/bin/bash process=remote
time="2023-01-25T10:24:35Z" level=info msg="time=\"2023-01-25T10:24:35Z\" level=info msg=\"agent requested\" session.id=60b97ab1-e946-49fb-958d-bac6a2128bc6" process=remote
time="2023-01-25T10:24:35Z" level=info msg="time=\"2023-01-25T10:24:35Z\" level=info msg=\"handling non PTY session\" session.id=60b97ab1-e946-49fb-958d-bac6a2128bc6" process=remote
time="2023-01-25T10:24:35Z" level=info msg="time=\"2023-01-25T10:24:35Z\" level=info msg=\"Accepted forward 0.0.0.0 22000\"" process=remote
time="2023-01-25T10:24:35Z" level=info msg="[ATOPH] 2023/01/25 10:24:35 INFO: Established secure connection to ABKAVQF-RUO4CYO-FSC2VIP-VRX4QDA-TQQRN2J-MRDXJUC-FXNWP6N-S6ZSAAR at 127.0.0.1:22000-127.0.0.1:51426/tcp-server/TLS1.3-TLS_AES_128_GCM_SHA256" process=syncthing
time="2023-01-25T10:24:35Z" level=info msg="[ATOPH] 2023/01/25 10:24:35 INFO: Device ABKAVQF-RUO4CYO-FSC2VIP-VRX4QDA-TQQRN2J-MRDXJUC-FXNWP6N-S6ZSAAR client is \"syncthing v1.21.0\" named \"local\" at 127.0.0.1:22000-127.0.0.1:51426/tcp-server/TLS1.3-TLS_AES_128_GCM_SHA256" process=syncthing
time="2023-01-25T10:24:35Z" level=info msg="[ATOPH] 2023/01/25 10:24:35 VERBOSE: Connected to device ABKAVQF-RUO4CYO-FSC2VIP-VRX4QDA-TQQRN2J-MRDXJUC-FXNWP6N-S6ZSAAR at 127.0.0.1:51426 (type tcp-server)" process=syncthing
time="2023-01-25T10:24:35Z" level=info msg="[ATOPH] 2023/01/25 10:24:35 VERBOSE: Received ClusterConfig from device ABKAVQF-RUO4CYO-FSC2VIP-VRX4QDA-TQQRN2J-MRDXJUC-FXNWP6N-S6ZSAAR" process=syncthing
time="2023-01-25T10:24:36Z" level=info msg="[ATOPH] 2023/01/25 10:24:36 VERBOSE: Summary for folder \"okteto-1\" is &{Errors:0 PullErrors:0 Invalid: GlobalFiles:33 GlobalDirectories:8 GlobalSymlinks:0 GlobalDeleted:0 GlobalBytes:85508 GlobalTotalItems:41 LocalFiles:33 LocalDirectories:8 LocalSymlinks:0 LocalDeleted:0 LocalBytes:85508 LocalTotalItems:41 NeedFiles:0 NeedDirectories:0 NeedSymlinks:0 NeedDeletes:0 NeedBytes:0 NeedTotalItems:0 ReceiveOnlyChangedFiles:0 ReceiveOnlyChangedDirectories:0 ReceiveOnlyChangedSymlinks:0 ReceiveOnlyChangedDeletes:0 ReceiveOnlyChangedBytes:0 ReceiveOnlyTotalItems:0 InSyncFiles:33 InSyncBytes:85508 State:idle 10:24:28 +0000 UTC Error: Version:46 Sequence:46 WatchError:}" process=syncthing
time="2023-01-25T10:24:36Z" level=info msg="[ATOPH] 2023/01/25 10:24:36 VERBOSE: Completion for folder \"okteto-1\" on device ABKAVQF-RUO4CYO-FSC2VIP-VRX4QDA-TQQRN2J-MRDXJUC-FXNWP6N-S6ZSAAR is 100% (state: valid)" process=syncthing
time="2023-01-25T10:24:44Z" level=info msg="time=\"2023-01-25T10:24:44Z\" level=info msg=\"Accepted forward 127.0.0.1 45295\"" process=remote
time="2023-01-25T10:24:44Z" level=info msg="time=\"2023-01-25T10:24:44Z\" level=info msg=\"Accepted forward 127.0.0.1 45295\"" process=remote
time="2023-01-25T10:24:45Z" level=info msg="time=\"2023-01-25T10:24:45Z\" level=info msg=\"Accepted forward 127.0.0.1 45295\"" process=remote
time="2023-01-25T10:24:53Z" level=info msg="time=\"2023-01-25T10:24:53Z\" level=info msg=\"Accepted forward 0.0.0.0 8384\"" process=remote
time="2023-01-25T10:25:03Z" level=info msg="time=\"2023-01-25T10:25:03Z\" level=info msg=\"Accepted forward 0.0.0.0 8384\"" process=remote
time="2023-01-25T10:25:13Z" level=info msg="time=\"2023-01-25T10:25:13Z\" level=info msg=\"Accepted forward 0.0.0.0 8384\"" process=remote
time="2023-01-25T10:25:19Z" level=info msg="[ATOPH] 2023/01/25 10:25:19 VERBOSE: Folder \"okteto-1\" is now scan-waiting" process=syncthing
time="2023-01-25T10:25:19Z" level=info msg="[ATOPH] 2023/01/25 10:25:19 VERBOSE: Folder \"okteto-1\" is now scanning" process=syncthing
time="2023-01-25T10:25:20Z" level=info msg="[ATOPH] 2023/01/25 10:25:20 VERBOSE: Local change detected in folder \"okteto-1\": modified file core" process=syncthing
time="2023-01-25T10:25:20Z" level=info msg="[ATOPH] 2023/01/25 10:25:20 VERBOSE: Folder \"okteto-1\" is now idle" process=syncthing
time="2023-01-25T10:25:20Z" level=info msg="[ATOPH] 2023/01/25 10:25:20 VERBOSE: Device ABKAVQF-RUO4CYO-FSC2VIP-VRX4QDA-TQQRN2J-MRDXJUC-FXNWP6N-S6ZSAAR sent an index update for \"okteto-1\" with 1 items" process=syncthing
time="2023-01-25T10:25:20Z" level=info msg="[ATOPH] 2023/01/25 10:25:20 VERBOSE: Summary for folder \"okteto-1\" is &{Errors:0 PullErrors:0 Invalid: GlobalFiles:34 GlobalDirectories:8 GlobalSymlinks:0 GlobalDeleted:0 GlobalBytes:34270724 GlobalTotalItems:42 LocalFiles:34 LocalDirectories:8 LocalSymlinks:0 LocalDeleted:0 LocalBytes:34270724 LocalTotalItems:42 NeedFiles:0 NeedDirectories:0 NeedSymlinks:0 NeedDeletes:0 NeedBytes:0 NeedTotalItems:0 ReceiveOnlyChangedFiles:0 ReceiveOnlyChangedDirectories:0 ReceiveOnlyChangedSymlinks:0 ReceiveOnlyChangedDeletes:0 ReceiveOnlyChangedBytes:0 ReceiveOnlyTotalItems:0 InSyncFiles:34 InSyncBytes:34270724 State:idle 10:25:20 +0000 UTC Error: Version:47 Sequence:47 WatchError:}" process=syncthing
time="2023-01-25T10:25:20Z" level=info msg="[ATOPH] 2023/01/25 10:25:20 VERBOSE: Completion for folder \"okteto-1\" on device ABKAVQF-RUO4CYO-FSC2VIP-VRX4QDA-TQQRN2J-MRDXJUC-FXNWP6N-S6ZSAAR is 100% (state: valid)" process=syncthing
time="2023-01-25T10:25:23Z" level=info msg="time=\"2023-01-25T10:25:23Z\" level=info msg=\"Accepted forward 0.0.0.0 8384\"" process=remote
time="2023-01-25T10:25:25Z" level=info msg="[ATOPH] 2023/01/25 10:25:25 VERBOSE: Folder \"okteto-1\" is now scan-waiting" process=syncthing
time="2023-01-25T10:25:25Z" level=info msg="[ATOPH] 2023/01/25 10:25:25 VERBOSE: Folder \"okteto-1\" is now scanning" process=syncthing
time="2023-01-25T10:25:25Z" level=info msg="[ATOPH] 2023/01/25 10:25:25 VERBOSE: Local change detected in folder \"okteto-1\": modified file core" process=syncthing
time="2023-01-25T10:25:25Z" level=info msg="[ATOPH] 2023/01/25 10:25:25 VERBOSE: Folder \"okteto-1\" is now idle" process=syncthing
time="2023-01-25T10:25:26Z" level=info msg="[ATOPH] 2023/01/25 10:25:26 VERBOSE: Summary for folder \"okteto-1\" is &{Errors:0 PullErrors:0 Invalid: GlobalFiles:34 GlobalDirectories:8 GlobalSymlinks:0 GlobalDeleted:0 GlobalBytes:34270724 GlobalTotalItems:42 LocalFiles:34 LocalDirectories:8 LocalSymlinks:0 LocalDeleted:0 LocalBytes:34270724 LocalTotalItems:42 NeedFiles:0 NeedDirectories:0 NeedSymlinks:0 NeedDeletes:0 NeedBytes:0 NeedTotalItems:0 ReceiveOnlyChangedFiles:0 ReceiveOnlyChangedDirectories:0 ReceiveOnlyChangedSymlinks:0 ReceiveOnlyChangedDeletes:0 ReceiveOnlyChangedBytes:0 ReceiveOnlyTotalItems:0 InSyncFiles:34 InSyncBytes:34270724 State:idle 10:25:25 +0000 UTC Error: Version:48 Sequence:48 WatchError:}" process=syncthing
time="2023-01-25T10:25:26Z" level=info msg="[ATOPH] 2023/01/25 10:25:26 VERBOSE: Completion for folder \"okteto-1\" on device ABKAVQF-RUO4CYO-FSC2VIP-VRX4QDA-TQQRN2J-MRDXJUC-FXNWP6N-S6ZSAAR is 0.24950742213675214% (state: valid)" process=syncthing
time="2023-01-25T10:25:27Z" level=info msg="[ATOPH] 2023/01/25 10:25:27 VERBOSE: RemoteDownloadProgress events.Event{SubscriptionID:32, GlobalID:33, Time:time.Date(2023, time.January, 25, 10, 25, 27, 25897000, time.Local), Type:2097152, Data:map[string]interface {}{\"device\":\"ABKAVQF-RUO4CYO-FSC2VIP-VRX4QDA-TQQRN2J-MRDXJUC-FXNWP6N-S6ZSAAR\", \"folder\":\"okteto-1\", \"state\":map[string]int{\"core\":29}}}" process=syncthing
time="2023-01-25T10:25:27Z" level=info msg="[ATOPH] 2023/01/25 10:25:27 VERBOSE: Device ABKAVQF-RUO4CYO-FSC2VIP-VRX4QDA-TQQRN2J-MRDXJUC-FXNWP6N-S6ZSAAR sent an index update for \"okteto-1\" with 1 items" process=syncthing
time="2023-01-25T10:25:27Z" level=info msg="[ATOPH] 2023/01/25 10:25:27 VERBOSE: RemoteDownloadProgress events.Event{SubscriptionID:34, GlobalID:35, Time:time.Date(2023, time.January, 25, 10, 25, 27, 638049000, time.Local), Type:2097152, Data:map[string]interface {}{\"device\":\"ABKAVQF-RUO4CYO-FSC2VIP-VRX4QDA-TQQRN2J-MRDXJUC-FXNWP6N-S6ZSAAR\", \"folder\":\"okteto-1\", \"state\":map[string]int{}}}" process=syncthing
time="2023-01-25T10:25:28Z" level=info msg="[ATOPH] 2023/01/25 10:25:28 VERBOSE: Summary for folder \"okteto-1\" is &{Errors:0 PullErrors:0 Invalid: GlobalFiles:34 GlobalDirectories:8 GlobalSymlinks:0 GlobalDeleted:0 GlobalBytes:34270724 GlobalTotalItems:42 LocalFiles:34 LocalDirectories:8 LocalSymlinks:0 LocalDeleted:0 LocalBytes:34270724 LocalTotalItems:42 NeedFiles:0 NeedDirectories:0 NeedSymlinks:0 NeedDeletes:0 NeedBytes:0 NeedTotalItems:0 ReceiveOnlyChangedFiles:0 ReceiveOnlyChangedDirectories:0 ReceiveOnlyChangedSymlinks:0 ReceiveOnlyChangedDeletes:0 ReceiveOnlyChangedBytes:0 ReceiveOnlyTotalItems:0 InSyncFiles:34 InSyncBytes:34270724 State:idle 10:25:25 +0000 UTC Error: Version:48 Sequence:48 WatchError:}" process=syncthing
time="2023-01-25T10:25:28Z" level=info msg="[ATOPH] 2023/01/25 10:25:28 VERBOSE: Completion for folder \"okteto-1\" on device ABKAVQF-RUO4CYO-FSC2VIP-VRX4QDA-TQQRN2J-MRDXJUC-FXNWP6N-S6ZSAAR is 100% (state: valid)" process=syncthing
time="2023-01-25T10:25:33Z" level=info msg="time=\"2023-01-25T10:25:33Z\" level=info msg=\"Accepted forward 0.0.0.0 8384\"" process=remote
time="2023-01-25T10:25:33Z" level=info msg="time=\"2023-01-25T10:25:33Z\" level=info msg=\"Accepted forward 0.0.0.0 8384\"" process=remote
time="2023-01-25T10:25:46Z" level=info msg="[ATOPH] 2023/01/25 10:25:46 VERBOSE: Folder \"okteto-1\" is now scan-waiting" process=syncthing
time="2023-01-25T10:25:46Z" level=info msg="[ATOPH] 2023/01/25 10:25:46 VERBOSE: Folder \"okteto-1\" is now scanning" process=syncthing
time="2023-01-25T10:25:46Z" level=info msg="[ATOPH] 2023/01/25 10:25:46 VERBOSE: Local change detected in folder \"okteto-1\": modified file core" process=syncthing
time="2023-01-25T10:25:46Z" level=info msg="[ATOPH] 2023/01/25 10:25:46 VERBOSE: Folder \"okteto-1\" is now idle" process=syncthing
time="2023-01-25T10:25:46Z" level=info msg="[ATOPH] 2023/01/25 10:25:46 VERBOSE: Summary for folder \"okteto-1\" is &{Errors:0 PullErrors:0 Invalid: GlobalFiles:34 GlobalDirectories:8 GlobalSymlinks:0 GlobalDeleted:0 GlobalBytes:34110980 GlobalTotalItems:42 LocalFiles:34 LocalDirectories:8 LocalSymlinks:0 LocalDeleted:0 LocalBytes:34110980 LocalTotalItems:42 NeedFiles:0 NeedDirectories:0 NeedSymlinks:0 NeedDeletes:0 NeedBytes:0 NeedTotalItems:0 ReceiveOnlyChangedFiles:0 ReceiveOnlyChangedDirectories:0 ReceiveOnlyChangedSymlinks:0 ReceiveOnlyChangedDeletes:0 ReceiveOnlyChangedBytes:0 ReceiveOnlyTotalItems:0 InSyncFiles:34 InSyncBytes:34110980 State:idle 10:25:46 +0000 UTC Error: Version:49 Sequence:49 WatchError:}" process=syncthing
time="2023-01-25T10:25:46Z" level=info msg="[ATOPH] 2023/01/25 10:25:46 VERBOSE: Completion for folder \"okteto-1\" on device ABKAVQF-RUO4CYO-FSC2VIP-VRX4QDA-TQQRN2J-MRDXJUC-FXNWP6N-S6ZSAAR is 0.25067588207667857% (state: valid)" process=syncthing
time="2023-01-25T10:25:47Z" level=info msg="[ATOPH] 2023/01/25 10:25:47 VERBOSE: RemoteDownloadProgress events.Event{SubscriptionID:44, GlobalID:45, Time:time.Date(2023, time.January, 25, 10, 25, 47, 414710000, time.Local), Type:2097152, Data:map[string]interface {}{\"device\":\"ABKAVQF-RUO4CYO-FSC2VIP-VRX4QDA-TQQRN2J-MRDXJUC-FXNWP6N-S6ZSAAR\", \"folder\":\"okteto-1\", \"state\":map[string]int{\"core\":93}}}" process=syncthing
time="2023-01-25T10:25:47Z" level=info msg="[ATOPH] 2023/01/25 10:25:47 VERBOSE: Device ABKAVQF-RUO4CYO-FSC2VIP-VRX4QDA-TQQRN2J-MRDXJUC-FXNWP6N-S6ZSAAR sent an index update for \"okteto-1\" with 1 items" process=syncthing
time="2023-01-25T10:25:48Z" level=info msg="[ATOPH] 2023/01/25 10:25:48 VERBOSE: RemoteDownloadProgress events.Event{SubscriptionID:46, GlobalID:47, Time:time.Date(2023, time.January, 25, 10, 25, 48, 336746000, time.Local), Type:2097152, Data:map[string]interface {}{\"device\":\"ABKAVQF-RUO4CYO-FSC2VIP-VRX4QDA-TQQRN2J-MRDXJUC-FXNWP6N-S6ZSAAR\", \"folder\":\"okteto-1\", \"state\":map[string]int{}}}" process=syncthing
time="2023-01-25T10:25:48Z" level=info msg="[ATOPH] 2023/01/25 10:25:48 VERBOSE: Summary for folder \"okteto-1\" is &{Errors:0 PullErrors:0 Invalid: GlobalFiles:34 GlobalDirectories:8 GlobalSymlinks:0 GlobalDeleted:0 GlobalBytes:34110980 GlobalTotalItems:42 LocalFiles:34 LocalDirectories:8 LocalSymlinks:0 LocalDeleted:0 LocalBytes:34110980 LocalTotalItems:42 NeedFiles:0 NeedDirectories:0 NeedSymlinks:0 NeedDeletes:0 NeedBytes:0 NeedTotalItems:0 ReceiveOnlyChangedFiles:0 ReceiveOnlyChangedDirectories:0 ReceiveOnlyChangedSymlinks:0 ReceiveOnlyChangedDeletes:0 ReceiveOnlyChangedBytes:0 ReceiveOnlyTotalItems:0 InSyncFiles:34 InSyncBytes:34110980 State:idle 10:25:46 +0000 UTC Error: Version:49 Sequence:49 WatchError:}" process=syncthing
time="2023-01-25T10:25:48Z" level=info msg="[ATOPH] 2023/01/25 10:25:48 VERBOSE: Completion for folder \"okteto-1\" on device ABKAVQF-RUO4CYO-FSC2VIP-VRX4QDA-TQQRN2J-MRDXJUC-FXNWP6N-S6ZSAAR is 100% (state: valid)" process=syncthing
time="2023-01-25T10:25:53Z" level=info msg="time=\"2023-01-25T10:25:53Z\" level=info msg=\"Accepted forward 0.0.0.0 8384\"" process=remote
time="2023-01-25T10:26:03Z" level=info msg="time=\"2023-01-25T10:26:03Z\" level=info msg=\"Accepted forward 0.0.0.0 8384\"" process=remote
time="2023-01-25T10:26:13Z" level=info msg="time=\"2023-01-25T10:26:13Z\" level=info msg=\"Accepted forward 0.0.0.0 8384\"" process=remote
time="2023-01-25T10:26:23Z" level=info msg="time=\"2023-01-25T10:26:23Z\" level=info msg=\"Accepted forward 0.0.0.0 8384\"" process=remote
time="2023-01-25T10:26:33Z" level=info msg="time=\"2023-01-25T10:26:33Z\" level=info msg=\"Accepted forward 0.0.0.0 8384\"" process=remote
time="2023-01-25T10:26:33Z" level=info msg="time=\"2023-01-25T10:26:33Z\" level=info msg=\"Accepted forward 0.0.0.0 8384\"" process=remote
time="2023-01-25T10:26:53Z" level=info msg="time=\"2023-01-25T10:26:53Z\" level=info msg=\"Accepted forward 0.0.0.0 8384\"" process=remote
time="2023-01-25T10:27:03Z" level=info msg="time=\"2023-01-25T10:27:03Z\" level=info msg=\"Accepted forward 0.0.0.0 8384\"" process=remote
time="2023-01-25T10:27:13Z" level=info msg="time=\"2023-01-25T10:27:13Z\" level=info msg=\"Accepted forward 0.0.0.0 8384\"" process=remote
time="2023-01-25T10:27:23Z" level=info msg="time=\"2023-01-25T10:27:23Z\" level=info msg=\"Accepted forward 0.0.0.0 8384\"" process=remote
time="2023-01-25T10:27:33Z" level=info msg="time=\"2023-01-25T10:27:33Z\" level=info msg=\"Accepted forward 0.0.0.0 8384\"" process=remote
time="2023-01-25T10:27:33Z" level=info msg="time=\"2023-01-25T10:27:33Z\" level=info msg=\"Accepted forward 0.0.0.0 8384\"" process=remote
time="2023-01-25T10:27:53Z" level=info msg="time=\"2023-01-25T10:27:53Z\" level=info msg=\"Accepted forward 0.0.0.0 8384\"" process=remote
time="2023-01-25T10:28:03Z" level=info msg="time=\"2023-01-25T10:28:03Z\" level=info msg=\"Accepted forward 0.0.0.0 8384\"" process=remote
time="2023-01-25T10:28:13Z" level=info msg="time=\"2023-01-25T10:28:13Z\" level=info msg=\"Accepted forward 0.0.0.0 8384\"" process=remote
time="2023-01-25T10:28:23Z" level=info msg="time=\"2023-01-25T10:28:23Z\" level=info msg=\"Accepted forward 0.0.0.0 8384\"" process=remote
time="2023-01-25T10:28:33Z" level=info msg="time=\"2023-01-25T10:28:33Z\" level=info msg=\"Accepted forward 0.0.0.0 8384\"" process=remote
time="2023-01-25T10:28:33Z" level=info msg="time=\"2023-01-25T10:28:33Z\" level=info msg=\"Accepted forward 0.0.0.0 8384\"" process=remote
time="2023-01-25T10:28:53Z" level=info msg="time=\"2023-01-25T10:28:53Z\" level=info msg=\"Accepted forward 0.0.0.0 8384\"" process=remote
time="2023-01-25T10:29:03Z" level=info msg="time=\"2023-01-25T10:29:03Z\" level=info msg=\"Accepted forward 0.0.0.0 8384\"" process=remote
time="2023-01-25T10:29:13Z" level=info msg="time=\"2023-01-25T10:29:13Z\" level=info msg=\"Accepted forward 0.0.0.0 8384\"" process=remote
time="2023-01-25T10:29:23Z" level=info msg="time=\"2023-01-25T10:29:23Z\" level=info msg=\"Accepted forward 0.0.0.0 8384\"" process=remote
time="2023-01-25T10:29:33Z" level=info msg="time=\"2023-01-25T10:29:33Z\" level=info msg=\"Accepted forward 0.0.0.0 8384\"" process=remote
time="2023-01-25T10:29:33Z" level=info msg="time=\"2023-01-25T10:29:33Z\" level=info msg=\"Accepted forward 0.0.0.0 8384\"" process=remote
time="2023-01-25T10:29:53Z" level=info msg="time=\"2023-01-25T10:29:53Z\" level=info msg=\"Accepted forward 0.0.0.0 8384\"" process=remote
time="2023-01-25T10:30:03Z" level=info msg="time=\"2023-01-25T10:30:03Z\" level=info msg=\"Accepted forward 0.0.0.0 8384\"" process=remote
time="2023-01-25T10:30:10Z" level=info msg="[ATOPH] 2023/01/25 10:30:10 VERBOSE: Folder \"okteto-1\" is now scan-waiting" process=syncthing
time="2023-01-25T10:30:10Z" level=info msg="[ATOPH] 2023/01/25 10:30:10 VERBOSE: Folder \"okteto-1\" is now scanning" process=syncthing
time="2023-01-25T10:30:10Z" level=info msg="[ATOPH] 2023/01/25 10:30:10 VERBOSE: Folder \"okteto-1\" is now idle" process=syncthing
time="2023-01-25T10:30:13Z" level=info msg="time=\"2023-01-25T10:30:13Z\" level=info msg=\"Accepted forward 0.0.0.0 8384\"" process=remote
time="2023-01-25T10:30:23Z" level=info msg="time=\"2023-01-25T10:30:23Z\" level=info msg=\"Accepted forward 0.0.0.0 8384\"" process=remote
time="2023-01-25T10:30:33Z" level=info msg="time=\"2023-01-25T10:30:33Z\" level=info msg=\"Accepted forward 0.0.0.0 8384\"" process=remote
time="2023-01-25T10:30:33Z" level=info msg="time=\"2023-01-25T10:30:33Z\" level=info msg=\"Accepted forward 0.0.0.0 8384\"" process=remote
time="2023-01-25T10:30:53Z" level=info msg="time=\"2023-01-25T10:30:53Z\" level=info msg=\"Accepted forward 0.0.0.0 8384\"" process=remote
time="2023-01-25T10:31:03Z" level=info msg="time=\"2023-01-25T10:31:03Z\" level=info msg=\"Accepted forward 0.0.0.0 8384\"" process=remote
time="2023-01-25T10:31:13Z" level=info msg="time=\"2023-01-25T10:31:13Z\" level=info msg=\"Accepted forward 0.0.0.0 8384\"" process=remote
time="2023-01-25T10:31:23Z" level=info msg="time=\"2023-01-25T10:31:23Z\" level=info msg=\"Accepted forward 0.0.0.0 8384\"" process=remote

@idogdeveleap could you run okteto up and then, on a separate terminal (but on the same directory) run okteto doctor, and attach the resulting file here? (if that’s not possible, you can use something like dropbox and link it here). That will give us logs for the dev container and the sync process on both sides (local machine and container).

From what you describe, there might be something on your config that’s causing the main process or the dev container to crash. I was able to run your repro in my cluster without running into the issue you mention.

@ramiro You can download the zip from my Google Drive using this link

Hi @idogdeveleap ,

Thanks for providing the information, we are analyzing the logs to see if we find the root cause, we’ll keep you posted.

Hi @idogdeveleap ,

In a terminal outside VS Code, does it work correctly?

I’m asking because in the logs, we are seeing this:

time="2023-01-25T12:24:10+02:00" level=info msg="starting shutdown sequence" action=9472095b-5093-4e1c-9ad6-c63153faa277 version=2.11.0
time="2023-01-25T12:24:10+02:00" level=info msg="sent cancellation signal" action=9472095b-5093-4e1c-9ad6-c63153faa277 version=2.11.0
time="2023-01-25T12:24:10+02:00" level=info msg="ssh client for exec closed" action=9472095b-5093-4e1c-9ad6-c63153faa277 version=2.11.0

That means that we are receiving a cancellation signal, since you are not sending it, could it be some specific configuration in the VS Code terminal?