Back to top

Frequently Asked Questions

Setup and Configuration

How do I set the binary logs configuration and save disk space?

The binary log files are stored in /var/lib/mysql. Binary log is used for recovering data and replication.

Disabling MySQL binlogging

1. Open my.cnf using the following command: # vi /etc/my.cnf

2. Find the following lines and remove or comment it.

#log_bin = /var/log/mysql/mysql-bin.log

#expire_logs_days = 10

#max_binlog_size = 100M

3. Save and close the file.

4. Restart mysql server using the following command: # service mysql restart

Note: Disabling MySQl binlogging is not recommended if you are replicating.

Purging Master Logs

If you are replicating, then you need to periodically reset master or purge master logs to clear out the old logs as they are necessary for replication. mysql-bin.index stores a list of all binary logs which mysqld generates and auto-rotates. To clear the binlogs in conjunction with mysql-bin.index:

1. Purge the master logs using the following commands.

PURGE BINARY LOGS TO 'binlogname';


For example,

PURGE BINARY LOGS TO 'mysql-bin.000123';

This will erase all binary logs before 'mysql-bin.000123'.


This will erase all binary logs before midnight 5 days ago.

2. To delete binlog automatically and store five days' log, set the following:

mysql> SET GLOBAL expire_logs_days = 5;

3. Add this to /etc/my.cnf file.



How to setup redundant CPBM management server?

Both instances will need to be behind a load balancer and a few settings need to be modified in

