SCM-Manager Failed to read repository path database

Hi all,
I have some problem, we have one ubuntu server where someone installed in the past SCM-Manager, today after rebooting server SCM showing this error someone fight with this or not yet?

com.google.inject.ProvisionException: Unable to provision, see the following errors:

1) [Guice/ErrorInjectingConstructor]: InternalRepositoryException: failed to read repository path database
  at PathBasedRepositoryLocationResolver.<init>(PathBasedRepositoryLocationResolver.java:74)
  at PathBasedRepositoryLocationResolver.class(PathBasedRepositoryLocationResolver.java:56)
  at XmlRepositoryDAO.<init>(XmlRepositoryDAO.java:69)
      \_ for 1st parameter
  at XmlRepositoryDAO.class(XmlRepositoryDAO.java:55)
  at XmlRepositoryV1UpdateStep.<init>(XmlRepositoryV1UpdateStep.java:95)
      \_ for 2nd parameter
  while locating XmlRepositoryV1UpdateStep

Learn more:
  https://github.com/google/guice/wiki/ERROR_INJECTING_CONSTRUCTOR

1 error

======================
Full classname legend:
======================
InternalRepositoryException:         "sonia.scm.repository.InternalRepositoryException"
PathBasedRepositoryLocationResolver: "sonia.scm.repository.xml.PathBasedRepositoryLocationResolver"
XmlRepositoryDAO:                    "sonia.scm.repository.xml.XmlRepositoryDAO"
XmlRepositoryV1UpdateStep:           "sonia.scm.update.repository.XmlRepositoryV1UpdateStep"
========================
End of classname legend:
========================

	at com.google.inject.internal.InternalProvisionException.toProvisionException(InternalProvisionException.java:251)
	at com.google.inject.internal.InjectorImpl$1.get(InjectorImpl.java:1103)
	at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1138)
	at sonia.scm.update.MigrationWizardModuleProvider.wizardNecessary(MigrationWizardModuleProvider.java:44)
	at sonia.scm.lifecycle.BootstrapContextListener.startEitherMigrationOrApplication(BootstrapContextListener.java:130)
	at sonia.scm.lifecycle.BootstrapContextListener.createMigrationOrNormalModuleProvider(BootstrapContextListener.java:124)
	at sonia.scm.lifecycle.BootstrapContextListener.createStageTwoInjector(BootstrapContextListener.java:117)
	at sonia.scm.lifecycle.BootstrapContextListener.getInjector(BootstrapContextListener.java:93)
	at com.google.inject.servlet.GuiceServletContextListener.contextInitialized(GuiceServletContextListener.java:45)
	at sonia.scm.lifecycle.BootstrapContextListener.contextInitialized(BootstrapContextListener.java:75)
	at sonia.scm.lifecycle.BootstrapContextFilter.initializeContext(BootstrapContextFilter.java:74)
	at sonia.scm.lifecycle.BootstrapContextFilter.init(BootstrapContextFilter.java:65)
	at org.eclipse.jetty.servlet.FilterHolder.initialize(FilterHolder.java:140)
	at org.eclipse.jetty.servlet.ServletHandler.lambda$initialize$0(ServletHandler.java:731)
	at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
	at java.base/java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:734)
	at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:658)
	at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:755)
	at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:379)
	at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1449)
	at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1414)
	at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:910)
	at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:288)
	at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:524)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:117)
	at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
	at org.eclipse.jetty.server.Server.start(Server.java:423)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110)
	at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
	at org.eclipse.jetty.server.Server.doStart(Server.java:387)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
	at sonia.scm.server.ScmServer.init(ScmServer.java:130)
	at sonia.scm.server.ScmServer.run(ScmServer.java:91)
	at sonia.scm.server.ScmServerDaemon.main(ScmServerDaemon.java:53)
Caused by: sonia.scm.repository.InternalRepositoryException: failed to read repository path database
	at sonia.scm.repository.xml.PathDatabase.read(PathDatabase.java:141)
	at sonia.scm.repository.xml.PathBasedRepositoryLocationResolver.read(PathBasedRepositoryLocationResolver.java:161)
	at sonia.scm.repository.xml.PathBasedRepositoryLocationResolver.<init>(PathBasedRepositoryLocationResolver.java:89)
	at sonia.scm.repository.xml.PathBasedRepositoryLocationResolver.<init>(PathBasedRepositoryLocationResolver.java:74)
	at sonia.scm.repository.xml.PathBasedRepositoryLocationResolver$$FastClassByGuice$$7031216.GUICE$TRAMPOLINE(<generated>)
	at sonia.scm.repository.xml.PathBasedRepositoryLocationResolver$$FastClassByGuice$$7031216.apply(<generated>)
	at com.google.inject.internal.DefaultConstructionProxyFactory$FastClassProxy.newInstance(DefaultConstructionProxyFactory.java:82)
	at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:114)
	at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:91)
	at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:296)
	at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
	at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:169)
	at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:45)
	at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:40)
	at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:60)
	at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:113)
	at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:91)
	at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:296)
	at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
	at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:169)
	at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:45)
	at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:40)
	at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:60)
	at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:113)
	at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:91)
	at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:296)
	at com.google.inject.internal.InjectorImpl$1.get(InjectorImpl.java:1100)
	... 36 more
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]
Message: Content is not allowed in prolog.
	at java.xml/com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:652)
	at java.xml/javax.xml.stream.util.StreamReaderDelegate.next(StreamReaderDelegate.java:84)
	at sonia.scm.repository.xml.PathDatabase.read(PathDatabase.java:128)
	... 62 more

Hi @themsdx ,

welcome to our community and thank your for sharing your issue!

We will have a look at it and will come back with a first answer soon.

Hey,

have you changed your repository-paths.xml in the scm-home directory by hand or script? Your file content seems to be invalid.

It should look something like this:

<?xml version="1.0" encoding="UTF-8"?>
<repositories creation-time="1680688134150" last-modified="1681196441957">
  <repository id="A7TadBvTz2">repositories/A7TadBvTz2</repository>
  <repository id="BjTaXtij5D">repositories/BjTaXtij5D</repository>
  <repository id="2qTaYlnH85">repositories/2qTaYlnH85</repository>
  <repository id="74TaYlD7O5">repositories/74TaYlD7O5</repository>
  <repository id="7oTadC4Cb8">repositories/7oTadC4Cb8</repository>
  <repository id="8aTaYlVk31">repositories/8aTaYlVk31</repository>
  <repository id="DnTadCGuUD">repositories/DnTadCGuUD</repository>
  <repository id="1sTadCLHIJ">repositories/1sTadCLHIJ</repository>
  <repository id="3qTadC0sK5">repositories/3qTadC0sK5</repository>
  <repository id="D9TaYl0ZQ1">repositories/D9TaYl0ZQ1</repository>
  <repository id="2lTaXsmYs7">repositories/2lTaXsmYs7</repository>
  <repository id="C1TadCInoG">repositories/C1TadCInoG</repository>
</repositories>