-
Notifications
You must be signed in to change notification settings - Fork 366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PyPI deployments not working when "special" chars in password #377
Comments
This is basically the same issue as one that's explained in https://docs.travis-ci.com/user/encryption-keys#Note-on-escaping-certain-symbols. Perhaps it needs to be placed elsewhere? |
What I find especially problematic is that this problem also occurs when using the |
I am not sure if CLI can reliably determine the user really wants the literal Perhaps CLI can add warnings about escaping characters, but that's as far as it can go. |
I'm having this same issue. Originally I had an equal sign in my PyPI password, but I changed it to just letters and numbers and also updated and regenerated the encrypted password in the .travis.yml file, but I'm still getting this same error:
Anyone have any ideas of what else this could be? Could it be a general password error or something? |
Running into this error as well: https://travis-ci.org/danriti/python-traceview/jobs/103205722#L528 The strange thing is that this works when I deploy to the "test" pypi server (https://testpypi.python.org/pypi): https://travis-ci.org/danriti/python-traceview/jobs/103205213#L514 But for some reason I can't get this to work against production PyPI 😢 |
I was hitting this issue and was skeptical that removing the Please prioritize this fix! |
We just lost a number of hours to this problem as well. I reject the idea that it's the same problem mentioned here: https://docs.travis-ci.com/user/encryption-keys#Note-on-escaping-certain-symbols That note is about the need to escape characters if you use them in a shell command line. In our case, we were typing the characters into stdin, where there is no need to escape. |
Believe it or not, Travis cannot encrypt special characters: travis-ci/dpl#377
I just ran into this issue as well (my password contained a |
Running into this issue on Travis CI. Is the general consensus that we can only have alphanumeric characters in passwords used to deploy to PyPI? That feels a lot less safe IMHO, but maybe we could have the documentation say that at least. |
This referes to travis-ci/dpl#377 basically
@danriti I have the exact same problem of your, but i use SemaphoreCi instead of Travis (run well on testpypi but fail on pypi). |
As a side note to @danriti : |
@rayluo no problem, glad it was helpful 👍 |
…rds and 401s that are happening when attempting to deploy there, per travis-ci/dpl#377. I’ve updated the underlying password to PyPi to exclude special chars. Let’s see if this works…
After many hours of frustration, I found that I need to specify |
I have encountred this issue too, it was working fine for a long time for many of my repos, but now I tried for a new repo and it simply refuses to work.. |
@esc Do make sure that the secrets are not copied and pasted. Each repository has its own encryption key, so that you'd need to encrypt your secret(s) anew for a new repository. |
@BanzaiMan yes, I used |
@esc Are you saying that you escaped the special characters correctly and are still getting incorrect results? |
I don't have any special characters in my password, only lowercase, uppercase and numbers. |
@BanzaiMan ok, re-encrypting now. |
I am using the command:
@BanzaiMan this is correct, right? |
I re-encrypted and the problem seems to persist. |
Travis command-line client version |
Seems like either the encryption or the decryption or both isn't working correctly. |
@BanzaiMan also, what do you mean by: "is incorrect"? |
Could you try invoking the command without the password, but supply it in STDIN? After the password, hit return, and ctl-D. $ travis encrypt -r TwentyBN/twentybn-dl
Reading from stdin, press Ctrl+D when done
foobarbaz
^D
Please add the following to your .travis.yml file:
secure: "QzWN…" "Incorrect" means the value cannot be decrypted using the repository's private key. |
pushed. |
@BanzaiMan I tried, but to no avail, seems like the |
@esc. That may indeed be the case. I reckon it may be pulling the public key from .com still. Try adding |
ok, decryption works now, however I still get:
|
I guess the 401 is solved though, so I'll keep banging my head to solve this next hurdle. |
Using:
Solved this problem too. @BanzaiMan thanks so much for your help!! |
So yes, the
|
Thanks for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please do feel free to either reopen this issue or open a new one. We'll gladly take a look again! You can read more here: https://blog.travis-ci.com/2018-03-09-closing-old-issues |
My password contained a
and also
as suggested on the encryption docs. I had success using an alphanumeric password. Am I missing something here? |
Not sure I got the password encryption correctly though: travis-ci/dpl#377 And apparently we will need to re-encrypt once we make the repo public: travis-ci/dpl#377 (comment)
Not sure I got the password encryption correctly though: travis-ci/dpl#377 And apparently we will need to re-encrypt once we make the repo public: travis-ci/dpl#377 (comment)
This referes to travis-ci/dpl#377 basically
This referes to travis-ci/dpl#377 basically
It seems that some characters (I observed at least
$
to cause this) in the PyPI password seem to break things, preventing deployments from working.The error message when using such a password:
Plaintext or encrypted made no difference.
The text was updated successfully, but these errors were encountered: