Skip to main content

#MuleSoft CloudHub / RTF / On-Prem / PCE / Gateway0 discussing

Questions and answers about MuleSoft CloudHub/RTF/On-Prem/PCE/Gateway, best practices, and use cases.

Deploy to Cloudhub option is not visible. Anypoint studio version is 7.3.4. Can someone help please.

 

Deploy to Cloudhub option is not visible. Anypoint studio version is 7.3.4

 

4 answers
0/9000

Hello, everyone

 

I'm trying to deploy an application in CloudHub2 via Azure DevOps pipeline and I got this issue

Caused by: org.mule.tools.client.core.exception.ClientException: 409 Conflict: {"timestamp":1711526975238,"status":409,"error":"Conflict","message":"Target af407344-9508-4c0a-bfc6-9adb32e4d525 is not associated with the environment 7f34d4c4-7eb8-477f-b5b0-8ebe8f0996d2 in organization cb8afec1-7aa5-46cf-966a-66da99633710","path":"/organizations/cb8afec1-7aa5-46cf-966a-66da99633710/environments/7f34d4c4-7eb8-477f-b5b0-8ebe8f0996d2/deployments"}

Does anybody know what could be the problem and what should I check?

 

I must say that I deployed other applications successfully before using the same steps, and now I don't know what could be the issue

4 answers
  1. Feb 18, 9:59 PM

    This error is due to the environment not being associated with the private space. Go to the private space settings and add the environment.

0/9000

Mule applications are deployed to CloudHub in that region,how CloudHub workers are assigned to AZs? AWorkers are randomly distributed across available AZs within that region?

An AZ is randomly selected for a Mule application, and all the Mule application's CloudHub workers are assigned to that one AZ? A. Workers belonging to a given environment are assigned to the same AZ within that region? Or AZs are selected as part of the Mule application's deployment configuration?

7 answers
  1. Manish Kumar Yadav (Hitachi Energy) Forum Ambassador
    Apr 28, 2020, 11:35 PM

    Hi There,

     

    When you deploy your application in particular region in MuleSoft Cloudhub ,Workers are randomly distributed across available AZs within that region.

    Thanks,

    Manish Kumar Yadav

    MuleSoft Forum Modetrator

0/9000

I implemented rest api using mule. I am able to call the api( ex: localhost:8081/getUser) from local machine. I deployed the application in cloudhub. I am calling same api with http://myapp.cloudhub.io/getUser, but it is not working. Could you please guide us, how to rest service after mule application deployed in cloudhub.

17 answers
  1. Feb 26, 2017, 5:46 PM

    Can you show the mule xml file here

0/9000

we need develop a client application which pull out log file from cloudhub in real time and parse the log to generate report.

 

Now we need to know how to access the cloudhub log service.

 

I have read through the document and some of the internet threads but still got questions:

1. what is the Cloudhub log service URL, for different envs: test, uat, prod?

2. how to get authenticated to access the service?

12 answers
  1. Sep 19, 2016, 6:17 PM

    @liueri , You can access logs with following URL. Pass application name as URI param

     

    https://anypoint.mulesoft.com/cloudhub/api/applications/{application-name}/logs

     

    For authentication use HTTP basic authentication. For environment specific authentication user something like username@environment and user password.

     

    Please refer attached screenshot.

     

    @liueri , You can access logs with following URL. Pass application name as URI param For authentication use HTTP basic authentication.

     

    Also you can use mule cloudhub connector to retrieve application logs

    Please refer following urls for further information

     

    Mule Docs for CloudHub API

     

    CloudHub API Portal

     

0/9000

HI Mule Team,

 

I have successfully deployed apdev-american-ws-unique to cloud hub in the week 3 training of MuleSoft U development fundamentals.I have used v1.0 core to deploy it. But while creating a proxy endpoint, I am not able to deploy it due to worker memory exceeded. Do I need to change any settings In Runtime Manager?

 

Is that a worker limit assigned to my training account. Kindly clarify.

 

Thanks & Regards,

 

Dhivya.

7 answers
  1. Oct 6, 2016, 8:15 AM

    If you are using trial account, it only allows v1.0 core. You can change that to v0.1 core.

    So that you can deploy 10 small application without getting error.

     

    Hope this helps.

0/9000

Hello!

 

We are putting a JSON as a value to the default Object Store and we want to see it in the Cloud Hub, but this is what we see instead:

 

JSON in Object store not visible in CloudHub

 

 

What should I do with the json before we store it there? Is there some escape that needs to be done?

36 answers
  1. Jan 18, 2017, 8:37 PM

    I already said not to remove `object-to-string-transformer` after HTTP listener because the input payload after http will be input stream. You need to store the payload in a String or a Json or a format that is consumable in Object Store

    You can already see that in your error:-

     

    org.mule.module.json.JsonData" Payload : java.io.ByteArrayInputStream@1a278d05

0/9000

Hi guys I created an API through RAML+APIKit and from studio I deployed it to Cloudhub.

Now from Anypoint Platform in APIs, how can I apply policies to the deployed app in CH?

 

I'm using a free account so at a time I can only deploy one app in Cloudhub.

15 answers
  1. Sep 25, 2015, 4:36 PM

    @evangelinamrm Moreno yes this is strange .. Even I don't see the answers are locked .. but still it is appearing to be .. need to check

0/9000

Hello

 

I have scenario , where i am sending a parameter in an HTTP request header to a mule HTTP inbound . Now , all the HTTP headers will be converted to inbound properties of mule .

 

I have a requirement where i have to search for the existence of a particular header parameter(reply-to) in the inbound properties of mule message and route accordingly.

 

I am using the MEL to achieve this but not working properly ... Need Help !! [image]

 

<choice tracking:enable-default-events="true" doc:name="Choice">

<when expression="# [message&# 46;inboundProperties&# 46;'reply-to'!='null']">

<logger message=""Its a reply - to parametred call"" level="INFO" doc:name="reply-to flow "/>

</when>

<otherwise>

<logger message=""its a normal call"" level="INFO" doc:name="normal flow "/>

</otherwise>

</choice>

40 answers
  1. Apr 5, 2016, 5:55 PM

    @snguyen38 pls read the question and follow the answers then you will find the question is already answered :)

0/9000

Hi i am working with ftp inbound and i am reading a file from one inbound and i want to distribute that file to multiple locations ex in my case it is 2 locations.

 

So i am reading a file from FTP inbound and i want to distribute the same copy to FTP outbound and one copy to File Outbound. How my flow XML looks like. Please help me on the same

15 answers
  1. Jul 2, 2015, 11:47 AM

    Thats why you should use scatter- gather as it will move the payload to both the file and ftp in parallel ..

     

    The design you have drawn is sequential one after another

     

    Are you sure the payload will not be lost after it writes to the file ?

0/9000