在一次我清理了服务器上一些老的pycharm版本之后
打算重新装3.2版本,就全部给清理了。结果坏了事了,新版的装不上了。
试了公司和中科院的服务器都出现这样的问题,100%复现。md。
一直在这一步循环:
Downloading the IDE Backend on the remote host.
在循环一下午之后,报错:
Command "/bin/bash -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ curl\ -fSL\ --output\ /home/user/.cache/JetBrains/RemoteDev/dist/43709941d6ca1_pycharm-professional-2023.3.2.tar.gz\ https://download.jetbrains.com/python/pycharm-professional-2023.3.2.tar.gz" failed with exit code 143}
这个时候我还没有慌,小问题,内事不决问百度,外事不决问谷歌。实在不行上CSDN找高人。
md,这时候我开始慌了。仔细看了一下报错内容。
2024-01-03 12:49:00,402????????WARN????????exit code: 1????????/bin/bash -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ /home/extrotec/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_83eb3f8153ed29f38ae607b0a82d4ed8470bcd5f8f346034c4e370bb06d9dd64\ product-code\ --ide-path=/home/extrotec/.cache/JetBrains/RemoteDev/dist/43709941d6ca1_pycharm-professional-2023.3.2
stdout:
REMOTE_EXEC_OUTPUT_MARKER_
{"type":"error","errorCode":"CommandError","data":"/home/extrotec/.cache/JetBrains/RemoteDev/dist/43709941d6ca1_pycharm-professional-2023.3.2/build.txt doesn't exist"}
==== FAILURES ====
The following exception failed the deployment
com.jetbrains.gateway.ssh.deploy.DeployException: Command "/bin/bash -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ curl\ -fSL\ --output\ /home/extrotec/.cache/JetBrains/RemoteDev/dist/43709941d6ca1_pycharm-professional-2023.3.2.tar.gz\ https://download.jetbrains.com/python/pycharm-professional-2023.3.2.tar.gz" failed with exit code 143}
at com.jetbrains.gateway.ssh.DeployFlowUtil$fullDeployCycleImpl$2.invokeSuspend(DeployFlowUtil.kt:311)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:115)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:103)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)
Caused by: com.jetbrains.gateway.ssh.RemoteCommandException: Command "/bin/bash -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ curl\ -fSL\ --output\ /home/extrotec/.cache/JetBrains/RemoteDev/dist/43709941d6ca1_pycharm-professional-2023.3.2.tar.gz\ https://download.jetbrains.com/python/pycharm-professional-2023.3.2.tar.gz" failed with exit code 143}
at com.jetbrains.gateway.ssh.GoHighLevelHostAccessor.awaitWithStreamsTracking(GoHighLevelHostAccessor.kt:675)
at com.jetbrains.gateway.ssh.GoHighLevelHostAccessor.access$awaitWithStreamsTracking(GoHighLevelHostAccessor.kt:38)
at com.jetbrains.gateway.ssh.GoHighLevelHostAccessor$awaitWithStreamsTracking$1.invokeSuspend(GoHighLevelHostAccessor.kt)
... 8 more
应该是网络问题,我科学一下应该没问题,手动执行命令:
/bin/bash -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ curl\ -fSL\ --output\ /home/user/.cache/JetBrains/RemoteDev/dist/43709941d6ca1_pycharm-professional-2023.3.2.tar.gz\ https://download.jetbrains.com/python/pycharm-professional-2023.3.2.tar.gz
不行,我科学之后还是没有解决,我手动下载解压到‘/home/user/.cache/JetBrains/RemoteDev/dist/’目录也不行。
完了啊,没办法远程调试可要了老命了。
以为是自己的电脑问题,结果那天凑巧不巧学校的电脑断网了。也没办法用学校电脑测试。
屋漏偏逢连夜雨,我电脑的蓝牙驱动也坏了,鼠标可以用,但是蓝牙耳机可以连上但是没有声音,驱动卸载重装,设备卸载驱动,都不管用。
md,一狠心,算了我重装系统好了。反正公司电脑上装的软件就那几个。数据都在硬盘和服务器上存储。
在经过一通折腾,重装好系统了。安装好pycharm后,心心念念的赶紧测试pycharm 的remote development可用不可以用。结果怎么着,还是不能用。没白重装系统,好在蓝牙问题解决了。
这下确定了,是服务器的问题。
那怎么办,网上搜解决办法也搜不到。
这个时候我想到了,我学校服务器还可以用,然后呢,我就把学校服务器的/home/user/.cache/JetBrains/目录整个打包了一下,传过来,
放进服务器里面解压到同样的位置。重启pycharm,成功读取:
完事!再也不手残乱删了。