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

Unable to find properties when using profile files #225

Open
svemis opened this issue Mar 2, 2022 · 5 comments
Open

Unable to find properties when using profile files #225

svemis opened this issue Mar 2, 2022 · 5 comments

Comments

@svemis
Copy link

svemis commented Mar 2, 2022

When using application.properties per profile:

application-dev.properties
application-test.properties
application-prod.properties

As indicated here --> https://quarkus.io/guides/config-reference#profile-aware-files

The specific properties required for this plugin are not found, returning:

Caused by: io.quarkus.runtime.configuration.ConfigurationException: One or more configuration errors have prevented the application from starting. The errors are:

  • SRCFG00014: The config property quarkus.log.cloudwatch.access-key-id is required but it could not be found in any config source
  • SRCFG00014: The config property quarkus.log.cloudwatch.access-key-secret is required but it could not be found in any config source
  • SRCFG00014: The config property quarkus.log.cloudwatch.region is required but it could not be found in any config source
  • SRCFG00014: The config property quarkus.log.cloudwatch.log-group is required but it could not be found in any config source
  • SRCFG00014: The config property quarkus.log.cloudwatch.log-stream-name is required but it could not be found in any config source
@bennetelli
Copy link
Contributor

@svemis Thanks for your PR. We are working in a different way to solve environment specific entries, but I will reproduce it and fix your issue as soon as I have got time. Thanks for raising it :)

@bennetelli
Copy link
Contributor

hey @svemis,

I just found this issue: quarkusio/quarkus#18375
I would say this is not an issue with the extension, rather an issue with Quarkus itself.

@bennetelli
Copy link
Contributor

I would like to close this issue as Quarkus has been designed with a single profile in mind.

@gwenneg
Copy link
Contributor

gwenneg commented Jan 17, 2023

Quarkus does support multiple profiles and the use case mentioned in this issue is completely valid.

@svemis I did a quick test with a setup similar to what you described. The extension started normally and picked the config values from the separate profile file. Could you please check that Quarkus starts with the correct profile while the extension is disabled at first, before trying again with the extension enabled? The active profile will be showed at startup in the following log line:

2023-01-17 09:15:50,189 INFO  [io.quarkus] (main) Profile gwenneg activated.

It is possible that your app started with the wrong one, preventing this extension from loading its config values.

You can activate a profile by setting the QUARKUS_PROFILE environment variable to any value you need.

@bennetelli
Copy link
Contributor

Let's reopen it until we get a response.

@bennetelli bennetelli reopened this Jan 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants