winfried / HelpIM

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

During the install, can't create table 'helpim.#sql-127f_26' #141

Closed ludovic-gasc closed 12 years ago

ludovic-gasc commented 12 years ago

I've followed your setup documentation, with a git clone. I've no error messages at each step, until "./bin/manage.py migrate". I use Arch Linux with python 2.7.2 and MySQL 5.5.20.

This is the backtrace, it's a bug in your migration script or a problem in my setup ?

I've found this piece of information: http://mysqlperformanceandtips.blogspot.com/2009/03/mysql-error-cant-create-table-errno-121.html But I've no idea to fix the problem.

Thanks for your help.

Regards,

PS: Thanks a lot for your presentation at FOSDEM, it was very interesting for me.

$ ./bin/manage.py migrate
Running migrations for conversations:
 - Migrating forwards to 0009_auto__chg_field_participant_user__del_unique_participant_user.
 > conversations:0001_initial
 > conversations:0002_auto__add_field_participant_role
 > conversations:0003_auto__del_messagecomment
 > conversations:0004_auto__add_field_chatmessage_event
 > conversations:0005_auto__del_field_chat_room
 > conversations:0006_auto__add_field_participant_ip_hash__add_field_participant_blocked
 > conversations:0007_auto__add_field_participant_blocked_at
 > conversations:0008_auto__add_field_participant_user
 > conversations:0009_auto__chg_field_participant_user__del_unique_participant_user
 - Loading initial data for conversations.
No fixtures found.
Running migrations for common:
 - Migrating forwards to 0004_auto__add_eventlog.
 > common:0001_initial
 > common:0002_auto__add_field_additionaluserinformation_chat_nick
 > common:0003_auto__chg_field_additionaluserinformation_branch_office
 ! Error found during real run of migration! Aborting.

 ! Since you have a database that does not support running
 ! schema-altering statements in transactions, we have had 
 ! to leave it in an interim state between migrations.

! You *might* be able to recover with:
 ! The South developers regret this has happened, and would
 ! like to gently persuade you to consider a slightly
 ! easier-to-deal-with DBMS.
 ! NOTE: The error which caused the migration to fail is further up.
Traceback (most recent call last):
  File "./bin/manage.py", line 27, in 
    djangorecipe.manage.main('helpim.development')
  File "/home/lg/documents/git/HelpIM/eggs/djangorecipe-0.23.1-py2.7.egg/djangorecipe/manage.py", line 16, in main
    management.execute_manager(mod)
  File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 438, in execute_manager
    utility.execute()
  File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 379, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib/python2.7/site-packages/django/core/management/base.py", line 191, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/lib/python2.7/site-packages/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "/usr/lib/python2.7/site-packages/south/management/commands/migrate.py", line 105, in handle
    ignore_ghosts = ignore_ghosts,
  File "/usr/lib/python2.7/site-packages/south/migration/__init__.py", line 191, in migrate_app
    success = migrator.migrate_many(target, workplan, database)
  File "/usr/lib/python2.7/site-packages/south/migration/migrators.py", line 221, in migrate_many
    result = migrator.__class__.migrate_many(migrator, target, migrations, database)
  File "/usr/lib/python2.7/site-packages/south/migration/migrators.py", line 292, in migrate_many
    result = self.migrate(migration, database)
  File "/usr/lib/python2.7/site-packages/south/migration/migrators.py", line 125, in migrate
    result = self.run(migration)
  File "/usr/lib/python2.7/site-packages/south/migration/migrators.py", line 99, in run
    return self.run_migration(migration)
  File "/usr/lib/python2.7/site-packages/south/migration/migrators.py", line 81, in run_migration
    migration_function()
  File "/usr/lib/python2.7/site-packages/south/migration/migrators.py", line 57, in 
    return (lambda: direction(orm))
  File "/home/lg/documents/git/HelpIM/helpim/common/migrations/0003_auto__chg_field_additionaluserinformation_branch_office.py", line 12, in forwards
    db.alter_column('common_additionaluserinformation', 'branch_office_id', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['common.BranchOffice'], null=True))
  File "/usr/lib/python2.7/site-packages/south/db/generic.py", line 397, in alter_column
    field.rel.to._meta.get_field(field.rel.field_name).column
  File "/usr/lib/python2.7/site-packages/south/db/generic.py", line 150, in execute
    cursor.execute(sql, params)
  File "/usr/lib/python2.7/site-packages/django/db/backends/util.py", line 34, in execute
    return self.cursor.execute(sql, params)
  File "/usr/lib/python2.7/site-packages/django/db/backends/mysql/base.py", line 86, in execute
    return self.cursor.execute(query, args)
  File "/usr/lib/python2.7/site-packages/MySQLdb/cursors.py", line 174, in execute
    self.errorhandler(self, exc, value)
  File "/usr/lib/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
    raise errorclass, errorvalue
