/opt/zimbra/openldap/var/run/slapd.pid: Permission denied

Ask questions about your setup or get help installing ZCS server (ZD section below).
itdjship
Posts: 2
Joined: Mon Feb 05, 2018 5:56 am

/opt/zimbra/openldap/var/run/slapd.pid: Permission denied

Postby itdjship » Mon Feb 05, 2018 6:26 am

Hi,

I have crash zimbra 8.0.7 on ubuntu 12.04 64bit
i want restore all data and i follow this tutorial
https://wiki.zimbra.com/wiki/ZCS_to_ZCS_rsync_Migration

after i restore /opt/zimbra to new server, i run ./install.sh ( i restore to same version zcs 8.0.7 and ubuntu 12.04)
show error like this

Code: Select all

Restoring existing configuration file from /opt/zimbra/.saveconfig/localconfig.xml...done
Operations logged to /tmp/zmsetup.02052018-123327.log
Running zmldapapplyldif...done.
Checking ldap status....not running.
Starting ldap...failed with exit code: 256.
Running zmldapapplyldif...done.
Checking ldap status....not running.
Starting ldap...failed with exit code: 256.


this /tmp/zmsetup.log

Code: Select all

Mon Feb  5 12:33:32 2018 Checking ldap status....
Mon Feb  5 12:33:32 2018 *** Running as zimbra user: /opt/zimbra/bin/ldap status
cat: /opt/zimbra/openldap/var/run/slapd.pid: Permission denied
Mon Feb  5 12:33:33 2018 not running.
Mon Feb  5 12:33:33 2018 Starting ldap...
Mon Feb  5 12:33:33 2018 *** Running as zimbra user: /opt/zimbra/bin/ldap start
cat: /opt/zimbra/openldap/var/run/slapd.pid: Permission denied
cat: /opt/zimbra/openldap/var/run/slapd.pid: Permission denied
cat: /opt/zimbra/openldap/var/run/slapd.pid: Permission denied
cat: /opt/zimbra/openldap/var/run/slapd.pid: Permission denied
cat: /opt/zimbra/openldap/var/run/slapd.pid: Permission denied
cat: /opt/zimbra/openldap/var/run/slapd.pid: Permission denied
cat: /opt/zimbra/openldap/var/run/slapd.pid: Permission denied
Failed to start slapd.  Attempting debug start to determine error.


itdjship
Posts: 2
Joined: Mon Feb 05, 2018 5:56 am

Re: /opt/zimbra/openldap/var/run/slapd.pid: Permission denied

Postby itdjship » Wed Feb 07, 2018 1:12 am

Solved with this

Code: Select all

unlink /opt/zimbra/openldap/var/run/slapd.pid
unlink /opt/zimbra/openldap/var/run/slapd.args
ln -s /opt/zimbra/openldap-2.4.38.2z/var/run/slapd.pid /opt/zimbra/openldap/var/run/
ln -s /opt/zimbra/openldap-2.4.38.2z/var/run/slapd.args /opt/zimbra/openldap/var/run/

Return to “Installation and Upgrade”

Who is online

Users browsing this forum: No registered users and 12 guests