Failed to upload files to ssh server

已回答

Hello, I am connected to a server as interpreter using pycharm professional, I have been working on my project for a long time and whenever I update a file the updates are automatically uploaded to the server copy. Suddenly, uploading to server keeps failing and now I can't edit my files and run them because whenever I update a file and I upload it (manually or automatically I get the message "Failed to transfer file 'PATH TO FILE IN MY COMPUTER': could not write to "sftp://SERVER PATH TO MAPPING FILE". (Failure)"

I have tested connection and I'm sure it's connected, also I tried to download from the server and it worked, I tried to delete from the server but it failed also. How can I solve this problem?

0

Hello Leonardo,

Could you please share idea.log ("Help | Show Log in...") after restarting IDE and reproducing the issue?

 

0

Hello, I rebooted the server and it became down for sometime so after it has been fixed it I reconfigured pycharm and everything is working fine now, thanks!

0

I am facing a similar issue. Upload to remote server was working fine initially but started giving this error after sometime. Can anyone help me on how can I resolve this issue?

Thanks

0

Rubeeajaff

Please provide the idea.log file (Help | Show Log in Explorer) after reproducing the issue.

You can upload it here privately and share the upload id.

0

Hi Arina Efremova,

I resolved it by decreasing my project size. The IDE was running low on memory. Thanks

1

Hi facing the same issue

Can anybody look into it 

I provided the log file as well

0

Hi Junaakha,

Can you provide the upload id for your log file?

0

I deleted the existing file using injelijIdea remote host, then try to upload file and it's happened.

 

when I rename the file and tried to upload, the problem fixed.


Message:
Upload items failed. Failed to transfer file '/Users/**/MyFiles/Projects/Website/Back-End/Sample/ProjectManager/build/libs/ProjectManager-0.7.0-Beta.jar'. Could not copy "file:///Users/shahriyar/MyFiles/Projects/Website/Back-End/Sample/ProjectManager/build/libs/ProjectManager-0.7.0-Beta.jar" to "sftp://***/root/easy/ProjectManager-0.7.0-Beta.jar".




Log:
2023-09-21 16:36:11,946 [ 459966]   INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities to files
2023-09-21 16:36:47,823 [ 495843]   INFO - #c.i.s.i.s.sshj - Will request `sftp` subsystem
2023-09-21 16:36:53,134 [ 501154]   INFO - #c.i.o.p.u.AbstractProgressIndicatorBase - This progress indicator (Delete server items 1529874375: running=true; canceled=false; task=com.jetbrains.plugins.webDeployment.ui.remotebrowser.ServerItemsDeleteProvider$1@531a51b9) is indeterminate, this may lead to visual inconsistency. Please call setIndeterminate(false) before you start progress. class com.intellij.openapi.progress.impl.BackgroundableProcessIndicator
java.lang.IllegalStateException
    at com.intellij.openapi.progress.util.AbstractProgressIndicatorBase.setFraction(AbstractProgressIndicatorBase.java:197)
    at com.intellij.openapi.progress.util.AbstractProgressIndicatorExBase.setFraction(AbstractProgressIndicatorExBase.java:110)
    at com.intellij.openapi.progress.util.ProgressWindow.setFraction(ProgressWindow.java:319)
    at com.jetbrains.plugins.webDeployment.TransferTask.executeOperations(TransferTask.java:527)
    at com.jetbrains.plugins.webDeployment.RemoteHostTask.lambda$doRun$0(RemoteHostTask.java:283)
    at com.jetbrains.plugins.webDeployment.connections.RemoteConnection.lambda$executeServerOperationSilently$1(RemoteConnection.java:55)
    at com.jetbrains.plugins.webDeployment.connections.RemoteConnectionPool$RemoteConnectionImpl.executeServerOperation(RemoteConnectionPool.java:140)
    at com.jetbrains.plugins.webDeployment.connections.RemoteConnection.executeServerOperationSilently(RemoteConnection.java:55)
    at com.jetbrains.plugins.webDeployment.RemoteHostTask.doRun(RemoteHostTask.java:283)
    at com.jetbrains.plugins.webDeployment.RemoteHostTask.run(RemoteHostTask.java:107)
    at com.intellij.openapi.progress.impl.CoreProgressManager.startTask(CoreProgressManager.java:428)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.startTask(ProgressManagerImpl.java:115)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcessWithProgressAsynchronously$6(CoreProgressManager.java:478)
    at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:251)
    at com.intellij.openapi.progress.ProgressManager.lambda$runProcess$0(ProgressManager.java:71)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:186)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$13(CoreProgressManager.java:604)
    at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:679)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:635)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:603)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:61)
    at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:173)
    at com.intellij.openapi.progress.ProgressManager.runProcess(ProgressManager.java:71)
    at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$5(ProgressRunner.java:251)
    at com.intellij.openapi.progress.impl.ProgressRunner.lambda$launchTask$18(ProgressRunner.java:465)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)
    at java.base/java.lang.Thread.run(Thread.java:833)