_mysql_exceptions.OperationalError: (1005, "Can't create table 'helpim.#sql-127f_26' (errno: 121)")
sstrigler commented 12 years ago

Have you tried running migrate again? This usually skips the error.

Am 06.02.2012 um 15:01 schrieb Ludovic Gasc reply@reply.github.com:

I've followed your setup documentation, with a git clone. I've no error messages at each step, until "./bin/manage.py migrate". I use Arch Linux with python 2.7.2 and MySQL 5.5.20.

This is the backtrace, it's a bug in your migration script or a problem in my setup ?

I've found this piece of information: http://mysqlperformanceandtips.blogspot.com/2009/03/mysql-error-cant-create-table-errno-121.html But I've no idea to fix the problem.

Thanks for your help.

Regards,

PS: Thanks a lot for your presentation at FOSDEM, it was very interesting for me.

$ ./bin/manage.py migrate
Running migrations for conversations:
- Migrating forwards to 0009_auto__chg_field_participant_user__del_unique_participant_user.
> conversations:0001_initial
> conversations:0002_auto__add_field_participant_role
> conversations:0003_auto__del_messagecomment
> conversations:0004_auto__add_field_chatmessage_event
> conversations:0005_auto__del_field_chat_room
> conversations:0006_auto__add_field_participant_ip_hash__add_field_participant_blocked
> conversations:0007_auto__add_field_participant_blocked_at
> conversations:0008_auto__add_field_participant_user
> conversations:0009_auto__chg_field_participant_user__del_unique_participant_user
- Loading initial data for conversations.
No fixtures found.
Running migrations for common:
- Migrating forwards to 0004_auto__add_eventlog.
> common:0001_initial
> common:0002_auto__add_field_additionaluserinformation_chat_nick
> common:0003_auto__chg_field_additionaluserinformation_branch_office
! Error found during real run of migration! Aborting.

! Since you have a database that does not support running
! schema-altering statements in transactions, we have had 
! to leave it in an interim state between migrations.

