| 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.
|  | | 
11-23-2005, 12:20 AM
| | Zimbra Employee | |
Posts: 2,103
| | tomcat Now you have to start tomcat
su - zimbra
tomcat start | 
11-23-2005, 04:19 PM
| | Intermediate Member | |
Posts: 18
| | 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 | 
11-23-2005, 04:24 PM
| | Zimbra Employee | |
Posts: 2,103
| | 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. | 
11-23-2005, 05:15 PM
| | Intermediate Member | |
Posts: 18
| | 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? | 
11-23-2005, 05:20 PM
| | Zimbra Employee | |
Posts: 2,103
| | mysql not starting su - zimbra
mysql.server start
mysqladmin status
Any errors? Also check /var/log/zimbra.log | 
11-23-2005, 05:27 PM
| | Intermediate Member | |
Posts: 18
| | 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 | 
11-23-2005, 05:38 PM
| | Zimbra Employee | |
Posts: 2,103
| | 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 | 
11-23-2005, 06:55 PM
| | Intermediate Member | |
Posts: 18
| | 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... | 
11-23-2005, 06:59 PM
| | Zimbra Employee | |
Posts: 2,103
| | forgot -f Add -f to both of those (zmlocalconfig -f -e ...)
Sorry | 
11-23-2005, 09:56 PM
| | Intermediate Member | |
Posts: 18
| | 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!!! | | Thread Tools | Search this Thread | | | | | Display Modes | Linear Mode | | Why Join? Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.  |