Joinutility seperatorLogin utility separator Infobright.com
   
1 of 2
1
ICE 4.04 installation problems
Posted: 29 September 2011 11:23 AM   Ignore ]  
Newbie
Rank
Total Posts:  10
Joined  2009-06-08

Hello,

I am using CentOS 5.7, 64-bit. Downloaded ICE and tried installing it and got the following errors:

110929 11:17:42 mysqld_safe Starting mysqld daemon with databases from /ebs/infobright/data
110929 11
:17:42 [Warning] options --log-slow-admin-statements, --log-queries-not-using-indexes and --log-slow-slave-statements have no effect if --log_slow_queries is not set
/usr/local/infobright-4.0.4-x86_64/bin/mysqldTable 'mysql.plugin' doesn't exist
110929 11:17:42 [ERROR] Can'
t open the mysql.plugin tablePlease run mysql_upgrade to create it.
Loading configuration for Infobright instance ...
OptionAllowMySQLQueryPathvalue0.
Option
AutoConfigurevalue0.
Option
CacheFoldervalue: /usr/local/infobright/cache.
OptionControlMessagesvalue0.
Option
InternalMessagesvalue0.
Option
KNFoldervalueBH_RSI_Repository.
OptionKNLevelvalue99.
Option
LicenseFilevalue: <unknown>.
OptionLoaderMainHeapSizevalue800.
Option
PushDownvalue1.
Option
ServerMainHeapSizevalue24000.
Option
UseMySQLImportExportDefaultsvalue0.
Infobright instance configuration loaded
.
110929 11:17:42 [ERROR] Fatal errorCan't open and lock privilege tables: Table 'mysql.host' doesn't exist
110929 11
:17:42 mysqld_safe mysqld from pid file /ebs/infobright/data/ip-10-136-66-211.pid ended
110929 11
:18:58 mysqld_safe Starting mysqld daemon with databases from /ebs/infobright/data
110929 11
:18:58 [Warning] options --log-slow-admin-statements, --log-queries-not-using-indexes and --log-slow-slave-statements have no effect if --log_slow_queries is not set
/usr/local/infobright-4.0.4-x86_64/bin/mysqldTable 'mysql.plugin' doesn't exist
110929 11:18:58 [ERROR] Can'
t open the mysql.plugin tablePlease run mysql_upgrade to create it.
Loading configuration for Infobright instance ...
OptionAllowMySQLQueryPathvalue0.
Option
AutoConfigurevalue0.
Option
CacheFoldervalue: /usr/local/infobright/cache.
OptionControlMessagesvalue0.
Option
InternalMessagesvalue0.
Option
KNFoldervalueBH_RSI_Repository.
OptionKNLevelvalue99.
Option
LicenseFilevalue: <unknown>.
OptionLoaderMainHeapSizevalue800.
Option
PushDownvalue1.
Option
ServerMainHeapSizevalue24000.
Option
UseMySQLImportExportDefaultsvalue0.
Infobright instance configuration loaded
.
110929 11:18:58 [ERROR] Fatal errorCan't open and lock privilege tables: Table 'mysql.host' doesn't exist
110929 11
:18:58 mysqld_safe mysqld from pid file /ebs/infobright/data/ip-10-136-66-211.pid ended 

I did as it suggested and tried to run mysql_upgrade and got the following:

