[jira] [Commented] (SLING-6313) Sling installer can duplicate factory configurations if an invalid RegisteredResourceList.ser is found
[ https://issues.apache.org/jira/browse/SLING-6313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17352074#comment-17352074 ] Henry Kuijpers commented on SLING-6313: --- [~akhoury], I'm sorry, i had the intention of posting the script later on, as i could not access our git box from my mobile phone this morning. This is the groovy script i made. As i said, it's quick & dirty and definitely the way of verifying if a config is still present in the ser file can be improved big time; it currently takes advantage of how the ObjectOutputStream writes a string into the binary file. ``` import org.osgi.service.cm.Configuration; import org.osgi.service.cm.ConfigurationAdmin; import org.apache.commons.io.IOUtils; import java.nio.file.Files; import java.nio.file.Paths; // true = only factory configs, false = *all* configurations def factoryConfigsOnly = true; // true = only print, false = print + delete def dryRun = true; class ConfigurationPidComparator implements Comparator { @Override int compare(Configuration first, Configuration second) { return first.getPid().compareTo(second.getPid()); } } def path = "crx-quickstart/launchpad/installer/RegisteredResourceList.ser"; def contents = new String(Files.readAllBytes(Paths.get(path)), "utf-8"); def configurations = getService(ConfigurationAdmin.class).listConfigurations(factoryConfigsOnly ? "(service.factoryPid=*)" : null); Arrays.sort(configurations, new ConfigurationPidComparator()); for (configuration in configurations) { def pid = configuration.getPid() if (!contents.contains(pid)) { print pid + " does not exist!"; if (!dryRun) { configuration.delete(); println " - Deleted"; } else { println " - Dry run, not deleting"; } } } ``` > Sling installer can duplicate factory configurations if an invalid > RegisteredResourceList.ser is found > -- > > Key: SLING-6313 > URL: https://issues.apache.org/jira/browse/SLING-6313 > Project: Sling > Issue Type: Bug > Components: Installer >Reporter: Robert Munteanu >Assignee: Carsten Ziegeler >Priority: Major > Fix For: Installer Core 3.9.0, Installer Configuration Factory > 1.2.4 > > Attachments: SLING-6313-0.diff > > > Steps to reproduce, inside `launchpad/builder` > {noformat} > mvn clean package > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > truncate --size=-1 sling/installer/RegisteredResourceList.ser > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > {noformat} > The following exceptions are logged in the last run: > {noformat}21.11.2016 14:32:26.538 *ERROR* [CM Configuration Updater > (ManagedServiceFactory Update: > factoryPid=[org.apache.sling.commons.log.LogManager.factory.config])] > org.apache.felix.configadmin Service > [org.apache.felix.cm.ConfigurationAdmin,28, > [org.osgi.service.cm.ConfigurationAdmin]] > [org.osgi.service.cm.ManagedServiceFactory, id=19, > bundle=8/slinginstall:org.apache.sling.commons.log-5.0.1-SNAPSHOT.jar]: > Updating property org.apache.sling.commons.log.names of configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > caused a problem: Category log.request already defined by configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > (org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9) > org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:36) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.provide(ConfigurationManager.java:1611) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1554) > at
[jira] [Commented] (SLING-6313) Sling installer can duplicate factory configurations if an invalid RegisteredResourceList.ser is found
[ https://issues.apache.org/jira/browse/SLING-6313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17352058#comment-17352058 ] Andrew Khoury commented on SLING-6313: -- [~Henry Kuijpers] thanks for letting me know. I will need to decommission that tool as you are right it doesn't address the fact those files are referenced. Can you provide your groovy script and steps instead please? > Sling installer can duplicate factory configurations if an invalid > RegisteredResourceList.ser is found > -- > > Key: SLING-6313 > URL: https://issues.apache.org/jira/browse/SLING-6313 > Project: Sling > Issue Type: Bug > Components: Installer >Reporter: Robert Munteanu >Assignee: Carsten Ziegeler >Priority: Major > Fix For: Installer Core 3.9.0, Installer Configuration Factory > 1.2.4 > > Attachments: SLING-6313-0.diff > > > Steps to reproduce, inside `launchpad/builder` > {noformat} > mvn clean package > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > truncate --size=-1 sling/installer/RegisteredResourceList.ser > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > {noformat} > The following exceptions are logged in the last run: > {noformat}21.11.2016 14:32:26.538 *ERROR* [CM Configuration Updater > (ManagedServiceFactory Update: > factoryPid=[org.apache.sling.commons.log.LogManager.factory.config])] > org.apache.felix.configadmin Service > [org.apache.felix.cm.ConfigurationAdmin,28, > [org.osgi.service.cm.ConfigurationAdmin]] > [org.osgi.service.cm.ManagedServiceFactory, id=19, > bundle=8/slinginstall:org.apache.sling.commons.log-5.0.1-SNAPSHOT.jar]: > Updating property org.apache.sling.commons.log.names of configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > caused a problem: Category log.request already defined by configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > (org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9) > org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:36) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.provide(ConfigurationManager.java:1611) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1554) > at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:141) > at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:109) > at java.lang.Thread.run(Thread.java:745) > Caused by: > org.apache.sling.commons.log.logback.internal.config.ConfigurationException: > at > org.apache.sling.commons.log.logback.internal.LogConfigManager.updateLoggerConfiguration(LogConfigManager.java:533) > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:34) > ... 7 common frames omitted{noformat} -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (SLING-6313) Sling installer can duplicate factory configurations if an invalid RegisteredResourceList.ser is found
[ https://issues.apache.org/jira/browse/SLING-6313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17351487#comment-17351487 ] Henry Kuijpers commented on SLING-6313: --- Please be wary in using the provided tool "Felix OSGi Config Repair": This will only delete duplicated configurations (which is fine), randomly (and there is the problem). There is a reference towards those configuration files (including their pid, which includes the factory identifier) inside RegisteredResourceList.ser. That tool has a chance of deleting the configuration that is actually refered to in RegisteredResourceList.ser. It is better to somehow parse the .ser file and then do lookups to see if a configuration is still being used or not. There is a tool created by Adobe that maybe does things better: https://helpx.adobe.com/nl/experience-manager/kb/AEM-does-not-pick-Filedatastore-location-and-start-successfully-on-upgrading-from-56x-to-6x.html However, we weren't able to easily start jar files anywhere on our servers. In our case, we fixed it by using a groovy script (in the groovy console in AEM) to list all configurations (using ConfigurationAdmin) and then looking up each pid in the RegisteredResourceList.ser file (that we read as a string containing the binary, because it wasn't easy to parse the file into a proper object tree). The ones we couldn't find, we deleted. This was important, because once the duplication happens, the old configuration will not be used anymore, in terms of being managed by the Sling installer. > Sling installer can duplicate factory configurations if an invalid > RegisteredResourceList.ser is found > -- > > Key: SLING-6313 > URL: https://issues.apache.org/jira/browse/SLING-6313 > Project: Sling > Issue Type: Bug > Components: Installer >Reporter: Robert Munteanu >Assignee: Carsten Ziegeler >Priority: Major > Fix For: Installer Core 3.9.0, Installer Configuration Factory > 1.2.4 > > Attachments: SLING-6313-0.diff > > > Steps to reproduce, inside `launchpad/builder` > {noformat} > mvn clean package > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > truncate --size=-1 sling/installer/RegisteredResourceList.ser > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > {noformat} > The following exceptions are logged in the last run: > {noformat}21.11.2016 14:32:26.538 *ERROR* [CM Configuration Updater > (ManagedServiceFactory Update: > factoryPid=[org.apache.sling.commons.log.LogManager.factory.config])] > org.apache.felix.configadmin Service > [org.apache.felix.cm.ConfigurationAdmin,28, > [org.osgi.service.cm.ConfigurationAdmin]] > [org.osgi.service.cm.ManagedServiceFactory, id=19, > bundle=8/slinginstall:org.apache.sling.commons.log-5.0.1-SNAPSHOT.jar]: > Updating property org.apache.sling.commons.log.names of configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > caused a problem: Category log.request already defined by configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > (org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9) > org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:36) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.provide(ConfigurationManager.java:1611) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1554) > at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:141) > at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:109) > at java.lang.Thread.run(Thread.java:745) > Caused by: > org.apache.sling.commons.log.logback.internal.config.ConfigurationException: > at
[jira] [Commented] (SLING-6313) Sling installer can duplicate factory configurations if an invalid RegisteredResourceList.ser is found
[ https://issues.apache.org/jira/browse/SLING-6313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16867794#comment-16867794 ] Andrew Khoury commented on SLING-6313: -- I created a tool to clean up these duplicate factory instances: https://github.com/cqsupport/felix-osgi-utils/tree/master/felix-osgi-config-repair > Sling installer can duplicate factory configurations if an invalid > RegisteredResourceList.ser is found > -- > > Key: SLING-6313 > URL: https://issues.apache.org/jira/browse/SLING-6313 > Project: Sling > Issue Type: Bug > Components: Installer >Reporter: Robert Munteanu >Priority: Major > Attachments: SLING-6313-0.diff > > > Steps to reproduce, inside `launchpad/builder` > {noformat} > mvn clean package > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > truncate --size=-1 sling/installer/RegisteredResourceList.ser > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > {noformat} > The following exceptions are logged in the last run: > {noformat}21.11.2016 14:32:26.538 *ERROR* [CM Configuration Updater > (ManagedServiceFactory Update: > factoryPid=[org.apache.sling.commons.log.LogManager.factory.config])] > org.apache.felix.configadmin Service > [org.apache.felix.cm.ConfigurationAdmin,28, > [org.osgi.service.cm.ConfigurationAdmin]] > [org.osgi.service.cm.ManagedServiceFactory, id=19, > bundle=8/slinginstall:org.apache.sling.commons.log-5.0.1-SNAPSHOT.jar]: > Updating property org.apache.sling.commons.log.names of configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > caused a problem: Category log.request already defined by configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > (org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9) > org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:36) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.provide(ConfigurationManager.java:1611) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1554) > at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:141) > at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:109) > at java.lang.Thread.run(Thread.java:745) > Caused by: > org.apache.sling.commons.log.logback.internal.config.ConfigurationException: > at > org.apache.sling.commons.log.logback.internal.LogConfigManager.updateLoggerConfiguration(LogConfigManager.java:533) > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:34) > ... 7 common frames omitted{noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (SLING-6313) Sling installer can duplicate factory configurations if an invalid RegisteredResourceList.ser is found
[ https://issues.apache.org/jira/browse/SLING-6313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16651304#comment-16651304 ] Konrad Windszus commented on SLING-6313: Just for the record: With SLING-7786 named factory configurations are supported now. > Sling installer can duplicate factory configurations if an invalid > RegisteredResourceList.ser is found > -- > > Key: SLING-6313 > URL: https://issues.apache.org/jira/browse/SLING-6313 > Project: Sling > Issue Type: Bug > Components: Installer >Reporter: Robert Munteanu >Priority: Major > Attachments: SLING-6313-0.diff > > > Steps to reproduce, inside `launchpad/builder` > {noformat} > mvn clean package > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > truncate --size=-1 sling/installer/RegisteredResourceList.ser > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > {noformat} > The following exceptions are logged in the last run: > {noformat}21.11.2016 14:32:26.538 *ERROR* [CM Configuration Updater > (ManagedServiceFactory Update: > factoryPid=[org.apache.sling.commons.log.LogManager.factory.config])] > org.apache.felix.configadmin Service > [org.apache.felix.cm.ConfigurationAdmin,28, > [org.osgi.service.cm.ConfigurationAdmin]] > [org.osgi.service.cm.ManagedServiceFactory, id=19, > bundle=8/slinginstall:org.apache.sling.commons.log-5.0.1-SNAPSHOT.jar]: > Updating property org.apache.sling.commons.log.names of configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > caused a problem: Category log.request already defined by configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > (org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9) > org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:36) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.provide(ConfigurationManager.java:1611) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1554) > at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:141) > at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:109) > at java.lang.Thread.run(Thread.java:745) > Caused by: > org.apache.sling.commons.log.logback.internal.config.ConfigurationException: > at > org.apache.sling.commons.log.logback.internal.LogConfigManager.updateLoggerConfiguration(LogConfigManager.java:533) > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:34) > ... 7 common frames omitted{noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (SLING-6313) Sling installer can duplicate factory configurations if an invalid RegisteredResourceList.ser is found
[ https://issues.apache.org/jira/browse/SLING-6313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16460913#comment-16460913 ] Carsten Ziegeler commented on SLING-6313: - Version 1.9.0 of Felix Config Admin supports the alias/named factory configurations > Sling installer can duplicate factory configurations if an invalid > RegisteredResourceList.ser is found > -- > > Key: SLING-6313 > URL: https://issues.apache.org/jira/browse/SLING-6313 > Project: Sling > Issue Type: Bug > Components: Installer >Reporter: Robert Munteanu >Priority: Major > Attachments: SLING-6313-0.diff > > > Steps to reproduce, inside `launchpad/builder` > {noformat} > mvn clean package > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > truncate --size=-1 sling/installer/RegisteredResourceList.ser > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > {noformat} > The following exceptions are logged in the last run: > {noformat}21.11.2016 14:32:26.538 *ERROR* [CM Configuration Updater > (ManagedServiceFactory Update: > factoryPid=[org.apache.sling.commons.log.LogManager.factory.config])] > org.apache.felix.configadmin Service > [org.apache.felix.cm.ConfigurationAdmin,28, > [org.osgi.service.cm.ConfigurationAdmin]] > [org.osgi.service.cm.ManagedServiceFactory, id=19, > bundle=8/slinginstall:org.apache.sling.commons.log-5.0.1-SNAPSHOT.jar]: > Updating property org.apache.sling.commons.log.names of configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > caused a problem: Category log.request already defined by configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > (org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9) > org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:36) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.provide(ConfigurationManager.java:1611) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1554) > at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:141) > at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:109) > at java.lang.Thread.run(Thread.java:745) > Caused by: > org.apache.sling.commons.log.logback.internal.config.ConfigurationException: > at > org.apache.sling.commons.log.logback.internal.LogConfigManager.updateLoggerConfiguration(LogConfigManager.java:533) > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:34) > ... 7 common frames omitted{noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (SLING-6313) Sling installer can duplicate factory configurations if an invalid RegisteredResourceList.ser is found
[ https://issues.apache.org/jira/browse/SLING-6313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16460911#comment-16460911 ] Konrad Windszus commented on SLING-6313: Now that OSGi R7 has been released, can we take another stab at this? [~cziegeler] Which version of the configuration admin from Felix supports alias? > Sling installer can duplicate factory configurations if an invalid > RegisteredResourceList.ser is found > -- > > Key: SLING-6313 > URL: https://issues.apache.org/jira/browse/SLING-6313 > Project: Sling > Issue Type: Bug > Components: Installer >Reporter: Robert Munteanu >Priority: Major > Attachments: SLING-6313-0.diff > > > Steps to reproduce, inside `launchpad/builder` > {noformat} > mvn clean package > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > truncate --size=-1 sling/installer/RegisteredResourceList.ser > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > {noformat} > The following exceptions are logged in the last run: > {noformat}21.11.2016 14:32:26.538 *ERROR* [CM Configuration Updater > (ManagedServiceFactory Update: > factoryPid=[org.apache.sling.commons.log.LogManager.factory.config])] > org.apache.felix.configadmin Service > [org.apache.felix.cm.ConfigurationAdmin,28, > [org.osgi.service.cm.ConfigurationAdmin]] > [org.osgi.service.cm.ManagedServiceFactory, id=19, > bundle=8/slinginstall:org.apache.sling.commons.log-5.0.1-SNAPSHOT.jar]: > Updating property org.apache.sling.commons.log.names of configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > caused a problem: Category log.request already defined by configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > (org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9) > org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:36) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.provide(ConfigurationManager.java:1611) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1554) > at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:141) > at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:109) > at java.lang.Thread.run(Thread.java:745) > Caused by: > org.apache.sling.commons.log.logback.internal.config.ConfigurationException: > at > org.apache.sling.commons.log.logback.internal.LogConfigManager.updateLoggerConfiguration(LogConfigManager.java:533) > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:34) > ... 7 common frames omitted{noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (SLING-6313) Sling installer can duplicate factory configurations if an invalid RegisteredResourceList.ser is found
[ https://issues.apache.org/jira/browse/SLING-6313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15998018#comment-15998018 ] Carsten Ziegeler commented on SLING-6313: - I don't think that's possible as you would need a way to bypass the pid generation for factory pids > Sling installer can duplicate factory configurations if an invalid > RegisteredResourceList.ser is found > -- > > Key: SLING-6313 > URL: https://issues.apache.org/jira/browse/SLING-6313 > Project: Sling > Issue Type: Bug > Components: Installer >Reporter: Robert Munteanu > Attachments: SLING-6313-0.diff > > > Steps to reproduce, inside `launchpad/builder` > {noformat} > mvn clean package > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > truncate --size=-1 sling/installer/RegisteredResourceList.ser > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > {noformat} > The following exceptions are logged in the last run: > {noformat}21.11.2016 14:32:26.538 *ERROR* [CM Configuration Updater > (ManagedServiceFactory Update: > factoryPid=[org.apache.sling.commons.log.LogManager.factory.config])] > org.apache.felix.configadmin Service > [org.apache.felix.cm.ConfigurationAdmin,28, > [org.osgi.service.cm.ConfigurationAdmin]] > [org.osgi.service.cm.ManagedServiceFactory, id=19, > bundle=8/slinginstall:org.apache.sling.commons.log-5.0.1-SNAPSHOT.jar]: > Updating property org.apache.sling.commons.log.names of configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > caused a problem: Category log.request already defined by configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > (org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9) > org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:36) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.provide(ConfigurationManager.java:1611) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1554) > at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:141) > at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:109) > at java.lang.Thread.run(Thread.java:745) > Caused by: > org.apache.sling.commons.log.logback.internal.config.ConfigurationException: > at > org.apache.sling.commons.log.logback.internal.LogConfigManager.updateLoggerConfiguration(LogConfigManager.java:533) > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:34) > ... 7 common frames omitted{noformat} -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (SLING-6313) Sling installer can duplicate factory configurations if an invalid RegisteredResourceList.ser is found
[ https://issues.apache.org/jira/browse/SLING-6313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15907434#comment-15907434 ] Robert Munteanu commented on SLING-6313: In my scenario the fix would not have helped so I don't have a proper way of verifying the fix. Is it possible to use alias support in a way that's compatible with the R7 release? If so, I don't think there's any harm in doing that. > Sling installer can duplicate factory configurations if an invalid > RegisteredResourceList.ser is found > -- > > Key: SLING-6313 > URL: https://issues.apache.org/jira/browse/SLING-6313 > Project: Sling > Issue Type: Bug > Components: Installer >Reporter: Robert Munteanu > Fix For: Installer Core 3.8.8 > > Attachments: SLING-6313-0.diff > > > Steps to reproduce, inside `launchpad/builder` > {noformat} > mvn clean package > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > truncate --size=-1 sling/installer/RegisteredResourceList.ser > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > {noformat} > The following exceptions are logged in the last run: > {noformat}21.11.2016 14:32:26.538 *ERROR* [CM Configuration Updater > (ManagedServiceFactory Update: > factoryPid=[org.apache.sling.commons.log.LogManager.factory.config])] > org.apache.felix.configadmin Service > [org.apache.felix.cm.ConfigurationAdmin,28, > [org.osgi.service.cm.ConfigurationAdmin]] > [org.osgi.service.cm.ManagedServiceFactory, id=19, > bundle=8/slinginstall:org.apache.sling.commons.log-5.0.1-SNAPSHOT.jar]: > Updating property org.apache.sling.commons.log.names of configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > caused a problem: Category log.request already defined by configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > (org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9) > org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:36) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.provide(ConfigurationManager.java:1611) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1554) > at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:141) > at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:109) > at java.lang.Thread.run(Thread.java:745) > Caused by: > org.apache.sling.commons.log.logback.internal.config.ConfigurationException: > at > org.apache.sling.commons.log.logback.internal.LogConfigManager.updateLoggerConfiguration(LogConfigManager.java:533) > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:34) > ... 7 common frames omitted{noformat} -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (SLING-6313) Sling installer can duplicate factory configurations if an invalid RegisteredResourceList.ser is found
[ https://issues.apache.org/jira/browse/SLING-6313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15903268#comment-15903268 ] Konrad Windszus commented on SLING-6313: This is a chicken/egg problem, right? Right now we don't have any alias support, and to profit from it for upgrades we would need to have it in the last and the next Sling version. If we wait for OSGi R7 we will solve that not for the upgrade to OSGi R7 then, but rather for the upgrade afterwards. Therefore I would strongly recommend to reimplement the old alias handling, as this is definitely an improvement and would allow to easily reinstall everything (see SLING-5745). > Sling installer can duplicate factory configurations if an invalid > RegisteredResourceList.ser is found > -- > > Key: SLING-6313 > URL: https://issues.apache.org/jira/browse/SLING-6313 > Project: Sling > Issue Type: Bug > Components: Installer >Reporter: Robert Munteanu >Assignee: Robert Munteanu > Fix For: Installer Core 3.8.8 > > Attachments: SLING-6313-0.diff > > > Steps to reproduce, inside `launchpad/builder` > {noformat} > mvn clean package > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > truncate --size=-1 sling/installer/RegisteredResourceList.ser > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > {noformat} > The following exceptions are logged in the last run: > {noformat}21.11.2016 14:32:26.538 *ERROR* [CM Configuration Updater > (ManagedServiceFactory Update: > factoryPid=[org.apache.sling.commons.log.LogManager.factory.config])] > org.apache.felix.configadmin Service > [org.apache.felix.cm.ConfigurationAdmin,28, > [org.osgi.service.cm.ConfigurationAdmin]] > [org.osgi.service.cm.ManagedServiceFactory, id=19, > bundle=8/slinginstall:org.apache.sling.commons.log-5.0.1-SNAPSHOT.jar]: > Updating property org.apache.sling.commons.log.names of configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > caused a problem: Category log.request already defined by configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > (org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9) > org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:36) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.provide(ConfigurationManager.java:1611) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1554) > at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:141) > at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:109) > at java.lang.Thread.run(Thread.java:745) > Caused by: > org.apache.sling.commons.log.logback.internal.config.ConfigurationException: > at > org.apache.sling.commons.log.logback.internal.LogConfigManager.updateLoggerConfiguration(LogConfigManager.java:533) > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:34) > ... 7 common frames omitted{noformat} -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (SLING-6313) Sling installer can duplicate factory configurations if an invalid RegisteredResourceList.ser is found
[ https://issues.apache.org/jira/browse/SLING-6313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15903071#comment-15903071 ] Robert Munteanu commented on SLING-6313: Reverted in [r1786170|https://svn.apache.org/r1786170] > Sling installer can duplicate factory configurations if an invalid > RegisteredResourceList.ser is found > -- > > Key: SLING-6313 > URL: https://issues.apache.org/jira/browse/SLING-6313 > Project: Sling > Issue Type: Bug > Components: Installer >Reporter: Robert Munteanu >Assignee: Robert Munteanu > Fix For: Installer Core 3.8.8 > > Attachments: SLING-6313-0.diff > > > Steps to reproduce, inside `launchpad/builder` > {noformat} > mvn clean package > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > truncate --size=-1 sling/installer/RegisteredResourceList.ser > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > {noformat} > The following exceptions are logged in the last run: > {noformat}21.11.2016 14:32:26.538 *ERROR* [CM Configuration Updater > (ManagedServiceFactory Update: > factoryPid=[org.apache.sling.commons.log.LogManager.factory.config])] > org.apache.felix.configadmin Service > [org.apache.felix.cm.ConfigurationAdmin,28, > [org.osgi.service.cm.ConfigurationAdmin]] > [org.osgi.service.cm.ManagedServiceFactory, id=19, > bundle=8/slinginstall:org.apache.sling.commons.log-5.0.1-SNAPSHOT.jar]: > Updating property org.apache.sling.commons.log.names of configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > caused a problem: Category log.request already defined by configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > (org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9) > org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:36) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.provide(ConfigurationManager.java:1611) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1554) > at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:141) > at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:109) > at java.lang.Thread.run(Thread.java:745) > Caused by: > org.apache.sling.commons.log.logback.internal.config.ConfigurationException: > at > org.apache.sling.commons.log.logback.internal.LogConfigManager.updateLoggerConfiguration(LogConfigManager.java:533) > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:34) > ... 7 common frames omitted{noformat} -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (SLING-6313) Sling installer can duplicate factory configurations if an invalid RegisteredResourceList.ser is found
[ https://issues.apache.org/jira/browse/SLING-6313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15900904#comment-15900904 ] Robert Munteanu commented on SLING-6313: I'm coming back to this since we're starting to see this issue in upgrade scenarios. I'm inclined to add back the fix to Sling and then once the R7 release of the Config Admin is available we'll switch to that. Looking at the last 2 config admin releases + the next one it does not seem like there is any movement towards adding support for aliases - https://issues.apache.org/jira/issues/?jql=project%20%3D%20FELIX%20AND%20fixVersion%20IN%20(configadmin-1.8.14%2C%20configadmin-1.8.12%2C%20configadmin-1.8.10) . > Sling installer can duplicate factory configurations if an invalid > RegisteredResourceList.ser is found > -- > > Key: SLING-6313 > URL: https://issues.apache.org/jira/browse/SLING-6313 > Project: Sling > Issue Type: Bug > Components: Installer >Reporter: Robert Munteanu >Assignee: Robert Munteanu > Fix For: Installer Core 3.8.8 > > Attachments: SLING-6313-0.diff > > > Steps to reproduce, inside `launchpad/builder` > {noformat} > mvn clean package > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > truncate --size=-1 sling/installer/RegisteredResourceList.ser > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > {noformat} > The following exceptions are logged in the last run: > {noformat}21.11.2016 14:32:26.538 *ERROR* [CM Configuration Updater > (ManagedServiceFactory Update: > factoryPid=[org.apache.sling.commons.log.LogManager.factory.config])] > org.apache.felix.configadmin Service > [org.apache.felix.cm.ConfigurationAdmin,28, > [org.osgi.service.cm.ConfigurationAdmin]] > [org.osgi.service.cm.ManagedServiceFactory, id=19, > bundle=8/slinginstall:org.apache.sling.commons.log-5.0.1-SNAPSHOT.jar]: > Updating property org.apache.sling.commons.log.names of configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > caused a problem: Category log.request already defined by configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > (org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9) > org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:36) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.provide(ConfigurationManager.java:1611) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1554) > at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:141) > at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:109) > at java.lang.Thread.run(Thread.java:745) > Caused by: > org.apache.sling.commons.log.logback.internal.config.ConfigurationException: > at > org.apache.sling.commons.log.logback.internal.LogConfigManager.updateLoggerConfiguration(LogConfigManager.java:533) > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:34) > ... 7 common frames omitted{noformat} -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (SLING-6313) Sling installer can duplicate factory configurations if an invalid RegisteredResourceList.ser is found
[ https://issues.apache.org/jira/browse/SLING-6313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15743124#comment-15743124 ] Robert Munteanu commented on SLING-6313: Sounds like a bug to me, and more context in a new SLING issue would be more than welcome :-) > Sling installer can duplicate factory configurations if an invalid > RegisteredResourceList.ser is found > -- > > Key: SLING-6313 > URL: https://issues.apache.org/jira/browse/SLING-6313 > Project: Sling > Issue Type: Bug > Components: Installer >Reporter: Robert Munteanu >Assignee: Robert Munteanu > Fix For: Installer Core 3.8.2 > > Attachments: SLING-6313-0.diff > > > Steps to reproduce, inside `launchpad/builder` > {noformat} > mvn clean package > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > truncate --size=-1 sling/installer/RegisteredResourceList.ser > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > {noformat} > The following exceptions are logged in the last run: > {noformat}21.11.2016 14:32:26.538 *ERROR* [CM Configuration Updater > (ManagedServiceFactory Update: > factoryPid=[org.apache.sling.commons.log.LogManager.factory.config])] > org.apache.felix.configadmin Service > [org.apache.felix.cm.ConfigurationAdmin,28, > [org.osgi.service.cm.ConfigurationAdmin]] > [org.osgi.service.cm.ManagedServiceFactory, id=19, > bundle=8/slinginstall:org.apache.sling.commons.log-5.0.1-SNAPSHOT.jar]: > Updating property org.apache.sling.commons.log.names of configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > caused a problem: Category log.request already defined by configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > (org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9) > org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:36) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.provide(ConfigurationManager.java:1611) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1554) > at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:141) > at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:109) > at java.lang.Thread.run(Thread.java:745) > Caused by: > org.apache.sling.commons.log.logback.internal.config.ConfigurationException: > at > org.apache.sling.commons.log.logback.internal.LogConfigManager.updateLoggerConfiguration(LogConfigManager.java:533) > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:34) > ... 7 common frames omitted{noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (SLING-6313) Sling installer can duplicate factory configurations if an invalid RegisteredResourceList.ser is found
[ https://issues.apache.org/jira/browse/SLING-6313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15743115#comment-15743115 ] Robert Munteanu commented on SLING-6313: We've seen real world problems due to this corruption and if we be more robust I would say it's better. Is the implementation in Felix something we can use now or do we have to wait for the R7 spec to be released? > Sling installer can duplicate factory configurations if an invalid > RegisteredResourceList.ser is found > -- > > Key: SLING-6313 > URL: https://issues.apache.org/jira/browse/SLING-6313 > Project: Sling > Issue Type: Bug > Components: Installer >Reporter: Robert Munteanu >Assignee: Robert Munteanu > Fix For: Installer Core 3.8.2 > > Attachments: SLING-6313-0.diff > > > Steps to reproduce, inside `launchpad/builder` > {noformat} > mvn clean package > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > truncate --size=-1 sling/installer/RegisteredResourceList.ser > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > {noformat} > The following exceptions are logged in the last run: > {noformat}21.11.2016 14:32:26.538 *ERROR* [CM Configuration Updater > (ManagedServiceFactory Update: > factoryPid=[org.apache.sling.commons.log.LogManager.factory.config])] > org.apache.felix.configadmin Service > [org.apache.felix.cm.ConfigurationAdmin,28, > [org.osgi.service.cm.ConfigurationAdmin]] > [org.osgi.service.cm.ManagedServiceFactory, id=19, > bundle=8/slinginstall:org.apache.sling.commons.log-5.0.1-SNAPSHOT.jar]: > Updating property org.apache.sling.commons.log.names of configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > caused a problem: Category log.request already defined by configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > (org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9) > org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:36) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.provide(ConfigurationManager.java:1611) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1554) > at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:141) > at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:109) > at java.lang.Thread.run(Thread.java:745) > Caused by: > org.apache.sling.commons.log.logback.internal.config.ConfigurationException: > at > org.apache.sling.commons.log.logback.internal.LogConfigManager.updateLoggerConfiguration(LogConfigManager.java:533) > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:34) > ... 7 common frames omitted{noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (SLING-6313) Sling installer can duplicate factory configurations if an invalid RegisteredResourceList.ser is found
[ https://issues.apache.org/jira/browse/SLING-6313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15742193#comment-15742193 ] Carsten Ziegeler commented on SLING-6313: - I'm not really sure if we should add a fix for when the .ser file gets corrupted. If that file gets corrupted other stuff can get corrupted at least in theory as well And finally with the upcoming R7 spec, config admin will directly support an alias and there is no need to for either storing the mapping somewhere or adding internal properties to the configuration. This is already implemented in Apache Felix > Sling installer can duplicate factory configurations if an invalid > RegisteredResourceList.ser is found > -- > > Key: SLING-6313 > URL: https://issues.apache.org/jira/browse/SLING-6313 > Project: Sling > Issue Type: Bug > Components: Installer >Reporter: Robert Munteanu >Assignee: Robert Munteanu > Fix For: Installer Core 3.8.2 > > Attachments: SLING-6313-0.diff > > > Steps to reproduce, inside `launchpad/builder` > {noformat} > mvn clean package > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > truncate --size=-1 sling/installer/RegisteredResourceList.ser > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > {noformat} > The following exceptions are logged in the last run: > {noformat}21.11.2016 14:32:26.538 *ERROR* [CM Configuration Updater > (ManagedServiceFactory Update: > factoryPid=[org.apache.sling.commons.log.LogManager.factory.config])] > org.apache.felix.configadmin Service > [org.apache.felix.cm.ConfigurationAdmin,28, > [org.osgi.service.cm.ConfigurationAdmin]] > [org.osgi.service.cm.ManagedServiceFactory, id=19, > bundle=8/slinginstall:org.apache.sling.commons.log-5.0.1-SNAPSHOT.jar]: > Updating property org.apache.sling.commons.log.names of configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > caused a problem: Category log.request already defined by configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > (org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9) > org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:36) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.provide(ConfigurationManager.java:1611) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1554) > at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:141) > at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:109) > at java.lang.Thread.run(Thread.java:745) > Caused by: > org.apache.sling.commons.log.logback.internal.config.ConfigurationException: > at > org.apache.sling.commons.log.logback.internal.LogConfigManager.updateLoggerConfiguration(LogConfigManager.java:533) > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:34) > ... 7 common frames omitted{noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (SLING-6313) Sling installer can duplicate factory configurations if an invalid RegisteredResourceList.ser is found
[ https://issues.apache.org/jira/browse/SLING-6313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15742181#comment-15742181 ] Elemer Kisch commented on SLING-6313: - [~rombert]: should I create a different SLING issue for the case when a duplicate is created on the opposite node by modifying OSGi configuration (e.g. changing logging from INFO to ERROR) ? > Sling installer can duplicate factory configurations if an invalid > RegisteredResourceList.ser is found > -- > > Key: SLING-6313 > URL: https://issues.apache.org/jira/browse/SLING-6313 > Project: Sling > Issue Type: Bug > Components: Installer >Reporter: Robert Munteanu >Assignee: Robert Munteanu > Fix For: Installer Core 3.8.2 > > Attachments: SLING-6313-0.diff > > > Steps to reproduce, inside `launchpad/builder` > {noformat} > mvn clean package > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > truncate --size=-1 sling/installer/RegisteredResourceList.ser > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > {noformat} > The following exceptions are logged in the last run: > {noformat}21.11.2016 14:32:26.538 *ERROR* [CM Configuration Updater > (ManagedServiceFactory Update: > factoryPid=[org.apache.sling.commons.log.LogManager.factory.config])] > org.apache.felix.configadmin Service > [org.apache.felix.cm.ConfigurationAdmin,28, > [org.osgi.service.cm.ConfigurationAdmin]] > [org.osgi.service.cm.ManagedServiceFactory, id=19, > bundle=8/slinginstall:org.apache.sling.commons.log-5.0.1-SNAPSHOT.jar]: > Updating property org.apache.sling.commons.log.names of configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > caused a problem: Category log.request already defined by configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > (org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9) > org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:36) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.provide(ConfigurationManager.java:1611) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1554) > at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:141) > at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:109) > at java.lang.Thread.run(Thread.java:745) > Caused by: > org.apache.sling.commons.log.logback.internal.config.ConfigurationException: > at > org.apache.sling.commons.log.logback.internal.LogConfigManager.updateLoggerConfiguration(LogConfigManager.java:533) > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:34) > ... 7 common frames omitted{noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (SLING-6313) Sling installer can duplicate factory configurations if an invalid RegisteredResourceList.ser is found
[ https://issues.apache.org/jira/browse/SLING-6313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15722594#comment-15722594 ] Robert Munteanu commented on SLING-6313: [~elemer] - that depends on the root cause. This fix does not delete duplicate configurations, it only ensures that factory configurations are not registered twice. > Sling installer can duplicate factory configurations if an invalid > RegisteredResourceList.ser is found > -- > > Key: SLING-6313 > URL: https://issues.apache.org/jira/browse/SLING-6313 > Project: Sling > Issue Type: Bug > Components: Installer >Reporter: Robert Munteanu >Assignee: Robert Munteanu > Fix For: Installer Core 3.8.2 > > Attachments: SLING-6313-0.diff > > > Steps to reproduce, inside `launchpad/builder` > {noformat} > mvn clean package > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > truncate --size=-1 sling/installer/RegisteredResourceList.ser > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > {noformat} > The following exceptions are logged in the last run: > {noformat}21.11.2016 14:32:26.538 *ERROR* [CM Configuration Updater > (ManagedServiceFactory Update: > factoryPid=[org.apache.sling.commons.log.LogManager.factory.config])] > org.apache.felix.configadmin Service > [org.apache.felix.cm.ConfigurationAdmin,28, > [org.osgi.service.cm.ConfigurationAdmin]] > [org.osgi.service.cm.ManagedServiceFactory, id=19, > bundle=8/slinginstall:org.apache.sling.commons.log-5.0.1-SNAPSHOT.jar]: > Updating property org.apache.sling.commons.log.names of configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > caused a problem: Category log.request already defined by configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > (org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9) > org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:36) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.provide(ConfigurationManager.java:1611) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1554) > at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:141) > at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:109) > at java.lang.Thread.run(Thread.java:745) > Caused by: > org.apache.sling.commons.log.logback.internal.config.ConfigurationException: > at > org.apache.sling.commons.log.logback.internal.LogConfigManager.updateLoggerConfiguration(LogConfigManager.java:533) > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:34) > ... 7 common frames omitted{noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (SLING-6313) Sling installer can duplicate factory configurations if an invalid RegisteredResourceList.ser is found
[ https://issues.apache.org/jira/browse/SLING-6313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15722414#comment-15722414 ] Elemer Kisch commented on SLING-6313: - [~rombert]: Would the solution in SLING-6313 account for existing double configurations (regardless if of corrupted RegisteredResourceList.ser) and delete them, because we have observed cases, where the .res file is not corrupted? > Sling installer can duplicate factory configurations if an invalid > RegisteredResourceList.ser is found > -- > > Key: SLING-6313 > URL: https://issues.apache.org/jira/browse/SLING-6313 > Project: Sling > Issue Type: Bug > Components: Installer >Reporter: Robert Munteanu >Assignee: Robert Munteanu > Fix For: Installer Core 3.8.2 > > Attachments: SLING-6313-0.diff > > > Steps to reproduce, inside `launchpad/builder` > {noformat} > mvn clean package > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > truncate --size=-1 sling/installer/RegisteredResourceList.ser > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > {noformat} > The following exceptions are logged in the last run: > {noformat}21.11.2016 14:32:26.538 *ERROR* [CM Configuration Updater > (ManagedServiceFactory Update: > factoryPid=[org.apache.sling.commons.log.LogManager.factory.config])] > org.apache.felix.configadmin Service > [org.apache.felix.cm.ConfigurationAdmin,28, > [org.osgi.service.cm.ConfigurationAdmin]] > [org.osgi.service.cm.ManagedServiceFactory, id=19, > bundle=8/slinginstall:org.apache.sling.commons.log-5.0.1-SNAPSHOT.jar]: > Updating property org.apache.sling.commons.log.names of configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > caused a problem: Category log.request already defined by configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > (org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9) > org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:36) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.provide(ConfigurationManager.java:1611) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1554) > at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:141) > at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:109) > at java.lang.Thread.run(Thread.java:745) > Caused by: > org.apache.sling.commons.log.logback.internal.config.ConfigurationException: > at > org.apache.sling.commons.log.logback.internal.LogConfigManager.updateLoggerConfiguration(LogConfigManager.java:533) > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:34) > ... 7 common frames omitted{noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (SLING-6313) Sling installer can duplicate factory configurations if an invalid RegisteredResourceList.ser is found
[ https://issues.apache.org/jira/browse/SLING-6313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15692718#comment-15692718 ] Robert Munteanu commented on SLING-6313: Thanks all for the feedback. I still need to write a proper test for the behaviour, but right now I'm looking into SLING-5228 so this will need to wait for a bit. > Sling installer can duplicate factory configurations if an invalid > RegisteredResourceList.ser is found > -- > > Key: SLING-6313 > URL: https://issues.apache.org/jira/browse/SLING-6313 > Project: Sling > Issue Type: Bug > Components: Installer >Reporter: Robert Munteanu >Assignee: Robert Munteanu > Fix For: Installer Core 3.8.2 > > Attachments: SLING-6313-0.diff > > > Steps to reproduce, inside `launchpad/builder` > {noformat} > mvn clean package > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > truncate --size=-1 sling/installer/RegisteredResourceList.ser > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > {noformat} > The following exceptions are logged in the last run: > {noformat}21.11.2016 14:32:26.538 *ERROR* [CM Configuration Updater > (ManagedServiceFactory Update: > factoryPid=[org.apache.sling.commons.log.LogManager.factory.config])] > org.apache.felix.configadmin Service > [org.apache.felix.cm.ConfigurationAdmin,28, > [org.osgi.service.cm.ConfigurationAdmin]] > [org.osgi.service.cm.ManagedServiceFactory, id=19, > bundle=8/slinginstall:org.apache.sling.commons.log-5.0.1-SNAPSHOT.jar]: > Updating property org.apache.sling.commons.log.names of configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > caused a problem: Category log.request already defined by configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > (org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9) > org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:36) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.provide(ConfigurationManager.java:1611) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1554) > at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:141) > at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:109) > at java.lang.Thread.run(Thread.java:745) > Caused by: > org.apache.sling.commons.log.logback.internal.config.ConfigurationException: > at > org.apache.sling.commons.log.logback.internal.LogConfigManager.updateLoggerConfiguration(LogConfigManager.java:533) > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:34) > ... 7 common frames omitted{noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (SLING-6313) Sling installer can duplicate factory configurations if an invalid RegisteredResourceList.ser is found
[ https://issues.apache.org/jira/browse/SLING-6313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15687352#comment-15687352 ] Julian Sedding commented on SLING-6313: --- [~rombert] I tested your patch locally and it seems to work fine. And while I don't fully understand how it works, it does add the alias property to the configuration (can be seen in http://localhost:8080/system/console/status-Configurations). So from my side the change looks good. > Sling installer can duplicate factory configurations if an invalid > RegisteredResourceList.ser is found > -- > > Key: SLING-6313 > URL: https://issues.apache.org/jira/browse/SLING-6313 > Project: Sling > Issue Type: Bug > Components: Installer >Reporter: Robert Munteanu >Assignee: Robert Munteanu > Fix For: Installer Core 3.8.2 > > Attachments: SLING-6313-0.diff > > > Steps to reproduce, inside `launchpad/builder` > {noformat} > mvn clean package > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > truncate --size=-1 sling/installer/RegisteredResourceList.ser > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > {noformat} > The following exceptions are logged in the last run: > {noformat}21.11.2016 14:32:26.538 *ERROR* [CM Configuration Updater > (ManagedServiceFactory Update: > factoryPid=[org.apache.sling.commons.log.LogManager.factory.config])] > org.apache.felix.configadmin Service > [org.apache.felix.cm.ConfigurationAdmin,28, > [org.osgi.service.cm.ConfigurationAdmin]] > [org.osgi.service.cm.ManagedServiceFactory, id=19, > bundle=8/slinginstall:org.apache.sling.commons.log-5.0.1-SNAPSHOT.jar]: > Updating property org.apache.sling.commons.log.names of configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > caused a problem: Category log.request already defined by configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > (org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9) > org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:36) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.provide(ConfigurationManager.java:1611) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1554) > at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:141) > at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:109) > at java.lang.Thread.run(Thread.java:745) > Caused by: > org.apache.sling.commons.log.logback.internal.config.ConfigurationException: > at > org.apache.sling.commons.log.logback.internal.LogConfigManager.updateLoggerConfiguration(LogConfigManager.java:533) > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:34) > ... 7 common frames omitted{noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (SLING-6313) Sling installer can duplicate factory configurations if an invalid RegisteredResourceList.ser is found
[ https://issues.apache.org/jira/browse/SLING-6313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15687052#comment-15687052 ] Bertrand Delacretaz commented on SLING-6313: I don't know about the installer keeping track of where a config came from, but apparently it doesn't work, and we don't have tests that demonstrate that so I agree with Robert about taking the safe route and re-adding the factoryaliaspid property for now. > Sling installer can duplicate factory configurations if an invalid > RegisteredResourceList.ser is found > -- > > Key: SLING-6313 > URL: https://issues.apache.org/jira/browse/SLING-6313 > Project: Sling > Issue Type: Bug > Components: Installer >Reporter: Robert Munteanu >Assignee: Robert Munteanu > Fix For: Installer Core 3.8.2 > > Attachments: SLING-6313-0.diff > > > Steps to reproduce, inside `launchpad/builder` > {noformat} > mvn clean package > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > truncate --size=-1 sling/installer/RegisteredResourceList.ser > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > {noformat} > The following exceptions are logged in the last run: > {noformat}21.11.2016 14:32:26.538 *ERROR* [CM Configuration Updater > (ManagedServiceFactory Update: > factoryPid=[org.apache.sling.commons.log.LogManager.factory.config])] > org.apache.felix.configadmin Service > [org.apache.felix.cm.ConfigurationAdmin,28, > [org.osgi.service.cm.ConfigurationAdmin]] > [org.osgi.service.cm.ManagedServiceFactory, id=19, > bundle=8/slinginstall:org.apache.sling.commons.log-5.0.1-SNAPSHOT.jar]: > Updating property org.apache.sling.commons.log.names of configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > caused a problem: Category log.request already defined by configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > (org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9) > org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:36) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.provide(ConfigurationManager.java:1611) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1554) > at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:141) > at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:109) > at java.lang.Thread.run(Thread.java:745) > Caused by: > org.apache.sling.commons.log.logback.internal.config.ConfigurationException: > at > org.apache.sling.commons.log.logback.internal.LogConfigManager.updateLoggerConfiguration(LogConfigManager.java:533) > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:34) > ... 7 common frames omitted{noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (SLING-6313) Sling installer can duplicate factory configurations if an invalid RegisteredResourceList.ser is found
[ https://issues.apache.org/jira/browse/SLING-6313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15687042#comment-15687042 ] Justin Edelson commented on SLING-6313: --- [~rombert] I think [~cziegeler] should review this as well. He was the one who implemented SLING-2004. FWIW, I'm in favor of adding this property back from the perspective of troubleshooting. > Sling installer can duplicate factory configurations if an invalid > RegisteredResourceList.ser is found > -- > > Key: SLING-6313 > URL: https://issues.apache.org/jira/browse/SLING-6313 > Project: Sling > Issue Type: Bug > Components: Installer >Reporter: Robert Munteanu >Assignee: Robert Munteanu > Fix For: Installer Core 3.8.2 > > Attachments: SLING-6313-0.diff > > > Steps to reproduce, inside `launchpad/builder` > {noformat} > mvn clean package > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > truncate --size=-1 sling/installer/RegisteredResourceList.ser > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > {noformat} > The following exceptions are logged in the last run: > {noformat}21.11.2016 14:32:26.538 *ERROR* [CM Configuration Updater > (ManagedServiceFactory Update: > factoryPid=[org.apache.sling.commons.log.LogManager.factory.config])] > org.apache.felix.configadmin Service > [org.apache.felix.cm.ConfigurationAdmin,28, > [org.osgi.service.cm.ConfigurationAdmin]] > [org.osgi.service.cm.ManagedServiceFactory, id=19, > bundle=8/slinginstall:org.apache.sling.commons.log-5.0.1-SNAPSHOT.jar]: > Updating property org.apache.sling.commons.log.names of configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > caused a problem: Category log.request already defined by configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > (org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9) > org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:36) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.provide(ConfigurationManager.java:1611) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1554) > at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:141) > at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:109) > at java.lang.Thread.run(Thread.java:745) > Caused by: > org.apache.sling.commons.log.logback.internal.config.ConfigurationException: > at > org.apache.sling.commons.log.logback.internal.LogConfigManager.updateLoggerConfiguration(LogConfigManager.java:533) > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:34) > ... 7 common frames omitted{noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (SLING-6313) Sling installer can duplicate factory configurations if an invalid RegisteredResourceList.ser is found
[ https://issues.apache.org/jira/browse/SLING-6313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15687036#comment-15687036 ] Robert Munteanu commented on SLING-6313: A minimal resurrection of the old {{org.apache.sling.installer.osgi.factoryaliaspid}} to track alias keys seems to fix the problem for me. I have attached a minimal patch which seems to work with light testing : [^SLING-6313-0.diff]. [~justinedelson], [~jsedding], [~bdelacretaz] - do you think this approach is the right now? The code definitely needs documentation and automated testing, but I'm curious to know if the basic ideas are ok. > Sling installer can duplicate factory configurations if an invalid > RegisteredResourceList.ser is found > -- > > Key: SLING-6313 > URL: https://issues.apache.org/jira/browse/SLING-6313 > Project: Sling > Issue Type: Bug > Components: Installer >Reporter: Robert Munteanu >Assignee: Robert Munteanu > Fix For: Installer Core 3.8.2 > > Attachments: SLING-6313-0.diff > > > Steps to reproduce, inside `launchpad/builder` > {noformat} > mvn clean package > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > truncate --size=-1 sling/installer/RegisteredResourceList.ser > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > {noformat} > The following exceptions are logged in the last run: > {noformat}21.11.2016 14:32:26.538 *ERROR* [CM Configuration Updater > (ManagedServiceFactory Update: > factoryPid=[org.apache.sling.commons.log.LogManager.factory.config])] > org.apache.felix.configadmin Service > [org.apache.felix.cm.ConfigurationAdmin,28, > [org.osgi.service.cm.ConfigurationAdmin]] > [org.osgi.service.cm.ManagedServiceFactory, id=19, > bundle=8/slinginstall:org.apache.sling.commons.log-5.0.1-SNAPSHOT.jar]: > Updating property org.apache.sling.commons.log.names of configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > caused a problem: Category log.request already defined by configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > (org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9) > org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:36) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.provide(ConfigurationManager.java:1611) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1554) > at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:141) > at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:109) > at java.lang.Thread.run(Thread.java:745) > Caused by: > org.apache.sling.commons.log.logback.internal.config.ConfigurationException: > at > org.apache.sling.commons.log.logback.internal.LogConfigManager.updateLoggerConfiguration(LogConfigManager.java:533) > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:34) > ... 7 common frames omitted{noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (SLING-6313) Sling installer can duplicate factory configurations if an invalid RegisteredResourceList.ser is found
[ https://issues.apache.org/jira/browse/SLING-6313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15686257#comment-15686257 ] Julian Sedding commented on SLING-6313: --- I have never fully analyzed the issue, but I have seen systems with duplicated logging related configs a number of times. None of these systems were based on the provisioning model, so I assume the problem is not exclusive to the combination of launchpad and provisioning model. Rather, I think, you found the root cause - when the installer's internal state is broken (e.g. corrupt sling/installer/RegisteredResourceList.ser), the premise from SLING-2004 ("This property is not needed as the installer *keeps track* where a configuration came from"; my emphasis) does no longer hold. > Sling installer can duplicate factory configurations if an invalid > RegisteredResourceList.ser is found > -- > > Key: SLING-6313 > URL: https://issues.apache.org/jira/browse/SLING-6313 > Project: Sling > Issue Type: Bug > Components: Installer >Reporter: Robert Munteanu >Assignee: Robert Munteanu > Fix For: Installer Core 3.8.2 > > > Steps to reproduce, inside `launchpad/builder` > {noformat} > mvn clean package > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > truncate --size=-1 sling/installer/RegisteredResourceList.ser > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > {noformat} > The following exceptions are logged in the last run: > {noformat}21.11.2016 14:32:26.538 *ERROR* [CM Configuration Updater > (ManagedServiceFactory Update: > factoryPid=[org.apache.sling.commons.log.LogManager.factory.config])] > org.apache.felix.configadmin Service > [org.apache.felix.cm.ConfigurationAdmin,28, > [org.osgi.service.cm.ConfigurationAdmin]] > [org.osgi.service.cm.ManagedServiceFactory, id=19, > bundle=8/slinginstall:org.apache.sling.commons.log-5.0.1-SNAPSHOT.jar]: > Updating property org.apache.sling.commons.log.names of configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > caused a problem: Category log.request already defined by configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > (org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9) > org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:36) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.provide(ConfigurationManager.java:1611) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1554) > at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:141) > at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:109) > at java.lang.Thread.run(Thread.java:745) > Caused by: > org.apache.sling.commons.log.logback.internal.config.ConfigurationException: > at > org.apache.sling.commons.log.logback.internal.LogConfigManager.updateLoggerConfiguration(LogConfigManager.java:533) > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:34) > ... 7 common frames omitted{noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (SLING-6313) Sling installer can duplicate factory configurations if an invalid RegisteredResourceList.ser is found
[ https://issues.apache.org/jira/browse/SLING-6313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15686196#comment-15686196 ] Robert Munteanu commented on SLING-6313: Good point, thanks. Now I need to find out if {quote} This property is not needed as the installer keeps track where a configuration came from.{quote} can still be made to work with the provisioning model or if we need to partially resurrect the code removed in SLING-2004. > Sling installer can duplicate factory configurations if an invalid > RegisteredResourceList.ser is found > -- > > Key: SLING-6313 > URL: https://issues.apache.org/jira/browse/SLING-6313 > Project: Sling > Issue Type: Bug > Components: Installer >Reporter: Robert Munteanu >Assignee: Robert Munteanu > Fix For: Installer Core 3.8.2 > > > Steps to reproduce, inside `launchpad/builder` > {noformat} > mvn clean package > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > truncate --size=-1 sling/installer/RegisteredResourceList.ser > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > {noformat} > The following exceptions are logged in the last run: > {noformat}21.11.2016 14:32:26.538 *ERROR* [CM Configuration Updater > (ManagedServiceFactory Update: > factoryPid=[org.apache.sling.commons.log.LogManager.factory.config])] > org.apache.felix.configadmin Service > [org.apache.felix.cm.ConfigurationAdmin,28, > [org.osgi.service.cm.ConfigurationAdmin]] > [org.osgi.service.cm.ManagedServiceFactory, id=19, > bundle=8/slinginstall:org.apache.sling.commons.log-5.0.1-SNAPSHOT.jar]: > Updating property org.apache.sling.commons.log.names of configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > caused a problem: Category log.request already defined by configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > (org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9) > org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:36) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.provide(ConfigurationManager.java:1611) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1554) > at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:141) > at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:109) > at java.lang.Thread.run(Thread.java:745) > Caused by: > org.apache.sling.commons.log.logback.internal.config.ConfigurationException: > at > org.apache.sling.commons.log.logback.internal.LogConfigManager.updateLoggerConfiguration(LogConfigManager.java:533) > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:34) > ... 7 common frames omitted{noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (SLING-6313) Sling installer can duplicate factory configurations if an invalid RegisteredResourceList.ser is found
[ https://issues.apache.org/jira/browse/SLING-6313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15684501#comment-15684501 ] Justin Edelson commented on SLING-6313: --- bq. One possible solution is to retain the original alias as a configuration property. But I'll dig a bit more and see if this is the correct fix. AFAIK, that used to be present, but was removed with https://issues.apache.org/jira/browse/SLING-2004 > Sling installer can duplicate factory configurations if an invalid > RegisteredResourceList.ser is found > -- > > Key: SLING-6313 > URL: https://issues.apache.org/jira/browse/SLING-6313 > Project: Sling > Issue Type: Bug > Components: Installer >Reporter: Robert Munteanu >Assignee: Robert Munteanu > Fix For: Installer Core 3.8.2 > > > Steps to reproduce, inside `launchpad/builder` > {noformat} > mvn clean package > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > truncate --size=-1 sling/installer/RegisteredResourceList.ser > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > {noformat} > The following exceptions are logged in the last run: > {noformat}21.11.2016 14:32:26.538 *ERROR* [CM Configuration Updater > (ManagedServiceFactory Update: > factoryPid=[org.apache.sling.commons.log.LogManager.factory.config])] > org.apache.felix.configadmin Service > [org.apache.felix.cm.ConfigurationAdmin,28, > [org.osgi.service.cm.ConfigurationAdmin]] > [org.osgi.service.cm.ManagedServiceFactory, id=19, > bundle=8/slinginstall:org.apache.sling.commons.log-5.0.1-SNAPSHOT.jar]: > Updating property org.apache.sling.commons.log.names of configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > caused a problem: Category log.request already defined by configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > (org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9) > org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:36) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.provide(ConfigurationManager.java:1611) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1554) > at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:141) > at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:109) > at java.lang.Thread.run(Thread.java:745) > Caused by: > org.apache.sling.commons.log.logback.internal.config.ConfigurationException: > at > org.apache.sling.commons.log.logback.internal.LogConfigManager.updateLoggerConfiguration(LogConfigManager.java:533) > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:34) > ... 7 common frames omitted{noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (SLING-6313) Sling installer can duplicate factory configurations if an invalid RegisteredResourceList.ser is found
[ https://issues.apache.org/jira/browse/SLING-6313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15683733#comment-15683733 ] Robert Munteanu commented on SLING-6313: There is code that attempts to prevent duplicate configurations to be created, but it fails for configuration factory "instances" created from the provisioning model. The key difference here is that the provisioning model allows to specify configs with "friendly" qualifiers, e.g. org.apache.felix.jaas.Configuration.factory-*GuestLoginModule*, but on the other hand the config admin replaces that config pid with an actual UUID - org.apache.felix.jaas.Configuration.factory.*150bc928-25e8-4c2e-b210-89331344b3a5*. One possible solution is to retain the original alias as a configuration property. But I'll dig a bit more and see if this is the correct fix. > Sling installer can duplicate factory configurations if an invalid > RegisteredResourceList.ser is found > -- > > Key: SLING-6313 > URL: https://issues.apache.org/jira/browse/SLING-6313 > Project: Sling > Issue Type: Bug > Components: Installer >Reporter: Robert Munteanu >Assignee: Robert Munteanu > Fix For: Installer Core 3.8.2 > > > Steps to reproduce, inside `launchpad/builder` > {noformat} > mvn clean package > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > truncate --size=-1 sling/installer/RegisteredResourceList.ser > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > # wait for Sling to start up properly, stop it with CTRL-C > java -jar target/org.apache.sling.launchpad-9-SNAPSHOT.jar > {noformat} > The following exceptions are logged in the last run: > {noformat}21.11.2016 14:32:26.538 *ERROR* [CM Configuration Updater > (ManagedServiceFactory Update: > factoryPid=[org.apache.sling.commons.log.LogManager.factory.config])] > org.apache.felix.configadmin Service > [org.apache.felix.cm.ConfigurationAdmin,28, > [org.osgi.service.cm.ConfigurationAdmin]] > [org.osgi.service.cm.ManagedServiceFactory, id=19, > bundle=8/slinginstall:org.apache.sling.commons.log-5.0.1-SNAPSHOT.jar]: > Updating property org.apache.sling.commons.log.names of configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > caused a problem: Category log.request already defined by configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > (org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9) > org.osgi.service.cm.ConfigurationException: > org.apache.sling.commons.log.names : Category log.request already defined by > configuration > org.apache.sling.commons.log.LogManager.factory.config.b4cf7982-9af0-40a1-b720-3e83a9f9e7f9 > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:36) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159) > at > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.provide(ConfigurationManager.java:1611) > at > org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1554) > at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:141) > at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:109) > at java.lang.Thread.run(Thread.java:745) > Caused by: > org.apache.sling.commons.log.logback.internal.config.ConfigurationException: > at > org.apache.sling.commons.log.logback.internal.LogConfigManager.updateLoggerConfiguration(LogConfigManager.java:533) > at > org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:34) > ... 7 common frames omitted{noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)