2023-09-21 16:36:56,180 [ 504200]   INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities to files
2023-09-21 16:36:56,332 [ 504352]   INFO - #c.i.c.ComponentStoreImpl - Saving Project(name=ProjectManager, containerState=COMPONENT_CREATED, componentStore=/Users/shahriyar/MyFiles/Projects/Website/Back-End/Sample/ProjectManager)RunManager took 12 ms
2023-09-21 16:37:10,736 [ 518756]   INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities to files
2023-09-21 16:37:28,774 [ 536794]   INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities to files
2023-09-21 16:37:28,920 [ 536940]   INFO - #c.i.c.ComponentStoreImpl - Saving Project(name=ProjectManager, containerState=COMPONENT_CREATED, componentStore=/Users/shahriyar/MyFiles/Projects/Website/Back-End/Sample/ProjectManager)Kotlin2JvmCompilerArguments took 11 ms
2023-09-21 16:38:28,742 [ 596762]   INFO - #c.i.s.i.s.sshj - Will request `sftp` subsystem
2023-09-21 16:38:33,931 [ 601951]   INFO - #c.i.o.p.u.AbstractProgressIndicatorBase - This progress indicator (Delete server items 217956014: running=true; canceled=false; task=com.jetbrains.plugins.webDeployment.ui.remotebrowser.ServerItemsDeleteProvider$1@36163af8) is indeterminate, this may lead to visual inconsistency. Please call setIndeterminate(false) before you start progress. class com.intellij.openapi.progress.impl.BackgroundableProcessIndicator
java.lang.IllegalStateException
    at com.intellij.openapi.progress.util.AbstractProgressIndicatorBase.setFraction(AbstractProgressIndicatorBase.java:197)
    at com.intellij.openapi.progress.util.AbstractProgressIndicatorExBase.setFraction(AbstractProgressIndicatorExBase.java:110)
    at com.intellij.openapi.progress.util.ProgressWindow.setFraction(ProgressWindow.java:319)
    at com.jetbrains.plugins.webDeployment.TransferTask.executeOperations(TransferTask.java:527)
    at com.jetbrains.plugins.webDeployment.RemoteHostTask.lambda$doRun$0(RemoteHostTask.java:283)
    at com.jetbrains.plugins.webDeployment.connections.RemoteConnection.lambda$executeServerOperationSilently$1(RemoteConnection.java:55)
    at com.jetbrains.plugins.webDeployment.connections.RemoteConnectionPool$RemoteConnectionImpl.executeServerOperation(RemoteConnectionPool.java:140)
    at com.jetbrains.plugins.webDeployment.connections.RemoteConnection.executeServerOperationSilently(RemoteConnection.java:55)
    at com.jetbrains.plugins.webDeployment.RemoteHostTask.doRun(RemoteHostTask.java:283)
    at com.jetbrains.plugins.webDeployment.RemoteHostTask.run(RemoteHostTask.java:107)
    at com.intellij.openapi.progress.impl.CoreProgressManager.startTask(CoreProgressManager.java:428)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.startTask(ProgressManagerImpl.java:115)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcessWithProgressAsynchronously$6(CoreProgressManager.java:478)
    at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:251)
    at com.intellij.openapi.progress.ProgressManager.lambda$runProcess$0(ProgressManager.java:71)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:186)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$13(CoreProgressManager.java:604)
    at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:679)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:635)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:603)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:61)
    at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:173)
    at com.intellij.openapi.progress.ProgressManager.runProcess(ProgressManager.java:71)
    at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$5(ProgressRunner.java:251)
    at com.intellij.openapi.progress.impl.ProgressRunner.lambda$launchTask$18(ProgressRunner.java:465)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)
    at java.base/java.lang.Thread.run(Thread.java:833)
2023-09-21 16:38:35,059 [ 603079]   WARN - #c.i.u.x.Binding - no accessors for com.intellij.feedback.common.state.DontShowAgainFeedbackState
2023-09-21 16:38:35,083 [ 603103]   INFO - #c.i.i.s.p.i.SharedIndexMainZipStorage - Shared Indexes Storage is opened: 7 chunk(s), 601,22 MB, chunks: [jdk-1.8.0_382-corretto-1.8.0_382-876e07a7b2c5-d4d04a9a, jdk-19.0.2-corretto-19.0.2-32e953c5362a-97bb8129, jdk-19.0.2-corretto-19.0.2-876e07a7b2c5-06b08a03, jdk-20.0.1-openjdk-20.0.1-32e953c5362a-704977de, jdk-20.0.2-openjdk-20.0.2-876e07a7b2c5-899314b2, mvn-org_springframework_boot_spring_boot_3_0_9-57666d67333b-7f28efb3, mvn-org_springframework_boot_spring_boot_3_0_9-914ff018aff7-92714f62]
2023-09-21 16:39:00,707 [ 628727]   INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities to files
2023-09-21 16:39:07,031 [ 635051]   INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities to files
 

0

Hello, Shahriyar Aghajani. Unfortunately, the log you shared isn't informative; it would be helpful if you could share the whole IDE log (Help | Collect Logs and Diagnostic Data) via the JetBrains Uploads service and write here the ID you receive.

0

Hello Ms. Olga Mulina ,
It's happened again, and it's not fixed by changing the file name.
here is uploaded log file id:

Upload id: 2023_09_25_keKsW4gix2h3cahwK2Bxp4 (file: idea-logs-20230925-15500812683318326928441228.zip)

Best regards,
Shahriyar Aghajani

0

Shahriyar Aghajani, thank you for sharing the IDE logs. 

The problem you met looks similar to this issue in our YouTrack. Could you please check if adding the  -Djdk.tls.client.protocols="TLSv1,TLSv1.1,TLSv1.2"  line to the  Help | Edit Custom VM Options   and restarting the IDE helps?

0

请先登录再写评论。