Unexpected error resolving dependency

Admittedly, I did delete a dependent build, but everything appeared to work correctly. I re-added a new dependent with the same name, and now am unable to access the dependencies:

Unexpected Error

This was not supposed to happen. Please provide the error details to your TeamCity server maintainer.
If you maintain this TeamCity installation please report this error to JetBrains.

Error message: Cannot find external id because build configuration with internal id bt300 does not exist
TeamCity: 9.0.1 (build 32116)
Operating system: Linux (3.2.0-23-generic, amd64)
Java: 1.6.0_20-b02 (Sun Microsystems Inc.)
Servlet container: Apache Tomcat/7.0.57

Trace: jetbrains.buildServer.serverSide.BuildTypeNotFoundException: Cannot find external id because build configuration with internal id bt300 does not exist
     at jetbrains.buildServer.serverSide.artifacts.SArtifactDependencyImpl.getSourceExternalId(SArtifactDependencyImpl.java:25)
     at jetbrains.buildServer.controllers.buildType.ArtifactDependenciesBean$ArtifactDependencyBean.<init>(ArtifactDependenciesBean.java:35)
     at jetbrains.buildServer.controllers.buildType.ArtifactDependenciesBean.<init>(ArtifactDependenciesBean.java:16)
     at jetbrains.buildServer.controllers.admin.projects.EditableArtifactDependenciesBean.<init>(EditableArtifactDependenciesBean.java:1)
     at jetbrains.buildServer.controllers.admin.projects.EditableBuildTypeSettingsForm.getArtifactDependenciesBean(EditableBuildTypeSettingsForm.java:33)
     at jetbrains.buildServer.controllers.admin.projects.AdminEditDependenciesController.doGet(AdminEditDependenciesController.java:10)
     at jetbrains.buildServer.controllers.BaseFormXmlController.doHandle(BaseFormXmlController.java:60)
     at jetbrains.buildServer.controllers.BaseController.handleRequestInternal(BaseController.java:75)
     at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:154)
     at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:50)
     at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:938)
     at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:870)
     at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:961)
     at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:852)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
     at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:837)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
     at jetbrains.buildServer.maintenance.TeamCityDispatcherServlet.service(TeamCityDispatcherServlet.java:3)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
     at jetbrains.buildServer.web.DependencyParametersCalculationContextFilter.doFilter(DependencyParametersCalculationContextFilter.java:11)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
     at jetbrains.buildServer.web.DisableSessionIdFromUrlFilter.doFilter(DisableSessionIdFromUrlFilter.java:5)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
     at jetbrains.buildServer.diagnostic.web.DiagnosticFilter.doFilter(DiagnosticFilter.java:12)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
     at jetbrains.buildServer.web.ResponseFragmentFilter.doFilter(ResponseFragmentFilter.java:30)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
     at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
     at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
     at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1736)
     at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1695)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
     at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
     at java.lang.Thread.run(Unknown Source)
3 comments
Comment actions Permalink

If there is anything I can do to put this back to rights, please let me know what to do.

Many thanks!

0
Comment actions Permalink

Hi Stephen,

Have you also changed any xml files on disk? Please attach teamcity-server.log.
It seems like this issue: https://youtrack.jetbrains.com/issue/TW-39225. Please watch/vote/comment.

0
Comment actions Permalink

No, no changes to xml files.

What I did to get around it was to create a new build profile with the correct dependencies, and then delete the broken profile. Not pretty, but it worked.

0

Please sign in to leave a comment.