winfried / HelpIM

*obsoleted* An chat-system for online psycho-social counselling
11 stars 3 forks source link

Exception in bot: _mysql_exceptions.OperationalError: (2002, "Can't connect ..... #252

Open winfried opened 11 years ago

winfried commented 11 years ago

Seems the bot can't stand it when MySQL is gone.

Traceback (most recent call last): File "/usr/local/bin/django-admin.py", line 5, in management.execute_from_command_line() File "/usr/local/lib/python2.6/dist-packages/django/core/management/init.py", line 429, in execute_from_command_line utility.execute() File "/usr/local/lib/python2.6/dist-packages/django/core/management/init.py", line 379, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/local/lib/python2.6/dist-packages/django/core/management/base.py", line 191, in run_from_argv self.execute(_args, _options.dict) File "/usr/local/lib/python2.6/dist-packages/django/core/management/base.py", line 220, in execute output = self.handle(_args, _options) File "/usr/local/lib/python2.6/dist-packages/helpim/rooms/management/commands/runbot.py", line 92, in handle bot.run() File "/usr/local/lib/python2.6/dist-packages/helpim/rooms/bot.py", line 1064, in run self.roomCleanup() File "/usr/local/lib/python2.6/dist-packages/helpim/rooms/bot.py", line 990, in roomCleanup for room in site.rooms.getToDestroy(): File "/usr/local/lib/python2.6/dist-packages/helpim/rooms/models.py", line 37, in getToDestroy return self.getByStatus("toDestroy") File "/usr/local/lib/python2.6/dist-packages/helpim/rooms/models.py", line 61, in getByStatus return list(self.filter(status=status)) File "/usr/local/lib/python2.6/dist-packages/django/db/models/query.py", line 84, in len self._result_cache.extend(self._iter) File "/usr/local/lib/python2.6/dist-packages/django/db/models/query.py", line 273, in iterator for row in compiler.results_iter(): File "/usr/local/lib/python2.6/dist-packages/django/db/models/sql/compiler.py", line 680, in results_iter for rows in self.execute_sql(MULTI): File "/usr/local/lib/python2.6/dist-packages/django/db/models/sql/compiler.py", line 734, in execute_sql cursor = self.connection.cursor() File "/usr/local/lib/python2.6/dist-packages/django/db/backends/init.py", line 252, in cursor cursor = util.CursorWrapper(self._cursor(), self) File "/usr/local/lib/python2.6/dist-packages/django/db/backends/mysql/base.py", line 322, in _cursor self.connection = Database.connect(*kwargs) File "/usr/lib/pymodules/python2.6/MySQLdb/init.py", line 81, in Connect return Connection(_args, _kwargs) File "/usr/lib/pymodules/python2.6/MySQLdb/connections.py", line 170, in init super(Connection, self).init(_args, *_kwargs2) _mysql_exceptions.OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)")