Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Manager 3.0.0 - drop all changes in carbon.xml file during start server #498

Closed
igkononov opened this issue Nov 26, 2019 · 8 comments
Closed

Comments

@igkononov
Copy link

Hi,

I try to change some values in <APIManager_Home>/repository/conf/carbon.xml.
But after starting WSO2 server this file is overrode by default carbon.xml - all changes are dropped.

It looks strangely, because in API Manager 3.0.0 documentation I found, that it is possible to change this file.

Please, can you give explanation of this situation.

Thanks for your answer in advanced.

@tmkasun
Copy link
Contributor

tmkasun commented Nov 27, 2019

Hi @igkononov ,

It is not recommended to change the values in carbon.xml file directly , We have introduce a new unified configuration model in API Manager 3.0.0 where you could change any server configuration parameter through a single configuration file (<APIM-ROOT>/repository/conf/deployment.toml), You could find more information about configuration parameters in our Configuration Catalog.

Could you please point the API Manager 3.0.0 WSO2 documentation, which has asked to change the configuration in carbon.xml file.

Thanks
~Kasun

@igkononov
Copy link
Author

igkononov commented Nov 27, 2019

Hi @tmkasun,

But in Carbon application I can see message, that I need to change carbon.xml file, when I try to use Event Metrics:
image
And it is impossible.

@igkononov
Copy link
Author

@tmkasun

Example of documentation with recommendation to use carbon.xml - https://apim.docs.wso2.com/en/latest/Reference/Guides/changing-the-default-ports-with-offset/

@igkononov
Copy link
Author

@tmkasun
Copy link
Contributor

tmkasun commented Nov 27, 2019

Hi @igkononov ,

Thank you very much for providing the documentation links, I think they need to be updated.
@shaniR & @tharindu1st , Shouldn't we update these documents?

@igkononov
Copy link
Author

@tmkasun,

And what about EventMetrics from the comment above?
I created one more issue with this question - wso2/product-apim#6941

@MHermsen
Copy link

Thanks @tmkasun,

Save me a lot of time this thread... I really was surprised to see that I put the Offset on 2 and after starting the Offset was put back on 0 !!!!!!!!!!! Thanks for the direction to the toml file because the articles on the web are all talking about the carbon.xml

@dushaniw dushaniw transferred this issue from wso2/product-apim Dec 4, 2019
@shaniR
Copy link
Contributor

shaniR commented Dec 17, 2019

https://apim.docs.wso2.com/en/latest/InstallAndSetup/DeployingWSO2APIManager/changing-the-hostname/ &
https://apim.docs.wso2.com/en/latest/Reference/Guides/changing-the-default-ports-with-offset/
have been updated. Hence closing the issue. Feel free to re open the issue if you encounter any issues in the future.

@shaniR shaniR closed this as completed Dec 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants