com.tek42.perforce.PerforceException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Hi there, If you configure the Perforce plugin to "Always Force Sync" and "Don't update server database on sync (-p)" then this will fail with: [NvTriStrip] $ "C:\\Program Files\\Perforce\\p4.exe" -s sync -f -p //Jenkins_NvTriStrip-Build2/...@167119 11:33:20 Caught exception communicating with perforce. Errors encountered while force syncing: error: Usage: sync [ -n -p -q ] [-m max] [files...] 11:33:20 com.tek42.perforce.PerforceException: Errors encountered while force syncing: error: Usage: sync [ -n -p -q ] [-m max] [files...] 11:33:20 11:33:20 at com.tek42.perforce.parse.Workspaces.syncTo(Workspaces.java:167) 11:33:20 at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:747) 11:33:20 at hudson.model.AbstractProject.checkout(AbstractProject.java:1195) 11:33:20 at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:579) 11:33:20 at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:468) 11:33:20 at hudson.model.Run.run(Run.java:1408) 11:33:20 at hudson.matrix.MatrixBuild.run(MatrixBuild.java:252) 11:33:20 at hudson.model.ResourceController.execute(ResourceController.java:88) 11:33:20 at hudson.model.Executor.run(Executor.java:238) 11:33:20 at hudson.model.OneOffExecutor.run(OneOffExecutor.java:66) 11:33:20 ERROR: Unable to communicate with perforce. Errors encountered while force syncing: error: Usage: sync [ -n -p -q ] [-m max] [files...] Is it possible to update the Perforce plugin to at least warn or error if both these options are enabled? Regards, Tom.
    via by Thomas Fields,
  • Hi there, If you configure the Perforce plugin to "Always Force Sync" and "Don't update server database on sync (-p)" then this will fail with: [NvTriStrip] $ "C:\\Program Files\\Perforce\\p4.exe" -s sync -f -p //Jenkins_NvTriStrip-Build2/...@167119 11:33:20 Caught exception communicating with perforce. Errors encountered while force syncing: error: Usage: sync [ -n -p -q ] [-m max] [files...] 11:33:20 com.tek42.perforce.PerforceException: Errors encountered while force syncing: error: Usage: sync [ -n -p -q ] [-m max] [files...] 11:33:20 11:33:20 at com.tek42.perforce.parse.Workspaces.syncTo(Workspaces.java:167) 11:33:20 at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:747) 11:33:20 at hudson.model.AbstractProject.checkout(AbstractProject.java:1195) 11:33:20 at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:579) 11:33:20 at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:468) 11:33:20 at hudson.model.Run.run(Run.java:1408) 11:33:20 at hudson.matrix.MatrixBuild.run(MatrixBuild.java:252) 11:33:20 at hudson.model.ResourceController.execute(ResourceController.java:88) 11:33:20 at hudson.model.Executor.run(Executor.java:238) 11:33:20 at hudson.model.OneOffExecutor.run(OneOffExecutor.java:66) 11:33:20 ERROR: Unable to communicate with perforce. Errors encountered while force syncing: error: Usage: sync [ -n -p -q ] [-m max] [files...] Is it possible to update the Perforce plugin to at least warn or error if both these options are enabled? Regards, Tom.
    via by Thomas Fields,
  • After upgrading to version 1.2.3 of Perforce plugin we're suddenly getting an error/exception (see below). This happened on two different machines after upgrading to 1.2.3. It worked happily before the upgrade and the output log didn't show any errors. However, when I try to do this on the command line I get the same error, so the behavior might be correct. The only thing is that it worked correct in Jenkins before the upgrade, but doesn't do it anymore after the upgrade. [WW] $ /usr/local/bin/p4 -s sync //WW--497286900/...@34822 Caught exception communicating with perforce. Errors encountered while syncing: error: Too many rows scanned (over 100000); see 'p4 help maxscanrows'. com.tek42.perforce.PerforceException: Errors encountered while syncing: error: Too many rows scanned (over 100000); see 'p4 help maxscanrows'. at com.tek42.perforce.parse.Workspaces.syncTo(Workspaces.java:158) at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:672) at hudson.model.AbstractProject.checkout(AbstractProject.java:1171) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:521) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416) at hudson.model.Run.run(Run.java:1362) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145) ERROR: Unable to communicate with perforce. Errors encountered while syncing: error: Too many rows scanned (over 100000); see 'p4 help maxscanrows'. -- Posted from Bugbox for Android
    via by ickersep,
  • An error occurred during workspace sync which caused an exception in the plugin. Better exception handling would be required in such a case. PERFORCE OUTPUT --------------- Started by timer Building on master in workspace WORKSPACE_DIRECTORY Using master perforce client: JOB_NAME [workspace] $ p4 workspace -o JOB_NAME [workspace] $ p4 login -a -p [workspace] $ p4 -P F9151DF0014D48B57633865E55EDD343 workspace -o JOB_NAME Changing P4 Client Root to: WORKSPACE_DIRECTORY Saving modified client JOB_NAME [workspace] $ p4 -P F9151DF0014D48B57633865E55EDD343 -s client -i Note: .repository directory in workspace (if exists) is skipped during clean. Wiping workspace... Wiped workspace. Clean complete, took 0 ms Last build changeset: 289943 [workspace] $ p4 -P F9151DF0014D48B57633865E55EDD343 changes -s submitted -m 1 //JOB_NAME/... [workspace] $ p4 -P F9151DF0014D48B57633865E55EDD343 -s changes -s submitted //JOB_NAME/...@289944,@289943 Sync'ing workspace to changelist 289943 (forcing sync of unchanged files). [workspace] $ p4 -P F9151DF0014D48B57633865E55EDD343 -s sync -f //JOB_NAME/...@289943 Caught exception communicating with perforce. Errors encountered while force syncing: error: chmod: FILE_TO_SYNC: The system cannot find the file specified. com.tek42.perforce.PerforceException: Errors encountered while force syncing: error: chmod: FILE_TO_SYNC: The system cannot find the file specified. at com.tek42.perforce.parse.Workspaces.syncTo(Workspaces.java:167) at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:1111) at hudson.model.AbstractProject.checkout(AbstractProject.java:1415) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:652) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:561) at hudson.model.Run.execute(Run.java:1678) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:231) ERROR: Unable to communicate with perforce. Errors encountered while force syncing: error: chmod: FILE_TO_SYNC: The system cannot find the file specified.
    via by robsimon,
  • Occasionally our project reports build failures, but when we go to look at the build output it appears that the only thing that failed was the p4 sync command. Upon running the build manually again it works fine. Here is the dump that all of the failures look like: [none] $ "C:\Program Files\Perforce\p4" -s sync -f //automated_build_sepac_main/...@204714 Caught exception communicating with perforce. Errors encountered while force syncing: error: RpcTransport: partial message read error: TCP receive failed. error: read: socket: WSAECONNRESET com.tek42.perforce.PerforceException: Errors encountered while force syncing: error: RpcTransport: partial message read error: TCP receive failed. error: read: socket: WSAECONNRESET at com.tek42.perforce.parse.Workspaces.syncTo(Workspaces.java:167) at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:1126) at hudson.model.AbstractProject.checkout(AbstractProject.java:1276) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532) at hudson.model.Run.execute(Run.java:1744) at hudson.matrix.MatrixRun.run(MatrixRun.java:146) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:374) ERROR: Unable to communicate with perforce. Errors encountered while force syncing: error: RpcTransport: partial message read error: TCP receive failed. error: read: socket: WSAECONNRESET Finished: FAILURE
    via by Brian Collum,
  • An error occurred during workspace sync which caused an exception in the plugin. Better exception handling would be required in such a case. PERFORCE OUTPUT --------------- Started by timer Building on master in workspace WORKSPACE_DIRECTORY Using master perforce client: JOB_NAME [workspace] $ p4 workspace -o JOB_NAME [workspace] $ p4 login -a -p [workspace] $ p4 -P F9151DF0014D48B57633865E55EDD343 workspace -o JOB_NAME Changing P4 Client Root to: WORKSPACE_DIRECTORY Saving modified client JOB_NAME [workspace] $ p4 -P F9151DF0014D48B57633865E55EDD343 -s client -i Note: .repository directory in workspace (if exists) is skipped during clean. Wiping workspace... Wiped workspace. Clean complete, took 0 ms Last build changeset: 289943 [workspace] $ p4 -P F9151DF0014D48B57633865E55EDD343 changes -s submitted -m 1 //JOB_NAME/... [workspace] $ p4 -P F9151DF0014D48B57633865E55EDD343 -s changes -s submitted //JOB_NAME/...@289944,@289943 Sync'ing workspace to changelist 289943 (forcing sync of unchanged files). [workspace] $ p4 -P F9151DF0014D48B57633865E55EDD343 -s sync -f //JOB_NAME/...@289943 Caught exception communicating with perforce. Errors encountered while force syncing: error: chmod: FILE_TO_SYNC: The system cannot find the file specified. com.tek42.perforce.PerforceException: Errors encountered while force syncing: error: chmod: FILE_TO_SYNC: The system cannot find the file specified. at com.tek42.perforce.parse.Workspaces.syncTo(Workspaces.java:167) at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:1111) at hudson.model.AbstractProject.checkout(AbstractProject.java:1415) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:652) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:561) at hudson.model.Run.execute(Run.java:1678) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:231) ERROR: Unable to communicate with perforce. Errors encountered while force syncing: error: chmod: FILE_TO_SYNC: The system cannot find the file specified.
    via by robsimon,
  • Occasionally our project reports build failures, but when we go to look at the build output it appears that the only thing that failed was the p4 sync command. Upon running the build manually again it works fine. Here is the dump that all of the failures look like: [none] $ "C:\Program Files\Perforce\p4" -s sync -f //automated_build_sepac_main/...@204714 Caught exception communicating with perforce. Errors encountered while force syncing: error: RpcTransport: partial message read error: TCP receive failed. error: read: socket: WSAECONNRESET com.tek42.perforce.PerforceException: Errors encountered while force syncing: error: RpcTransport: partial message read error: TCP receive failed. error: read: socket: WSAECONNRESET at com.tek42.perforce.parse.Workspaces.syncTo(Workspaces.java:167) at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:1126) at hudson.model.AbstractProject.checkout(AbstractProject.java:1276) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532) at hudson.model.Run.execute(Run.java:1744) at hudson.matrix.MatrixRun.run(MatrixRun.java:146) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:374) ERROR: Unable to communicate with perforce. Errors encountered while force syncing: error: RpcTransport: partial message read error: TCP receive failed. error: read: socket: WSAECONNRESET Finished: FAILURE
    via by Brian Collum,
  • After upgrading to version 1.2.3 of Perforce plugin we're suddenly getting an error/exception (see below). This happened on two different machines after upgrading to 1.2.3. It worked happily before the upgrade and the output log didn't show any errors. However, when I try to do this on the command line I get the same error, so the behavior might be correct. The only thing is that it worked correct in Jenkins before the upgrade, but doesn't do it anymore after the upgrade. [WW] $ /usr/local/bin/p4 -s sync //WW--497286900/...@34822 Caught exception communicating with perforce. Errors encountered while syncing: error: Too many rows scanned (over 100000); see 'p4 help maxscanrows'. com.tek42.perforce.PerforceException: Errors encountered while syncing: error: Too many rows scanned (over 100000); see 'p4 help maxscanrows'. at com.tek42.perforce.parse.Workspaces.syncTo(Workspaces.java:158) at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:672) at hudson.model.AbstractProject.checkout(AbstractProject.java:1171) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:521) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416) at hudson.model.Run.run(Run.java:1362) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145) ERROR: Unable to communicate with perforce. Errors encountered while syncing: error: Too many rows scanned (over 100000); see 'p4 help maxscanrows'. -- Posted from Bugbox for Android
    via by ickersep,
    • com.tek42.perforce.PerforceException: Errors encountered while force syncing: error: Usage: sync [ -n -p -q ] [-m max] [files...] at com.tek42.perforce.parse.Workspaces.syncTo(Workspaces.java:167) at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:747) at hudson.model.AbstractProject.checkout(AbstractProject.java:1195) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:579) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:468) at hudson.model.Run.run(Run.java:1408) at hudson.matrix.MatrixBuild.run(MatrixBuild.java:252) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) at hudson.model.OneOffExecutor.run(OneOffExecutor.java:66)
    No Bugmate found.