Joinutility seperatorLogin utility separator Infobright.com
   
 
installation problem on Fedora FC12
Posted: 24 January 2010 03:50 AM   Ignore ]  
Newbie
Rank
Total Posts:  7
Joined  2010-01-24

Hi

I am trying to install version infobright-3.3.0-i686 on my fedora FC12 machine, and i keep getting the following error.
any ideas will be helpfull,
thank you
Nadav.


script output:

Creating user mysql… /usr/sbin/useradd mysql
useradd: user ‘mysql’ already exists
Failed on /usr/sbin/useradd mysql [ignored]
Installing default databases…
Installing all prepared tables
100124 9:44:51 [ERROR] Fatal error: Can’t change to run as user ‘mysql’ ;  Please check that the user exists!

100124 9:44:51 [ERROR] Aborting

100124 9:44:51 [Note] /home/nadav/Downloads/infobright-3.3.0-i686/bin/mysqld: Shutdown complete

Installation of system tables failed!

Examine the logs in /home/nadav/Downloads/infobright-3.3.0-i686/data for more information.
Failed on: scripts/mysql_install_db —defaults-file=/etc/my-ib.cnf —user=mysql —basedir=/home/nadav/Downloads/infobright-3.3.0-i686 —datadir=/home/nadav/Downloads/infobright-3.3.0-i686/data —cachedir=/home/nadav/Downloads/infobright-3.3.0-i686/cache
Rolling back the installation due to unexpected failure…
Installation failed! Please investigate the error messages.

Profile
 
Posted: 24 January 2010 11:09 AM   Ignore ]   [ # 1 ]  
Member
RankRankRank
Total Posts:  218
Joined  2008-08-18

Looks like you are installing inside homedir (/home/nadav). Do not install inside home dir. User mysql may not be able to work on that folder.
Try some other place (outside of /home, /root etc). better place is /usr/local/

cheers

Signature 

Mahib

Profile
 
Posted: 24 January 2010 11:15 AM   Ignore ]   [ # 2 ]  
Newbie
Rank
Total Posts:  7
Joined  2010-01-24

the same error when i install form /usr/local


Installing default databases…
Warning: /usr/local/infobright-3.3.0-i686/data/brighthouse.ini moved to /usr/local/infobright-3.3.0-i686/data/brighthouse.ini_old.
Installing all prepared tables
100124 17:11:13 [ERROR] Fatal error: Can’t change to run as user ‘mysql’ ;  Please check that the user exists!

100124 17:11:13 [ERROR] Aborting

100124 17:11:13 [Note] /usr/local/infobright-3.3.0-i686/bin/mysqld: Shutdown complete

Installation of system tables failed!

Examine the logs in /usr/local/infobright-3.3.0-i686/data for more information.
Failed on: scripts/mysql_install_db —defaults-file=/etc/my-ib.cnf —user=mysql —basedir=/usr/local/infobright-3.3.0-i686 —datadir=/usr/local/infobright-3.3.0-i686/data —cachedir=/usr/local/infobright-3.3.0-i686/cache
Rolling back the installation due to unexpected failure…
Installation failed! Please investigate the error messages.

Profile
 
Posted: 24 January 2010 11:19 AM   Ignore ]   [ # 3 ]  
Newbie
Avatar
Rank
Total Posts:  7
Joined  2009-12-09
nadav - 24 January 2010 11:15 AM

the same error when i install form /usr/local

I have the same issue on Fedora 12 but I see here that Fedora 9 is the highest level currently supported. 

Are there plans to support more current releases of Fedora?

Profile
 
Posted: 25 January 2010 10:52 AM   Ignore ]   [ # 4 ]  
Sr. Member
Avatar
RankRankRankRank
Total Posts:  505
Joined  2008-08-18

This may be obvious, but are you installing as root?

Geoffrey

Signature 
Profile
 
Posted: 25 January 2010 10:54 AM   Ignore ]   [ # 5 ]  
Newbie
Rank
Total Posts:  7
Joined  2010-01-24

yes

Profile
 
Posted: 25 January 2010 11:02 AM   Ignore ]   [ # 6 ]  
Newbie
Avatar
Rank
Total Posts:  7
Joined  2009-12-09

Fedora Core 12 - http://fedoraproject.org/ - only takes a few minutes to install in a virtual image.  Perhaps Infobright’s Platform Engineering team can give it a try with ICE.

Profile
 
Posted: 02 February 2010 11:11 AM   Ignore ]   [ # 7 ]  
Newbie
Rank
Total Posts:  2
Joined  2010-02-02

I think I got Infobright to install on Fedora 12. The bug looks like it might be related to this MySQL bug: http://bugs.mysql.com/bug.php?id=4408
discussed here:
http://forums.mysql.com/read.php?11,83400,83400#msg-83400

My solution (based on this: http://forums.mysql.com/read.php?11,83400,91927#msg-91927 ) was to edit the install-infobright.sh script and change line 619 to add the “sudo -u mysql” like this:

cmd_sed=“sudo -u mysql scripts/mysql_install_db\\
—defaults-file=$my_conf\\
—user=$user\\
—basedir=$PREFIX\\
—datadir=”$bh_datadir”\
—cachedir=$bh_cachedir”

The caveat is that the mysql user has to have write permissions on the location where Infobright is trying to install (and so the mysql user must exists already). a simple

useradd mysql

and

chown -R mysql:mysql

covers that.

I don’t know if there are any other hidden gotchas form installing this way, but at least now I can evaluate Infobright!

Profile
 
Posted: 02 February 2010 11:19 AM   Ignore ]   [ # 8 ]  
Newbie
Rank
Total Posts:  2
Joined  2010-02-02

Oh, and since the version of MySQL can’t change to the mysql user, the server must be started as the mysql user, like this:

sudo -u mysql bin/mysqld_safe—defaults-file=/etc/my-ib.cnf—user=mysql

Profile
 
Posted: 02 February 2010 11:54 AM   Ignore ]   [ # 9 ]  
Member
RankRankRank
Total Posts:  218
Joined  2008-08-18

Thanks for digging into the problem and finding the fix. We will look at this issue.

Signature 

Mahib

Profile
 
Posted: 26 August 2010 03:42 AM   Ignore ]   [ # 10 ]  
Newbie
Rank
Total Posts:  14
Joined  2010-08-06

In case I run

sudo -u mysql bin/mysqld_safe—defaults-file=/etc/my-ib.cnf—user=mysql

do I have full featured IB service running?

Thanks,
Andriy

[ Edited: 26 August 2010 09:17 AM by andrijz]
Profile
 
Posted: 02 September 2010 02:42 AM   Ignore ]   [ # 11 ]  
Newbie
Rank
Total Posts:  1
Joined  2010-08-31

@andrijz, yes,if you run
sudo -u mysql bin/mysqld_safe—defaults-file=/etc/my-ib.cnf—user=mysql
will get featured IB service.

Profile
 
   
 
 
‹‹ PHPMyAdmin      problems creating table ››