! You *might* be able to recover with:
! The South developers regret this has happened, and would
! like to gently persuade you to consider a slightly
! easier-to-deal-with DBMS.
! NOTE: The error which caused the migration to fail is further up.
Traceback (most recent call last):
 File "./bin/manage.py", line 27, in 
   djangorecipe.manage.main('helpim.development')
 File "/home/lg/documents/git/HelpIM/eggs/djangorecipe-0.23.1-py2.7.egg/djangorecipe/manage.py", line 16, in main
   management.execute_manager(mod)
 File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 438, in execute_manager
   utility.execute()
 File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 379, in execute
   self.fetch_command(subcommand).run_from_argv(self.argv)
 File "/usr/lib/python2.7/site-packages/django/core/management/base.py", line 191, in run_from_argv
   self.execute(*args, **options.__dict__)
 File "/usr/lib/python2.7/site-packages/django/core/management/base.py", line 220, in execute
   output = self.handle(*args, **options)
 File "/usr/lib/python2.7/site-packages/south/management/commands/migrate.py", line 105, in handle
   ignore_ghosts = ignore_ghosts,
 File "/usr/lib/python2.7/site-packages/south/migration/__init__.py", line 191, in migrate_app
   success = migrator.migrate_many(target, workplan, database)
 File "/usr/lib/python2.7/site-packages/south/migration/migrators.py", line 221, in migrate_many
   result = migrator.__class__.migrate_many(migrator, target, migrations, database)
 File "/usr/lib/python2.7/site-packages/south/migration/migrators.py", line 292, in migrate_many
   result = self.migrate(migration, database)
 File "/usr/lib/python2.7/site-packages/south/migration/migrators.py", line 125, in migrate
   result = self.run(migration)
 File "/usr/lib/python2.7/site-packages/south/migration/migrators.py", line 99, in run
   return self.run_migration(migration)
 File "/usr/lib/python2.7/site-packages/south/migration/migrators.py", line 81, in run_migration
   migration_function()
 File "/usr/lib/python2.7/site-packages/south/migration/migrators.py", line 57, in 
   return (lambda: direction(orm))
 File "/home/lg/documents/git/HelpIM/helpim/common/migrations/0003_auto__chg_field_additionaluserinformation_branch_office.py", line 12, in forwards
   db.alter_column('common_additionaluserinformation', 'branch_office_id', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['common.BranchOffice'], null=True))
 File "/usr/lib/python2.7/site-packages/south/db/generic.py", line 397, in alter_column
   field.rel.to._meta.get_field(field.rel.field_name).column
 File "/usr/lib/python2.7/site-packages/south/db/generic.py", line 150, in execute
   cursor.execute(sql, params)
 File "/usr/lib/python2.7/site-packages/django/db/backends/util.py", line 34, in execute
   return self.cursor.execute(sql, params)
 File "/usr/lib/python2.7/site-packages/django/db/backends/mysql/base.py", line 86, in execute
   return self.cursor.execute(query, args)
 File "/usr/lib/python2.7/site-packages/MySQLdb/cursors.py", line 174, in execute
   self.errorhandler(self, exc, value)
 File "/usr/lib/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
   raise errorclass, errorvalue
_mysql_exceptions.OperationalError: (1005, "Can't create table 'helpim.#sql-127f_26' (errno: 121)")

Reply to this email directly or view it on GitHub: https://github.com/e-hulp/HelpIM/issues/141

ludovic-gasc commented 12 years ago

I've tried several times, I've the same error. I've also tested v3.1.1.zip, I've a problem during the step ./bin/manage.py syncdb

Can you give me a SQL file with the db structure to test your piece of software ?

winfried commented 12 years ago

On 02/06/2012 03:01 PM, Ludovic Gasc wrote:

Hi Ludovic,

Great you are experimenting with HelpIM.

In addition to the mail from Steve, are you using MyIsam or Innodb tables? We have had some issues with Innodb and are at the moment only testing with MyIsam.

