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

Allow other Exceptions to bubble up a stack trace instead of silently failing in create_user.py #576

Merged
merged 1 commit into from
Jun 8, 2022

Conversation

daxxog
Copy link
Contributor

@daxxog daxxog commented Feb 10, 2022

I came across an issue where the wazuh/wazuh-odfe:4.2.5 container would fail with the ambiguous error message:

ERROR:root:No module 'wazuh' found.
There was an error configuring the API user

Patching the create_user.py file to not have a blanket catch all exceptions allowed me to find out the real error was (likely file permissions issue):

sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) unable to open database file

@vcerenu vcerenu self-assigned this Apr 29, 2022
@alberpilot
Copy link
Contributor

hello @daxxog

Sorry for the late response. Unfortunately, the master/stable/4.3 branches had a structure change, so this PR has conflicts.
Could you please rebase or re-do the PR starting from the current branches?

Thanks a lot and sorry for the inconvenience.

@daxxog daxxog reopened this Jun 8, 2022
@daxxog
Copy link
Contributor Author

daxxog commented Jun 8, 2022

@alberpilot I have rebased my pull request against current master branch.

Copy link
Contributor

@alberpilot alberpilot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alberpilot alberpilot merged commit f5afd6b into wazuh:master Jun 8, 2022
@alberpilot
Copy link
Contributor

@daxxog thanks a lot for your contribution. I will cherry-pick your commit to other branches.

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

Successfully merging this pull request may close these issues.

None yet

3 participants