com.tek42.perforce.PerforceException: Errors encountered while force syncing: error: chmod: FILE_TO_SYNC: The system cannot find the file specified.

Jenkins JIRA | robsimon | 3 years ago
  1. 0

    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.

    Jenkins JIRA | 3 years ago | robsimon
    com.tek42.perforce.PerforceException: Errors encountered while force syncing: error: chmod: FILE_TO_SYNC: The system cannot find the file specified.
  2. 0

    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.

    Jenkins JIRA | 3 years ago | robsimon
    com.tek42.perforce.PerforceException: Errors encountered while force syncing: error: chmod: FILE_TO_SYNC: The system cannot find the file specified.
  3. 0

    Facing issue with jenkins: label name not recognized by sync command

    Stack Overflow | 1 year ago | Vetrivelkumar Pandi
    com.tek42.perforce.PerforceException: Errors encountered while force syncing: error: Invalid changelist/client/label/date '@cobrands.razor12.FIS.prod.20150609_build_01
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Unable to sync source code using the perforce plugin for Jenkins

    Stack Overflow | 1 year ago | Var
    com.tek42.perforce.PerforceException: Errors encountered while force syncing: error: //Perforce-Test/...@3691663 - protected namespace - access denied.
  6. 0

    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

    Jenkins JIRA | 2 years ago | Brian Collum
    com.tek42.perforce.PerforceException: Errors encountered while force syncing: error: RpcTransport: partial message read error: TCP receive failed. error: read: socket: WSAECONNRESET

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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()
    2. com.tek42.perforce
      Workspaces.syncTo
      1. com.tek42.perforce.parse.Workspaces.syncTo(Workspaces.java:167)
      1 frame
    3. hudson.plugins.perforce
      PerforceSCM.checkout
      1. hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:1111)
      1 frame
    4. Hudson
      AbstractBuild$AbstractBuildExecution.defaultCheckout
      1. hudson.model.AbstractProject.checkout(AbstractProject.java:1415)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:652)
      2 frames
    5. jenkins.scm
      SCMCheckoutStrategy.checkout
      1. jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
      1 frame
    6. Hudson
      Executor.run
      1. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:561)
      2. hudson.model.Run.execute(Run.java:1678)
      3. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      4. hudson.model.ResourceController.execute(ResourceController.java:88)
      5. hudson.model.Executor.run(Executor.java:231)
      5 frames