If that is the problem, you might try to use an 'alter table' statement to switch to MyIsam (see also: https://docs.djangoproject.com/en/dev/faq/models/#how-do-i-add-database-specific-options-to-my-create-table-statements-such-as-specifying-myisam-as-the-table-type ).

Please let us know what helped: we are working on an update of the readme, and this must be included in that too.

When needed I can give you a MySQL dump of a working installation.

best whishes,

Winfried Tilanus

I've followed your setup documentation, with a git clone. I've no error messages at each step, until "./bin/manage.py migrate". I use Arch Linux with python 2.7.2 and MySQL 5.5.20.

This is the backtrace, it's a bug in your migration script or a problem in my setup ?

I've found this piece of information: http://mysqlperformanceandtips.blogspot.com/2009/03/mysql-error-cant-create-table-errno-121.html But I've no idea to fix the problem.

Thanks for your help.

Regards,

PS: Thanks a lot for your presentation at FOSDEM, it was very interesting for me.

$ ./bin/manage.py migrate
Running migrations for conversations:
 - Migrating forwards to 0009_auto__chg_field_participant_user__del_unique_participant_user.
 > conversations:0001_initial
 > conversations:0002_auto__add_field_participant_role
 > conversations:0003_auto__del_messagecomment
 > conversations:0004_auto__add_field_chatmessage_event
 > conversations:0005_auto__del_field_chat_room
 > conversations:0006_auto__add_field_participant_ip_hash__add_field_participant_blocked
 > conversations:0007_auto__add_field_participant_blocked_at
 > conversations:0008_auto__add_field_participant_user
 > conversations:0009_auto__chg_field_participant_user__del_unique_participant_user
 - Loading initial data for conversations.
No fixtures found.
Running migrations for common:
 - Migrating forwards to 0004_auto__add_eventlog.
 > common:0001_initial
 > common:0002_auto__add_field_additionaluserinformation_chat_nick
 > common:0003_auto__chg_field_additionaluserinformation_branch_office
 ! Error found during real run of migration! Aborting.

 ! Since you have a database that does not support running
 ! schema-altering statements in transactions, we have had 
 ! to leave it in an interim state between migrations.

! You *might* be able to recover with:
 ! The South developers regret this has happened, and would
 ! like to gently persuade you to consider a slightly
 ! easier-to-deal-with DBMS.
 ! NOTE: The error which caused the migration to fail is further up.
Traceback (most recent call last):
  File "./bin/manage.py", line 27, in 
    djangorecipe.manage.main('helpim.development')
  File "/home/lg/documents/git/HelpIM/eggs/djangorecipe-0.23.1-py2.7.egg/djangorecipe/manage.py", line 16, in main
    management.execute_manager(mod)
  File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 438, in execute_manager
    utility.execute()
  File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 379, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib/python2.7/site-packages/django/core/management/base.py", line 191, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/lib/python2.7/site-packages/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "/usr/lib/python2.7/site-packages/south/management/commands/migrate.py", line 105, in handle
    ignore_ghosts = ignore_ghosts,
  File "/usr/lib/python2.7/site-packages/south/migration/__init__.py", line 191, in migrate_app
    success = migrator.migrate_many(target, workplan, database)
  File "/usr/lib/python2.7/site-packages/south/migration/migrators.py", line 221, in migrate_many
    result = migrator.__class__.migrate_many(migrator, target, migrations, database)
  File "/usr/lib/python2.7/site-packages/south/migration/migrators.py", line 292, in migrate_many
    result = self.migrate(migration, database)
  File "/usr/lib/python2.7/site-packages/south/migration/migrators.py", line 125, in migrate
    result = self.run(migration)
  File "/usr/lib/python2.7/site-packages/south/migration/migrators.py", line 99, in run
    return self.run_migration(migration)
  File "/usr/lib/python2.7/site-packages/south/migration/migrators.py", line 81, in run_migration
    migration_function()
  File "/usr/lib/python2.7/site-packages/south/migration/migrators.py", line 57, in 
    return (lambda: direction(orm))
  File "/home/lg/documents/git/HelpIM/helpim/common/migrations/0003_auto__chg_field_additionaluserinformation_branch_office.py", line 12, in forwards
    db.alter_column('common_additionaluserinformation', 'branch_office_id', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['common.BranchOffice'], null=True))
  File "/usr/lib/python2.7/site-packages/south/db/generic.py", line 397, in alter_column
    field.rel.to._meta.get_field(field.rel.field_name).column
  File "/usr/lib/python2.7/site-packages/south/db/generic.py", line 150, in execute
    cursor.execute(sql, params)
  File "/usr/lib/python2.7/site-packages/django/db/backends/util.py", line 34, in execute
    return self.cursor.execute(sql, params)
  File "/usr/lib/python2.7/site-packages/django/db/backends/mysql/base.py", line 86, in execute
    return self.cursor.execute(query, args)
  File "/usr/lib/python2.7/site-packages/MySQLdb/cursors.py", line 174, in execute
    self.errorhandler(self, exc, value)
  File "/usr/lib/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
    raise errorclass, errorvalue
_mysql_exceptions.OperationalError: (1005, "Can't create table 'helpim.#sql-127f_26' (errno: 121)")

Reply to this email directly or view it on GitHub: https://github.com/e-hulp/HelpIM/issues/141

winfried commented 12 years ago

On 02/06/2012 03:35 PM, Winfried Tilanus wrote:

Hi,

In addition:

Here is a description on how you can force a certain database engine while creating one:

https://docs.djangoproject.com/en/dev/ref/databases/#creating-your-tables

Let us know!

Winfried

ludovic-gasc commented 12 years ago

