deployment,synchronization,wso2,wso2carbon,wso2-am , Deployment synchronization Issue - API Manager 1.8


Deployment synchronization Issue - API Manager 1.8

Question:

Tag: deployment,synchronization,wso2,wso2carbon,wso2-am

I have clusted the WSO2 API Manager 1.8 and implemented deployment synchronization according to this guide which is given in the WSO2 documentaion. Everything happens to work find except one thing.

Let's assume that we have below 2 instances running API Manager.

192.168.X.123 - API Manager 1

192.168.X.124 - API Manager 2

The problem is once I create and publish an API on API Manager 1 it does appear on API Manager 2 in the publisher. But the particular API does not appear on the API Manager 2 Store.

Also note that I'm using a shared MySQL database for the API Manager cluster(API Manager 1 and 2). I checked the logs but does not contains any error.

How can I fix this?


Answer:

In our situation, we defined 2 different servers with extra CPU and memory, on these servers we have installed the full WSO2 API Manager and defined the cluster configuration. Everything provisioned via Puppet.

Just a straightforward install, all data-source pointing to one schema in an Oracle database.

And...it is working; Our Developers happy, Operations happy, Architect department happy

From WSO2 API Manager Clustering configuration


Related:


When should I use a upgradable lock?


multithreading,boost,synchronization
I have used sharable lock and exclusive lock, but I don't have the opportunity to use upgradable lock. If there is a need to upgrade from sharable lock to exclusive lock, just unlock the sharable lock and get the exclusive lock. So under what situation should I use the upgradable...

Interleaving processes on two threads


c#,multithreading,synchronization
I have a library that I can use to access some tabular data. This library is the only way I have of accessing the data. The method I am using takes a query string and a callback that is called for each result row. Currently, the callback loads each row...

Flyway migration on deployment: Illegal call to close() detected


java,deployment,java-ee-6,glassfish-3,flyway
We're building a Java EE 6 .ear application running on GlassFish (3.1.2.2b5) and use Flyway (3.2.1) to manage our database schema. This happens on deployment of the .ear - There's an article on the web called "Easy Database Migrations using Flyway, Java EE 6 and GlassFish" which nicely outlines how...

Syncronize thread to wait for multiple threads


