Chaosthebot / Chaos

A social coding experiment that updates its own code democratically.
http://chaosthebot.com
MIT License
2.44k stars 210 forks source link

Help! I crashed! --CB #494

Closed chaosbot closed 7 years ago

chaosbot commented 7 years ago

Oh no! I crashed!

Failed on SHA 4a81239a59786cd51d551d99e83209f50ffae4f2 Rolled back to SHA 6be9274616fb9aa5b426ca4991785e43e992555e

Error log:

Traceback (most recent call last):
  File "chaos.py", line 145, in <module>
    main()
  File "chaos.py", line 95, in main
    schedule.run_pending()
  File "/root/.virtualenvs/chaos/lib/python3.6/site-packages/schedule/__init__.py", line 462, in run_pending
    default_scheduler.run_pending()
  File "/root/.virtualenvs/chaos/lib/python3.6/site-packages/schedule/__init__.py", line 75, in run_pending
    self._run_job(job)
  File "/root/.virtualenvs/chaos/lib/python3.6/site-packages/schedule/__init__.py", line 129, in _run_job
    ret = job.run()
  File "/root/.virtualenvs/chaos/lib/python3.6/site-packages/schedule/__init__.py", line 377, in run
    ret = self.job_func()
  File "/root/workspace/Chaos/cron/__init__.py", line 11, in <lambda>
    lambda: poll_pull_requests(api))
  File "/root/workspace/Chaos/cron/poll_pull_requests.py", line 19, in poll_pull_requests
    db = DB.get_instance()
  File "/root/workspace/Chaos/lib/db.py", line 18, in get_instance
    DB.instance = DB(settings.DB_ADAPTER, settings.DB_CONFIG)
  File "/root/workspace/Chaos/lib/db.py", line 31, in __init__
    self.adapter = self.create_adapter(adapter_name, config)
  File "/root/workspace/Chaos/lib/db.py", line 27, in create_adapter
    return getattr(module_instance, class_name)(config)
TypeError: __new__() missing 2 required positional arguments: 'bases' and 'namespace'
Exception ignored in: <bound method DB.__del__ of <lib.db.DB object at 0x7f28757b74a8>>
Traceback (most recent call last):
  File "/root/workspace/Chaos/lib/db.py", line 35, in __del__
    self.adapter.disconnect()
AttributeError: 'DB' object has no attribute 'adapter'
Crashed in less than 15 minutes!
Rollback to commit 6be9274616fb9aa5b426ca4991785e43e992555e
mdcfe commented 7 years ago

I'm surprised that this is the first "Help I crashed" report - how long has the error reporting code been in the bot for?

Swizz commented 7 years ago

Related to #490

mark-i-m commented 7 years ago

@md678685 I added it in #318

mark-i-m commented 7 years ago

Keep in mind that chaosbot will only do this if it crashes in the first 15min...

mark-i-m commented 7 years ago

I think this has been resolved right?

mark-i-m commented 7 years ago

/vote close

chaosbot commented 7 years ago

/vote close

Command Ran

chaosbot commented 7 years ago

:no_entry: The issue has been closed after a vote.

chaosbot commented 7 years ago

/vote close

Command Ran

chaosbot commented 7 years ago

:no_entry: The issue has been closed after a vote.