stuck when using remote development

Answered

When using Remote Development, I select the project and click `Download IDE and Connect`. But it keeps loading forever. I have removed `~/.cache/Jetbrain` but still not work.

0
8 comments

Please create a support request in YT with both sides logs collected according to this article: https://www.jetbrains.com/help/idea/2022.3/remote-development-troubleshooting.html#support

0

I have follow your link and find the root case of the problem. IDEA is literally downloading the Backend in `~/.cache/JetBrains/RemoteDev/dist/bcbc13aa201fb_ideaIU-2022.2.3.tar.gz`. I can see the increase size of this file. But the problem is the slow download speed. 

I'm in China so it would be better to use proxy for downloading. Is there a way to specify the download proxy for Backend?

0

To download the backend archive, we use simple curl/wget, so you can set up the proxy in environment variables in format of https_proxy=proxyhost:proxyport

0

Simply set https_proxy will not work. My solution is to create a file named `~/.curlrc`:
```
proxy=http:<ip>:<port>
```

0

Another error happened:


162.105.67.17 :: uname -sm :: exit code: 0 :: stdout: Linux x86_64 :: stderr: 
162.105.67.17 :: uname -sm :: exit code: 0 :: stdout: Linux x86_64 :: stderr: 
162.105.67.17 :: echo $HOME :: exit code: 0 :: stdout: /home/zzh :: stderr: 
162.105.67.17 :: test -f /home/zzh/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_8be48ed1f7d9d149a663842f0df2735b7433265d1654774596e54ce70af850f2 :: exit code: 1 :: stdout:  :: stderr: 
162.105.67.17 :: ls -la /home/zzh/.cache/JetBrains/RemoteDev/remote-dev-worker :: exit code: 2 :: stdout: ls: cannot access '/home/zzh/.cache/JetBrains/RemoteDev/remote-dev-worker': No such file or directory :: stderr: 
162.105.67.17 :: mkdir -p /home/zzh/.cache/JetBrains/RemoteDev/remote-dev-worker :: exit code: 0 :: stdout:  :: stderr: 
162.105.67.17 :: dd of=/home/zzh/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_8be48ed1f7d9d149a663842f0df2735b7433265d1654774596e54ce70af850f2.5403696127700.tmp :: exit code: 0 :: streams not available
162.105.67.17 :: ls -ln /home/zzh/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_8be48ed1f7d9d149a663842f0df2735b7433265d1654774596e54ce70af850f2.5403696127700.tmp :: exit code: 0 :: stdout: -rw-rw-r-- 1 1000 1000 1929216 Nov  4 10:45 /home/zzh/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_8be48ed1f7d9d149a663842f0df2735b7433265d1654774596e54ce70af850f2.5403696127700.tmp :: stderr: 
162.105.67.17 :: mv -v /home/zzh/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_8be48ed1f7d9d149a663842f0df2735b7433265d1654774596e54ce70af850f2.5403696127700.tmp /home/zzh/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_8be48ed1f7d9d149a663842f0df2735b7433265d1654774596e54ce70af850f2 :: exit code: 0 :: stdout: renamed '/home/zzh/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_8be48ed1f7d9d149a663842f0df2735b7433265d1654774596e54ce70af850f2.5403696127700.tmp' -> '/home/zzh/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_8be48ed1f7d9d149a663842f0df2735b7433265d1654774596e54ce70af850f2' :: stderr: 
162.105.67.17 :: chmod 755 /home/zzh/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_8be48ed1f7d9d149a663842f0df2735b7433265d1654774596e54ce70af850f2 :: exit code: 0 :: stdout:  :: stderr: 
162.105.67.17 :: test -f /home/zzh/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_8be48ed1f7d9d149a663842f0df2735b7433265d1654774596e54ce70af850f2 :: exit code: 0 :: stdout:  :: stderr: 
162.105.67.17 :: test -x /home/zzh/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_8be48ed1f7d9d149a663842f0df2735b7433265d1654774596e54ce70af850f2 :: exit code: 0 :: stdout:  :: stderr: 
162.105.67.17 :: echo $SHELL :: exit code: 0 :: stdout: /usr/bin/zsh :: stderr: 
162.105.67.17 :: /usr/bin/zsh -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ /home/zzh/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_8be48ed1f7d9d149a663842f0df2735b7433265d1654774596e54ce70af850f2\ exists\ --path=/home/zzh/.cache/JetBrains/RemoteDev/dist/bcbc13aa201fb_ideaIU-2022.2.3/.expandSucceeded\ --file=true :: exit code: 0 :: stdout: REMOTE_EXEC_OUTPUT_MARKER_
false :: stderr: 
162.105.67.17 :: /usr/bin/zsh -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ /home/zzh/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_8be48ed1f7d9d149a663842f0df2735b7433265d1654774596e54ce70af850f2\ create-dir\ --path=/home/zzh/.cache/JetBrains/RemoteDev/dist/bcbc13aa201fb_ideaIU-2022.2.3 :: exit code: 0 :: stdout: REMOTE_EXEC_OUTPUT_MARKER_ :: stderr: 
162.105.67.17 :: /usr/bin/zsh -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ /home/zzh/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_8be48ed1f7d9d149a663842f0df2735b7433265d1654774596e54ce70af850f2\ available-space\ --path=/home/zzh/.cache/JetBrains/RemoteDev/dist/bcbc13aa201fb_ideaIU-2022.2.3 :: exit code: 0 :: stdout: REMOTE_EXEC_OUTPUT_MARKER_
23435296768 :: stderr: 
162.105.67.17 :: command -v tar :: exit code: 0 :: stdout: /usr/bin/tar :: stderr: 
162.105.67.17 :: command -v curl :: exit code: 0 :: stdout: /usr/bin/curl :: stderr: 
162.105.67.17 :: command -v curl :: exit code: 0 :: stdout: /usr/bin/curl :: stderr: 
162.105.67.17 :: env LC_ALL=C curl -sIL https://download.jetbrains.com/idea/ideaIU-2022.2.3.tar.gz :: exit code: 0 :: stdout: HTTP/1.1 200 Connection established

 

