Remote Host Toolchain Timing Out

Hi,

I've been trying to get Full Remote Mode to work with CLion but the Remote Host toolchain keeps timing out before it can find rsync, CMake, Make, etc. I do run a command which configures the environment in my ~/.bashrc on the remote host. Running this command is necessary to configure the correct version of CMake, along with other libraries that are needed to build the CMake project. If I disable this command in my ~/.bashrc the Remote Host toolchain is able to find all the necessary programs in /usr/bin, but these are the incorrect versions.

Is there anyway to increase the timeout as the Remote Host toolchain runs the necessary commands via SSH to find rsync, CMake, Make, etc?

I've attached the logs from CLion showing that its timing out as it tries to find rsync:

2020-05-09 22:41:08,128 [ 43819] INFO - #com.jetbrains.cidr.remote - Timed out
2020-05-09 22:41:08,128 [ 43819] INFO - #com.jetbrains.cidr.remote - RemoteUtil: rsync not found
2020-05-09 22:41:08,173 [ 43864] INFO - #com.jetbrains.cidr.remote - Timed out
2020-05-09 22:41:08,173 [ 43864] WARN - #com.jetbrains.cidr.remote - Cannot get temp file name
com.intellij.execution.ExecutionException: exit code = -1
at com.jetbrains.cidr.system.RemoteUtil.a(RemoteUtil.java:325)
at com.jetbrains.cidr.system.RemoteUtil.generateTempFileName(RemoteUtil.java:310)
at com.jetbrains.cidr.system.RemoteHost.getTempDirectory(RemoteHost.java:224)
at com.jetbrains.cidr.system.RemoteHost.createTempDirectory(RemoteHost.java:239)
at com.jetbrains.cidr.cpp.toolchains.CPPToolchainsUIUtils.checkCMakeDevEnvironment(CPPToolchainsUIUtils.kt:289)
at com.jetbrains.cidr.cpp.toolchains.CPPToolchainsPanel$ToolchainPanel$addCMakeToolsChecker$2.runInBackground(CPPToolchainsPanel.kt:1004)
at com.jetbrains.cidr.cpp.toolchains.CPPToolchainsPanel$ToolchainPanel$addCMakeToolsChecker$2.runInBackground(CPPToolchainsPanel.kt:989)
at com.jetbrains.cidr.cpp.toolchains.CPPToolchainsPanel$ToolchainPanel$addChecker$runnable$1$run$1$backgroundFunction$1.invoke(CPPToolchainsPanel.kt:1082)
at com.jetbrains.cidr.cpp.toolchains.CPPToolchainsPanel$ToolchainPanel$addChecker$runnable$1$run$1$backgroundFunction$1.invoke(CPPToolchainsPanel.kt:1055)
at com.jetbrains.cidr.cpp.toolchains.CPPToolchainsPanelKt$sam$java_lang_Runnable$0.run(CPPToolchainsPanel.kt)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:627)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:572)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:61)
at com.jetbrains.cidr.cpp.toolchains.CPPToolchainsPanel$ToolchainPanel$addChecker$runnable$1$run$1.run(CPPToolchainsPanel.kt:1083)
at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:232)
at com.intellij.util.Alarm$Request.runSafely(Alarm.java:367)
at com.intellij.util.Alarm$Request.run(Alarm.java:357)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at com.intellij.util.concurrency.SchedulingWrapper$MyScheduledFutureTask.run(SchedulingWrapper.java:220)
at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:222)
at com.intellij.util.concurrency.BoundedTaskExecutor.access$200(BoundedTaskExecutor.java:29)
at com.intellij.util.concurrency.BoundedTaskExecutor$1.execute(BoundedTaskExecutor.java:201)
at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:210)
at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:190)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)

Any help would be much appreciated!

Thanks,

Josh

0
3 comments
Avatar
Permanently deleted user

Hello.

Am I right that you two problems: the first one with setting environment variables and the second one with command timeout?

Could you please update to latest CLion version, open any source file and then run `Help -> Find Action -> find "Show Remote Hosts Info"` and share output with us.

 

0
Avatar
Permanently deleted user

Hi,

Thanks for the response!

The only problem is the timeout as the CLion Remote Host toolchain connects via SSH to find all the programs. It takes a little while to setup all the environment variables through my ~/.bashrc, but before it finishes CLion times out and is unable to find rsync, CMake, etc.

I'm currently running CLion 2020.1.1 which should be the latest version of CLion Here is the Remote Hosts Info for my local machine:

IDE: CLion (build #CL-201.7223.86)
OS: Mac OS X (10.14.6, x86_64)
Options:
clion.remote.use.rsync = true
clion.remote.compress.tar = true
clion.remote.tar.timeout = 240000
clion.remote.resync.system.cache = false
clion.remote.upload.external.changes = true
0
Avatar
Permanently deleted user

According to the log at the moment your RPi is not available via SSH. Could you please enable it, make sure that remote Toolchain is connected and then share  "Remote Hosts Info" again. Thanks in advance.

0

Please sign in to leave a comment.