Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Unable to migrate OSGI Configuration from Local to Stage

Avatar

Avatar
Level 1
ScribbleScrabble
Level 1

Likes

0 likes

Total Posts

13 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
ScribbleScrabble
Level 1

Likes

0 likes

Total Posts

13 posts

Correct Reply

0 solutions
View profile
ScribbleScrabble
Level 1

13-05-2021

Hi Everyone,

 

To preface my use case, I want to create an OSGI configuration for the "Apache Sling Connection Pooled DataSource" in Config Manager, in my local environment, and I want to move this configuration over to my Stage environment.

 

At first I created a package for the config file found under "/apps/system/config/". When I installed this package to my Stage environment and viewed the Config Manager, the config did not seem to have been installed correctly.

 

In the ConfigManager, the DataSource config I installed was found to be nested outside of the "Apache Sling Connection Pooled DataSource" and the properties for the config does not seem to be correct either. I've attached some images to clarify the issue. Thank you in advance.

 

ConfigError.PNG

NestedOutside.PNG

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back 100
Level 10
asutosh_jena
Level 10

Likes

551 likes

Total Posts

663 posts

Correct Reply

191 solutions
Top badges earned
Give Back 100
Boost 500
Affirm 100
Ignite 1
Establish
View profile

Avatar
Give Back 100
Level 10
asutosh_jena
Level 10

Likes

551 likes

Total Posts

663 posts

Correct Reply

191 solutions
Top badges earned
Give Back 100
Boost 500
Affirm 100
Ignite 1
Establish
View profile
asutosh_jena
Level 10

14-05-2021

Hi @ScribbleScrabble 

 

As you have mentioned that you created the config from system/console/configMgr on your local instance and the configuration was present under /apps/system/config which is correct.

 

If the config is common for all the instances i.e. dev, qa, stage, prod (including the author, publish tier), you should move the config from /apps/system/config to /apps/yourprojectfolder/runmodes/config or whatever is your config location else you can move to the run mode specific folder depending upon the value. Once the config is moved, you can import the changes from server to your local file system using vlt plugin or you can manually create the config as xml file on code base so that the changes are now available as part of your code repo.

 

Now you can deploy the changes as part of the code base and the same changes will be propagated across all the instances and also will be available on the system/console/configMgr.

 

Thanks!

Answers (2)

Answers (2)

Avatar

Avatar
Boost 5
Level 5
Ritesh_M
Level 5

Likes

86 likes

Total Posts

73 posts

Correct Reply

24 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile

Avatar
Boost 5
Level 5
Ritesh_M
Level 5

Likes

86 likes

Total Posts

73 posts

Correct Reply

24 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
Ritesh_M
Level 5

14-05-2021

 
 

Hi @ScribbleScrabble ,

 

Since your question is for Stage environment so I believe your code configuration must have run-modes specific folders inside ui.apps/..config.stage. You should create respective xml file for props and then push it via git (anyways going forwards with AEM as a cloud Service, manual config update/install is going to be stopped). You can also check on your local by changing the run mode to stage that the config is being picked from stage run-mode. 

Avatar

Avatar
Coach
Employee
jbrar
Employee

Likes

387 likes

Total Posts

869 posts

Correct Reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile

Avatar
Coach
Employee
jbrar
Employee

Likes

387 likes

Total Posts

869 posts

Correct Reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile
jbrar
Employee

13-05-2021

I would say, compare the OSGI config file on both instances and make sure there is no syntax error. Also, make sure the package filter.xml has the filter param correctly set. If it is set to merge, it might not update the existing nodes.

 

[1] https://jackrabbit.apache.org/filevault/filter.html