Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
 
Go Back   Zimbra - Forums > Zimbra Collaboration Suite > Installation

Welcome to the Zimbra - Forums!
Welcome, if you would like to post a comment in the forums, please register and review our posting policy & tips. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-08-2005, 08:15 PM
Junior Member
 
Posts: 5
Default Installation fails, possible mysql problem

Installing on Fedora Core 3... Get to the install step "Starting Servers..." and install hangs. I note in the mysql log the following:

InnoDB: Setting log file ./ib_logfile0 size to 14 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Error: ib_logfiles are too small for innodb_thread_concurrency 200.
InnoDB: The combined size of ib_logfiles should be bigger than
InnoDB: 200 kB * innodb_thread_concurrency.
InnoDB: To get mysqld to start up, set innodb_thread_concurrency in my.cnf
InnoDB: to a lower value, for example, to 8. After an ERROR-FREE shutdown
InnoDB: of mysqld you can adjust the size of ib_logfiles, as explained in
InnoDB: http://dev.mysql.com/doc/mysql/en/Ad..._removing.html
InnoDB: Cannot continue operation. Calling exit(1).
050908 20:59:52 mysqld ended

Any way to get past this? Thanks.
-Alan
Reply With Quote
  #2 (permalink)  
Old 09-08-2005, 10:09 PM
Zimbra Employee
 
Posts: 4,784
Default

Hi,

Can you run df -k and check your available disk space?

thanks

-kevin
Reply With Quote
  #3 (permalink)  
Old 09-09-2005, 05:05 AM
Junior Member
 
Posts: 5
Default

[asparks@phoenix ~]$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda2 20161204 15959068 3177996 84% /
/dev/hda1 101086 22552 73315 24% /boot
none 94832 0 94832 0% /dev/shm
/dev/shm 153600 28 153572 1% /opt/zimbra/amavisd/tmp

Thanks.
Reply With Quote
  #4 (permalink)  
Old 09-09-2005, 11:40 AM
Zimbra Employee
 
Posts: 2,073
Default This actually looks like a memory shortage

Quote:
Originally Posted by webminster
Installing on Fedora Core 3... Get to the install step "Starting Servers..." and install hangs. I note in the mysql log the following:

InnoDB: Setting log file ./ib_logfile0 size to 14 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Error: ib_logfiles are too small for innodb_thread_concurrency 200.
InnoDB: The combined size of ib_logfiles should be bigger than
InnoDB: 200 kB * innodb_thread_concurrency.
InnoDB: To get mysqld to start up, set innodb_thread_concurrency in my.cnf
InnoDB: to a lower value, for example, to 8. After an ERROR-FREE shutdown
InnoDB: of mysqld you can adjust the size of ib_logfiles, as explained in
InnoDB: http://dev.mysql.com/doc/mysql/en/Ad..._removing.html
InnoDB: Cannot continue operation. Calling exit(1).
050908 20:59:52 mysqld ended

Any way to get past this? Thanks.
-Alan
It looks like you don't have enough memory - by default, we assign 40% of available system memory to mysql. The log files are sized at 20% of that value - so, if you've got limited RAM, the log file sizes are too low for the concurrency value.

To fix this, edit /opt/zimbra/conf/my.cnf and lower innodb_thread_concurrency from 200. THe error message shows that your logfiles are 14M, so concurrency*200kB should be less than that - so a value of 50 should work.

Additionally, you'll want to lower max_connections in my.cnf to a smaller value - 50 should work for that, too.

This is being tracked in bug 3911

Last edited by marcmac : 09-09-2005 at 11:43 AM. Reason: Added bug reference
Reply With Quote
  #5 (permalink)  
Old 09-09-2005, 01:21 PM
Junior Member
 
Posts: 5
Default

How do I do this during running install.sh? How do I pre-change the configuration so it'll start the DB properly during the "initializing db" phase? The installation is corrupt since the database won't come up for initialization...
-Alan
Reply With Quote
  #6 (permalink)  
Old 09-09-2005, 02:07 PM
Zimbra Employee
 
Posts: 2,073
Default Fix for this problem

What you need to do is modify the innodb_thread_concurrency and max_connections prior to mysql installation.

You'll need to modify the install.sh script.

Before the line that runs "zmmyinit" (line 989, I think) you'll want to add these two lines (inside the conditional block):

runAsZimbra "zmlocalconfig -e mysql_innodb_thread_concurrency=50"
runAsZimbra "zmlocalconfig -e mysql_max_connections=50"

This will set the parameters prior to database creation.

Quote:
Originally Posted by webminster
How do I do this during running install.sh? How do I pre-change the configuration so it'll start the DB properly during the "initializing db" phase? The installation is corrupt since the database won't come up for initialization...
-Alan
Reply With Quote
  #7 (permalink)  
Old 09-09-2005, 02:41 PM
Junior Member
 
Posts: 5
Default

Thanks! Good call, that worked nicely.
-Alan
Reply With Quote
Reply


Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Use existing MySQL installation daimer77 Installation 6 05-07-2009 08:48 AM
Zimbra fails after working for 2 weeks Linsys Administrators 10 10-07-2008 12:42 AM
Installation fails on zimbra-store wyleyrabbit Installation 8 01-15-2006 07:19 AM
Installation problem sywong70 Installation 5 11-07-2005 08:01 PM
Installation fault - getDirectContext fails gregjohnson1024 Administrators 3 11-07-2005 03:28 PM

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

Zimbrablog.com

sourceforge.net



 

Search Engine Optimization by vBSEO 3.1.0