Error Message:
zopectl Error: <<INSTANCE_HOME>> is not an existing directory (line 44, in file:///opt/zenoss/etc/zope.conf)
For help, use /opt/zenoss/lib/python/Zope2/Startup/zopectl.py -h
###################################################################################
ZOPECTL file:
#! /bin/sh
PYTHON="/opt/zenoss/bin/python"
ZOPE_HOME="/opt/zenoss"
INSTANCE_HOME="/opt/zenoss"
CONFIG_FILE="/opt/zenoss/etc/zope.conf"
SOFTWARE_HOME="/opt/zenoss/lib/python"
PYTHONPATH="$SOFTWARE_HOME"
export PYTHONPATH INSTANCE_HOME SOFTWARE_HOME
ZDCTL="$SOFTWARE_HOME/Zope2/Startup/zopectl.py"
exec "$PYTHON" "$ZDCTL" -C "$CONFIG_FILE" "$@"
###################################################################################
ZOPE.conf File
###############################################################################
2 # Welcome to Zope 2.
3 ###############################################################################
4 #
5 # This is the Zope configuration file. The Zope configuration file
6 # shows what the default configuration directives are, and show
7 # examples for each directive. To declare a directive, make sure that
8 # you add it to a line that does not begin with '#'. Note that comments
9 # are only allowed at the beginning of a line: you may not add comments
10 # after directive text on the same line.
11 #
12 # Note for Developers
13 # ===================
14 #
15 # This file is *not* auto-generated. If you create a new directive you
16 # very likely want to include an example of how to use the new
17 # directive in this file.
18 #
19 # You shouldn't modify 'zope.conf.in' to change
20 # configuration. Instead, you should make a copy into 'zope.conf' and
21 # modify that to avoid checking in changes to this file by mistake.
22
23 # ZConfig "defines" used for later textual substitution
24
25 %define INSTANCE <<INSTANCE_HOME>>
26 %define ZOPE <<ZOPE_HOME>>
27
28 # this needs to match the encoding in the sitecustomize.py file
29 # in $ZENHOME/lib/python
30 default-zpublisher-encoding latin-1
31
32 # Directive: instancehome
33 #
34 # Description:
35 # The path to the data files, local product files, import directory,
36 # and Extensions directory used by Zope.
37 #
38 # Required (no default)
39 #
40 # Example:
41 #
42 # instancehome /home/chrism/projects/sessions
43
44 instancehome $INSTANCE
45