Mailbox Stopped

Ask questions about your setup or get help installing ZCS server (ZD section below).
marcmac
Elite member
Elite member
Posts: 2091
Joined: Fri Sep 12, 2014 9:53 pm

Mailbox Stopped

Postby marcmac » Wed Nov 23, 2005 2:20 am

Now you have to start tomcat :)
su - zimbra

tomcat start


jono
Posts: 18
Joined: Fri Sep 12, 2014 10:01 pm

Mailbox Stopped

Postby jono » Wed Nov 23, 2005 6:19 pm

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
marcmac
Elite member
Elite member
Posts: 2091
Joined: Fri Sep 12, 2014 9:53 pm

Mailbox Stopped

Postby marcmac » Wed Nov 23, 2005 6:24 pm

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.
jono
Posts: 18
Joined: Fri Sep 12, 2014 10:01 pm

Mailbox Stopped

Postby jono » Wed Nov 23, 2005 7:15 pm

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?
marcmac
Elite member
Elite member
Posts: 2091
Joined: Fri Sep 12, 2014 9:53 pm

Mailbox Stopped

Postby marcmac » Wed Nov 23, 2005 7:20 pm

su - zimbra

mysql.server start

mysqladmin status
Any errors? Also check /var/log/zimbra.log
jono
Posts: 18
Joined: Fri Sep 12, 2014 10:01 pm

Mailbox Stopped

Postby jono » Wed Nov 23, 2005 7:27 pm

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
marcmac
Elite member
Elite member
Posts: 2091
Joined: Fri Sep 12, 2014 9:53 pm

Mailbox Stopped

Postby marcmac » Wed Nov 23, 2005 7:38 pm

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
jono
Posts: 18
Joined: Fri Sep 12, 2014 10:01 pm

Mailbox Stopped

Postby jono » Wed Nov 23, 2005 8:55 pm

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...
marcmac
Elite member
Elite member
Posts: 2091
Joined: Fri Sep 12, 2014 9:53 pm

Mailbox Stopped

Postby marcmac » Wed Nov 23, 2005 8:59 pm

Add -f to both of those (zmlocalconfig -f -e ...)
Sorry
jono
Posts: 18
Joined: Fri Sep 12, 2014 10:01 pm

Mailbox Stopped

Postby jono » Wed Nov 23, 2005 11:56 pm

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!!!

Return to “Installation and Upgrade”

Who is online

Users browsing this forum: Google [Bot] and 6 guests