I've added this in help/development.py, empty the DB, and resync, it works now:

        'OPTIONS': {
'init_command': 'SET storage_engine=MYISAM',
}

I've finished the setup guide, but now, after the login, when I click on the chat! link, i've this message in the WebUI: An error occured Service not available

Is it necessary to configure something in Tigase ?

Thanks a lot for your reactivity !

This is the console output of Chromium:

 [ 11.234s] [helpim.Client] starting up
console.js:100 [ 11.243s] [xmpptk.muc.Client] instantiated
console.js:100 [ 11.247s] [goog.net.XhrIo] Opening Xhr [GET /static/xmpptk/images/emoticons/icondef.xml -1]
console.js:100 [ 11.249s] [goog.net.XhrIo] Sending request [GET /static/xmpptk/images/emoticons/icondef.xml -1]
console.js:100 [ 13.051s] [goog.net.XhrIo] Request complete [GET /static/xmpptk/images/emoticons/icondef.xml 200]
console.js:100 [ 13.154s] [xmpptk.ui.emoticons] done initializing emoticons
console.js:100 [ 15.913s] [xmpptk.muc.Client] [OUT]: xmpptk
console.js:100 [ 17.494s] [xmpptk.muc.Client] [IN]: jid>a4a6cb34-d254-4e1a-bcc9-faca91af6734@localhost/xmpptk</jid
console.js:100 [ 17.495s] [xmpptk.muc.Client] [OUT]: 
console.js:100 [ 18.464s] [xmpptk.muc.Client] [IN]: 
console.js:100 [ 18.467s] [xmpptk.muc.Client] logged in successfully in 7198ms
console.js:100 [ 18.468s] [xmpptk.muc.Client] bot_jid: helpimbot@localhost/HelpIM
console.js:100 [ 18.469s] [xmpptk.muc.Client] [OUT]: 9473a75546e829387d7f7ceed9afe01f096b0318dbc6f6713f2c3c61bddff45b
console.js:100 [ 20.482s] [xmpptk.muc.Client] [IN]: 9473a75546e829387d7f7ceed9afe01f096b0318dbc6f6713f2c3c61bddff45bService not available.
console.js:100 [ 20.482s] [xmpptk.muc.Client] error: 9473a75546e829387d7f7ceed9afe01f096b0318dbc6f6713f2c3c61bddff45bService not available.

splatte commented 12 years ago

for the sake of completeness: the original problem is caused by this bug http://south.aeracode.org/ticket/523 in South's way of dealing with mysql5.5 databases.

while this bug is not yet fixed, you can make "bin/manage.py migrate" work by deleting the line kc.table_catalog IS NULL AND from the query around line 137 in file eggs/South-0.7.3-py2.7.egg/south/db/mysql.py

sstrigler commented 12 years ago

GMLudo, please make sure the bot is running. You can start it by

$ bin/manage.py runbot

ludovic-gasc commented 12 years ago

sstrigler, thanks for this piece of information. I've configured the bot in the settings.py file, I've now a Web chat UI, but I've a new error in the Web browser console:

console.js:100 [  3.490s] [helpim.muc.Room] room got a presence: <presence xmlns="jabber:client" to="2e8a296c-b47a-40d2-acd5-d0db5f33cc84@localhost/xmpptk" from="helpim_a9bb79baf1ac813a9809094883f8a812687a4b32b0b749a7eeb04d83f6f2e931.0@muc.localhost/root"><x xmlns="http://jabber.org/protocol/muc#user"><status code="110"/><item role="participant" nick="root" affiliation="none"/></x></presence>
console.js:100 [  3.494s] [xmpptk.muc.Client] [OUT]: <iq xmlns="jabber:client" to="helpim_a9bb79baf1ac813a9809094883f8a812687a4b32b0b749a7eeb04d83f6f2e931.0@muc.localhost/HelpIM" type="get" id="JSJaCID_1"><conversationId xmlns="http://helpim.org/protocol/rooms"/></iq>
console.js:100 [  3.518s] [helpim.ui.muc.One2OneRoom] scrollBottom: true
console.js:100 [  3.541s] [helpim.muc.Room] done handling presence
console.js:100 [  3.757s] [xmpptk.muc.Client] [IN]: <iq xmlns="http://jabber.org/protocol/httpbind" to="2e8a296c-b47a-40d2-acd5-d0db5f33cc84@localhost/xmpptk" type="error" id="JSJaCID_1" from="helpim_a9bb79baf1ac813a9809094883f8a812687a4b32b0b749a7eeb04d83f6f2e931.0@muc.localhost/HelpIM"><conversationId xmlns:default1="http://helpim.org/protocol/rooms" xmlns="http://helpim.org/protocol/rooms"/><error type="cancel"><item-not-found xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/></error></iq></pre>

