Projects tigase _server server-core Issues #452
Tigase pubSub does not work / collation problem? (#452)
Closed
Robert N opened 10 years ago
Due Date
2015-03-30

Hi!

I have weird problems with the Tigase PubSub Component. While using it, the server crashes.

In tigase-console.log:


ERROR! Terminating the server process.

PubSub Component is not compatible with

database schema which exists in

jdbc:mysql://213.95.255.19/xmpp?user=xmpp&password=Iez6oPei

This component uses newer schema. To continue

use of currently deployed schema, please use

older version of PubSub Component.

To convert database to new schema please see:

https://projects.tigase.org/projects/tigase-pubsub/wiki/PubSub_database_schema_conversion

ShutdownThread started...

I tried to follow the instructions on https://projects.tigase.org/projects/tigase-pubsub/wiki/PubSub_database_schema_conversion

But it does not work, while using:

sh ./database/pubsub-db-migrate.sh -in-repo-class tigase.pubsub.repository.PubSubDAO:


ERROR! Terminating the server process.

PubSub Component is not compatible with

database schema which exists in

jdbc:mysql://213.95.255.19/xmpp?user=xmpp&password=Iez6oPei

This component uses newer schema. To continue

use of currently deployed schema, please use

older version of PubSub Component.

To convert database to new schema please see:

https://projects.tigase.org/projects/tigase-pubsub/wiki/PubSub_database_schema_conversion

2015-03-30 14:16:08.408 [main] PubSubDAOJDBC.checkSchema() FINEST: Exception during checkSchema: java.sql.SQLException: Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation '='

Any ideas?

Best Regards

Robert

Artur Hefczyc commented 10 years ago

Robert, I think this is not a bug in Tigase but rather a problem with your installation and incorrect libraries version used for your Tigase server.

Wojciech will provide you more details and instructions on how to resolve this.

wojciech.kapcia@tigase.net commented 10 years ago

Rober, can you share:

  • whole command you used to initialize schema update?

  • complete output (especially full stacktrace)?

Can you try adding &useUnicode=true&characterEncoding=UTF-8 to your JDBC connection strings?

Robert N commented 10 years ago

Thanks Wojciech, maybe I've found already the problem, a very few minutes ago. I've already tried to add &useUnicode=true&characterEncoding=UTF-8 to the JDBC connection.

I've found out something different. The collation of my MySQL database seems to have been changed a little bit after an update performed by the hoster.

I have had the problem with the following settings:

mysql> show variables like 'col%';
+----------------------+-----------------+
| Variable_name        | Value           |
+----------------------+-----------------+
| collation_connection | utf8_general_ci |
| collation_database   | utf8_unicode_ci |
| collation_server     | utf8_unicode_ci |
+----------------------+-----------------+
3 rows in set (0.00 sec)

I've changed to:

mysql> show variables like 'col%';
+----------------------+-----------------+
| Variable_name        | Value           |
+----------------------+-----------------+
| collation_connection | utf8_unicode_ci |
| collation_database   | utf8_unicode_ci |
| collation_server     | utf8_unicode_ci |
+----------------------+-----------------+
3 rows in set (0.00 sec)

Nevertheless, the problem still occurred.

Then I tried to built up the tigase from the scratch, the problem still occurred.

Finally I've tried to change everything to utf8_general_ci. And now it seems to be working fine!

wojciech.kapcia@tigase.net commented 10 years ago

Robert N wrote:

Finally I've tried to change everything to utf8_general_ci. And now it seems to be working fine!

Closing then.

issue 1 of 1
Type
Bug
Priority
Normal
Assignee
RedmineID
2886
Spent time
1h 30m
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/server-core#452
Please wait...
Page is in error, reload to recover