Bug #61334 mdbmtd installed as Win 64 daemon shuts down with error 2341
Submitted: 27 May 2011 23:12 Modified: 6 Jul 2011 10:27
Reporter: Steve McGarrah Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S2 (Serious)
Version:mysql-5.1.56 ndb-7.1.13 OS:Windows (x64 Server 2008 R2 SP1)
Assigned to: Assigned Account CPU Architecture:Any

[27 May 2011 23:12] Steve McGarrah
Description:
I installed this binary release from the web site and everything works fine when ndbmtd is started from the command line.  After installing it as a service (with ndbmtd --install), the service keeps failing on startup with this error code.  

Application Log shows:

Node 3: Forced node shutdown completed. Occured during startphase 5. Caused by error 2341: 'Internal program error (failed ndbrequire)(Internal error, programming error or missing error message, please report a bug). Temporary error, restart node'..  

DBLQH (Line: 16667) 0x00000002.  Did a --remove  and reinstalled with no change in results.  ndb_error_reporter was not shipped with this release.

How to repeat:
Config.ini:
#
#	options for MySQL Cluster management node
#
[ndb_mgmd]
NodeId=1                  #
ArbitrationRank=1
HostName=192.168.1.200
DataDir=C:/MySQL/logs
LogDestination=FILE:filename=cluster.log,maxsize=100000,maxfiles=4
#
#	one [ndbd] section for each cluster data node
#
[ndbd]
NodeId=2                  #
ArbitrationRank=2
HostName=192.168.1.206    # ndb deamon data node 1

[ndbd]
NodeId=3                  #
ArbitrationRank=2
HostName=192.168.1.208    # ndb deamon data node 2

#
#	one [mysqld] section for each SQL node
#
[mysqld]
NodeId=4                  #
HostName=192.168.1.206    # mysql deamon node 1

[mysqld]
NodeId=5                  #
HostName=192.168.1.208    # mysql deamon node 2

[mysqld]
NodeId=6                  #

[mysqld]
NodeId=7                  #

[mysqld]

[mysqld]
[27 May 2011 23:14] Steve McGarrah
Config file for ndb_mgmd

Attachment: config.ini (application/octet-stream, text), 841 bytes.

[27 May 2011 23:14] Steve McGarrah
the my.ini file

Attachment: my.ini (application/octet-stream, text), 20.71 KiB.

[27 May 2011 23:15] Steve McGarrah
service starts as:  C:\MySQL\bin\mdbmtd --service=ndbd
[6 Jun 2011 10:27] Geert Vanderkelen
Thanks for checking out MySQL Cluster on Windows.
Using Windows 7 (but I think it's all the same anyway), I could not repeat.

First, your config.ini is wrong:
1) There is no ArbitrationRank for data nodes
2) Not critical, but it's good to specify DataDir for data nodes as well, and best in the [ndbd default] section.

Second, to install the services, you best do following:
 shell> ndbmtd --install=datanode1 --ndb-nodeid=2
 shell> ndbmtd --install=datanode2 --ndb-nodeid=3

Then start:
 shell> net start datanode1
 shell> net start datanode2
[6 Jul 2011 23:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".