It should be a good idea to improve your setup guide, I don't see a mention about runbot and its configuration.

Thanks for your help.

sstrigler commented 12 years ago

Thanks for pointing out, the README will be updated (on overall rework is on my TODO anyway).

Your error probably is being caused by unsuccessful tries from before running the bot. Can you please truncate the data of all DB tables starting with 'rooms_' (not deleting the tables, only truncate them) and restart the bot?

ludovic-gasc commented 12 years ago

Your procedure doesn't work, I've the same error. I've given the admin account of tigase to the runbot, it's the same thing.

sstrigler commented 12 years ago

Tough one. The error indicates that there has no 'conversation' being created for logging the chat. This should have been handled by the bot. Maybe you can provide the logfile of the bot. It should be located somewhere like /var/log/helpim/helpim31.log. Also please provide your development.py settings file. Please send both files to my email address or gist them. Along with that some more questions:

Also could you provide screenshots please?

ludovic-gasc commented 12 years ago

Ok, I'm sending the files by e-mail.

I'm logged as root, created during the syncdb. I've configured the nickname in the user profile. I use tigase 4.3.1-b1858.

ludovic-gasc commented 12 years ago

For info, I've removed CHAT['mode'] = 'light' in development.py, and now, I can use the chat as operator :-) Thanks a lot for your support everybody.

I still have one issue, if I connect another browser on http://localhost:8888/ while I connected as operator, HelpIM asks my pseudo, I've a waiting message, I click on "Request Client" button in the operator chat, the chat started on each Web browser, but I can't type text, the input box is blocked.

The Web browser console logs from the anonymous user:

[ 83.408s] [helpim.muc.Room] done handling presence
chrome-extension://gighmmpiobklfepjocnamgkkbiglidom/adblock_start.js:144Uncaught ReferenceError: GLOBAL_contentScriptData is not defined
console.js:100 [ 86.899s] [xmpptk.muc.Client] [IN]: <presence xmlns="jabber:client" to="b6f58269-73a3-404a-8ed8-977994de5ba5@localhost/xmpptk" type="unavailable" from="helpim_f4ec00ef97355b1492f38f6d243a7e686c40f71c36281dd6ae583a087cc02758.0@muc.localhost/GMLudo"><x xmlns="http://jabber.org/protocol/muc#user"><status code="110"/><item role="none" nick="GMLudo" affiliation="none"/></x></presence>
console.js:100 [ 86.902s] [xmpptk.muc.Client] handling muc packet: <presence xmlns="jabber:client" to="b6f58269-73a3-404a-8ed8-977994de5ba5@localhost/xmpptk" type="unavailable" from="helpim_f4ec00ef97355b1492f38f6d243a7e686c40f71c36281dd6ae583a087cc02758.0@muc.localhost/GMLudo"><x xmlns="http://jabber.org/protocol/muc#user"><status code="110"/><item role="none" nick="GMLudo" affiliation="none"/></x></presence>
console.js:100 [ 86.903s] [xmpptk.muc.Client] no room for id helpim_f4ec00ef97355b1492f38f6d243a7e686c40f71c36281dd6ae583a087cc02758.0@muc.localhost
console.js:100 [ 86.906s] [xmpptk.muc.Client] [IN]: <presence xmlns="http://jabber.org/protocol/httpbind" to="b6f58269-73a3-404a-8ed8-977994de5ba5@localhost/xmpptk" from="helpim_e3b2085d735bacda9eb10698278f3f53e3732999e19f0b8eb7fab3d4b374422b.0@muc.localhost/HelpIM" type="unavailable"><x xmlns="http://jabber.org/protocol/muc#user"><item role="none" nick="HelpIM" affiliation="owner"/></x></presence>
console.js:100 [ 86.909s] [xmpptk.muc.Client] handling muc packet: <presence xmlns="http://jabber.org/protocol/httpbind" to="b6f58269-73a3-404a-8ed8-977994de5ba5@localhost/xmpptk" from="helpim_e3b2085d735bacda9eb10698278f3f53e3732999e19f0b8eb7fab3d4b374422b.0@muc.localhost/HelpIM" type="unavailable"><x xmlns="http://jabber.org/protocol/muc#user"><item role="none" nick="HelpIM" affiliation="owner"/></x></presence>
console.js:100 [ 86.910s] [xmpptk.muc.Client] handing over to room with id helpim_e3b2085d735bacda9eb10698278f3f53e3732999e19f0b8eb7fab3d4b374422b.0@muc.localhost
console.js:100 [ 86.914s] [helpim.muc.Room] presence
console.js:100 [ 86.916s] [helpim.muc.Room] room got a presence: <presence xmlns="http://jabber.org/protocol/httpbind" to="b6f58269-73a3-404a-8ed8-977994de5ba5@localhost/xmpptk" from="helpim_e3b2085d735bacda9eb10698278f3f53e3732999e19f0b8eb7fab3d4b374422b.0@muc.localhost/HelpIM" type="unavailable"><x xmlns="http://jabber.org/protocol/muc#user"><item role="none" nick="HelpIM" affiliation="owner"/></x></presence>
console.js:100 [ 86.919s] [helpim.muc.Room] done handling presence

