General Discussion
My Nightmare with MPNews5 & MySQL :)
Thread Starter: Vicente Coll Started: 3/7/2008 4:32 PM UTC
Replies: 2
My Nightmare with MPNews5 & MySQL :)

    Hi.

    I've been using MPNews4 during couple of years now. I used MySQL as database, and had a combination of Blog feeds, usenet groups, and mailing lists.

    Last week I decided install MPNews5, but instead of updating, I decided creating it in other computer, and then pull the old groups and messages from my old server to the new.

    Good theory :D

    I've been three days now trying to install MPNews5 on MySQL. I could install it without problems using the default storage system, but I've some groups with lot of messages (more than 99000) and I need a more stable database than 99000 files in the same folder :)
    After having all kind of problems with MySQL, finally today I figured out how to do it. Maybe you should update your KB in the web, including in the "Store newsgroup messages in MySQL" than Connector/net only works if it's version 1.0.7
    I tried 1.0.10.1, 5.0.8.1, 5.2.1,... and none worked. Finally, I looked into the aspx pages of the program and found embbedded in a page "1.0.7", so I got it, installed, and then I could finally create the connection and the database.
    Now, I have the database, the program installed, the bases created, and create a pull feed to get all the messages from my old server (MPNews4).
    But when I try to do that, I always get the same error. The messages are read without problems, but they can't be stored in any group. The error is always the same: "message index is already in use"

    I've reproduced the problem three times, starting all the times from scratch. This is a sample of the error:

Article <2396b8bb$64caedbf$365dc@news.protegerse.com> could not be saved in control.cancel - message index is already in use by <2396b8bb$64caedbf$365dc@news.protegerse.com>

Severity: Warning
Date: 2008-03-07T17:05:28


    I'm too tired now to try to fix that, so I'll ask for help :)

    Any idea about this problem?
    What information you need to check it? I'll send you any info you need about MySQL versions, programs, etc...

    Thanks you very much.
Re: My Nightmare with MPNews5 & MySQL :)
Vicente, I am contacting you via email to get specifics.  We will verify and better document MySQL compatibility for the future.
 
Chris
 
"Vicente Coll" <vicente@ontinet.com> wrote in message news:7afce2c5$541272dd$3c4@vlad...

    Hi.

    I've been using MPNews4 during couple of years now. I used MySQL as database, and had a combination of Blog feeds, usenet groups, and mailing lists.

    Last week I decided install MPNews5, but instead of updating, I decided creating it in other computer, and then pull the old groups and messages from my old server to the new.

    Good theory :D

    I've been three days now trying to install MPNews5 on MySQL. I could install it without problems using the default storage system, but I've some groups with lot of messages (more than 99000) and I need a more stable database than 99000 files in the same folder :)
    After having all kind of problems with MySQL, finally today I figured out how to do it. Maybe you should update your KB in the web, including in the "Store newsgroup messages in MySQL" than Connector/net only works if it's version 1.0.7
    I tried 1.0.10.1, 5.0.8.1, 5.2.1,... and none worked. Finally, I looked into the aspx pages of the program and found embbedded in a page "1.0.7", so I got it, installed, and then I could finally create the connection and the database.
    Now, I have the database, the program installed, the bases created, and create a pull feed to get all the messages from my old server (MPNews4).
    But when I try to do that, I always get the same error. The messages are read without problems, but they can't be stored in any group. The error is always the same: "message index is already in use"

    I've reproduced the problem three times, starting all the times from scratch. This is a sample of the error:

Article <2396b8bb$64caedbf$365dc@news.protegerse.com> could not be saved in control.cancel - message index is already in use by <2396b8bb$64caedbf$365dc@news.protegerse.com>

Severity: Warning
Date: 2008-03-07T17:05:28


    I'm too tired now to try to fix that, so I'll ask for help :)

    Any idea about this problem?
    What information you need to check it? I'll send you any info you need about MySQL versions, programs, etc...

    Thanks you very much.
