-
Notifications
You must be signed in to change notification settings - Fork 41
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
[URGENT] fixes empty data loading #226
Conversation
Signed-off-by: rachejazz <mail@rachejazz.me>
Hey @rachejazz, I am still unable to get packages on searching for them. I see the landing page and can view FAQs. However, when I try to search for a package after selecting an operating system, I see no updates. I am on the |
interesting, lmk if you can come on a debug session. What does the sdt.log say? |
Yes, let's have a debug session tomorrow please. This is from sdt.log:
|
Issue is solved now. Thanks @deveshidwivedi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to learn a bit more about what was discovered during debugging related to the .json file extensions, since we're not seeing this problem in production, and we transitioned away from referencing them in the configuration file. That will help me review that component of the PR.
But there seems to be a bit of confusion about our database users. I'll put together a visual for our meeting on Wednesday so that's more clear and then we can updated the documentation accordingly, but in the meantime:
-
database_build.py needs to be run with a MySQL/MariaDB user with at least the full privileges within the sdtDB databases since it's dropping and creating tables therein. We don't create this user during setup and just assume they are using something like the root user (that's what we do in production). The user that runs this script needs to have these credentials secured off-system in some sort of password management tool, and then inputs them manually when it needs to be run.
-
The tool itself when it's reading the database uses the sdtreaduser from the .env file that only has read permissions, so keeping the password in clear text on the file system isn't a data security risk.
Signed-off-by: rachejazz <mail@rachejazz.me>
Signed-off-by: rachejazz <mail@rachejazz.me>
Signed-off-by: rachejazz <mail@rachejazz.me>
Got a new bug from the newest 15.6 opensuse data. Solved now. This PR is ready to be merged/reviewed. |
Signed-off-by: rachejazz <mail@rachejazz.me>
Can you confirm that bin/database_build.py is working for you in the current state? I'm a traceback (below) that are sends me down a whole rabbit hole. It looks like the changes around line 30 seemed to have changed how the user adds the username and password on the command line, and causes problems. elizabeth@sdt:/opt/software-discovery-tool/bin$ ./database_build.py |
Hey @pleia2 couple of questions. Firstly, yeah this is working for me even after changing localhost to a remote db (I'm using docker and mariadb so different networks)
|
It really just totally falls over (traceback) after I type "root" when the expected behavior is asking for a password. I'm using Ubuntu 24.04. |
Signed-off-by: Divya Goswami <divyadeepti2000@gmail.com>
Signed-off-by: Divya Goswami <divyadeepti2000@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works now! Thank you.
commits that caused the issues:
#207
063e460
and few more cumulative bugs
@Apurv428 @deveshidwivedi till this gets merged into master, you can use this branch to switch and check if data updates for you