Hi,
First attempt at installing this portal...on-prem, Centos 7.
Ran the setup cmd:
/opt/apigee/apigee-setup/bin/setup.sh -p dp -f portal.conf
Got this error at the end, and i don't see an httpd running, so i assume it really failed. I used the conf file template from the on-line instructions, so if i'm missing a property its probably missing in there as well. But what properties are missing????
/bin/chown: cannot access ‘/opt/apigee/var/log/drupal-devportal’: No such file or directory updated property conf_dbname in file /opt/apigee/token/application/drupal-devportal.properties updated property conf_dbuser in file /opt/apigee/token/application/drupal-devportal.properties updated property conf_dbpass in file /opt/apigee/token/application/drupal-devportal.properties updated property conf_dbhost in file /opt/apigee/token/application/drupal-devportal.properties updated property conf_datadir in file /opt/apigee/token/application/drupal-devportal.properties updated property php_fpm_port in file /opt/apigee/token/application/drupal-devportal.properties updated property php_pid_file in file /opt/apigee/token/application/drupal-devportal.properties Some properties are not set - are they set in the silent config? exiting... Error: setup.sh: /opt/apigee/apigee-service/bin/apigee-service exited with unexpected status 1
adding the conf file i used...
[root@portal ~]# more /tmp/portal.conf IP1=192.168.40.136 # Must resolve to IP address or DNS name of host - not to 127.0.0.1 or localhost . HOSTIP=$(hostname -all-ip-addresses) # Specify the name of the portal database in Postgres. PG_NAME=devportal # Specify the Postgres admin credentials. # The portal connects to Postgres by using the 'apigee' user. # If you changed the Postgres password from the default of 'postgres' # then set PG_PWD accordingly. # If connecting to a Postgres node installed with Edge, # contact the Edge sys admin to get these credentials. PG_USER=apigee PG_PWD=postgres # The IP address of the Postgres server. # If it is installed on the same node as the portal, specify that IP. # If connecting to a remote Postgres server,specify its IP address. PG_HOST=$IP1 # The Postgres user credentials used by the portal # to access the Postgres database, # This account is created if it does not already exist. DRUPAL_PG_USER=drupaladmin DRUPAL_PG_PASS=portalSecret # Specify 'postgres' as the database. DEFAULT_DB=postgres # Specify the Drupal admin account details. # DO NOT set DEVPORTAL_ADMIN_USERNAME=admin. # The installer creates this user on the portal. DEVPORTAL_ADMIN_FIRSTNAME=brenda DEVPORTAL_ADMIN_LASTNAME=ucich DEVPORTAL_ADMIN_USERNAME=brendau@allinone.local DEVPORTAL_ADMIN_PWD=xxxxx DEVPORTAL_ADMIN_EMAIL=brendau@allinone.local # Edge connection details. # If omitted, you can set them in the portal UI. # Specify the Edge organization associated with the portal. EDGE_ORG=acclaim # Specify the URL of the Edge management API. # For a Cloud based installation of Edge, the URL is: # https://api.enterprise.apigee.com/v1 # For a Private Cloud installation, it is in the form: # http://<ms_ip_or_DNS>:8080/v1 or # https://<ms_ip_or_DNS>:TLSport/v1 MGMT_URL=http://192.168.40.134:8080/v1 # The org admin credentials for the Edge organization in the form # of Edge emailAddress:pword. # The portal uses this information to connect to Edge. DEVADMIN_USER=brendau@allinone.local DEVADMIN_PWD=xxxxx # The PHP port. # If omitted, it defaults to 8888. PHP_FPM_PORT=8888 # You must configure the SMTP server used by the portal. # The properties SMTPHOST and SMTPPORT are required. # The others are optional with a default value as notated below. # SMTP hostname. For example, for the Gmail server, use smtp.gmail.com. SMTPHOST=smtp.gmail.com # Use SSL for SMTP: 'y' or 'n' (default). SMTPSSL="n" # SMTP port (usually 25). # The value can be different based on the selected encryption protocol. # For example, for Gmail, the port is 465 when using SSL and 587 for TLS. SMTPPORT=25 # Username used for SMTP authentication, defaults is blank. SMTPUSER=samucich@gmail.com # Password used for SMTP authentication, default is blank. SMTPPASSWORD=xxxxx [root@portal ~]#
Noticed couple of things in your config file, could you please try
#1 change to HOSTIP=$(hostname -i) instead of HOSTIP=$(hostname -all-ip-addresses)
#2 please try dos2unix on the config file
#3 /opt/apigee check if the owner of this folder is apigee
Hi,
Did #1 and #2 above (for #3 apigee:apigee was the owner)...and it worked!
Thanks Potturiprasanth!