Re: My Nightmare with MPNews5 & MySQL :)

We have uncovered the issue and working for update in next release.  Specifically this is with MySQL 5 (and we suspect MySQL 4, MySQL 3 was OK).  There is a fix - technically not too difficult if you know MySQL.

 

What is happening?

MySQL v5 now uses the InnoDB engine by default which will automatically add foreign keys to the tables when they are created by MPNews.  These key constraints will cause the errors you see posting messages.

 

What is the fix?

We need to do two things.  First, we need to remove the foreign keys.  You can do this in the MySQL admin interface by editing the tables to remove the foreign keys from tables groupmessages, groupthreads, headers, and servergroups.  Or you can run the following SQL queries to do the same thing (change "mpnews" below to your database name):

 

      ALTER TABLE `mpnews`.`groupmessages` DROP FOREIGN KEY `groupmessages_ibfk_1`, DROP FOREIGN KEY `groupmessages_ibfk_2`;

      ALTER TABLE `mpnews`.`groupthreads` DROP FOREIGN KEY `groupthreads_ibfk_1`;

      ALTER TABLE `mpnews`.`headers` DROP FOREIGN KEY `headers_ibfk_1`;

      ALTER TABLE `mpnews`.`servergroups` DROP FOREIGN KEY `servergroups_ibfk_1`, DROP FOREIGN KEY `servergroups_ibfk_2`;

 

The second thing is to specify the correct database.  As you noted when you select MySQL as a database type, it sets the type as a MySQL v1 database.  Instead, you need a custom database type with the following (exactly as shown for your DB):

 

      CUSTOM DATABASE TYPE (exactly as shown, change version number if you have a different version):

            MySql.Data.MySqlClient.MySqlConnection, MySql.Data, Version=5.1.5.0, Culture=Neutral, PublicKeyToken=c5687fc88969c44d

      CONNECTION STRING:

            Server=localhost;Database=MPNews;UserID=MPNews;Password=MPNews

 

Once you restart MPNews, you should be working normally.

 

We will document further and update in future release to resolve.

 

Chris

 

"Vicente Coll" <vicente@ontinet.com> wrote in message news:7afce2c5$541272dd$3c4@vlad...

    Hi.

    I've been using MPNews4 during couple of years now. I used MySQL as database, and had a combination of Blog feeds, usenet groups, and mailing lists.

    Last week I decided install MPNews5, but instead of updating, I decided creating it in other computer, and then pull the old groups and messages from my old server to the new.

    Good theory :D

    I've been three days now trying to install MPNews5 on MySQL. I could install it without problems using the default storage system, but I've some groups with lot of messages (more than 99000) and I need a more stable database than 99000 files in the same folder :)
    After having all kind of problems with MySQL, finally today I figured out how to do it. Maybe you should update your KB in the web, including in the "Store newsgroup messages in MySQL" than Connector/net only works if it's version 1.0.7
    I tried 1.0.10.1, 5.0.8.1, 5.2.1,... and none worked. Finally, I looked into the aspx pages of the program and found embbedded in a page "1.0.7", so I got it, installed, and then I could finally create the connection and the database.
    Now, I have the database, the program installed, the bases created, and create a pull feed to get all the messages from my old server (MPNews4).
    But when I try to do that, I always get the same error. The messages are read without problems, but they can't be stored in any group. The error is always the same: "message index is already in use"

    I've reproduced the problem three times, starting all the times from scratch. This is a sample of the error:

Article <2396b8bb$64caedbf$365dc@news.protegerse.com> could not be saved in control.cancel - message index is already in use by <2396b8bb$64caedbf$365dc@news.protegerse.com>

Severity: Warning
Date: 2008-03-07T17:05:28


    I'm too tired now to try to fix that, so I'll ask for help :)

    Any idea about this problem?
    What information you need to check it? I'll send you any info you need about MySQL versions, programs, etc...

    Thanks you very much.