Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Unable to read..." exceptions in jenkins server log #3469

Closed
Tracked by #3380
sxa opened this issue Mar 13, 2024 · 2 comments
Closed
Tracked by #3380

"Unable to read..." exceptions in jenkins server log #3469

sxa opened this issue Mar 13, 2024 · 2 comments
Assignees
Labels

Comments

@sxa
Copy link
Member

sxa commented Mar 13, 2024

We have 184 files causing approximately 200 exceptions each day which is causing a lot of activity in the log.
All of them appear to be from truncated XML files which cannot be parsed properly.

Related: #2774

Example:
2024-03-12 23:00:17.237+0000 [id=645695]        WARNING hudson.model.RunMap#retrieve: could not load /home/jenkins/.jenkins/jobs/build-scripts/jobs/openjdk22-pipeline/builds/91
java.lang.NullPointerException
Caused: com.thoughtworks.xstream.converters.ConversionException: 
---- Debugging information ----
cause-exception     : java.lang.NullPointerException
cause-message       : null
class               : org.jenkinsci.plugins.workflow.job.WorkflowRun
required-type       : org.jenkinsci.plugins.workflow.job.WorkflowRun
converter-type      : hudson.util.RobustReflectionConverter
path                : /flow-build/execution/script
line number         : 995
version             : 2.440.1
-------------------------------
        at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:81)
        at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:72)
        at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:68)
        at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:52)
        at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:136)
        at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
        at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1464)
        at hudson.util.XStream2.unmarshal(XStream2.java:230)
        at hudson.util.XStream2.unmarshal(XStream2.java:201)
        at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1441)
        at hudson.XmlFile.unmarshal(XmlFile.java:196)
Caused: java.io.IOException: Unable to read /home/jenkins/.jenkins/jobs/build-scripts/jobs/openjdk22-pipeline/builds/91/build.xml
@sxa
Copy link
Member Author

sxa commented Mar 13, 2024

List of affected jobs - number at the start is the size in KB of each directory:
truncatedxmls.gz

I have taken a backup of those into truncated-xml-builds-issue3469.tar.gz (with the exception of the pr-tester ones which were 1-2GB each) in the jobs directory and plan to remove them from the file system by the end of the day. There should be no risk to any retained release pipelines due since none of them were a significant size so did not have build artifacts attached.

FYI @andrew-m-leonard @smlambert if there is a concern with deleting these individual build/test jobs from jenkins please shout, but it doesn't look like they had any retained artifacts.

@sxa sxa self-assigned this Mar 13, 2024
@sxa sxa added the Jenkins label Mar 13, 2024
@sxa sxa added this to the 2024-03 (March) milestone Mar 13, 2024
@sxa sxa mentioned this issue Mar 13, 2024
21 tasks
@smlambert smlambert moved this to In Progress in 2024 1Q Adoptium Plan Mar 13, 2024
@sxa
Copy link
Member Author

sxa commented Mar 18, 2024

Coming back to this and I've deleted all the files mentioned in the comment so these exceptions should no longer be occurring. There were 29420 of them between midnight at 1001 this morning when I perfomed the deletions and no more since. The cleanup continues :-)

@sxa sxa closed this as completed Mar 18, 2024
@github-project-automation github-project-automation bot moved this from In Progress to Done in 2024 1Q Adoptium Plan Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: Done
Development

No branches or pull requests

1 participant