HTTP/2 302 

[1mdate[0m: Fri, 04 Nov 2022 10:45:06 GMT

[1mcontent-type[0m: text/html

[1mcontent-length[0m: 138

[1mlocation[0m: https://download-cdn.jetbrains.com/idea/ideaIU-2022.2.3.tar.gz

[1mserver[0m: nginx

[1mstrict-transport-security[0m: max-age=31536000; includeSubdomains;

[1mx-frame-options[0m: DENY

[1mx-content-type-options[0m: nosniff

[1mx-xss-protection[0m: 1; mode=block;

[1mx-geocountry[0m: Japan

[1mx-geocode[0m: JP

[1mx-geocity[0m: Tokyo

 

HTTP/1.1 200 Connection established

 

HTTP/2 200 

[1mcontent-type[0m: binary/octet-stream

[1mcontent-length[0m: 1038929710

[1mx-amz-replication-status[0m: COMPLETED

[1mlast-modified[0m: Wed, 05 Oct 2022 15:16:44 GMT

[1mx-amz-version-id[0m: u.VOO_wqjYa7NG67TK7K45gcP2MwvI_m

[1maccept-ranges[0m: bytes

[1mserver[0m: AmazonS3

[1mdate[0m: Fri, 04 Nov 2022 10:38:25 GMT

[1metag[0m: "4b529bde7676e5cfe1d539866988330b-124"

[1mx-cache[0m: Hit from cloudfront

[1mvia[0m: 1.1 c86940ce92ab2aa5ec9c51707e85666a.cloudfront.net (CloudFront)

[1mx-amz-cf-pop[0m: NRT57-C2

[1mx-amz-cf-id[0m: OO2YliCwj0IVcd-IIlZk2agxsHIF0gtT7WwZ9tleqNg-Fv_te1Lxbw==

[1mage[0m: 1122 :: stderr: 
162.105.67.17 :: command -v tar :: exit code: 0 :: stdout: /usr/bin/tar :: stderr: 
162.105.67.17 :: command -v curl :: exit code: 0 :: stdout: /usr/bin/curl :: stderr: 
162.105.67.17 :: command -v curl :: exit code: 0 :: stdout: /usr/bin/curl :: stderr: 
162.105.67.17 :: curl -fSsL --output /home/zzh/.cache/JetBrains/RemoteDev/dist/bcbc13aa201fb_ideaIU-2022.2.3.tar.gz https://download.jetbrains.com/idea/ideaIU-2022.2.3.tar.gz :: exit code: 0 :: stdout:  :: stderr: 
162.105.67.17 :: /usr/bin/zsh -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ /home/zzh/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_8be48ed1f7d9d149a663842f0df2735b7433265d1654774596e54ce70af850f2\ expand-archive\ --archive-path=/home/zzh/.cache/JetBrains/RemoteDev/dist/bcbc13aa201fb_ideaIU-2022.2.3.tar.gz\ --destination=/home/zzh/.cache/JetBrains/RemoteDev/dist/bcbc13aa201fb_ideaIU-2022.2.3 :: exit code: 0 :: stdout: REMOTE_EXEC_OUTPUT_MARKER_ :: stderr: 
162.105.67.17 :: /usr/bin/zsh -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ /home/zzh/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_8be48ed1f7d9d149a663842f0df2735b7433265d1654774596e54ce70af850f2\ create-file\ --path=/home/zzh/.cache/JetBrains/RemoteDev/dist/bcbc13aa201fb_ideaIU-2022.2.3/.expandSucceeded :: exit code: 0 :: stdout: REMOTE_EXEC_OUTPUT_MARKER_ :: stderr: 
162.105.67.17 :: /usr/bin/zsh -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ /home/zzh/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_8be48ed1f7d9d149a663842f0df2735b7433265d1654774596e54ce70af850f2\ remove-path\ --path=/home/zzh/.cache/JetBrains/RemoteDev/dist/bcbc13aa201fb_ideaIU-2022.2.3.tar.gz :: exit code: 0 :: stdout: REMOTE_EXEC_OUTPUT_MARKER_ :: stderr: 
162.105.67.17 :: /usr/bin/zsh -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ /home/zzh/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_8be48ed1f7d9d149a663842f0df2735b7433265d1654774596e54ce70af850f2\ product-code\ --ide-path=/home/zzh/.cache/JetBrains/RemoteDev/dist/bcbc13aa201fb_ideaIU-2022.2.3 :: exit code: 0 :: stdout: REMOTE_EXEC_OUTPUT_MARKER_
IU :: stderr: 
162.105.67.17 :: /usr/bin/zsh -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ /home/zzh/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_8be48ed1f7d9d149a663842f0df2735b7433265d1654774596e54ce70af850f2\ readlink\ --path=/home/zzh/.bash_history :: exit code: 0 :: stdout: REMOTE_EXEC_OUTPUT_MARKER_
/home/zzh/.bash_history :: stderr: 
162.105.67.17 :: /usr/bin/zsh -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ /home/zzh/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_8be48ed1f7d9d149a663842f0df2735b7433265d1654774596e54ce70af850f2\ host-status\ --ide-path=/home/zzh/.cache/JetBrains/RemoteDev/dist/bcbc13aa201fb_ideaIU-2022.2.3\ --project-path=/home/zzh/.bash_history :: exit code: 143 :: stdout: REMOTE_EXEC_OUTPUT_MARKER_ :: stderr: 
162.105.67.17 :: /usr/bin/zsh -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ /home/zzh/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_8be48ed1f7d9d149a663842f0df2735b7433265d1654774596e54ce70af850f2\ host-status\ --ide-path=/home/zzh/.cache/JetBrains/RemoteDev/dist/bcbc13aa201fb_ideaIU-2022.2.3\ --project-path=/home/zzh/.bash_history :: exit code: 0 :: stdout: REMOTE_EXEC_OUTPUT_MARKER_
{
  "appPid": 34683,
  "appVersion": "IU-222.4345.14",
  "runtimeVersion": "17.0.4.1b469.62",
  "unattendedMode": false,
  "backendUnresponsive": false,
  "modalDialogIsOpened": false,
  "idePath": "/home/zzh/.cache/JetBrains/RemoteDev/dist/bcbc13aa201fb_ideaIU-2022.2.3"
} :: stderr: 
162.105.67.17 :: /usr/bin/zsh -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ /home/zzh/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_8be48ed1f7d9d149a663842f0df2735b7433265d1654774596e54ce70af850f2\ backend-status-alive\ --project-path=/home/zzh/.bash_history :: exit code: 0 :: stdout: REMOTE_EXEC_OUTPUT_MARKER_
true :: stderr: 
162.105.67.17 :: /usr/bin/zsh -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ /home/zzh/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_8be48ed1f7d9d149a663842f0df2735b7433265d1654774596e54ce70af850f2\ backend-status-alive\ --project-path=/home/zzh/.bash_history :: exit code: 0 :: stdout: REMOTE_EXEC_OUTPUT_MARKER_
true :: stderr: 
162.105.67.17 :: /usr/bin/zsh -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ /home/zzh/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_8be48ed1f7d9d149a663842f0df2735b7433265d1654774596e54ce70af850f2\ backend-status-alive\ --project-path=/home/zzh/.bash_history :: exit code: 0 :: stdout: REMOTE_EXEC_OUTPUT_MARKER_
true :: stderr: 
162.105.67.17 :: /usr/bin/zsh -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ /home/zzh/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_8be48ed1f7d9d149a663842f0df2735b7433265d1654774596e54ce70af850f2\ backend-status-alive\ --project-path=/home/zzh/.bash_history :: exit code: 0 :: stdout: REMOTE_EXEC_OUTPUT_MARKER_
false :: stderr: 
162.105.67.17 :: /usr/bin/zsh -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ /home/zzh/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_8be48ed1f7d9d149a663842f0df2735b7433265d1654774596e54ce70af850f2\ product-code\ --ide-path=/home/zzh/.cache/JetBrains/RemoteDev/dist/bcbc13aa201fb_ideaIU-2022.2.3 :: exit code: 0 :: stdout: REMOTE_EXEC_OUTPUT_MARKER_
IU :: stderr: 
162.105.67.17 :: echo $HOME :: exit code: 0 :: stdout: /home/zzh :: stderr: 
162.105.67.17 :: /usr/bin/zsh -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ /home/zzh/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_8be48ed1f7d9d149a663842f0df2735b7433265d1654774596e54ce70af850f2\ create-dir\ --path=/home/zzh/.cache/JetBrains/RemoteDev-IU/_home_zzh_.bash_history/log :: exit code: 0 :: stdout: REMOTE_EXEC_OUTPUT_MARKER_ :: stderr: 
162.105.67.17 :: /usr/bin/zsh -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ nohup\ /home/zzh/.cache/JetBrains/RemoteDev/dist/bcbc13aa201fb_ideaIU-2022.2.3/bin/remote-dev-server.sh\ run\ /home/zzh/.bash_history\ \>\>\ /home/zzh/.cache/JetBrains/RemoteDev-IU/_home_zzh_.bash_history/log/stdout.log\ 2\>\>\ /home/zzh/.cache/JetBrains/RemoteDev-IU/_home_zzh_.bash_history/log/stderr.log :: exit code: timed out :: stdout: REMOTE_EXEC_OUTPUT_MARKER_ :: stderr: 
162.105.67.17 :: /usr/bin/zsh -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ /home/zzh/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_8be48ed1f7d9d149a663842f0df2735b7433265d1654774596e54ce70af850f2\ host-status\ --ide-path=/home/zzh/.cache/JetBrains/RemoteDev/dist/bcbc13aa201fb_ideaIU-2022.2.3\ --project-path=/home/zzh/.bash_history :: exit code: 0 :: stdout: REMOTE_EXEC_OUTPUT_MARKER_
{
  "appPid": 35065,
  "appVersion": "IU-222.4345.14",
  "runtimeVersion": "17.0.4.1b469.62",
  "unattendedMode": true,
  "backendUnresponsive": false,
  "modalDialogIsOpened": true,
  "idePath": "/home/zzh/.cache/JetBrains/RemoteDev/dist/bcbc13aa201fb_ideaIU-2022.2.3"
} :: stderr: 
162.105.67.17 :: /usr/bin/zsh -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ /home/zzh/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_8be48ed1f7d9d149a663842f0df2735b7433265d1654774596e54ce70af850f2\ host-status\ --ide-path=/home/zzh/.cache/JetBrains/RemoteDev/dist/bcbc13aa201fb_ideaIU-2022.2.3\ --project-path=/home/zzh/.bash_history :: exit code: 1 :: stdout: REMOTE_EXEC_OUTPUT_MARKER_
Stdout: IDE config directory: /home/zzh/.config/JetBrains/RemoteDev-IU/_home_zzh_.bash_history
IDE system directory: /home/zzh/.cache/JetBrains/RemoteDev-IU/_home_zzh_.bash_history
CompileCommand: exclude com/intellij/openapi/vfs/impl/FilePartNodeRoot.trieDescend bool exclude = true
IDE is being shut down

Stderr: 
{"type":"error","errorCode":"CommandError","data":"exit status 16"} :: stderr: 
Could not get host jstack: 

Details:
An error occurred while executing command: 'get-jstack --ide-path=/home/zzh/.cache/JetBrains/RemoteDev/dist/bcbc13aa201fb_ideaIU-2022.2.3 --project-path=/home/zzh/.bash_history'
Exit code: 1

0

Solved by rebooting linux machine, thanks for your help :)

0

It keeps downloading the remote IDE after it's already been successfully downloaded. Any suggestions please?

More information:

- Linux version

- Files' been downloaded:

PS: I do not wish to restart my Linux server since it's a production server

 

0

Please sign in to leave a comment.