"Could not get project sources" Error when Perforce Resource has a Space in the Path

Hello:

Today our builds started failing with the following error:

[19:22:22]: Could not get project sources: for build #498
[19:22:22]: jetbrains.buildServer.vcs.VcsException: Perforce problem: //depot/prod/nwf/main/sample/client/war/gxt-resources/themes/slate/images/slate/menu/item-over - Copy.gif\#1 - no such file(s).

jetbrains.buildServer.vcs.VcsException: Perforce problem: //depot/prod/nwf/main/sample/client/war/gxt-resources/themes/slate/images/slate/menu/item-over - Copy.gif\#1 - no such file(s).

at jetbrains.buildServer.buildTriggers.vcs.perforce.AbstractPythonReader.onRecordRead(AbstractPythonReader.java:36)
at jetbrains.buildServer.buildTriggers.vcs.perforce.PythonReader.read(PythonReader.java:60)
at jetbrains.buildServer.buildTriggers.vcs.perforce.PerforcePatchProvider.loadContents(PerforcePatchProvider.java:92)
at jetbrains.buildServer.buildTriggers.vcs.perforce.PerforcePatchProvider.buildPatch(PerforcePatchProvider.java:62)
at jetbrains.buildServer.buildTriggers.vcs.perforce.PerforceSupport.buildPatch(PerforceSupport.java:195)
at jetbrains.buildServer.serverSide.impl.projectSources.PatchCacheImpl.buildCleanPatch(PatchCacheImpl.java:31)
at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer.buildPatch(PatchComposer.java:16)
at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer.buildPatch(PatchComposer.java:30)
at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer.buildPatch(PatchComposer.java:83)
at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.buildPatch(BuildTypeImpl.java:333)
at jetbrains.buildServer.serverSide.impl.BuildTypeImpl$$FastClassByCGLIB$$a84db719.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:700)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:10)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:582)
at jetbrains.buildServer.serverSide.impl.BuildTypeImpl$$EnhancerByCGLIB$$a9183e66.buildPatch(<generated>)
at jetbrains.buildServer.serverSide.impl.BuildStarter$2.call(BuildStarter.java:13)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)

[19:22:22]: Could not get project sources
[19:22:22]: Patch is broken, can be found in file /opt/TeamCity/buildAgent/temp/cache/temp55145patch498
[19:22:22]: Error while applying patch: Perforce problem: //depot/prod/nwf/main/sample/client/war/gxt-resources/themes/slate/images/slate...


Although I know that it would be better if we did not use spaces in out filenames/paths, but Perforce handles this path fine. Is this a known issue with TeamCity?


TeamCity version: 4.0.2 (build 8222)


Thanks,

Richard.
2 comments
Comment actions Permalink

Hello Richard,

  We haven't had reports about this problem before. Could you please file the issue to http://jetbrains.net/tracker?

  Kind regards,
  KIR

0
Comment actions Permalink

Thanks for the quick response. I have filed http://jetbrains.net/tracker/issue2/TW-8124.

Richard.

0

Please sign in to leave a comment.