Do you have an idea when HelpIM will be stable ?

We're very interested by your piece of software. We're thinking to integrate HelpIM for the contact centers with XiVO, an open source software (GPLv3) based on Asterisk for the telephony. But it's necessary that HelpIM must be stable.

sstrigler commented 12 years ago

Seems like your bot crashed. Do you have any stacktrace from the crash?

Am 09.02.2012 um 11:50 schrieb Ludovic Gasc:

For info, I've removed CHAT['mode'] = 'light' in development.py, and now, I can use the chat as operator :-) Thanks a lot for your support everybody.

I still have one issue, if I connect another browser on http://localhost:8888/ while I connected as operator, HelpIM asks my pseudo, I've a waiting message, I click on "Request Client" button in the operator chat, the chat started on each Web browser, but I can't type text, the input box is blocked.

The Web browser console logs from the anonymous user:

[ 83.408s] [helpim.muc.Room] done handling presence
chrome-extension://gighmmpiobklfepjocnamgkkbiglidom/adblock_start.js:144Uncaught ReferenceError: GLOBAL_contentScriptData is not defined
console.js:100 [ 86.899s] [xmpptk.muc.Client] [IN]: <presence xmlns="jabber:client" to="b6f58269-73a3-404a-8ed8-977994de5ba5@localhost/xmpptk" type="unavailable" from="helpim_f4ec00ef97355b1492f38f6d243a7e686c40f71c36281dd6ae583a087cc02758.0@muc.localhost/GMLudo"><x xmlns="http://jabber.org/protocol/muc#user"><status code="110"/><item role="none" nick="GMLudo" affiliation="none"/></x></presence>
console.js:100 [ 86.902s] [xmpptk.muc.Client] handling muc packet: <presence xmlns="jabber:client" to="b6f58269-73a3-404a-8ed8-977994de5ba5@localhost/xmpptk" type="unavailable" from="helpim_f4ec00ef97355b1492f38f6d243a7e686c40f71c36281dd6ae583a087cc02758.0@muc.localhost/GMLudo"><x xmlns="http://jabber.org/protocol/muc#user"><status code="110"/><item role="none" nick="GMLudo" affiliation="none"/></x></presence>
console.js:100 [ 86.903s] [xmpptk.muc.Client] no room for id helpim_f4ec00ef97355b1492f38f6d243a7e686c40f71c36281dd6ae583a087cc02758.0@muc.localhost
console.js:100 [ 86.906s] [xmpptk.muc.Client] [IN]: <presence xmlns="http://jabber.org/protocol/httpbind" to="b6f58269-73a3-404a-8ed8-977994de5ba5@localhost/xmpptk" from="helpim_e3b2085d735bacda9eb10698278f3f53e3732999e19f0b8eb7fab3d4b374422b.0@muc.localhost/HelpIM" type="unavailable"><x xmlns="http://jabber.org/protocol/muc#user"><item role="none" nick="HelpIM" affiliation="owner"/></x></presence>
console.js:100 [ 86.909s] [xmpptk.muc.Client] handling muc packet: <presence xmlns="http://jabber.org/protocol/httpbind" to="b6f58269-73a3-404a-8ed8-977994de5ba5@localhost/xmpptk" from="helpim_e3b2085d735bacda9eb10698278f3f53e3732999e19f0b8eb7fab3d4b374422b.0@muc.localhost/HelpIM" type="unavailable"><x xmlns="http://jabber.org/protocol/muc#user"><item role="none" nick="HelpIM" affiliation="owner"/></x></presence>
console.js:100 [ 86.910s] [xmpptk.muc.Client] handing over to room with id helpim_e3b2085d735bacda9eb10698278f3f53e3732999e19f0b8eb7fab3d4b374422b.0@muc.localhost
console.js:100 [ 86.914s] [helpim.muc.Room] presence
console.js:100 [ 86.916s] [helpim.muc.Room] room got a presence: <presence xmlns="http://jabber.org/protocol/httpbind" to="b6f58269-73a3-404a-8ed8-977994de5ba5@localhost/xmpptk" from="helpim_e3b2085d735bacda9eb10698278f3f53e3732999e19f0b8eb7fab3d4b374422b.0@muc.localhost/HelpIM" type="unavailable"><x xmlns="http://jabber.org/protocol/muc#user"><item role="none" nick="HelpIM" affiliation="owner"/></x></presence>
console.js:100 [ 86.919s] [helpim.muc.Room] done handling presence

