Page MenuHomePhabricator

cannot find replica.my.cnf in bot home directory
Closed, ResolvedPublic

Description

Today I set up two bots on Labs (hostbot and grantsbot). I'd like to be able to access the MYSQL replica dbs.

The doc here: https://wikitech.wikimedia.org/wiki/Help:Move_your_bot_to_Labs#Database_access

...says that there should be credentials file (replica.my.cnf) in the home directory of each bot, but I can't find this file in either home. Any idea where I can find/generate these files?

Thanks,
Jonathan


Version: unspecified
Severity: normal
OS: Mac OS X 10.8
Platform: Macintosh

Details

Reference
bz53133

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:04 AM
bzimport added a project: Toolforge.
bzimport set Reference to bz53133.

Coren: Just to clarify: replica.my.cnf gets created by wikitech? The replica DB servers? And those need to remount the NFS share /tools/project after the maintenance?

It gets created on the NFS server, which is the only box that has access to all of the project shared filesystem and the database servers.

That said, the mistake was mine: when I did the maintenance, I had to shut down the daemon that creates those files (because the filesystem could not be modified while being copied) but I forgot to reenable it. Fixed.