cooperspencer / gickup

https://cooperspencer.github.io/gickup-documentation/
Apache License 2.0
964 stars 34 forks source link

panic: x509: decryption password incorrect #71

Closed nachtschatt3n closed 1 year ago

nachtschatt3n commented 2 years ago

Hi there, thank you for the great tool!

I tried to backup my bitbucket to my local machine and have a very simple config like this:

source: bitbucket: - user: myorg username: my@user.de ssh: true sshkey: /Users/myuser/.ssh/id_rsa

But I get a "panic: x509: decryption password incorrect". There are no passwords :) My user is also managed by google therefore I do not have an extra user with bitbucket it's my google user.

Any Idea what I'm doing wrong?

cooperspencer commented 2 years ago

Hi, thanks, glad you like it 😄 You can create an app password for gickup. It's located in Access Management in Personal Setting.

nachtschatt3n commented 2 years ago

I did and now its: 2021-12-28 12:53:32 FTL 401 Unauthorized stage=bitbucket url=https://api.bitbucket.org/2.0

I have now user with the org, username with my user name, and password with the app password.

cooperspencer commented 2 years ago

I just created an organization on bitbucket to test it. I created my app password with the following options: image

it works fine for me. With which options did you create your password?

nachtschatt3n commented 2 years ago

Well... I gave it all the rights. But I just recreated the app password with just projects and repo read.

` FTL 401 Unauthorized stage=bitbucket url=https://api.bitbucket.org/2.0

I now removed all the settings therefore I only have the user, username, password, and the destination section. I'm certainly missing something here. The project read seems to work cos the line before the 401 is:

`2021-12-28 13:15:18 INF grabbing repositories from ibdigital stage=bitbucket url=https://api.bitbucket.org/2.0

cooperspencer commented 2 years ago

can you share the whole output with me? If you feel uneasy posting it here, you can also send it to me per mail.

nachtschatt3n commented 2 years ago

well I guess there are no real secrets in there. I did a little video https://www.youtube.com/watch?v=a0m8FJ9ZKLg

and yes I revoked all the passwords

cooperspencer commented 2 years ago

can you try mathias_uhl as username?

nachtschatt3n commented 2 years ago

incredible! Thank you that did the trick.

cooperspencer commented 2 years ago

Thanks for upload such a high quality video 😄 So I could read the your username