Open nstr10 opened 7 years ago
Have you tried initializing the database with db_up.py
?
https://github.com/dropbox/securitybot/blob/master/util/db_up.py
That seems to have done the trick. Might be a good idea to include that in the instructions along with more detailed information on where exactly user, password, and DB location information should be placed. I added them to both db_up.py and sql.py's init_sql
function.
Great! Thanks for the suggestion - this is definitely something that should be in our README. I'll create a PR for this when I have a few spare cycles
I've followed the setup instructions in a fresh virtualenv and tried to run main.py It connects to the Slack API successfully, creates securitybot, loads configuration, and starts the RTM session. Then it issues a couple hundred warnings "Recovering from lost MySQL connection" and crashes. Here is a truncated traceback:
Those last two lines repeat a couple hundred times and then
While the user defined on line 93 of sql.py (why is this setting buried?) has full rights to the database, no tables are created.