PyCharm "Can't get remote credentials for deployment server"
Asked Answered
U

8

33

After config remote interpreter and deployment I got the following error when PyCharm trying to install libs from requirements.txt

Can't get remote credentials for deployment server

Unquestioning answered 1/3, 2019 at 10:39 Comment(7)
OS used? If Linux/Mac (especially Linux), it must be trying to use your Keychain to store and access login info .. and it fails (that's the first thing that comes into my mind from your description). On Linux it could be because of missing support library for your Keychain. Try changing password storage to KeePass, it works good on all platforms.Cyme
deployment to linux from windowsUnquestioning
So you are on Windows (the OS where IDE is running). Is that the latest IDE version (2018.3.x)? Please check idea.log for possible exceptions/hints (Help | Show Log in Explorer), anything interesting there? (share the file if you can)Cyme
yes 2018.3.2 Build #PY-183.4886.43Unquestioning
gist.github.com/ra-coder/238da0d7201af0e47193417ead611908Unquestioning
So .. from the log .. it happens when "Performing background update of skeletons for SDK Remote Python 3.6.7". I'm not a PyCharm or Python user .. but that interpreter .. is that IDE-wide entry (available for every project) or a project-specific one? I'm referring to this dev comment: youtrack.jetbrains.com/issue/…. Other than that -- please check and comment in one of these tickets: youtrack.jetbrains.com/issues/…Cyme
None of this, including not even redefining and restarting the project from scratch works for me on OS-X . . . So much for OS managing all your keychain in the background.Annettannetta
U
0

it happen to be wrong configuration of remote interpretor, i configured it once again and all works

Unquestioning answered 1/3, 2019 at 10:56 Comment(2)
Next time, could please tell us, what was the solution?Khanate
Ryabchenko Alexander Can you please post the solution that worked for you?Mauriciomaurie
G
39

I had the same problem. I configured first a deployment server and then the remote interpreter using the same deployment server config. I was asked if I want to either create a copy or move the configuration from the project level to the IDE level. I moved it.

The problem is that the credentials for the server are only available on the project level. To solve it I had to:

  • go back to the Deployment Configuration
  • click on these "..." till I reached the "SSH Configurations"
  • Unchecked the "Visible only for this project" checkbox

enter image description here

Googolplex answered 23/2, 2021 at 8:11 Comment(4)
This is somewhat strange, but it worked for me to remove the "Visible only for this project" flag on the Deployment configuration (!)Ocher
Same for me. However, unchecked both. But thanks for the hint. Maybe if I had read every page of the documentation, with a bit of luck I could have known itCitified
the mouse in the image trolled me before the morning coffee!Resht
Thanks. confirm this method fixed my issue.Sippet
P
12

I'm using SSH to achieve my Interpreter and encountered sameerror. I tried solutions above, but all in vain.

My solution is, make sure you choose the SSH when you configure your Interpreter. (When I choose Deployment configuration as default, error comes)enter image description here

Then, configure your deployment in the Tools. enter image description here

Another solution is remove your current Python Interpreter and setup a new one. This also works for me.

Pyriphlegethon answered 8/4, 2021 at 4:43 Comment(2)
This was the only solution I could get to reliably work, thanks!Black
This is the only solution that works for me too, but tired of resetting everytime this happens. Does anyone know reason for this?Housebreaking
F
3

For me, remove the debug configuration and create a new one worked

Fortenberry answered 5/3, 2021 at 15:43 Comment(0)
L
3

I encountered this issue 2 ways:

  • the SSH configuration was configured correctly, but the python interpreter was using the wrong interpreter (that was deleted previously).
    • Solution: go to the interpreter settings and re-select your "deployment configuration". PyCharm's "Configure Remote Python Interpreter" window
  • The SSH configuration was scoped to the project. Remote Interpreters cannot use deployments which in turn use project-specific configuration (Visible only for this project is checked). SSH configuration must be saved in the IDE settings, so you should uncheck this option. This is the same as chickahoona's answer.
Leak answered 15/2, 2022 at 15:30 Comment(0)
D
1

In my situation, I deleted my project and created and configured it again. My configuration is related to an ssh interpreter and a remote deployment. So even if I have configurated as right, this error appears.

So, the solution was not only to configure it right but to remove the old remote interpreter as well.

Dodecanese answered 14/7, 2022 at 11:54 Comment(0)
H
1

I encountered the same issue. What I did was reconfigure the interpreter using ssh again. Everything worked then.

Hayes answered 22/10, 2022 at 14:56 Comment(1)
As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.Smoking
U
0

it happen to be wrong configuration of remote interpretor, i configured it once again and all works

Unquestioning answered 1/3, 2019 at 10:56 Comment(2)
Next time, could please tell us, what was the solution?Khanate
Ryabchenko Alexander Can you please post the solution that worked for you?Mauriciomaurie
M
0

In my situation, I configured many interpreters in Pycharm for various projects. I tried all the probable solutions (listed in this post) but was unsuccessful, so I Deleted all the interpreters and restarted Pycharm. Then I reconfigured the remote interpreter, and it now work fine.

Metal answered 25/5, 2022 at 3:17 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.