Skip to content
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

Stuck during init process #34

Open
bonndan opened this issue Jan 9, 2023 · 6 comments
Open

Stuck during init process #34

bonndan opened this issue Jan 9, 2023 · 6 comments

Comments

@bonndan
Copy link

bonndan commented Jan 9, 2023

Hi,

I have issues setting up braumeister at a customer. After having entered my username the process is stuck. Not even Ctrl-C helps.

image

The Jira instance is on-prem and my username is shown as "Pozzi" when being logged in, or "pozzi" in the login form. I'm using Python 3.11.1 from Git Bash on Windows. Any chance to see debug ouput?

@Rotzlucky
Copy link
Collaborator

There is a verbose option. But it's only in affect after the initialisation.

You could set up the .braumeister config with any editor, if that helps!


[general]
verbose = false

[git]
main_branch_name = main

[jira]
url = https://your-domain.atlassian.net
username = my-user
password = my-api-token
destination_transition = Merged
branch_custom_field_id = customfield_5711

@bonndan
Copy link
Author

bonndan commented Jan 10, 2023

Yes, that helps. We will perhaps use braumeister with several repos and would have repeat the above procedure. If you're interested in debugging the problem, tell us how and we'll provide feedback.

Thanks!

@Rotzlucky
Copy link
Collaborator

The code gets stuck in here
https://github.com/talentsconnect/braumeister/blob/master/Braumeister/setup.py

Going from your screenshot you reached line 98 but not 103.

Braumeister is just collecting at that moment!
Writing to disk will happen later from line 135ff. So it should not be a problem with file permissions.

I would probably just play around with some print statements to try to debug that. Feel free to fork and try it yourself.

@Rotzlucky
Copy link
Collaborator

Another thought:

The next question that is failing for you is in regards to password.
So it's the only question that calls the ask_required method with a value of True for the secure parameter in order to obfuscate the entered password.
Maybe the lib getpass we are using there behaves differently on Git Bash

@bonndan
Copy link
Author

bonndan commented Jan 10, 2023

I have tried braumeister in PowerShell and it worked flawlessly. Seems indeed to be a problem with Git Bash. Other than running braumeister as installed with pip exceeds my time and knowledge, so I won't fork it. If there is a way to run a python program with debug output, let me know.

@Rotzlucky
Copy link
Collaborator

Ok, thanks for confirming! When I have any more input I let you know!
Will leave the issue open. Maybe we will get an opportunity to reproduce it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants