[JIRA] (JENKINS-58048) P4 error - No open file stream in ClientSystemFileCommands.writeFile()

1 view
Skip to first unread message

sascha.leuthold@live.com (JIRA)

unread,
Jun 17, 2019, 9:54:02 AM6/17/19
to jenkinsc...@googlegroups.com
Sascha Leuthold created an issue
 
Jenkins / Bug JENKINS-58048
P4 error - No open file stream in ClientSystemFileCommands.writeFile()
Issue Type: Bug Bug
Assignee: Unassigned
Components: p4-plugin
Created: 2019-06-17 13:53
Environment: We are on a Windows 2008 server with an up-to-date jenkins. Workspaces are 15-20 GB big C++ make style.
Priority: Major Major
Reporter: Sascha Leuthold
P4 Task: attempt: 1 ERROR: P4: Task Exception: com.perforce.p4java.exception.ConnectionException: No open file stream in ClientSystemFileCommands.writeFile() [MSBuild] Skipping execution of recorder since overall result is 'FAILURE'

We had to downgrade from 1.10.0 back to 1.9.7. Most syncs of workspaces started to fail with version 1.10.0. As soon as we downgraded everything went back to normal and our workspace sync work perfectly again.

I can't really tell what the problem is, but either I see the above error, or files are simply missing, and subsequent builds are failing.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

kwirth@perforce.com (JIRA)

unread,
Jun 17, 2019, 10:07:03 AM6/17/19
to jenkinsc...@googlegroups.com
Karl Wirth commented on Bug JENKINS-58048
 
Re: P4 error - No open file stream in ClientSystemFileCommands.writeFile()

Hi Sascha Leuthold,

Thanks for reporting this problem. Can you please send an email to 'sup...@perforce.com' for my attention so I can request in depth information about your build jobs.

kwirth@perforce.com (JIRA)

unread,
Jun 17, 2019, 10:16:02 AM6/17/19
to jenkinsc...@googlegroups.com

kwirth@perforce.com (JIRA)

unread,
Jun 17, 2019, 10:17:01 AM6/17/19
to jenkinsc...@googlegroups.com

kwirth@perforce.com (JIRA)

unread,
Jun 21, 2019, 9:53:03 AM6/21/19
to jenkinsc...@googlegroups.com
 
Re: P4 error - No open file stream in ClientSystemFileCommands.writeFile()

Investigation still progressing. Reports of this so far involve Virus checkers.

CANNOT reproduce it artificially by locking the file using Powershell:

(1) Run new job on a Windows slave.

(2) Open a Powershell Window and exclusively lock the file:

$myFile="C:\filestore\Jenkins\JOBS\workspace\MYJOB\MYFILE.txt"
Set-ItemProperty $myFile -name IsReadOnly -value $false
$file = [System.IO.File]::Open($myFile, "Open", "Read", "None")

(3) Run the job again and see a different the error:

ERROR: P4: Task Exception: com.perforce.p4java.exception.P4JavaException: com.perforce.p4java.exception.P4JavaException: hudson.AbortException: P4JAVA: Error(s):
file 9.c operating system write error: C:\filestore\Jenkins\JOBS\workspace\MYJOB\MYFILE.txt (The process cannot access the file because it is being used by another process).

(4) Unlock the file

 $file.Close()

 

 

kwirth@perforce.com (JIRA)

unread,
Jun 26, 2019, 7:00:02 AM6/26/19
to jenkinsc...@googlegroups.com

kwirth@perforce.com (JIRA)

unread,
Jun 26, 2019, 7:00:02 AM6/26/19
to jenkinsc...@googlegroups.com

kwirth@perforce.com (JIRA)

unread,
Jun 26, 2019, 7:00:02 AM6/26/19
to jenkinsc...@googlegroups.com
 
Re: P4 error - No open file stream in ClientSystemFileCommands.writeFile()

Looks to be related to a symlink bug in the latest version of P4Java used by P4-Plugin 1.10.0. Workaround until this can be patched is to revert to your previous version of the p4-plugin.

ericb@piap.com (JIRA)

unread,
Jun 27, 2019, 1:09:03 PM6/27/19
to jenkinsc...@googlegroups.com

I also encountered this problem today. We are running P4 Plugin 1.10.0 on Jenkins 2.164.3. Downgrading to 1.9.7 fixed the issue.

kwirth@perforce.com (JIRA)

unread,
Jul 2, 2019, 11:00:02 AM7/2/19
to jenkinsc...@googlegroups.com

Update - This was a problem with writing symlink files on Windows. We are still working on a fix.

barnish@gmail.com (JIRA)

unread,
Jul 8, 2019, 8:30:03 AM7/8/19
to jenkinsc...@googlegroups.com

I'm seeing the following error in linux since plugin version 1.10.1 . Is it the same issue?
 
ERROR: P4: Task Exception: com.perforce.p4java.exception.ConnectionException: No open file stream in ClientSystemFileCommands.writeFile()

kwirth@perforce.com (JIRA)

unread,
Jul 8, 2019, 9:09:02 AM7/8/19
to jenkinsc...@googlegroups.com

kwirth@perforce.com (JIRA)

unread,
Jul 8, 2019, 10:19:05 AM7/8/19
to jenkinsc...@googlegroups.com

Confirm that the bug will also impact Linux users. We continue to work on the problem.

barnish@gmail.com (JIRA)

unread,
Jul 9, 2019, 11:36:02 AM7/9/19
to jenkinsc...@googlegroups.com
Andrew Barnish edited a comment on Bug JENKINS-58048
I'm seeing the following error in linux since plugin version 1.10. 1 0 . Is it the same issue?
 
ERROR: P4: Task Exception: com.perforce.p4java.exception.ConnectionException: No open file stream in ClientSystemFileCommands.writeFile()

barnish@gmail.com (JIRA)

unread,
Jul 11, 2019, 12:00:02 PM7/11/19
to jenkinsc...@googlegroups.com

The issue we were seeing on Linux is resolved in p4-plugin 1.10.2

kwirth@perforce.com (JIRA)

unread,
Jul 11, 2019, 1:02:07 PM7/11/19
to jenkinsc...@googlegroups.com

kwirth@perforce.com (JIRA)

unread,
Jul 11, 2019, 1:02:07 PM7/11/19
to jenkinsc...@googlegroups.com
Karl Wirth resolved as Fixed
 

Believed to be fixed by 1.10.2. Waiting for additional confirmation.

Change By: Karl Wirth
Status: Open Resolved
Resolution: Fixed

pallen@perforce.com (JIRA)

unread,
Jul 15, 2019, 6:25:04 AM7/15/19
to jenkinsc...@googlegroups.com
Paul Allen closed an issue as Fixed
 

Released in 1.10.2

Change By: Paul Allen
Status: Resolved Closed
Assignee: Paul Allen
Reply all
Reply to author
Forward
0 new messages