Hi Anuruddha, Yes, It solved the problem.
Thanks, Iqbal On Thu, Jun 16, 2016 at 3:54 PM, Anuruddha Liyanarachchi < [email protected]> wrote: > Hi Irham, > > Seems like your kuberentes master url is not correct. Please add the > correct URL to your publisher replication controller yaml file as an > environment variable. > > env: > - > name: KUBERNETES_API_SERVER > value: "http://192.168.19.45:8080 > <http://www.google.com/url?q=http%3A%2F%2F192.168.19.45%3A8080&sa=D&sntz=1&usg=AFQjCNG9H8E8KW4wUDminUi3gujqpYBlPQ> > " > > > On Thu, Jun 16, 2016 at 6:05 AM, Irham Iqbal <[email protected]> wrote: > >> Hi All, >> >> I am getting the following error when trying to deploy APIM publisher on >> kubernetes multi node cluster. >> It's calling >> https://10.0.0.1:443/api/v1/namespaces/default/endpoints/wso2am-api-publisher >> and getting HTTP response code: 401 >> Any idea on this ? >> >> >> >> TID: [-1234] [] [2016-06-16 09:54:49,152] INFO >> {org.wso2.carbon.membership.scheme.kubernetes.KubernetesMembershipScheme} >> - Parameter KUBERNETES_API_SERVER not found, checking >> KUBERNETES_SERVICE_HOST & KUBERNETES_SERVICE_PORT_HTTPS >> {org.wso2.carbon.membership.scheme.kubernetes.KubernetesMembershipScheme} >> >> TID: [-1234] [] [2016-06-16 09:54:49,153] INFO >> {org.wso2.carbon.membership.scheme.kubernetes.KubernetesMembershipScheme} >> - Kubernetes clustering configuration: [api-server] https://10.0.0.1:443 >> [namespace] default [services] wso2am-api-publisher,wso2am-api-store >> [skip-master-ssl-verification] true >> {org.wso2.carbon.membership.scheme.kubernetes.KubernetesMembershipScheme} >> >> TID: [-1234] [] [2016-06-16 09:54:49,216] ERROR >> {org.wso2.carbon.membership.scheme.kubernetes.KubernetesMembershipScheme} >> - >> org.wso2.carbon.membership.scheme.kubernetes.exceptions.KubernetesMembershipSchemeException: >> Could not connect to Kubernetes API >> {org.wso2.carbon.membership.scheme.kubernetes.KubernetesMembershipScheme} >> >> TID: [-1234] [] [2016-06-16 09:54:49,218] ERROR >> {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} - Cannot >> initialize cluster >> {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} >> >> org.apache.axis2.clustering.ClusteringFault: Kubernetes membership >> initialization failed >> >> at >> org.wso2.carbon.membership.scheme.kubernetes.KubernetesMembershipScheme.init(KubernetesMembershipScheme.java:169) >> >> at >> org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent.initiateCustomMembershipScheme(HazelcastClusteringAgent.java:419) >> >> at >> org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent.configureMembershipScheme(HazelcastClusteringAgent.java:400) >> >> at >> org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent.init(HazelcastClusteringAgent.java:154) >> >> at >> org.wso2.carbon.core.util.ClusteringUtil.enableClustering(ClusteringUtil.java:38) >> >> at >> org.wso2.carbon.core.internal.StartupFinalizerServiceComponent.completeInitialization(StartupFinalizerServiceComponent.java:177) >> >> at >> org.wso2.carbon.core.internal.StartupFinalizerServiceComponent.serviceChanged(StartupFinalizerServiceComponent.java:288) >> >> at >> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107) >> >> at >> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861) >> >> at >> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) >> >> at >> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) >> >> at >> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819) >> >> at >> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771) >> >> at >> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130) >> >> at >> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214) >> >> at >> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433) >> >> at >> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451) >> >> at >> org.wso2.carbon.throttling.agent.internal.ThrottlingAgentServiceComponent.registerThrottlingAgent(ThrottlingAgentServiceComponent.java:123) >> >> at >> org.wso2.carbon.throttling.agent.internal.ThrottlingAgentServiceComponent.activate(ThrottlingAgentServiceComponent.java:100) >> >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) >> >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >> >> at java.lang.reflect.Method.invoke(Method.java:606) >> >> at >> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260) >> >> at >> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146) >> >> at >> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345) >> >> at >> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620) >> >> at >> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197) >> >> at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343) >> >> at >> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222) >> >> at >> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107) >> >> at >> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861) >> >> at >> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) >> >> at >> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) >> >> at >> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819) >> >> at >> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771) >> >> at >> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130) >> >> at >> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214) >> >> at >> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433) >> >> at >> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451) >> >> at >> org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:514) >> >> at >> org.wso2.carbon.core.init.CarbonServerManager.start(CarbonServerManager.java:219) >> >> at >> org.wso2.carbon.core.internal.CarbonCoreServiceComponent.activate(CarbonCoreServiceComponent.java:94) >> >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) >> >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >> >> at java.lang.reflect.Method.invoke(Method.java:606) >> >> at >> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260) >> >> at >> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146) >> >> at >> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345) >> >> at >> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620) >> >> at >> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197) >> >> at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343) >> >> at >> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222) >> >> at >> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107) >> >> at >> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861) >> >> at >> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) >> >> at >> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) >> >> at >> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819) >> >> at >> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771) >> >> at >> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130) >> >> at >> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214) >> >> at >> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433) >> >> at >> org.eclipse.equinox.http.servlet.internal.Activator.registerHttpService(Activator.java:81) >> >> at >> org.eclipse.equinox.http.servlet.internal.Activator.addProxyServlet(Activator.java:60) >> >> at >> org.eclipse.equinox.http.servlet.internal.ProxyServlet.init(ProxyServlet.java:40) >> >> at >> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.init(DelegationServlet.java:38) >> >> at >> org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1284) >> >> at >> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1197) >> >> at >> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087) >> >> at >> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5262) >> >> at >> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5550) >> >> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) >> >> at >> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575) >> >> at >> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565) >> >> at java.util.concurrent.FutureTask.run(FutureTask.java:262) >> >> at >> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) >> >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) >> >> at java.lang.Thread.run(Thread.java:745) >> >> Caused by: >> org.wso2.carbon.membership.scheme.kubernetes.exceptions.KubernetesMembershipSchemeException: >> Could not connect to Kubernetes API >> >> at >> org.wso2.carbon.membership.scheme.kubernetes.KubernetesMembershipScheme.connectAndRead(KubernetesMembershipScheme.java:280) >> >> at >> org.wso2.carbon.membership.scheme.kubernetes.KubernetesMembershipScheme.findContainerIPs(KubernetesMembershipScheme.java:204) >> >> at >> org.wso2.carbon.membership.scheme.kubernetes.KubernetesMembershipScheme.init(KubernetesMembershipScheme.java:159) >> >> ... 78 more >> >> Caused by: java.io.IOException: Server returned HTTP response code: 401 >> for URL: >> https://10.0.0.1:443/api/v1/namespaces/default/endpoints/wso2am-api-publisher >> >> at >> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1627) >> >> at >> sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254) >> >> at >> org.wso2.carbon.membership.scheme.kubernetes.api.KubernetesApiEndpoint.read(KubernetesApiEndpoint.java:43) >> >> at >> org.wso2.carbon.membership.scheme.kubernetes.KubernetesMembershipScheme.connectAndRead(KubernetesMembershipScheme.java:278) >> >> ... 80 more >> >> TID: [-1234] [] [2016-06-16 09:54:49,450] INFO >> {org.wso2.carbon.ui.internal.CarbonUIServiceComponent} - Mgt Console URL >> : https://wso2am-api-publisher:32017/carbon/ >> {org.wso2.carbon.ui.internal.CarbonUIServiceComponent} >> >> TID: [-1234] [] [2016-06-16 09:54:49,450] INFO >> {org.wso2.carbon.ui.internal.CarbonUIServiceComponent} - API Publisher >> Default Context : http://wso2am-api-publisher:32017/publisher >> {org.wso2.carbon.ui.internal.CarbonUIServiceComponent} >> >> TID: [-1234] [] [2016-06-16 09:54:49,451] INFO >> {org.wso2.carbon.ui.internal.CarbonUIServiceComponent} - API Store Default >> Context : http://wso2am-api-publisher:32017/store >> {org.wso2.carbon.ui.internal.CarbonUIServiceComponent} >> >> Thanks, >> -- >> Irham Iqbal >> Software Engineer - Test Automation >> WSO2, Inc.: http://wso2.com >> lean. enterprise. middleware >> phone: +94 777888452 >> > > > > -- > *Thanks and Regards,* > Anuruddha Lanka Liyanarachchi > Software Engineer - WSO2 > Mobile : +94 (0) 712762611 > Tel : +94 112 145 345 > a <[email protected]>[email protected] > -- Irham Iqbal Software Engineer - Test Automation WSO2, Inc.: http://wso2.com lean. enterprise. middleware phone: +94 777888452
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
