Bug #2121 Inadequate message "check permissions on master.info"
Submitted: 15 Dec 2003 13:47 Modified: 16 Dec 2003 12:53
Reporter: Guilhem Bichot Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Replication Severity:S3 (Non-critical)
Version:4.0 OS:Any (all)
Assigned to: Guilhem Bichot CPU Architecture:Any

[15 Dec 2003 13:47] Guilhem Bichot
Description:
The user changed the hostname of his slave machine.
Then when the slave later started, it was not able to open the relay log of before the renaming (this is another bug which I will enter separately).
The failure was in init_relay_log_info(), which makes init_master_info() fails, and START SLAVE returns:
ERROR 1201: Could not initialize master info structure, check permissions on master.info

True, sometimes when START SLAVE fails it's a permission problem, but it was not here.

How to repeat:
see description.

Suggested fix:
First we will remove the wrong hint and replace it by "check the error log" (because the error log contains several accurate messages explaining the error).
Second we will improve replication error reporting to the client.
[16 Dec 2003 12:53] Guilhem Bichot
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html

Additional info:

Fixed in 4.0.18 by making the message more general.