Devcontainer build/deploy hangs on "Downloading the IDE Backend on the remote host…"

已回答

Hi,

not sure if this is a bug or if I'm doing something wrong, so posting here before opening a bug tracker ticket. When I use the “Create dev container and clone sources” option in the `devcontainer.json` editor (as described here) the container build starts and is successful, but then hangs on “Downloading IDE backend”. The log I see is the following:

Build log:
Preparing environment…
Checking the IDE Backend…
Uploading worker binary…
Preparing directories…
Checking minimal memory requirements…
Checking minimal CPU requirements…
Environment prepared
Computing backend… done
Checking the IDE Backend…
Uploading worker binary…
Preparing directories…
Downloading the IDE Backend on the remote host… 99% · 1,13 GB/1,13 GB · 1,32 MB/s

After some time the % goes back to 1% goes up to 99% and the cycle repeats. Looking into the helper container (image: jetbrains/devcontainers-helper:20231115) I can see a running download, but the file name looks kind of wrong:

/ # ps
PID   USER     TIME  COMMAND
    1 root      0:00 /bin/sh -c while sleep 1000; do :; done
    7 root      0:00 sleep 1000
  228 root      0:00 curl -fSL --output /tmp/devcontainer-backends/b946c0dd8d1f2_pycharm-professional-251.18673.39-aarch64/.tar.gz https://download.jetbrains.com/
  236 root      0:00 /bin/sh
  242 root      0:00 ps

/ # ls -al /tmp/devcontainer-backends/b946c0dd8d1f2_pycharm-professional-251.18673.39-aarch64
total 201652
drwxr-xr-x    2 root     root          4096 Feb  6 13:44 .
drwxrwxrwx    4 root     root          4096 Feb  6 13:45 ..
-rw-r--r--    1 root     root     206478678 Feb  6 13:47 .tar.gz

Waiting for the wrap around sure shows that the download started again.

/ # ls -al /tmp/devcontainer-backends/b946c0dd8d1f2_pycharm-professional-251.18673.39-aarch64/
total 189444
drwxr-xr-x    2 root     root          4096 Feb  6 13:44 .
drwxrwxrwx    4 root     root          4096 Feb  6 13:45 ..
-rw-r--r--    1 root     root     193981131 Feb  6 14:02 .tar.gz

This goes on indefinitely. I tried to be sneaky and create a (sym)link /tmp/devcontainer-backends/b946c0dd8d1f2_pycharm-professional-251.18673.39-aarch64.tar.gz pointing to the .tar.gz file but that didn't help.

Any help is greatly appreciated!

0

Hello, Steffen Reichel

There should be a 10-minute timeout for the backend download process; if it is exceeded, another tool (wget or curl instead of each other) is used for the next attempt. You can try to perform a workaround by forcing the dev container build process to use the locally downloaded backend; please follow the instructions in this article in our Knowledge Base to do it.

0

Thank you for the link. I'll try that.

But I'm not sure if the download really took 10 minutes - there might have been more than one wrap around in between my logs. I just left PyCham in the background do its thing and checked back after some time. In any case: It would be very nice to have a at least a message in the logs that there was a timeout and to download it manually (or to configure this timeout somewhere). The message would have saved me a lot of time trying to figure out what's actually going on.

0

Is it possible for you to collect (Help | Collect Logs and Diagnostic Data) the IDE logs, share them via the JetBrains Uploads service, and write me the ID you receive there? I'd like to take a look at the log entries related to the backend downloading process that should be reported in the logs.

0

请先登录再写评论。