java,multithreading,file-io,synchronization
I have four threads makes processing on four files, then I want a thread to concatenate these files. My solution is to make a fifth thread (thread1) to concatenate. sum = new Thread() { public void run() { if (thread1.isAlive()) { synchronized (lock1) { while (thread1.isAlive()) { try { lock1.wait();...

Staging Environment best practices


deployment,environment,staging
I'm setting up a staging environment for my laravel application because I want to see how my changes would behave live before going into production. Setting up the env. is fine, since I'm using bitbucket and dploy, which makes the workflow very smooth. My questions are about the domain setup....

Java combine explicit locks with synchronized methods


java,multithreading,concurrency,synchronization,locking
I have a thread safe class Container: public class Container { private int x; ... public synchronized int getX(); public synchronized void setX(int x); } Then I have a list of containers: List<Container> containers; I would like to iterate through the list, aquire the container's lock at each iteration and,...

How to correctly add ENV[“SECRET_KEY”BASE"] in rails


ruby-on-rails-4,deployment
I am having a difficult time setting up Rails 4.2 in production on a VM running on passenger and nginx, and not using RVM or anything similar. I got Incomplete response received from application and looking in the nginx error log it said something about missing secret_key_base and secret_key although...

How to Continuously Develop and Deploy an Access 2010 Database Application


ms-access,deployment,ms-access-2010
I've been developing an Access 2010 Database Application, let's call it Skill.accdb. I'm at the stage where I want to start deploying it so users can start using it and continue developing at the same time. I've been reading MSAccess-Deployment-Best-Practices, Deploy-an-Access-2007-application, and Ways-to-share-an-Access-database which talk about splitting, compiling, installing, etc.,...

Deploy enterprise (in-house) application on windows phone without developer unlocking the phone?


windows-phone-8,deployment,windows-phone-8.1,enterprise
As the title says, I would like to deploy my application on multiple phones, without developer unlocking them. The said application is private, thus it can't be distributed through the store. I've heard of Company app distribution, however it's not clear for me whether it requires a developer unlocked phone...

Capistrano Rails deploy with new migration files


ruby-on-rails,ruby-on-rails-4,deployment,capistrano
I want to deploy from a new branch I have created. On this branch, the db/migrate content has changed, I removed some migration files and regenerated a new one. The problem is, when I cap staging deploy from this branch, it fails when running migrations PG::DuplicateTable: ERROR: relation "partners" already...

Deployment Project - custom action update


c#,visual-studio-2010,deployment,setup-deployment
Situation: I have a Deployment Project in visual studio 2010 setup to install a console application. This console application has some custom actions written into it for the Deployment project. EDIT: To clarify, these custom actions are using the System.Configuration.Install.Installer class in .NET. I use the Committed, BeforeUninstall, AfterUninstall events...

Deployment of Python API


django,api,nginx,deployment,uwsgi
I'm trying to understand the simplest way to deploy a Django application in production. Many recommend nginx or Apache along with uwsgi or gunicorn. I think that is more than my situation requires, and I would like know if my thinking is correct. This application is nothing more than an...

Finding deployment data to a SQL Database


sql,sql-server,deployment
In an effort to maintain versions of the databases we have in our CMDB, I have to obtain the versions of some databases deployed to our servers by a third party company. Is there a system table, view or procedure that allows me to view information regarding recent deployments (code...

Does wait() need synchronization on local variable


java,multithreading,synchronization
I had this code (which was working fine): public static void runOnUiThread(Activity c, final Runnable action) { // Check if we are on the UI Thread if (Looper.getMainLooper() == Looper.myLooper()) { // If we are, execute immediately action.run(); return; } // Else run the runnable on the UI Thread and...

Wait for all processes reach some point in program, then resume


c,linux,synchronization,fork
I have an application which creates many processes via fork(). At some point I want to pause them all and wait until all of them finish earlier tasks. Then start them all at once. for (int i = 0; i < N; i++) { if(fork() == 0) { //some operations...

uninitialized constant ActiveMerchant::Billing::CreditCard::Validateable (NameError) - in Spree shop


ruby-on-rails,deployment,capistrano,activemerchant
i'm new in rails. Today i tried deploy my shop(SpreeShop) to new production server, but somthing was wrong. I have foolowing problem with some gem: activemerchant (1.34.1). Bellow is my stack trace. uninitialized constant ActiveMerchant::Billing::CreditCard::Validateable (NameError) /home/dp/.rvm/gems/[email protected]/gems/activemerchant-1.34.1/lib/active_merchant/billing/credit_card.rb:51:in `<class:CreditCard>' /home/dp/.rvm/gems/[email protected]/gems/activemerchant-1.34.1/lib/active_merchant/billing/credit_card.rb:49:in...

strongloop slc env-set not possible before deploy?


node.js,deployment,strongloop
Was looking at the docs to set up a few apps deployed to strong-pm but ran into a cart-before-the-horse type issue: It's not possible to set environment variables using slc ctl env-set <service> FOO=bar... before an app is deployed and given a service name. This means that you are forced...

Can I deploy multiple instances of my application on the same windows phone?


visual-studio,visual-studio-2013,deployment,windows-phone
I would like to deploy two or more instances of my application, however VS informs me that there is already an installed instance of this application on my phone. How can I install/deploy multiple instances on the same phone for debugging?...

Concurrent reads from read only fields and writes in read/write fields in a shared object


java,multithreading,synchronization
Lets say that I have this class: public SharedObject { private int readOnlyField; private int readWriteField; public SharedObject(int field1, int field2) { this.readOnlyField = field1; this.readWriteField = field2; } public getField1() {...} public synchronized getField2() {...} public synchronized setField2(...) {...} } Can I have multiple threads that use these 3...

How can I deploy a web application onto an existing domain Meteor javascript


javascript,heroku,deployment,meteor
I am about to deploy my first client facing application built on Meteor JS. My client has a website - www.samplewebsite.com and I want to add my application's routes to that site so it would be www.samplewebsite.com/admin, www.samplewebsite.com/store, etc. instead of www.newapplication.meteor.com. I plan on using Heroku to host the...

java.lang.NoSuchMethodError: javax.ws.rs.core.Application.getProperties()Ljava/util/Map


java,rest,deployment,glassfish,jersey
I am trying to deploy my first rest application using jersey 2.17. I am using Maven, GlassFish 3.1.2.2 for deployment. Application runs in eclipse (tomcat), but gives following error when deploying through glassfish admin console. Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException:...

Azure deployment from source without TFS?


asp.net-mvc,azure,deployment
Does anyone knows if the deployment from source feature of Azure is intended to work with .NET projects ? I mean, if I put source code in the local git repository of Azure and then trigger a deploy, is my source code going to be compiled and then deployed or...

How to understand if wait() returned from timeout or from a notify()?


java,multithreading,synchronization
I have a waiting thread: synchronized(sharedCounter) { while(sharedCounter > 0) { sharedCounter.wait(60000); //wait at most 1 minute /*if it wakens from the end of the timeout, it should break the loop or it could potentially restart the timeout*/ } } And a thread that can notify: synchronized (sharedCounter) { if(sharedCounter...

Slow wpf startup due to publish policy… maybe


.net,wpf,deployment,installer,publisher-policy
I have deployed my .NET assemblies with x-copy for years, without any issue. From last week, we have a small team that wich has the task of build a setup that includes .NET assemblies and exe and c++ legacy exe and dll (more tha 200 files). After the first installation,...

From C# via CLR book: synchronization by reference and value types


.net,synchronization
Please, what do you think what output will be appeared in console (kind of trivia): Sync by reference type: class Program { static int x = 8; static object obj = new object(); static void Main(string[] args) { Thread t1 = new Thread(new ThreadStart(f1)); Thread t2 = new Thread(new ThreadStart(f1));...

What underlying difference makes Node Instances appear different?


deployment,uml,modeling,enterprise-architect
I have two similar (if not identical) node instances that are appearing differently in a deployment diagram (and anywhere else that I use them). I may have done some odd things in the past while beating EA into submission. But, now ... by pulling every lever I can imagine, I...

Python/Flask deployment without pip


python,deployment,flask,web-deployment
I've usually deployed my Flask applications with a fairly simple fabric script that put the source on the target machine, used pip to install any dependencies, then fired up uwsgi with all the necessary settings and off it went. However, I have a new issue that some new security settings...

Mule - Exported project - Error java.io.FileNotFoundException


deployment,path,wsdl,mule
I have exported my mule project which contains a WSDL file in src.main.resources/wsdl-request. The type of export is AnyPoint Studio Project to AnyPoint Deployable Archive. The problem is that when I execute the deployable archive in the server it return this error: Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR: Problem parsing 'file:/C:/Users/usrAdmin/AnypointStudio/workspace/mule-project-test/src/main/resources/wsdl-test/Request.wsdl'....

How to avoid concurrent access to a resource?


java,multithreading,synchronization,completable-future
I have four threads runs asynchronously using CompletableFuture as shown below in the code. and all of them should access "grownSeedXYList". sometime when i run the code i receive no errors, but some time i receive "java.util.concurrent.completionexception" and i thinkk this is because the "grownSeedXYList" is not synchronized. please let...

No Synchronize Model with Database in Mysql Workbench


mysql,synchronization,schema,mysql-workbench,sync
I'd like to synchronize a model in Mysql workbench. However, I can't find the wizard following these steps in the docs. How do I enable this feature? I'm running 6.3.3.0 (latest) on Mac Os X . ...

Trouble with publishing simple .html site through FileZilla


html,deployment,web-deployment
I'm trying to publish a really basic site, using some webspace my college provided free for me. I've got access to a www and a data folder. The www is for the website and the data is well, well for the regular data. I've made a simple .html file with...

Programmatically find the 'main' javascript file for libraries on GitHub


javascript,github,deployment,npm
I'm looking to find a way of finding the "key" javascript file from javascript libraries posted on GitHub in as automated as a way as possible. So for example, this bootstrap extension called Jasny has a ton of files on the GitHub page. To get the key js file you...

Stop all threads in a custom thread pool (like shutting down)


java,multithreading,synchronization
In Java library thread pool implementations, usually shutting down a pool means: -stop accepting new tasks -previously submitted tasks are executed -all pool threads are terminated Regarding the last point, how would you stop a pool thread that could potentially try to take a new task, after it has been...

Efficient way of organizaing mail sending from Rails app


ruby-on-rails-4,deployment,background-process,mailer
I have an Rails 4 application with ruby 2.1.2 that runs on a VPS with 512 mb of RAM and want to know what are the ways of efficiently managing email notification with background job with the least possible additional background processes ( like Redis and Sidekiq, each of them...

How to make function in loop run synchronously?


javascript,jquery,loops,google-chrome-extension,synchronization
Am working on a chrome plugin, and need to sendMessage from an 'app page' to a 'content script' and then get the return messages, from inside a loop. But since the loop doesn't wait for the sendMessage to return a value before starting on the next iteration, it is screwing...

Change the “about this” window on mac app


java,osx,deployment
On Macs, there's a default menu at the top for basic application handling functions: I've made an application using Java for my Grade 10 final project, (and I'm quite convinced that it's better than Microsoft Paint) and I decided to package it. Using Eclipse, I exported it as a Mac...

Deploying to Android results in file not found after adding QtQuick Controls


android,qt,deployment,qml,qt5.4
After importing QtQuick.Controls 1.2 and using StackedWidget component, I now get an error when deploying to Android as seen below. The missing file AnimationDrawable.qml is not missing from the Android build directory so I do not understand why it is not packaged with the APK. It deploys fine when I...

Unable to deploy through capistrano after ubuntu upgrade


ruby-on-rails,ubuntu,ruby-on-rails-4,deployment,capistrano
I recently upgraded my development machine to Ubuntu 15.04 (was 14.04LTS) and ran into a problem when trying to deploy changes to my server. The interesting bit is, that I can ssh into my server without any issues (hence, the key file is setup correct), but when I try to...

Spring boot war file deploy on Tomcat


tomcat,deployment,spring-boot,war
I use Spring Boot 1.2.4.RELEASE with gs-rest-service source file. I got: 127.0.0.1 - - [18/Jun/2015:09:59:25 +0300] "GET /gs-rest-service-0.1.0/ HTTP/1.1" 404 1021 There are no other exceptions in Tomcat logs. I have read related questions, but my test doesn't run. Spring Boot War deployed to Tomcat I have read howto-create-a-deployable-war and...

Laravel 5 on shared hosting getting internal server error


deployment,ftp,laravel-5,shared-hosting
I am trying to get my Laravel 5 project running on my shared hosting through FTP. I have uploaded all my project files from my local XAMP-folder to the server root directory and put the files in the 'public' folder in the public_html folder. When I go to mydomain.com I...

Can POSIX named semaphores synchronize threads?


multithreading,synchronization,posix,semaphore
I am looking for a way to synchronize several multi-threaded processes on Linux. C++11-style mutexes only operate among threads within a single process, ans as far as I know, flock doesn't mutually excludes threads of the same process. Therefore, I was thinking of POSIX semaphores. I know that unnamed semaphores...

Deployment over GPRS to embedded devices


linux,git,deployment,embedded,rsync
I've got quite a head scratcher here. We have multiple Raspberry Pis on the field hundreds of kilometers apart. We need to be able to safe(ish)ly upgrade them remotely, as the price for local access can cost up to few hundred euros. The raspis run rasbian, / is on SD-card...

How to compose thread safe operations and make them atomic?


java,multithreading,synchronization
Let's take a thread safe class like LinkedBlockingDeque: BlockingQueue<Task> taskQueue = new LinkedBlockingDeque<Task>(); I know that operations like take and put are thread safe, so they respect the happened-before relationship. But what if I want to compose some operations to make them atomic? Like this: if(taskQueue.size() == 1) { /*Do...

How do I create a deploy git branch for my Yeoman project?


git,deployment,gruntjs,yeoman,branching-and-merging
I created a new project using Yeoman. Using Grunt I've created the dist directory. My whole project is on Github, https://github.com/d3a1i0/mykungfuisstrong.com, and I've created a prod branch. My question is how do I get my prod branch to have only the contents of dist instead of having the dist directory...

Is synchronized enough to make the drainTo() method of a BlockingQueue atomic?


java,multithreading,synchronization
If I simply do something like this: synchronized(taskQueue) { //taskQueue is a BlockingQueue taskQueue.drainTo(tasks); //tasks is a list } Am I assured that concurrent calls to taskQueue.put() and taskQueue.take() can not be executed inside the synchronized block? In other words, am I making the drainTo() method atomic? Or more generally,...

running node.js sails app on openshift


node.js,deployment,sails.js,openshift
I'm trying to deploy my node.js sails app on openshift. I followed procedure outlined in https://gist.github.com/mdunisch/4a56bdf972c2f708ccc6 but still doesn't work. also try this: Node.js app on openshift no matter what i'm getting "Service Temporarily Unavailable" The server is temporarily unable to service your request due to maintenance downtime or capacity...

Set ffmpeg path in supervsiorctl config file


python,deployment,virtualenv,supervisord
I am having a issue where my code works fine when not under supervisor. But when under supervisor for some reason it is not finding the path to the ffmpeg dependency. (env)[email protected]:/home/www/yout# which ffmpeg /usr/bin/ffmpeg Is there any way to set the path to ffmpeg to have it check this?...

Java - multithreading increment


java,multithreading,concurrency,synchronization
I have the following class in my application public class InsertErrorLinesHandler { private int currentCount; public void insertErrorLine() { //do something... currentCount++; } } And I have multiple threads that are using the same instance of InsertErrorLinesHandler, particulary calling insertErrorLine method. After all these threads are stopped, I get the...

How to automate deployment of source & compiled code (excluding git history) to third-party developers?


git,deployment,continuous-integration,bitbucket
I'm going to setup some tools/techiques/environments so that when I need to provide the source code for third-party developers, I do it without git history with some sensitive code already compiled and stripped. So I want to automate this process, so that I always provide the latest version of it...

How to properly deploy angular application (based on ngBoilerplate and using nginx)?


javascript,angularjs,nginx,deployment,ngboilerplate
I have found, that ngBoilerplate was extremly easy for making first steps in webdevelopment based on angular. Right know I am trying to prepare my deployment pipeline, so I use github, travis-ci and dockerized nginx image. I thought that to properly deploy my simple angular website I just have to:...