(by default this is set to tcp://localhost:9125, you must change it to the IP of the server)
(you must add, in the same order on each server, the list of CPBM server(s) that are part of the installation: server1 and server2 can be either FQDNs or IP addresses)
(this is the FQDN/IP on which the load balancer listens for incoming requests)
(this is the port on which the load balancer listens for incoming requests)
(this is the protocol on which the load balancer listens for incoming requests)

What functionality breaks if /client is not on the same FQDN as /portal?

If there is a different FQDN for CPBM and CloudPlatform, you will run into problems. For example, you are using for CPBM and for CloudPlatform. Admin logs into the portal at After clicking the Launch Cloud Console button, user is directed to However, CloudPlatform will now try to make AJAX calls through the CPBM API proxy, which it assumes is at This will fail because /portal is not a valid location on the CloudPlatform server.

Which is the location to see the log for a Payment Gateway Charges failure?

The errors can be seen in regular logs such as catalina.out as well as specifically in BillingActivity.log which is present in the same directory as catalina.out . So for your reference you should be able to see it in /tmp/BillingActivity.log.

How to change the Service Provider logo in CPBM?

Change the logo as follows:
  1. Set the image path in the global configuration, example: /custom/images
  2. Create the folder /custom/images on each CPBM host
  3. Login as root user and select customize logo
  4. Select the logo that must be used

What is CAS? Why does CPBM need it?

CAS: CAS stands for Central Authentication Service. CAS is an authentication system originally created by Yale University to provide a trusted way for an application to authenticate a user. CAS became a Jasig project in December 2004. CAS provides enterprise single sign on (SSO) service:
  • An open and well-documented protocol
  • An open-source Java server component
  • A library of clients for Java, .Net, PHP, Perl, Apache, uPortal, and others
  • Integrates with uPortal, BlueSocket, TikiWiki, Mule, Liferay, Moodle and others
  • Community documentation and implementation support
  • An extensive community of adopters

For more information, visit

What is CAS technically: CAS is an Enterprise Java solution to web application authentication that also provides the benefit of SSO. Technically, SSO can be achieved because the authentication can be removed from the web application and handled centrally. And, when this authentication is handled by a single service, access to many services can be granted once and "remembered" for the life of the web session or even longer though not recommended. Also remember that the SSO feature does not have to be employed and yet CAS authentication still provides a quality authentication mechanism. CAS is a collaborative effort that has produced a very solid central authentication service using the Java development platform. CAS also provides a broad selection of clients for use with all of the enterprise and scripted web technologies. For more information, visit

Why does CPBM need CAS: CPBM supports the use of CAS for SSO, which enables access to multiple password protected systems after logging in just once.

What languages does CPBM support out-of-the-box (OOB)?

Languages supported by CPBM OOB:
  • English, en_US
  • Japanese, jp
  • German, de_DE
  • Simplified Chinese, zh_CN
  • Korean, kr
  • International Spanish, es
  • Brasilian Portuguese, pt_BR
  • French, fr

How to change default channel?

  1. Go to Configuration > Account Management >
  2. Specify the channel name that you want to make default channel

The existing account will point to the old channel. You do not have to restart the server for reflecting the changes.

How to configure CPBM to access internet via proxy address?

  1. Go to the path /usr/share/vts3/bin/
  2. Edit the file as follows:
     $JAVA_OPTS   -Dhttp.proxyHost=<IP Address of Proxy Host>   -Dhttp.proxyPort=8080    -Xbootclasspath/p:$KERNEL_HOME/endorsed/com.springsource.javax.mail-1.4.0.jar   

How to update timezone in CPBM server?

  1. Go to the path /usr/share/vts3/bin/
  2. Edit the file as follows:
     $JAVA_OPTS   -Duser.timezone=<Update you timezone ID here>   -Xbootclasspath/p:$KERNEL_HOME/endorsed/com.springsource.javax.mail-1.4.0.jar   
Note: The timezone id must be a valid timezone ID.

The Tomcat Server from a CPBM host is configured to use a fixed value of 1024MB of RAM. Can I increase the assigned memory, if there is a lot of RAM available?

Yes. You can increase the -Xmx to half of the available RAM.

The values you see in the JVM options are default values and is the minimum requirement for the CPBM to run for POC or demo purposes. In production environment higher configurations are recommended.

What is the difference between "Scale up VM" and "Change Service" options?

  • Scale up: This option enables you to increase the CPU and/or RAM size to change the service offering without stopping the VM
    Note: You cannot decrease the CPU and/or RAM size.
  • Change service: This option enables you to increase or decrease the CPU and/or RAM size to change the service offering only when the state of the VM is stopped

How to setup ActiveMQ accurately in a multinode setup?

It is very important to make sure that ActiveMQ is accurately configured in a multinode setup to prevent issues during CloudPortal startup. When a node gets started
  • The ActiveMQ broker on the node comes up first and tries to acquire a lock on the cloud_portalmq database. If it acquires the lock then the broker gets started successfully, else it keeps on trying to acquire the lock. ActiveMQ broker uses the following configurations to connect to the cloud_portalmq database:
     # JDBC URL for the MQ database  mq.jdbc.database.schemaname=cloud_portalmq  
    When the ActiveMQ broker gets started it is available at the following configuration:
     # URL to start the message broker at  vmops.jms.url=tcp://localhost:9125  
    Note: All the configurations specified earlier are available in the file.
  • The ActiveMQ listener comes up next and tries to connect to the available brokers. It uses the following configuration to connect to the broker:
    This configuration provides all of the broker URLs in the cluster. The listener tries to connect to the broker in the 'failsafe' mode, which means that it tries to connect to first broker and if it is not successful then tries to connect to the second broker.
    Note: It is very important to note here that all the nodes must allow other nodes to connect on port 9125. So make sure that nodes are able to connect to each other on port 9125.

In a multinode setup, the node that comes up first gets the lock on the cloud_portalmq database and becomes the master broker. The other nodes become slave and keep trying to acquire the lock. If the master broker goes down, one of the slave, which gets the lock on cloud_portalmq first, becomes the master broker. JMS listener on all the nodes starts listening to the master broker. When the master broker is down the listener tries to listen to next broker provided in config vmops.jms.client.url

Why does CloudPortal Business Manager service take too long to start?

From all the CPBM nodes in a cluster only one node has the ActiveMQ broker running on port 9125. The other nodes keep waiting and can start the ActiveMQ broker only when the first node goes down. So, at any given moment of time only one node has the ActiveMQ broker running on port 9125 and all the other nodes push their messages to this broker.

Account Management

When does an account get suspended/restricted?

An account gets suspended/restricted due to one of the following reasons:
  • The SpendLimit is crossed
  • The campaign has expired
  • The payment failure threshold has reached

How to reset the locked Root user account?

  1. Set failed_login_attempts=0 in users table in cloud_portal schema as follows:

    UPDATE cloud_portal.users SET failed_login_attempts = 0, enabled = 1, locked = 0 WHERE id = 1;

  2. Open a new browser session (different browser or incognito window) to login

How to reset CPBM root password when it is not the default?

  1. If the root email is set properly, reset password will work
  2. If the root email is not set properly, run the following SQLquery:
    update cloud_portal.users set salt='1300869425505AbRaCaDaBrA1943660404',password='b8bdee346e8d4eb0f02201e8751d24a324c89100'whereusername='root';

Product Management

Can there be bundles that include products from multiple cloud services?

A bundle can be used to provision only one resource. So you cannot have a bundle with multiple resources from across services. However, you can entitle (that is give away as part of) products from other services as part of a bundle. For example, you can create a VM bundle and include a few mailboxes.

How does "This product is replacing one or more products" work?

When selected, this product will not be available in a catalog until the catalog is synced and a new version is activated after that. This is done in conjunction with retiring one or more products as being replaced. This is required because in scenarios where a set of products are replaced by another set, the combined changes have to be automatically visible to the catalog/end customer.

What is the "Sync with Reference Catalog" feature?

The feature syncs the channel catalog with the current plan of the reference catalog. Charges are copied for the new products that come into being. Any new bundles created can be consumed in the channel catalog. Also, retired products are marked as retired in the channel catalog. Since syncing is a modification to the channel catalog plan, the changes will take effect only in the next plan of the channel catalog.

How to remove bundles in CPBM?

The service provider user with "Product create manage" role can unpublish the product bundle under the "Catalog" tab. Unpublishing makes the specific bundle unavailable to the user.

Why a service for a user cannot be enabled?

  • If the user does not have appropriate cloud roles enabled, the services does not get enabled for that user
  • If the master user of the account has not enabled a cloud service for the account, then the users in the specific account cannot see those services
  • Sometimes if the cloud service instance is down/inaccessible while activating the user, the services will not be registered. In that case contact your master user to enable them manually

As a Product Manager, how to preview the catalog before activating the channel?

  1. Login as root/product manager
  2. Navigate to Channels > Select Channel > Catalog > Next Planned Version/Current/History
  3. Choose Preview Catalog option from the gear icon

How to modify prices for bundles and products?

  1. Login as root
  2. Navigate to Channels > Select Channel > Catalog > Next Planned Version
  3. Click Utility Card > Edit Pricing if you want to modify the product price
  4. Click Bundle > Edit Pricing if you want to modify the bundle price
  5. Click Schedule Activation and specify the new date
  6. Select Preview Catalog to verify the changes

How to upload product/bundle images?

  1. Create a directory on the CPBM server and provide write permissions
  2. Login as root
  3. Go to Administration > Portal > Settings
  4. Set the directory path

How to enable initial deposit for a account?

  1. Login as root user
  2. Navigate to the Administration > Account Types
  3. Select the Account Type
  4. Click on On-boarding Controls > Edit
  5. Enable Initial Deposit Required

When does the usage price show zero for a product?

The usage price for a product shows zero if
  • The entitlements provided are unlimited/more than usage
  • The utility price for the product is set to zero

How to cancel a credit that is issued?

  1. Login as root/finance admin
  2. Select the account for which credit is issued
  3. Navigate to tenant's dashboard
  4. Click Payments tab
  5. Click Cancel Credit

How to improve the overall performance of the CPBM UI pages?

Customers can potentially improve the overall performance of UI pages by following the recommendations given below:
  1. Ensure that the connection is not getting closed in response to HTTP requests made from CPBM pages. This can be verified by using tools such as Firebug and by looking into response headers. The value of header "Connection" should be "keep-alive". If the value of the header is "closed", then check the configuration at reverse proxy server (web server) and make sure that connection is alive.
    • Example: (Apache web server)
       KeepAlive On 
  2. Enable compression of response at the reverse proxy server (web server).
    • Example: (Apache web server)
       SetOutputFilter DEFLATE  AddOutputFilterByType DEFLATE text/html text/css text/plain text/xml text/json application/x-javascript