[root@ip-10-136-66-211 bin]# /usr/local/infobright/bin/mysql_upgrade
Warning: /usr/local/infobright/bin/mysql_upgradeunknown variable 'loose-local-infile=1'
Looking for 'mysql' as: /usr/local/infobright/bin/mysql
Looking 
for 'mysqlcheck' as: /usr/local/infobright/bin/mysqlcheck
Running 
'mysqlcheck' with connection arguments'--port=3306' '--socket=/tmp/mysql-ib.sock' 
/usr/local/infobright/bin/mysqlcheckGot error2002Can't connect to local MySQL server through socket '/tmp/mysql-ib.sock (2when trying to connect
FATAL ERROR
Upgrade failed 

Any advice would be appreciated… very stuck and no idea what to do.

Profile
 
Posted: 29 September 2011 11:56 AM   Ignore ]   [ # 1 ]  
Administrator
Rank
Total Posts:  31
Joined  2011-06-20

Hi Patrick,

Please see thread http://www.infobright.org/forums/viewthread/2507/

Try also installing/starting nscd before installing Infobright.
Once installed, it is also recommended to run:

mysql_update—user=mysql—ldata=/usr/local/infobright/data—force

Thanks,

Steve Aldrich

Profile
 
Posted: 29 September 2011 12:15 PM   Ignore ]   [ # 2 ]  
Newbie
Rank
Total Posts:  10
Joined  2009-06-08

Hi Steve,

- ncsd is already installed and started

- Your command appears formatted funny, and the command mysql_update is nowhere to be found in the /bin directory. The closest match is mysql_upgrade

I ran the following command:

[root@ip-10-136-66-211 bin]# ./mysql_upgrade --user=mysql --datadir=/ebs/infobright/data --force
Warning: ./mysql_upgradeunknown variable 'loose-local-infile=1'
./mysql_upgradethe '--datadir' option is always ignored
Looking 
for 'mysql' as: ./mysql
Looking 
for 'mysqlcheck' as: ./mysqlcheck
Running 
'mysqlcheck' with connection arguments'--port=3306' '--socket=/tmp/mysql-ib.sock' 
./mysqlcheckGot error2002Can't connect to local MySQL server through socket '/tmp/mysql-ib.sock (2when trying to connect
FATAL ERROR
Upgrade failed
[root
@ip-10-136-66-211 bin]# service nscd start
Starting nscd: /usr/sbin/nscdalready running
                                                           [FAILED] 
Profile
 
Posted: 29 September 2011 12:56 PM   Ignore ]   [ # 3 ]  
Administrator
RankRankRank
Total Posts:  139
Joined  2008-08-18

Hi superdx,

ICE is available on the following platforms:
  Windows Server 2008/2003
  Red Hat Enterprise Linux 5
  Debian ‘Lenny’
  CentOS 5.2
 
The installation has been tested on the above platforms/OS, so there might be an issue on CentOS 5.7. Can you find one of the above mentioned platform/OS?

regards,
Kethees.

Profile
 
Posted: 29 September 2011 12:57 PM   Ignore ]   [ # 4 ]  
Newbie
Rank
Total Posts:  10
Joined  2009-06-08

Sorry it is 5.2, don’t know why I typed 5.7

Profile
 
Posted: 29 September 2011 01:02 PM   Ignore ]   [ # 5 ]  
Administrator
RankRankRank
Total Posts:  139
Joined  2008-08-18

Hi,

Did you run the installation as root?

Can you attach the installation log /tmp/ib*install.log?
and the log files /usr/local/infobright/data/bh.err and /usr/local/infobright/data/brighthouse.log if they exist.

regards,
Kethees.

Profile
 
Posted: 29 September 2011 01:06 PM   Ignore ]   [ # 6 ]  
Newbie
Rank
Total Posts:  10
Joined  2009-06-08

Hope this helps.

bh.err

110929 11:41:18 mysqld_safe Starting mysqld daemon with databases from /ebs/infobright/data
110929 11
:41:18 [Warning] options --log-slow-admin-statements, --log-queries-not-using-indexes and --log-slow-slave-statements have no effect if --log_slow_queries is not set
/usr/local/infobright-4.0.4-x86_64/bin/mysqldTable 'mysql.plugin' doesn't exist
110929 11:41:18 [ERROR] Can'
t open the mysql.plugin tablePlease run mysql_upgrade to create it.
Loading configuration for Infobright instance ...
OptionAllowMySQLQueryPathvalue0.
Option
AutoConfigurevalue0.
Option
CacheFoldervalue: /usr/local/infobright/cache.
OptionControlMessagesvalue0.
Option
InternalMessagesvalue0.
Option
KNFoldervalueBH_RSI_Repository.
OptionKNLevelvalue99.
Option
LicenseFilevalue: <unknown>.
OptionLoaderMainHeapSizevalue800.
Option
PushDownvalue1.
Option
ServerMainHeapSizevalue24000.
Option
UseMySQLImportExportDefaultsvalue0.
Infobright instance configuration loaded
.
110929 11:41:18 [ERROR] Fatal errorCan't open and lock privilege tables: Table 'mysql.host' doesn't exist
110929 11
:41:18 mysqld_safe mysqld from pid file /ebs/infobright/data/ip-10-136-66-211.pid ended
110929 11
:44:48 mysqld_safe The file /usr/local/infobright/libexec/mysqld
does not exist 
or is not executablePlease cd to the mysql installation
directory 
and restart this script from there as follows:
./
bin/mysqld_safe&
See http://dev.mysql.com/doc/mysql/en/mysqld-safe.html for more information
110929 11:45:02 mysqld_safe Starting mysqld daemon with databases from /ebs/infobright/data
/usr/local/infobright/bin/mysqldTable 'mysql.plugin' doesn't exist
110929 11:45:02 [ERROR] Can'
t open the mysql.plugin tablePlease run mysql_upgrade to create it.
Loading configuration for Infobright instance ...
OptionAllowMySQLQueryPathvalue0.
Option
AutoConfigurevalue0.
Option
CacheFoldervalue: /usr/local/infobright/cache.
OptionControlMessagesvalue0.
Option
InternalMessagesvalue0.
Option
KNFoldervalueBH_RSI_Repository.
OptionKNLevelvalue99.
Option
LicenseFilevalue: <unknown>.
OptionLoaderMainHeapSizevalue800.
Option
PushDownvalue1.
Option
ServerMainHeapSizevalue24000.
Option
UseMySQLImportExportDefaultsvalue0.
Infobright instance configuration loaded
.
110929 11:45:02 [ERROR] Fatal errorCan't open and lock privilege tables: Table 'mysql.host' doesn't exist
110929 11
:45:02 mysqld_safe mysqld from pid file /ebs/infobright/data/ip-10-136-66-211.pid ended 


The install log:

09:07:59 Installing infobright 4.0.4-(x86_64)
09:07:59 The installer will generate /tmp/ib4.0.4-0-install.log install trace log.
09:07:59 [steppre (4.0.4-01=1)]
09
:07:59 build type: static
09:07:59 GLIBC path is /lib64/libc.so.6strings=/usr/bin/strings
09
:08:05 [steppost (4.0.4-0), 1=1]
09
:08:05 Install with RPM_INSTALL_PREFIX=/usr/localcurrent prefix=/usr/local/infobrightprefix_actual=/usr/local/infobright-4.0.4-x86_64
09
:08:05 upgrade=
09:08:05 Config file /etc/my-ib.cnf created
09
:08:05 sed -'s+@BH_PORT@+5029+' -'s+@BH_BASEDIR@+/usr/local/infobright-4.0.4-x86_64+' -'s+@BH_SOCK@+/tmp/mysql-ib.sock+' -'s+@BH_DATADIR@+/usr/local/infobright-4.0.4-x86_64/data+' < /usr/local/infobright-4.0.4-x86_64/support-files/my-ib-master.cnf.in > /etc/my-ib-master.cnf
09
:08:05 sed -'s+@BH_PORT@+5029+' -'s+@BH_BASEDIR@+/usr/local/infobright-4.0.4-x86_64+' -'s+@BH_SOCK@+/tmp/mysql-ib.sock+' -'s+@BH_DATADIR@+/usr/local/infobright-4.0.4-x86_64/data+' < /usr/local/infobright-4.0.4-x86_64/support-files/my-ib-slave.cnf.in > /etc/my-ib-slave.cnf
09
:08:05 Creating/Updating datadir and cachedir
09
:08:05 Creating user mysql and group mysql
09
:08:05 Installing default databases
09
:08:06 scripts/mysql_install_db    --defaults-file=/etc/my-ib.cnf    --user=mysql    --basedir=/usr/local/infobright-4.0.4-x86_64    --datadir=/usr/local/infobright-4.0.4-x86_64/data    --cachedir=/usr/local/infobright-4.0.4-x86_64/cache --force
not ini exist
09
:08:06 Setting optimal memory settings for infobright
09
:08:06 System Physical memory35007(MB)
09:08:06 sed -'s/\#[ ]*ServerMainHeapSize[ ]*=[ 0-9]*/ServerMainHeapSize=24000/'  -'s/\#[ ]*LoaderMainHeapSize[ ]*=[ 0-9]*/LoaderMainHeapSize=800/'  < /usr/local/infobright-4.0.4-x86_64/data/brighthouse.ini > /usr/local/infobright-4.0.4-x86_64/data/brighthouse.ini.tmp
09
:08:06 Infobright optimal ServerMainHeapSize is set to 24000(MB)
09:08:06 Infobright optimal LoaderMainHeapSize is set to 800(MB)
09:08:06 create_daemon>
09:08:06 cmd_sed=sed -'s+@BH_CONF@+/etc/my-ib.cnf+'    -'s+@BH_USER@+mysql+' < /usr/local/infobright/support-files/mysql.server> /etc/init.d/mysqld-ib
09
:08:06 <create_daemon done.
09:08:06 Infobright server installed into folder /usr/local/infobright
09
:08:06 Installation log file /tmp/ib4.0.4-0-install.log
Skipping confman during installation
..
09:08:06 --------------------------------------
09:08:06 To activate infobright serverplease run ./postconfig.sh script from /usr/local/infobright-4.0.4-x86_64.
09:08:06 Example commandcd /usr/local/infobright-4.0.4-x86_64; ./postconfig.sh 


brighthouse.log

2011-09-29 11:17:42 Brighthouse engine started
2011-09-29 11:18:58 Brighthouse engine started
2011-09-29 11:37:59 Brighthouse engine started
2011-09-29 11:41:18 Brighthouse engine started
2011-09-29 11:45:02 Brighthouse engine started
Profile
 
Posted: 29 September 2011 01:17 PM   Ignore ]   [ # 7 ]  
Administrator
RankRankRank
Total Posts:  139
Joined  2008-08-18

Hi,

What is data directory? Can you attach /etc/my-ib.cnf file?

From the error message, it is using /ebs/infobright/data as the data directory but in the install log it’s set to /usr/local/infobright-4.0.4-x86_64/data. Did you change the data directory after the installation?

regards,
Kethees.

Profile
 
Posted: 29 September 2011 01:20 PM   Ignore ]   [ # 8 ]  
Newbie
Rank
Total Posts:  10
Joined  2009-06-08

Yes, I changed it using postconfig.sh

Here is the permissions on /ebs/infobright, /ebs/infobright data:

[root@ip-10-136-66-211 infobright]# ls -al
total 12
drwxr
-xr-x 3 root  root  4096 Sep 29 13:12 .
drwxr-xr-x 5 root  root  4096 Sep 29 13:12 ..
drwxr-xr-x 4 mysql mysql 4096 Sep 29 13:15 data
[root
@ip-10-136-66-211 infobright]# cd data
[root@ip-10-136-66-211 data]# ls -al
total 32
drwxr
-xr-x 4 mysql mysql 4096 Sep 29 13:15 .
drwxr-xr-x 3 root  root  4096 Sep 29 13:12 ..
drwxrwx--x 2 mysql mysql 4096 Sep 29 13:15 BH_RSI_Repository
-rw-rw---- 1 mysql root  1038 Sep 29 13:15 bh.err
-rw-r--r-- 1 root  root  1920 Sep 29 13:15 brighthouse.ini
-rw-rw---- 1 mysql mysql 1073 Sep 29 13:15 brighthouse.log
-rw-rw---- 1 mysql mysql    1 Sep 29 13:15 brighthouse.seq
drwxr
-xr-x 5 mysql mysql 4096 Sep 29 11:07 data
-rw-rw---- 1 mysql mysql    0 Sep 29 13:15 rsi_dir.rsd
[root
@ip-10-136-66-211 data]

Here is the cnf file:

[root@ip-10-136-66-211 etc]# more my-ib.cnf
# Example Infobright config file  (mysql server).
# In this file, you can use all long options that mysql supports.
# If you want to know which options a program supports, run the program
# with the "--help" option.

# The following options will be passed to all MySQL clients
[client]
#password    = your_password
port        3306
socket        
= /tmp/mysql-ib.sock
loose
-local-infile=1

# Here follows entries for some specific programs

# The MySQL server
[mysqld]
basedir 
= /usr/local/infobright-4.0.4-x86_64
datadir 
= /ebs/infobright/data
log
-error = /ebs/infobright/data/bh.err
log
-output FILE
#general_log=1
#general_log_file=path-of-datadir/general_query.log
#slow_query_log=1
#slow_query_log_file=path-of-datadir/slow_query.log

port        3306
socket        
= /tmp/mysql-ib.sock
skip
-locking
key_buffer 
16M
max_allowed_packet 
500M
table_cache 
16
sort_buffer_size 
1M
read_buffer_size 
1M
read_rnd_buffer_size 
4M
myisam_sort_buffer_size 
8M
net_buffer_length 
8K
thread_cache_size 
32
thread_stack 
512K
query_cache_size 
8M
query_cache_type
=0
# Try number of CPU cores*4 for thread_concurrency
thread_concurrency 8
#core-file
 
# Don't listen on a TCP/IP port at all. This can be a security enhancement,
# if all processes that need to connect to mysqld run on the same host.
# All interaction with mysqld must be made via Unix sockets or named pipes.
# Note that using this option without enabling named pipes on Windows
# (using the "enable-named-pipe" option) will render mysqld useless!

#skip-networking
server-id=1
# log-bin=mysql-bin
 

default-storage-engine=brighthouse
collation_server
=latin1_bin
character_set_server
=latin1

[mysqldump]
quick
max_allowed_packet 
16M

[mysql]
no
-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates

[isamchk]
key_buffer 
32M
sort_buffer_size 
32M
read_buffer 
1M
write_buffer 
1M

[myisamchk]
key_buffer 
32M
sort_buffer_size 
32M
read_buffer 
1M
write_buffer 
1M

[mysqlhotcopy]
interactive
-timeout

[mysql
-test]
host
=local
user
=root
port
=3306
database
=dk
# suite-timeout=60
testcase-timeout=3600 
Profile
 
Posted: 29 September 2011 01:40 PM   Ignore ]   [ # 9 ]  
Administrator
RankRankRank
Total Posts:  139
Joined  2008-08-18

Hi,

Using the postconfig, did you move the data directory /usr/local/infobright-4.0.4-x86_64/data to /ebs/infobright/data? or you relocated to an existing data directory /ebs/infobright/data? i.e. is /ebs/infobright/data an old data directory?

If /usr/local/infobright-4.0.4-x86_64/data exists, can you change the data directory to this and see if you can start the server? 

regards,
Kethees.

Profile
 
Posted: 29 September 2011 01:43 PM   Ignore ]   [ # 10 ]  
Newbie
Rank
Total Posts:  10
Joined  2009-06-08

As requested, still not working:

[root@ip-10-136-66-211 infobright]# ./postconfig.sh
Infobright post configuration
--------------------------------------
Using postconfig you can
--------------------------------------
(
1Move existing data directory to other location,
(
2Move existing cache directory to other location,
(
3Configure server socket,
(
4Configure server port,
(
5Relocate datadir path to an existing data directory.

Please type 'y' for option that you want or press ctrl+for exit.

Current configuration
--------------------------------------
Current config file[/etc/my-ib.cnf]
Current brighthouse
.ini file[/ebs/infobright/data/brighthouse.ini]
Current datadir
[/ebs/infobright/data]
Current CacheFolder in brighthouse
.ini file[/usr/local/infobright/cache]
Current socket
[/tmp/mysql-ib.sock] 
Current port
[3306]
--------------------------------------
(
1) Do you want to copy current datadir [/ebs/infobright/data] to a new location[y/n]:y
Give 
new datadir path (e.g. /opt/datadirnewpath/data):/usr/local/infobright-4.0.4-x86_64/data
(2Option to change CacheFolder is disabled when option 1 is chosen!
(
3) Do you want to change current socket [/tmp/mysql-ib.sock][y/n]:n
(4) Do you want to change current port [3306][y/n]:n
(5Relocation is disabled when options 1-4 are chosen!
--------------------------------------
Datadir(/ebs/infobright/datais going to be copied to /usr/local/infobright-4.0.4-x86_64/data
--------------------------------------
Please confirm to proceed[y/n]:y
Copying 
/ebs/infobright/data to /usr/local/infobright-4.0.4-x86_64/data ...is done.
You can now remove/backup your old /ebs/infobright/data ...
Done!
[root@ip-10-136-66-211 infobright]# ./bin/mysqld_safe &
[1] 7927
[root
@ip-10-136-66-211 infobright]# 110930 01:41:22 mysqld_safe Logging to '/usr/local/infobright-4.0.4-x86_64/data/bh.err'.
110930 01:41:22 mysqld_safe Starting mysqld daemon with databases from /usr/local/infobright-4.0.4-x86_64/data
110930 01
:41:22 mysqld_safe mysqld from pid file /usr/local/infobright-4.0.4-x86_64/data/ip-10-136-66-211.pid ended

[1]
+  Done                    ./bin/mysqld_safe
[root
@ip-10-136-66-211 infobright]# cd data
[root@ip-10-136-66-211 data]# ls
BH_RSI_Repository  brighthouse.ini  brighthouse.seq  rsi_dir.rsd
bh
.err           brighthouse.log  data         updater.log
[root
@ip-10-136-66-211 data]# more bh.err
110929 13:15:10 mysqld_safe Starting mysqld daemon with databases from /ebs/info
bright
/data
/usr/local/infobright-4.0.4-x86_64/bin/mysqldTable 'mysql.plugin' doesn't exis
t
110929 13:15:10 [ERROR] Can'
t open the mysql.plugin tablePlease run mysql_upgr
ade to create it
.
Loading configuration for Infobright instance ...
OptionAllowMySQLQueryPathvalue0.
Option
AutoConfigurevalue0.
Option
CacheFoldervalue: /usr/local/infobright/cache.
OptionControlMessagesvalue0.
Option
InternalMessagesvalue0.
Option
KNFoldervalueBH_RSI_Repository.
OptionKNLevelvalue99.
Option
LicenseFilevalue: <unknown>.
OptionLoaderMainHeapSizevalue800.
Option
PushDownvalue1.
Option
ServerMainHeapSizevalue24000.
Option
UseMySQLImportExportDefaultsvalue0.
Infobright instance configuration loaded
.
110929 13:15:10 [ERROR] Fatal errorCan't open and lock privilege tables: Table
 '
mysql.host' doesn't exist
110929 13
:15:10 mysqld_safe mysqld from pid file /ebs/infobright/data/ip-10-136-
66-211.pid ended
110930 01
:41:22 mysqld_safe Starting mysqld daemon with databases from /usr/loca
l
/infobright-4.0.4-x86_64/data
/usr/local/infobright/bin/mysqldTable 'mysql.plugin' doesn't exist
110930  1:41:22 [ERROR] Can'
t open the mysql.plugin tablePlease run mysql_upgr
ade to create it
.
Loading configuration for Infobright instance ...
OptionAllowMySQLQueryPathvalue0.
Option
AutoConfigurevalue0.
Option
CacheFoldervalue: /usr/local/infobright/cache.
OptionControlMessagesvalue0.
Option
InternalMessagesvalue0.
Option
KNFoldervalueBH_RSI_Repository.
OptionKNLevelvalue99.
Option
LicenseFilevalue: <unknown>.
OptionLoaderMainHeapSizevalue800.
Option
PushDownvalue1.
Option
ServerMainHeapSizevalue24000.
Option
UseMySQLImportExportDefaultsvalue0.
Infobright instance configuration loaded
.
110930  1:41:22 [ERROR] Fatal errorCan't open and lock privilege tables: Table
 '
mysql.host' doesn't exist
110930 01
:41:22 mysqld_safe mysqld from pid file /usr/local/infobright-4.0.4-x86
_64
/data/ip-10-136-66-211.pid ended
[root
@ip-10-136-66-211 data]
Profile
 
Posted: 29 September 2011 02:02 PM   Ignore ]   [ # 11 ]  
Administrator
RankRankRank
Total Posts:  139
Joined  2008-08-18

Hi,

It’s still not clear to me, whether the data directory /ebs/infobright/data was an old data directory or it was created by 4.0.4 and moved using the postconfig. Anyway, now it would have been overwriiten since you selected option (1) on postconfig, instead of option (5).

The actual problem is that some of the system tables missing. Not sure, why? It might be an installation bug.

Can you uninstall, remove the directory /usr/local/infobright-4.0.4-x86_64 and reinstall. This time start the server before making any changes to the data directory and see if it has the same problem.

regards,
Kethees.

Profile
 
Posted: 29 September 2011 02:07 PM   Ignore ]   [ # 12 ]  
Newbie
Rank
Total Posts:  10
Joined  2009-06-08

As requested:

[root@ip-10-136-66-211 tmp]# rpm -e infobright-4.0.4-0
Uninstalling infobright 4.0.4-0
Shutting down infobright server
...
Uninstaller does not remove data folderPlease remove it manually.
Symlink /usr/local/infobright removed.
Uninstallation of 4.0.4-0 completed.
[root@ip-10-136-66-211 tmp]# rm -rf /usr/local/infobright
[root@ip-10-136-66-211 tmp]# rpm -i infobright-4.0.4-0-x86_64-ice.rpm 
Installing infobright 4.0.4-(x86_64)
The installer will generate /tmp/ib4.0.4-0-install.log install trace log.
Creating/Updating datadir and cachedir
Creating user mysql 
and group mysql
Infobright server installed into folder 
/usr/local/infobright
Installation log file 
/tmp/ib4.0.4-0-install.log
--------------------------------------
To activate infobright serverplease run ./postconfig.sh script from /usr/local/infobright-4.0.4-x86_64.
Example commandcd /usr/local/infobright-4.0.4-x86_64; ./postconfig.sh
[root
@ip-10-136-66-211 tmp]# cd /usr
[root@ip-10-136-66-211 usr]# cd local
[root@ip-10-136-66-211 local]# cd infobright-4.0.4-x86_64/
[root@ip-10-136-66-211 infobright-4.0.4-x86_64]# ./postconfig.sh
Infobright post configuration
--------------------------------------
Infobright server activated.
--------------------------------------
Register your copy of ICE and receive a free copy of the User Manual ($50 value) as well as a copy of the Bloor Research Spotlight Report "What's Cool About Columns" which explains the differences and benefits of a columnar versus row database.
Registration will require opening an HTTP connection to Infobright, do you wish to register now[Y/N]y
Do you want to tell us a bit about yourselfWe will try to send your information to our server[Y/N]n
Register now http
://www.infobright.org/Downloads/ICE/.

[root@ip-10-136-66-211 infobright-4.0.4-x86_64]# ./postconfig.sh
Infobright post configuration
--------------------------------------
Using postconfig you can
--------------------------------------
(
1Move existing data directory to other location,
(
2Move existing cache directory to other location,
(
3Configure server socket,
(
4Configure server port,
(
5Relocate datadir path to an existing data directory.

Please type 'y' for option that you want or press ctrl+for exit.

Current configuration
--------------------------------------
Current config file[/etc/my-ib.cnf]
Current brighthouse
.ini file[/usr/local/infobright-4.0.4-x86_64/data/brighthouse.ini]
Current datadir
[/usr/local/infobright-4.0.4-x86_64/data]
Current CacheFolder in brighthouse
.ini file[/usr/local/infobright/cache]
Current socket
[/tmp/mysql-ib.sock] 
Current port
[5029]
--------------------------------------
(
1) Do you want to copy current datadir [/usr/local/infobright-4.0.4-x86_64/data] to a new location[y/n]:n
(2) Do you want to move current CacheFolder [/usr/local/infobright/cache] to a new location[y/n]:n
(3) Do you want to change current socket [/tmp/mysql-ib.sock][y/n]:n
(4) Do you want to change current port [5029][y/n]:n
(5) Do you want to relocate to an existing datadirCurrent datadir is [/usr/local/infobright-4.0.4-x86_64/data][y/n]:n
--------------------------------------
--------------------------------------
No changes has been made.
--------------------------------------
[root@ip-10-136-66-211 infobright-4.0.4-x86_64]# ./bin/mysqld_safe &
[1] 8332
[root
@ip-10-136-66-211 infobright-4.0.4-x86_64]# 110930 02:04:47 mysqld_safe Logging to '/usr/local/infobright-4.0.4-x86_64/data/bh.err'.
110930 02:04:48 mysqld_safe Starting mysqld daemon with databases from /usr/local/infobright-4.0.4-x86_64/data
110930 02
:04:48 mysqld_safe mysqld from pid file /usr/local/infobright-4.0.4-x86_64/data/ip-10-136-66-211.pid ended

[1]
+  Done                    ./bin/mysqld_safe
[root
@ip-10-136-66-211 infobright-4.0.4-x86_64]# cd data
[root@ip-10-136-66-211 data]# more bh.err
110929 13:15:10 mysqld_safe Starting mysqld daemon with databases from /ebs/info
bright
/data
/usr/local/infobright-4.0.4-x86_64/bin/mysqldTable 'mysql.plugin' doesn't exis
t
110929 13:15:10 [ERROR] Can'
t open the mysql.plugin tablePlease run mysql_upgr
ade to create it
.
Loading configuration for Infobright instance ...
OptionAllowMySQLQueryPathvalue0.
Option
AutoConfigurevalue0.
Option
CacheFoldervalue: /usr/local/infobright/cache.
OptionControlMessagesvalue0.
Option
InternalMessagesvalue0.
Option
KNFoldervalueBH_RSI_Repository.
OptionKNLevelvalue99.
Option
LicenseFilevalue: <unknown>.
OptionLoaderMainHeapSizevalue800.
Option
PushDownvalue1.
Option
ServerMainHeapSizevalue24000.
Option
UseMySQLImportExportDefaultsvalue0.
Infobright instance configuration loaded
.
110929 13:15:10 [ERROR] Fatal errorCan't open and lock privilege tables: Table
 '
mysql.host' doesn't exist
110929 13
:15:10 mysqld_safe mysqld from pid file /ebs/infobright/data/ip-10-136-
66-211.pid ended
110930 01
:41:22 mysqld_safe Starting mysqld daemon with databases from /usr/loca
l
/infobright-4.0.4-x86_64/data
/usr/local/infobright/bin/mysqldTable 'mysql.plugin' doesn't exist
110930  1:41:22 [ERROR] Can'
t open the mysql.plugin tablePlease run mysql_upgr
ade to create it
.
Loading configuration for Infobright instance ...
OptionAllowMySQLQueryPathvalue0.
Option
AutoConfigurevalue0.
Option
CacheFoldervalue: /usr/local/infobright/cache.
OptionControlMessagesvalue0.
Option
InternalMessagesvalue0.
Option
KNFoldervalueBH_RSI_Repository.
OptionKNLevelvalue99.
Option
LicenseFilevalue: <unknown>.
OptionLoaderMainHeapSizevalue800.
Option
PushDownvalue1.
Option
ServerMainHeapSizevalue24000.
Option
UseMySQLImportExportDefaultsvalue0.
Infobright instance configuration loaded
.
110930  1:41:22 [ERROR] Fatal errorCan't open and lock privilege tables: Table
 '
mysql.host' doesn't exist
110930 01
:41:22 mysqld_safe mysqld from pid file /usr/local/infobright-4.0.4-x86
_64
/data/ip-10-136-66-211.pid ended
110930 02
:04:48 mysqld_safe Starting mysqld daemon with databases from /usr/loca
l
/infobright-4.0.4-x86_64/data
/usr/local/infobright-4.0.4-x86_64/bin/mysqldTable 'mysql.plugin' doesn't exis
t
110930  2:04:48 [ERROR] Can'
t open the mysql.plugin tablePlease run mysql_upgr
ade to create it
.
Loading configuration for Infobright instance ...
OptionAllowMySQLQueryPathvalue0.
Option
AutoConfigurevalue0.
Option
CacheFoldervalue: /usr/local/infobright/cache.
OptionControlMessagesvalue0.
Option
InternalMessagesvalue0.
Option
KNFoldervalueBH_RSI_Repository.
OptionKNLevelvalue99.
Option
LicenseFilevalue: <unknown>.
OptionLoaderMainHeapSizevalue800.
Option
PushDownvalue1.
Option
ServerMainHeapSizevalue24000.
Option
UseMySQLImportExportDefaultsvalue0.
Infobright instance configuration loaded
.
110930  2:04:48 [ERROR] Fatal errorCan't open and lock privilege tables: Table
 '
mysql.host' doesn't exist
110930 02
:04:48 mysqld_safe mysqld from pid file /usr/local/infobright-4.0.4-x86
_64
/data/ip-10-136-66-211.pid ended
[root
@ip-10-136-66-211 data]
Profile
 
Posted: 29 September 2011 03:28 PM   Ignore ]   [ # 13 ]  
Administrator
RankRankRank
Total Posts:  139
Joined  2008-08-18

Hi,

You may want to try this one more time because the step “rm -rf /usr/local/infobright” wouldn’t have removed the directory/files since /usr/local/infobright is a soft link and would have been removed upon uninstallation.

You have to issue:
  cd /usr/local
  rm -rf infobright-4.0.4-x86_64

Also, after the install and before moving the data directory, try to start the server and see if it starts.

The other option is that, if you have another instance then you can just copy the system tables (/usr/local/infobright-4.0.4-x86_64/data/mysql/*).

regards,
Kethees.

Profile
 
Posted: 29 September 2011 03:40 PM   Ignore ]   [ # 14 ]  
Newbie
Rank
Total Posts:  10
Joined  2009-06-08

Finally - that did the trick. It starts successfully now.

However, when I use postconfig.sh to move the directory, then Infobright now fails to start.

We cannot install Infobright on the default directory, there isn’t enough space on that device.

Please advise now on how I can safely move the data directory to another path…

Profile
 
Posted: 29 September 2011 04:15 PM   Ignore ]   [ # 15 ]  
Administrator
RankRankRank
Total Posts:  139
Joined  2008-08-18

Hi,

I wasn’t able to reproduce the postconfig problem.

To resolve your issue, instead of executing the postconfig:
- you can move the data directory to your new location
- change the ownership to mysql
- edit /etc/my-ib.cnf and update the new path for the parameter datadir (optionally update log-error)

regards,
Kethees.

Profile
 
   
1 of 2
1