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 please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #11 (permalink)  
Old 11-23-2005, 12:20 AM
Zimbra Employee
 
Posts: 2,103
Default tomcat

Now you have to start tomcat

su - zimbra
tomcat start
Reply With Quote
  #12 (permalink)  
Old 11-23-2005, 04:19 PM
Intermediate Member
 
Posts: 18
Default mailbox still stopped

Hiya,

Firstly, I appreciate the help, and I am hoping these experiences will eventually enrich the project and make it easier for those that follow.

su - zimbra
tomcat start

mysql.server start &
(have to control-z that)

zmcontrol stop (just to make sure)
zmcontrol start
- all come up "done"

zmcontrol status
antispam Running
antivirus Running
ldap Running
logger Running
mailbox Stopped
mta Running
snmp Running
spell Running
Reply With Quote
  #13 (permalink)  
Old 11-23-2005, 04:24 PM
Zimbra Employee
 
Posts: 2,103
Default Why?

WHy are you doing it that way? Specifically, why start tomcat before sql, when tomcat won't run without sql?

su - zimbra
zmmailboxctl stop
zmmailboxctl start
sh -x zmmailboxctl status

post the output of the last command.
Reply With Quote
  #14 (permalink)  
Old 11-23-2005, 05:15 PM
Intermediate Member
 
Posts: 18
Default

ok, done that:

202:~ zimbra$ sh -x zmmailboxctl status
+ BASE=/opt/zimbra
+ SCRIPTS=tomcat mysql.server
+ STATUS=0
+ '[' tomcat = mysql.server ']'
+ /opt/zimbra/bin/tomcat status
+ R=1
+ '[' 1 -ne 0 ']'
+ STATUS=1
+ '[' mysql.server = mysql.server ']'
+ /opt/zimbra/bin/mysqladmin status
+ R=1
+ '[' 1 -ne 0 ']'
+ STATUS=1
+ exit 1

Does that help at all?
Reply With Quote
  #15 (permalink)  
Old 11-23-2005, 05:20 PM
Zimbra Employee
 
Posts: 2,103
Default mysql not starting

su - zimbra
mysql.server start
mysqladmin status

Any errors? Also check /var/log/zimbra.log
Reply With Quote
  #16 (permalink)  
Old 11-23-2005, 05:27 PM
Intermediate Member
 
Posts: 18
Default

202:~ zimbra$ zmcontrol status
Host XXXreplacedXXX
antispam Running
antivirus Running
ldap Running
logger Running
mailbox Stopped
mta Running
snmp Running
spell Running
202:~ zimbra$ mysql.server start
202:~ zimbra$ A mysqld process already exists
mysqladmin status
/opt/zimbra/mysql/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: YES)'
202:~ zimbra$ tail -f -n 20 /var/log/zimbra.log

no errors apparent in the log, only the status of things
Reply With Quote
  #17 (permalink)  
Old 11-23-2005, 05:38 PM
Zimbra Employee
 
Posts: 2,103
Default mysql password recovery

Kill your mysql process, and restart it with mysql.server - if the mysqladmin returns an errror after that, we'll have to reset your password:

zmcontrol stop
zmlocalconfig -e zimbra_mysql_password=newpasswd
zmlocalconfig -e mysql_root_password=newrootpasswd

edit /opt/zimbra/bin/mysql.server

Change
'start')
# --defaults-file must be first argument
cd ${mysql_directory}; \
${mysql_directory}/bin/mysqld_safe \
--defaults-file=${mysql_mycnf} \
--ledir=${mysql_directory}/bin &
;;

to
'start')
# --defaults-file must be first argument
cd ${mysql_directory}; \
${mysql_directory}/bin/mysqld_safe \
--defaults-file=${mysql_mycnf} \
--skip-grant-tables \
--ledir=${mysql_directory}/bin &
;;

su - zimbra
mysql.server start

mysql mysql
update user set password=PASSWORD('newpasswd') where user='zimbra';
update user set password=PASSWORD('newrootpasswd') where user='root';
flush privileges
exit

mysql.server stop
Change mysql.server back (remove --skip-grant-tables)
mysql.server start
mysqladmin status
Reply With Quote
  #18 (permalink)  
Old 11-23-2005, 06:55 PM
Intermediate Member
 
Posts: 18
Default mysql pwd.

hmmmm...

zmcontrol stop
zmlocalconfig -e zimbra_mysql_password=newpasswd

Error: can not edit key zimbra_mysql_password

even sudo'ing it I get the same...
Reply With Quote
  #19 (permalink)  
Old 11-23-2005, 06:59 PM
Zimbra Employee
 
Posts: 2,103
Default forgot -f

Add -f to both of those (zmlocalconfig -f -e ...)

Sorry
Reply With Quote
  #20 (permalink)  
Old 11-23-2005, 09:56 PM
Intermediate Member
 
Posts: 18
Default Wahoo!

Sweet, all good now

Ok, now onto configuration... oh, and at some point I will have to get this autostarting if it does end up meeting my needs, which it does look like it will

Once again - Thanks!!!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

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

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.