Do you have an idea when HelpIM will be stable ?

We're very interested by your piece of software. We're thinking to integrate HelpIM for the contact centers with XiVO, an open source software (GPLv3) based on Asterisk for the telephony. But it's necessary that HelpIM must be stable.


Reply to this email directly or view it on GitHub: https://github.com/e-hulp/HelpIM/issues/141#issuecomment-3885366

ludovic-gasc commented 12 years ago

No stacktrace, nor in the console and /var/log/HelpIM/helpim31.log.

winfried commented 12 years ago

On 02/09/2012 11:50 AM, Ludovic Gasc wrote:

Hi Ludovic,

Sorry I didn't react on this before, I will spare you the lame excuses for that...

Do you have an idea when HelpIM will be stable ?

We're very interested by your piece of software. We're thinking to integrate HelpIM for the contact centers with XiVO, an open source software (GPLv3) based on Asterisk for the telephony. But it's necessary that HelpIM must be stable.

First of all: I really like the idea of integration with XiVO. I think both projects can benefit from it. And in the past we had some customers that could have had some benefit from a telephone/chat integration.

Well, stable can be in two senses: as a codebase that is not changed much (except for critical fixes) or as a product running with great stability.

One of the problems you ran into while setting up HelpIM, was the lack of a good readme. An other one was that the 'light configuration' is broken at the moment.

Both are very high on our priority lists. For fixing the 'light configuration' we need to refactor the bot a bit, so it becomes easier to have it handling all different states that all different configurations can have (one of the open issues in my presentation too). I estimate that we will need till the end of march to fix that.

We have some more changes and fixes (also some improvements in resuming after connection problems) in the pipeline. I guess most of them will be finished in the summer. After that I expect the codebase the become fairly stable, though when a customer come up with some good new idea, we like to add it... ;-)

best wishes,

Winfried

ludovic-gasc commented 12 years ago

Thank you a lot Winfried for your answer, it's great.

I keep an eye on your project, I'll retest HelpIM this summer.

Thanks a lot everybody for your help.

Regards.