android,database,db2,database-connection,bluemix
You can not talk directly to the SQL DB on Bluemix from your android app. You will need to create an intermediary application on bluemix that talks to the db and your android app can talk to that application. You can implement this backend as a RESTful API (Java JAX-RS,...
NFS is not supported, however Cloud Foundry now supports FUSE, which is a pretty close alternative to NFS. To take advantage of FUSE you need to use the cflinuxfs2 stack. cflinuxfs2 is a new stack that supports FUSE, see below. Cloud Foundry recently added FUSE support, see here for more...
How about a bash script? #!/bin/bash APP_NAME=$1 OLD_SPACE=$2 NEW_SPACE=$3 cf target -s $OLD_SPACE cf delete $APP_NAME -f cf target -s $NEW_SPACE cf push $APP_NAME ...
While the service is in BETA, there is no way to bring a custom corpus (dataset). This feature is being planned and should be available soon.
import,integration,swagger,bluemix,swagger-2.0
API Management does not currently support form data parameters. Swagger is just the vehicle to get the meta-data into API Management. Since the feature is not there, form data parameters are explicitly ignored.
Yes the SSO service can be reached from outside Bluemix and therefore also from apps deployed on UK. However, to retrieve the credentials you need to create an SSO service on US and then bind an app to it and inspect the VCAP_SERVICES. This is due to how Cloud Foundry...
Try this: Put your agent jars in a folder called ".profile.d" inside your WAR package; cf se your-app JAVA_OPTS -javaagent:/home/vcap/app/.profile.d/your.jar ; Push the war to Bluemix. ...
Since the Containers CLI is a Python module that we installed with Pip we can uninstall it with Pip. Run the following. sudo pip uninstall icecli. [02:31 PM] [email protected] [~]>sudo pip uninstall icecli Password: Uninstalling icecli: /Library/Python/2.7/site-packages/icecli-2.0-py2.7.egg-info /Library/Python/2.7/site-packages/icecli/__init__.py /Library/Python/2.7/site-packages/icecli/__init__.pyc /Library/Python/2.7/site-packages/icecli/v2/__init__.py /Library/Python/2.7/site-packages/icecli/v2/__init__.pyc...
python,bluemix,ibm-watson,personality-insights
Jeff is correct about the API limit: You are not limited to 100 api calls/month; this is just the number of free calls you get per month. However and replying your question: Yes, it is possible to compute multiple portraits. If you are using application/json as Content-Type, you will notice...
The steps I followed to make the flask sample project work: Follow the instructions in the sample project README and deploy your code to Bluemix Login to the Bluemix console and add a Cloudant service to your application Modify the welcome.py and requirements.txt source code to connect to Cloudant. (see...
Try following github's steps to create a key pair. It seems your key pair might be invalid. Does your keypair work else where?
Before June 15, 2015: This was not possible using the default Node.js buildpack on Bluemix, yet. For now, you can use the community open-source Node.js buildpack: cf push mynodeapp -b https://github.com/cloudfoundry/nodejs-buildpack You've specified the npm version in your package.json correctly, so it should work for the community buildpack. After June...
If you want to run it on Bluemix (via Cloud Foundry) you will need a PHP buildpack with DB2 driver support. This one should work: https://github.com/ibmdb/db2heroku-buildpack-php. Working sample here: Tip: to troubleshoot problems like this try the cf logs "APP_NAME" --recent command. Read more here...
Text To Speech works in Android, and there is a SDK you can use. http://watson-developer-cloud.github.io/java-wrapper/ For example, to get all the voices you can do: import com.ibm.watson.developer_cloud.text_to_speech.v1.TextToSpeech; import com.ibm.watson.developer_cloud.text_to_speech.v1.model.VoiceSet; TextToSpeech service = new TextToSpeech(); service.setUsernameAndPassword("<username>", "<password>"); VoiceSet voices = service.getVoices(); System.out.println(voices); where username and password are the credentials you get...
I needed to specify two pieces of information to my cf push command to do this. First use the -c option with the command to start my program. Second use the -b option with a null-buildpack to indicate no actual buildpack is required to run the comand. For example: cf...
We are currently experiencing some issues in our South region. We expect these issues to be resolved shortly. For updates on the status of our runtimes, please see the following: https://developer.ibm.com/bluemix/support/#status...
virtual-machine,openstack,bluemix
I learned that it is possible to upload my own VM images to in creating virtual machines on Bluemix. Since the Virtual Machines on Bluemix is running on Openstack you can bring any image that works to Openstack to Virtual Machines on Bluemix. Use the following steps: In the Bluemix...
There are a few syntactical errors in your snippet (missing closing brackets etc). Try using this instead: var express = require('express'); app = express(); var ibmbluemix = require('ibmbluemix') var ibmdb = require('ibm_db'); var http = require('http'); var url = require('url'); var logger = ibmbluemix.getLogger(); var PORT = (process.env.VCAP_APP_PORT || 8000);...
Upon further testing I found that this ONLY occurs when I use the query.find() method against a class with many objects. I've tested 1k objects, 3k objects and 6k objects and I get the error each time. When I tested with 500 objects I did not receive the error, so...
Try naming your application something else. Bluemix will try to auto create the URL for your app based on what you type into the name of the app. SentimentAnalysisAPP.mybluemix.net is already in use. Pick a name that is more unique, like SentimentAnalysisPDHTest....
The IoT Foundation Starter comes with a flow pre-deployed to demonstrate using the IoT Foundation service. The Node-RED boiler plate comes with no flow deployed so you have a blank canvas to work from....
You can use the eclipse repository mirroring function to download the IBM Eclipse Tools for Bluemix to a local directory that you can then point your offline eclipse installs to. You can follow the guidelines for the repository mirroring here. The IBM Eclipse Tools for Bluemix update site can be...
Yes, you should be able to use the service with the newer watson-developer-cloud module, but there's no updated demo. Note, that the module was not changed drastically enough that it should really matter.
To use Java 8 you need to change the JAVA_HOME environment variable in the build shell command: export JAVA_HOME=~/java8 For example: #!/bin/bash export JAVA_HOME=~/java8 mvn -B package ...
push-notification,push,bluemix
There was maintenance being completed on US-South region over the last 24 hours. Here is the support notice: IBM Bluemix Platform maintenance US-SOUTH region June 2 10:00 PM EDT Starting at 10pm US EST Tuesday June 2, and lasting approximately 24 hours, there will be a maintenance update rolling out...
DB2 does not support the "AUTO_INCREMENT" statement. You can use the "GENERATED ALWAYS AS IDENTITY" command instead. CREATE TABLE discounts ( id INT NOT NULL GENERATED ALWAYS AS IDENTITY (START WITH 1 INCREMENT BY 1), title VARCHAR(255) NOT NULL, expired_date DATE NOT NULL, amount DECIMAL(10,2) NULL, PRIMARY KEY (id) );...
ssh,docker,containers,cloudfoundry,bluemix
I think there is an issue with the way the ssh daemon is getting launched where it does not have visibility to the VCAP_SERVICES environment variable. However, you can confirm that the container's command will see the variable with following test: ice run registry-ice.ng.bluemix.net/ibmliberty --bind mamacdon-app --name vcap_services_party printenv; sleep...
As far as I know, it's not supported at this point.
You should be using the api.ng.bluemix.net or api.eu-gb.bluemix.net as these are to two addresses for the two regions that are currently available in Bluemix. When new regions are created then you would use the api endpoint for that new region to log into it. So if you have apps and...
websphere-liberty,bluemix,buildpack
I suppose your application is using Spring Framework, and this triggers the Spring Auto-Reconfiguration. If you don't need this auto-reconfiguration support, you can disable it by setting the below environment variable for your application and do a restage: cf set-env <app-name> JBP_CONFIG_SPRINGAUTORECONFIGURATION "enabled: false" cf restage <app-name> ...
java,android,ibm,websphere-liberty,bluemix
Have you downloaded the boilerplate source and taken a look? The CRUD functions are implemented in src/example/jpa/TODOListResource.java WebContent/index.js shows how to call api/todolist...
There was a DNS problem on May 5th but it has now been resolved.
You can use the "Auto-scaling" service in IBM Bluemix to define policies that will automatically add more instances of your application when the existing CPU or memory usage reaches a threshold. Bluemix will load-balance the traffic between all instances of your application that are running. This example application shows you...
HttpServlet is not part of the Java Standard Edition runtime, it's provided by your application server--Tomcat or WebSphere Liberty, for instance. At development-time, you'll need one of these on-hand to provide you that class to compile against.
I have confirmed that the specified sample app does perform garbage collection in Bluemix with the memory set to 1gb. I tested using apache bench with 1000 requests to '/' with 10 concurrent transactions. I suspect the earlier volume tests were too low to trigger a gc....
Sometimes the logergator service responds slower than normal. Can you try again in a couple of hours?
This is really two questions: The JBoss buildpack for Cloud Foundry only runs servlets. How do I create a JBoss runtime on Bluemix? I'll let the Cloud Foundry and JBoss communities address the usefulness of that buildpack. Bluemix lets you upload Cloud Foundry buildpacks, so you could use this in...
I have not seen that error. I think the problem you ran into may be intermittent. I just created a VM an hour ago using the Bluemix dashboard and that worked no problem. As usual, the VM was assigned two IP's, one internal and one public. As you've discovered, in...
Unfortunately, we do not support Single Sign On. Using Advanced Mobile Acces(AMA) custom authentication involves 2 steps. In the first step, you have to configure the authentication mechanism to access the backend services and this is done in the AMA dashboard of the backend application. Please see the sub-section Configuring...
php,laravel,composer-php,bluemix
Which version of the PHP buildpack are you using? You may want to try it with the latest community release by pushing your app with the -b https://github.com/cloudfoundry/php-buildpack option. I know that with an earlier version of the buildpack (v3.1.0), you actually needed to specify a special attribute called COMPOSER_VERSION...
We found several 3rd party apps that provide the functions we need. To use any of these we first had to configure third party logging on Bluemix and used the steps below. Any 3rd party logger that supports the syslog protocol can be used. The initial setup, registration and configuration...
You can choose between the current liberty buildpack version and a previous version. If the previous buildpack is based on an older version of Liberty, you can get the back level Liberty. However this would be temporary until another buildpack version is released. There is no permanent guarantee that you...
import,swagger,bluemix,swagger-2.0
As of version 4.0.1.0, The API Manager product itself does not support custom icons for APIs. It does not really matter if you import the API through Swagger 2.0, or manually compose it in the UI, since the feature itself for custom API icons does not exist. That said, we...
virtual-machine,openstack,bluemix
You need to login using the OpenStack credentials, not your Bluemix ID. To see those credentials, in the Bluemix dashboard, go to Mange Organization > Manage Infrastructure, and select Show Credentials. It will display data that looks something like this: { "auth_url": "https://keystone2.open.ibmcloud.com", "tenant": "TENANT", "credentials": { "username": "USER", "password":...
The error that is outputted by ICE is really unhelpful. To solve it: Added back to ~/.bash_profile the original 3 lines Created the namespace in Bluemix.net After that, everything has fallen to place and everything is working....
The problem seems to be a cookie caching issue. I resolved the issue by using a different browser. Another option is to clear the browser cookie cache.
I checked your buildpack fork "https://github.com/antonpuz/phpbuildpack.git", and found that the detect, compile and release scripts in the bin folder does not have the executable bit. I guess you pushed these files from a Windows machine? Unfortunately when you do so, the executable bit is lost. You either need to change...
A script that has the execute bit set will also have it set when being pushed. If you need to have a script invoked as part of staging or pushing the app, there are two options: Invoke script during staging Use scripts.preinstall stanza in package.json to run scripts during staging...
This question actually has little to do with IoT--that just happens to be the source of the data--and focuses on how to process data for analysis, report generation, and publishing. You can do this mostly using services in Bluemix such that there's little if any code to write and so...
The cause of your original error is that your likely don't have the SpaceDeveloper role in the space where you are trying to create the service. Currently, the space and org management functions are disabled on the CLI [in order to maintain multi region consistency], so go into the Console...
A Secure Gateway instance runs in two parts, as shown in "Reaching enterprise backend with Bluemix Secure Gateway via console": the gateway and the gateway client. The gateway runs in Bluemix, the gateway client runs in the data center containing one or more systems of record to connect to. The...
Costin, thanks for your interest in IBM Bluemix and the IBM Bluemix DevOps Services. Like Lauren has said, you'll probably want two IBM IDs, one for your work email address and one for your personal. They ultimately can be associated with two Bluemix orgs, each associated with a different DevOps...
A simple solution is to configure the logger not to log messages or use a higher level (such as INFO) for the URLConnection class or even its whole package. See http://docs.oracle.com/javase/7/docs/api/java/util/logging/LogManager.html on how to do this with java.util.logging. If your app is running on Liberty buildpack in Bluemix, you can...
No you can not do this. The DEA's (part of Cloud Foundry that runs your app) is firewalled off from talking to internal IP's of other DEA's. In Bluemix we do not charge for network bandwidth.
As of version 4.0.1.0, this is not supported. This will likely be supported in future releases through Swagger 2.0 vendor extensions. "externalDocs" at operation level is the only thing from the Swagger 2.0 spec that even comes close, but it only allows user to put a single link ... where...
Lokesh, The GET /v1/sgconfig call requires the user give either a Bluemix Bearer token or their Bluemix username and password base 64 encoded in the auth header. For example, if my org id was AlsOrg, space id was AlsSpace, username was [email protected], and password was password, I could execute this...
Use the "name" property, "SQL Database-nc". From the cfenv documentation... "The spec parameter should be a regular expression, or a string which is the exact name of the service."...
Note Bluemix charges the application based on GB * Hour. So by large you will be charged similarly among vertical scaling and horizontal scaling. However, vertical scaling does improves memory usage efficiency because there is less memory overhead (e.g., you load the node.js runtime only once rather than twice ore...
mysql,cloudfoundry,bluemix,cleardb
Although the clearDB service in Bluemix only currently offers the 'Free' Spark plan you can go directly to cleardb.com and use one of the larger paid plans. In Bluemix you can then create what is called a User-Provided Service using the cf cups command. The User-Provided Service needs to be...
I ran into this same issue using Liberty with the BlueMix SSO service and found this link to be extremely helpful: https://www-304.ibm.com/connections/blogs/sweeden/entry/getting_started_with_ibm_single_sign_on_for_bluemix?lang=en_us The key point here is that the user info is embedded in the Hashtable of the private credentials. This is not obvious at all. If you download the...
No, at the moment, the dotnet buildpack does not contain any agent to allow remote debugging. Your options for logging are as follows: You could use a Console logger as shown in this sample and retrieve with the cf logs command. You can use Console.WriteLine and retrieve with the cf...
import,automation,swagger,bluemix,swagger-2.0
This is currently not possible. Your best bet is to manually re-import the Swagger using the GitHub raw URL every time you update it; however, doing this will require that you create a new API via the import, remove the old API, and then add the new to the same...
To answer each of your questions: You cannot pass the search text dynamically, you have to configure it in the node via the editor Once deployed, it connects to the Twitter Streaming API to start receiving the tweets that match your search criteria. There is no further control of the...
load-balancing,bluemix,autoscaling
Cloud Foundry uses round-robin load balancing to distribute requests across the running instances of your app.
Go here and open a support ticket. This isn't something you can address on your end. Thanks!
You can ask for Java 8 with the default liberty buildpack by setting the following environment variable: $ cf set-env myapp JBP_CONFIG_IBMJDK "version: 1.8.+" See Customizing the JRE for additional details....
The file .cfignore is used for that purpose -- it is not the same as .gitignore, but rather its analogy for the cf tool. The reason for not using them for the same purpose is that you may have for example files that are used for your build (or even...
cloudfoundry,asp.net-5,bluemix
The ASP.NET 5 buildpack in Bluemix only supports Beta3 right now. It will support Beta 4 in the near future. Please keep an eye on https://github.com/cloudfoundry-community/asp.net5-buildpack.
By default, environment variables are not added to the Function global context object. To access the Bluemix VCAP_SERVICES environment variable from a Node-RED flow, you will need to add it to the Function node's global context. Edit bluemix-settings.js and add an entry to the functionGlobalContext property: functionGlobalContext: { VCAP_SERVICES: JSON.parse(process.env.VCAP_SERVICES)}...
python,flask,couchdb,bluemix,cloudant
The main advantage of using a Cloudant/CouchDB library is that you write less code. This can be significant in languages like Java where Rest and JSON handling is very cumbersome. However working with Rest and JSON in python using standard libraries is very easy. However, the main disadvantages of using...
Try login to ice with this ice login -a https://api.ng.bluemix.net -H https://api-ice.ng.bluemix.net/v2/containers -R registry-ice.ng.bluemix.net This is what I get when running ice --verbose images bash-3.2$ ice --verbose images @2015-05-08 14:54:49.692386 - Namespace(cloud=False, local=False, subparser_name='images', verbose=True) @2015-05-08 14:54:49.692455 - request url: https://api-ice.ng.bluemix.net/v2/containers/images/json @2015-05-08 14:54:49.692466 - using bearer token and space id...
Moving services between orgs is not possible. You will need to to create a new service in the new org.
This happens as the "Add Git" button will only clone in the files from the Boilerplate you created your app from. In your case it looks like a Node.js app. We are incredibly sorry for this. Our dev team is looking making the "Add Git" button work for all projects....
Runnable jar support was recently just introduced so you can do this. All you need to do is have a jar that has a Main method and it will run. Create an empty directory and place your jar file in it. Run cf push myappname -p myjarname.jar (replacing myappname with...
Yup. In the Bluemix console, click on your application, bind existing service and then select the sqldb service. It will then prompt you to restage. After the restage, you can read the VCAP_SERVICES environment variable in your php code to get the database credentials. This thread has detailed steps...
facebook,authentication,ios8,bluemix,google-authentication
It is not currently supported to use the provided Facebook and Google authentication in the same application for Advanced Mobile Access. However using the Custom Authentication option you can write your own custom authentication logic inside of your application and Node.js application. Using this method the application could handle multiple...
The Cloud Integration environment for Secure Gateway is full HA with a front end load balancer. All Secure Gateways are given a bluemix hostname to contact which is backed by a public physical IP.
Can you provide the source code for the TestData class? For swift classes, String must currently use the NSString (ObjC) instead of the Swift String (e.g. var make:NSString)
command-line-interface,bluemix
Unfortunately it is not documented which features of the Cloud Foundry CLI are implemented in Bluemix and which ones are not - other than what is documented here. Some features, such as deleting organizations, can affect multiple things such as billing so that has to be done through support tickets....
Well, this was stupid, but I honestly see this as a mistake others can make too so I'll fess up with what I did. My app had "recognition" in the name, and when I created the app I misspelled it as "recognation". So when I did my push it ended...
If you have followed the developerWorks article then you should just be able to access the endpoint by doing a GET call (i.e. just adding this to a web browser) this url: your_app_route.mybluemix.net\v1\products or if you deployed to the UK (eu-gb) region then the url is: your_app_route.eu-gb.mybluemix.net\v1\products then append either...
Shahir A permanent fix has been uploaded in the npmjs and Internet of Things Foundation Starter boilerplate of Bluemix, which resolves this issue.
The problem is that the code was using a single database API key to try and list all databases for a user. By changing cloudant.db.list to databasename.list (where 'databasename' is the name of the DB the API key was generated for), it worked fine. More info here.
You can define the start command in a file called Procfile. Create the Procfile in the root of your app code that you push to Bluemix. The contents of the Procfile should look like this: web: python3 appname.py where appname.py is the nameof your python script to run...
security,authentication,bluemix
Yes, your mobile app will need to validate with your on-premise Worklight server and get an auth token before talking to Bluemix. First, you will need to implement code to acquire the security token from the Worklight server. Then you will be able to set the token with the provided...
I recommend that you try out this starter template on GitHub. It is enabled with a deploy to Bluemix button that automatically creates a python runtime and postgress database with Django installed. https://github.com/fe01134/djangobluemix The project includes the requirements.txt file to ensure you have the right dependencies and also the .settings...
There is no explicit mechanic for making a service instance available across regions from the Bluemix dashboard, but it can be done with a user-provided service instance. Starting from the region where I have my service instance running and bound to my application I needed to grab the credentials and...
Use a public key of the form "ssh-rsa", space, 200+ characters ending in ==, space, [email protected] I generated mine using ssh-keygen -t rsa. I pasted the entire contents of the generated .pub file.
The 'ice login' does not require -k option any more. If unauthorized error is shown after 'ice login', delete lines 'x_auth_token' and 'api_key' from ~/.ice/ice-cfg.ini, and try 'ice login' again, everything should work fine.
python,json,bluemix,ibm-watson,personality-insights
Note that you should not be POSTing to that URL. If you develop a local application, you need to bind a Personality Insights service to a Bluemix app, and take the credentials from there (there is a URL, username and password that you can use -- the URL will start...
you can change your view into function(doc) { if(doc.user_tracking_id !== null){ emit([user_tracking_id, user_permit_doc_id]); } } and then query using the complex key [1, 10]...
Oracle compatibility is a database level feature and cannot be enabled if the database is created with the feature disabled.
While I don't believe there is a guarantee that the buildpacks will always be backwards compatible, you will always be able to select the previous buildpack version. Try running a 'cf buildpacks' command and have a look at the buildpack names and version info encoded therein and think you'll see...
As it turns out the solution in Safari is that I needed to enable third-party cookies to access the SSO interface. The iframe containing the SSO service dashboard comes to the overall Bluemix console (.ng.bluemix.net) from a host on a different DNS domain (.iam.ibmcloudsecurity.com). Session cookies for the dashboard get...
ios,security,sdk,push-notification,bluemix
I understand your concern. To address all your questions: -You must have the app secret on the Client side in order to authenticate with MAS and use the Push service (Push relies on MAS auth) -We recommend implementing your own form of security to prevent a malicious user from easily...
The size of the application is limited to 1GB as mentioned here. The Memory allocation is limited to 8GB per app, you can see this when you try to allocate more than 8GB in the Bluemix UI as it either resets to 8GB or if, using the toggle, doesn't allow...
cf curl /v2/apps Find your app and look at the block of data within. If you wanted to get fancy you could filter on your app name like so cf curl /v2/apps?q=name:<appname>...
android,connection,database-connection,http-status-code-401,bluemix
Solved. I downloaded the April jars, the most recent ones. That worked....