Bug #39194 Falcon fails on recognizing datadir
Submitted: 2 Sep 2008 18:43 Modified: 8 Sep 2008 23:05
Reporter: Ingo Strüwing
Status: Duplicate
Category:Server: Falcon Severity:S2 (Serious)
Version:6.0.7 OS:Any
Assigned to: Vladislav Vaintroub Target Version:6.0
Tags: regression
Triage: D2 (Serious)

[2 Sep 2008 18:43] Ingo Strüwing
Description:
To avoid use of a system-supplied my.cnf I use to install with

    mysql_install_db --no-defaults

This works with BASEDIR and DATADIR in the environment:

env | egrep 'BASEDIR|DATADIR'
BASEDIR=/home2/mydev/bzrinst/install-6.0-amain
DATADIR=/home2/mydev/bzrinst/install-6.0-amain/var

The directories exist:

ls -ld "$DATADIR"
drwxr-xr-x 4 istruewing istruewing 4096  2. Sep 18:14
/home2/mydev/bzrinst/install-6.0-amain/var

I did run "make install".
But Falcon claims the directory does not exist:

$BASEDIR/bin/mysql_install_db --no-defaults
Installing MySQL system tables...
Falcon: The specified serial log directory,
"/home2/mydev/bzrinst/install-6.0-amain/var/", does not exist.
Falcon: The serial log directory must be created by the user before initializing Falcon.
080902 18:14:13 [ERROR] Falcon: Exception 'Invalid serial log directory path
"/home2/mydev/bzrinst/install-6.0-amain/var/"' during initialization
080902 18:14:13 [ERROR] Plugin 'Falcon' init function returned error.
080902 18:14:13 [ERROR] Plugin 'Falcon' registration as a STORAGE ENGINE failed.
OK
Filling help tables...
Falcon: The specified serial log directory,
"/home2/mydev/bzrinst/install-6.0-amain/var/", does not exist.
Falcon: The serial log directory must be created by the user before initializing Falcon.
080902 18:14:13 [ERROR] Falcon: Exception 'Invalid serial log directory path
"/home2/mydev/bzrinst/install-6.0-amain/var/"' during initialization
080902 18:14:13 [ERROR] Plugin 'Falcon' init function returned error.
080902 18:14:13 [ERROR] Plugin 'Falcon' registration as a STORAGE ENGINE failed.
OK

To start mysqld at boot time you have to copy
...

This happens on 6.0.7, including the fix for Bug#38843 (Falcon does not start if datadir
is located on home directory on Solaris). (/home2/mydev is the home directory of
istruewing.)

Tested on
OS: Debian GNU/Linux/x86_64
OS: Debian Sid kernel 2.6.26  SMP PREEMPT
gcc (Debian 4.3.1-8) 4.3.1

How to repeat:
See description.
[2 Sep 2008 21:55] Sveta Smirnova
Thank you for the report.

Verified as described with any specified --datadir located in the home directory on
32-bit Linux.
[4 Sep 2008 20:05] Sveta Smirnova
Probably duplicate of bug #39098
[4 Sep 2008 20:07] Sveta Smirnova
Bug #39098 was marked as duplicate of this one.
[8 Sep 2008 23:05] Hakan Kuecuekyilmaz
Duplicate of Bug #39098.