Finished edge-management-server setup Checking for required variables Checking required variable MSIP...OK Checking required variable ADMIN_EMAIL...OK Checking for optional variables Found optional variable APIGEE_ADMINPW...OK Found optional variable APIGEE_PORT_HTTP_MS...OK http://10.0.11.44:8080/v1/servers/self. Unable to authenticate with Management Server Error: setup.sh: /opt/apigee/apigee-service/bin/apigee-service exited with unexpected status 1
My config is,
# With SMTP IP1=10.0.11.44 HOSTIP=$(hostname -i) ADMIN_EMAIL=opdk@google.com APIGEE_ADMINPW=Secret123 LICENSE_FILE=/tmp/license.txt MSIP=$IP1 LDAP_TYPE=1 APIGEE_LDAPPW=secret BIND_ON_ALL_INTERFACES=y MP_POD=gateway REGION=dc-1 ZK_HOSTS="$IP1" ZK_CLIENT_HOSTS="$IP1" # Must use IP addresses for CASS_HOSTS, not DNS names. CASS_HOSTS="$IP1" # Default is postgres PG_PWD=postgres SKIP_SMTP=n SMTPHOST=smtp.example.com SMTPUSER=smtp@example.com # omit for no username SMTPPASSWORD=smtppwd # omit for no password SMTPSSL=y SMTPPORT=25 SMTPMAILFROM="sam <myco@company.com>"
Any pointers? @Anil Sagar @Maudrit @rakeshapi
EDGE-MANAGEMENT-SERVER logs-
https://pastebin.com/tiFEtxW0
Solved! Go to Solution.
I couldn't comment on the post..so posting an answer..
@rajeshmishra, it is 4GB.
Do you have any other idea, shall I re-do the complete setup again?
Can you post the complete setup log?
check if you see management server running (ps -ef | grep management-server)?
(hostname -i) on the server? Barahalikar Siddharth
$ ps -ef | grep management-server apigee 29555 1 0 01:33 ? 00:00:26 /usr/java/latest/bin/java -classpath /opt/apigee/edge-management-server-4.17.05-0.0.1144/conf::/opt/apigee/edge-management-server-4.17.05-0.0.1144/lib//*:/opt/apigee/edge-management-server-4.17.05-0.0.1144/lib//actions/*:/opt/apigee/edge-management-server-4.17.05-0.0.1144/lib//analytics/*:/opt/apigee/edge-management-server-4.17.05-0.0.1144/lib//analytics/libraries/*:/opt/apigee/edge-management-server-4.17.05-0.0.1144/lib//analytics/services/*:/opt/apigee/edge-management-server-4.17.05-0.0.1144/lib//cps/*:/opt/apigee/edge-management-server-4.17.05-0.0.1144/lib//gateway/*:/opt/apigee/edge-management-server-4.17.05-0.0.1144/lib//gateway/libraries/*:/opt/apigee/edge-management-server-4.17.05-0.0.1144/lib//gateway/services/*:/opt/apigee/edge-management-server-4.17.05-0.0.1144/lib//gateway/steps/*:/opt/apigee/edge-management-server-4.17.05-0.0.1144/lib//infra/*:/opt/apigee/edge-management-server-4.17.05-0.0.1144/lib//infra/libraries/*:/opt/apigee/edge-management-server-4.17.05-0.0.1144/lib//infra/services/*:/opt/apigee/edge-management-server-4.17.05-0.0.1144/lib//kernel/*:/opt/apigee/edge-management-server-4.17.05-0.0.1144/lib//thirdparty/*:/opt/apigee/edge-management-server-4.17.05-0.0.1144/webapps/api/:/opt/apigee/edge-management-server-4.17.05-0.0.1144/utils/scripts/sampling/:/opt/apigee/edge-management-server-4.17.05-0.0.1144/utils/scripts/utilities/ -Xms256m -Xmx512m -XX:MaxPermSize=128m -XX:MetaspaceSize=128m -Djava.security.auth.login.config=/opt/apigee/edge-management-server-4.17.05-0.0.1144/conf/jaas.config -Dinstallation.dir=/opt/apigee/edge-management-server-4.17.05-0.0.1144 -Dprofile=management-server -Dlib.dir.name=lib/infra/services,lib/gateway/services,lib/gateway/steps,lib/analytics/services -Dpython.verbose=error -Ddebugsession.timeout=120 -Ddefault.response.format=json -Dauthenticated.user.header.name=X-Apigee-Current-User -Dbundle.validation.enabled=false -Dbundle.validation.schema.enabled=true -Dcasssandra.maxConnectTimeInMillis=-1 -Drbac.number.of.tries.for.email.search=1 -Djavacallout.policy.validate=false -Dastyanax.datastores=taurus-datastore,kms-datastore,dc-datastore,cache-datastore,counter-datastore,keyvaluemap-datastore,application-datastore,audit-datastore,apimodel-datastore,auth-datastore,scheduler-datastore,edgenotification-datastore -Djson.request.schema.validation.enabled=true -Djavax.xml.transform.TransformerFactory=net.sf.saxon.TransformerFactoryImpl -Dvalidation.entity.name.enabled=true -Dcheckmarx.scan.validator.enabled=true -Djavax.xml.xpath.XPathFactory:http://java.sun.com/jaxp/xpath/dom=org.apache.xpath.jaxp.XPathFactoryImpl -Dvalidation.targetendpoint.connection.check.enabled=true -DshutdownServicesOnStop=true -Dsun.net.maxDatagramSockets=2048 -Dhas.monetization=${microkernel_hasMonetization} -Dmigration.mode.status=false -Djute.maxbuffer=10485750 -Dqpid.session.command_limit=524288 -Dqpid.session.byte_limit=8388608 -Djava.io.tmpdir=/var/tmp -Dlog.level=INFO -Dregion=dt-1 -Dpod=central -Dcwc_pod=default -Djsse.enableSNIExtension=false -Dcom.warrenstrange.googleauth.rng.algorithm=SHA1PRNG -Dcom.warrenstrange.googleauth.rng.algorithmProvider=SUN -Djdk.tls.allowUnsafeServerCertChange=true -Djava.security.properties=../conf/jvmsecurity.properties -Djava.security.nssprovider.enabled=false -DuseStringDeduplication=false -Dlicense.file.location=/opt/apigee/customer/conf/license.txt -Ddatastax.loadTokenToHostMappingForKeyspaces=true -Dadvisory.logging.enabled=false -Dconf.dir=/opt/apigee/edge-management-server-4.17.05-0.0.1144/conf -Ddata.dir=/opt/apigee/var/log/edge-management-server com.apigee.kernel.MicroKernel 51516637 31355 31316 0 04:35 pts/0 00:00:00 grep management-server
hostname -i is 10.0.11.44
Where can i check the setup logs? @Maruti Chand
Your management server is running fine.
Can you run curl -v http://10.0.11.44:8080/v1/servers/self on that server and see the result?
/tmp/setup-root.log is the default location.
Yeah I have done it before...it gives 401,
HTTP/1.1 401 Unauthorized < Date: Fri, 09 Jun 2017 09:07:49 GMT < WWW-Authenticate: Basic realm="servers/self"<br>
Is it about Apigee license?
setup-logs
https://pastebin.com/FQQ5ak0J
if you are running /servers/self on localhost/loopback you don't need credentials otherwise you need to pass the username and password. Try running on 127.0.0.1:8080 or localhost + run it on IP with credentials.. (ADMIN_EMAIL=opdk@google.com
APIGEE_ADMINPW=Secret123)
but I think its better you run setup again on management server.
You checked the state of management-server, but what about the other components?
Please run:
/opt/apigee/apigee-service/bin/apigee-all status
And validate if Zookeeper, LDAP and Cassandra are running.
If Zookeeper is not running, failed to install or is taking too long starting:
1. Using yum, validate if you have rng-tools installed. If not, install it:
yum install rng-tools
Configuration:
vi /usr/lib/systemd/system/rngd.service replace this line: ExecStart=/sbin/rngd -f by: ExecStart=/sbin/rngd -f -r /dev/urandom
After configuration is in place, execute:
systemctl daemon-reload systemctl start rngd systemctl status rngd
Once that is completed, perform a restart:
/opt/apigee/apigee-service/bin/apigee-all restart
What OS version are you using?
Yes @Maudrit, other componenets are running....
+ apigee-service apigee-cassandra status apigee-service: apigee-cassandra: OK + apigee-service apigee-openldap status apigee-service: apigee-openldap: OK + apigee-service apigee-postgresql status apigee-service: apigee-postgresql: OK + apigee-service apigee-qpidd status apigee-service: apigee-qpidd: OK + apigee-service apigee-zookeeper status apigee-service: apigee-zookeeper: OK + apigee-service edge-management-server status apigee-service: edge-management-server: OK + apigee-service edge-postgres-server status apigee-service: edge-postgres-server: OK + apigee-service edge-qpid-server status apigee-service: edge-qpid-server: OK
Version - centos-release-6-7.el6.centos.12.3.x86_64
Can you paste the management server logs here?.
Are you using any proxy server ?.
Logs - https://pastebin.com/tiFEtxW0
no I am not using any proxy...
Logs looks clean. The other thing I want you to check is the RAM size in machine. It should be at least 4 GB.
I couldn't comment on the post..so posting an answer..
@rajeshmishra, it is 4GB.
Do you have any other idea, shall I re-do the complete setup again?
Try clean uninstall
http://docs.apigee.com/private-cloud/latest/uninstalling-edge
and then perform the reinstall. Ensure java versions are correct.
Re-install worked for me.
I was installing 4.17.05 AIO and got the following error:
[root@instance-3 edge]# /opt/apigee/apigee-setup/bin/setup.sh -p aio -f /tmp/edge/edge-response-1705-dc2.txt INFO: running setup as root INFO: changing log location to /tmp/setup-root.log Using defaults from /tmp/edge/edge-response-1705-dc2.txt Service setup apigee-zookeeper Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.sfo12.us.leaseweb.net * epel: mirrors.cat.pdx.edu * extras: mirror.san.fastserv.com * updates: centos.s.uw.edu Resolving Dependencies --> Running transaction check ---> Package apigee-zookeeper.noarch 0:3.4.5-0.0.948 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: apigee-zookeeper noarch 3.4.5-0.0.948 apigee-release 16 M Transaction Summary ================================================================================ Install 1 Package Total download size: 16 M Installed size: 35 M Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : apigee-zookeeper-3.4.5-0.0.948.noarch 1/1 Verifying : apigee-zookeeper-3.4.5-0.0.948.noarch 1/1 Installed: apigee-zookeeper.noarch 0:3.4.5-0.0.948 Complete! Validating setup variables Checking for required variables Checking required variable ZK_HOSTS...Invalid hostname Checking required variable HOSTIP...Unknown Checking required variable RUN_USER...OK Checking required variable RUN_GROUP...OK
Error: setup.sh: /opt/apigee/apigee-service/bin/apigee-service exited with unexpected status
MY CONFIG FILE:
IP1=10.138.0.3 HOSTIP=$(hostname -i) ADMIN_EMAIL="ubardaj@gmail.com" APIGEE_ADMINPW="secure1234" LICENSE_FILE="/tmp/edge/license.txt" MSIP=$IP1 USE_LDAP_REMOTE_HOST="n" LDAP_TYPE="1" APIGEE_LDAPPW="Secure1234" MP_POD="gateway" REGION="dc-1" ZK_HOSTS="$IP1" ZK_CLIENT_HOSTS="$IP1" CASS_HOSTS="$IP1" PG_MASTER="$IP1" PG_STANDBY="$IP1" PG_PWD="postgres" SKIP_SMTP="y" SMTPHOST="smtp.example.com" SMTPPORT="25" SMTPUSER="smtp@example.com" SMTPPASSWORD="<password>" SMTPSSL="n"
BIND_ON_ALL_INTERFACES="y"