Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7642949
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T09:19:18+00:00 2026-05-31T09:19:18+00:00

I’m running some maven builds in Jenkins, using a Master/multi-slave setup. These builds mostly

  • 0

I’m running some maven builds in Jenkins, using a Master/multi-slave setup. These builds mostly run fine, but every now and again I get this inexplicable error in the console output for the executing slave, and the build dies:

FATAL: Failed to parse /var/lib/jenkins/updates/hudson.tasks.Maven.MavenInstaller into JSON
hudson.util.IOException2: Failed to parse /var/lib/jenkins/updates/hudson.tasks.Maven.MavenInstaller into JSON
    at hudson.model.DownloadService$Downloadable.getData(DownloadService.java:216)
    at hudson.tools.DownloadFromUrlInstaller$DescriptorImpl.getInstallables(DownloadFromUrlInstaller.java:149)
    at hudson.tools.DownloadFromUrlInstaller.getInstallable(DownloadFromUrlInstaller.java:54)
    at hudson.tools.DownloadFromUrlInstaller.performInstallation(DownloadFromUrlInstaller.java:63)
    at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:61)
    at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:107)
    at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:150)
    at hudson.tasks.Maven$MavenInstallation.forNode(Maven.java:515)
    at hudson.tasks.Maven.perform(Maven.java:238)
    at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
    at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:700)
    at hudson.model.Build$RunnerImpl.build(Build.java:178)
    at hudson.model.Build$RunnerImpl.doRun(Build.java:139)
    at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:470)
    at hudson.model.Run.run(Run.java:1409)
    at hudson.matrix.MatrixRun.run(MatrixRun.java:146)
    at hudson.model.ResourceController.execute(ResourceController.java:88)
    at hudson.model.Executor.run(Executor.java:238)
Caused by: net.sf.json.JSONException: A JSONObject text must begin with '{' at character 0 of 
    at net.sf.json.util.JSONTokener.syntaxError(JSONTokener.java:512)
    at net.sf.json.JSONObject._fromJSONTokener(JSONObject.java:843)
    at net.sf.json.JSONObject._fromString(JSONObject.java:1064)
    at net.sf.json.JSONObject.fromObject(JSONObject.java:176)
    at net.sf.json.JSONObject.fromObject(JSONObject.java:147)
    at hudson.model.DownloadService$Downloadable.getData(DownloadService.java:213)
    ... 17 more

The home directory for the slave instance is /home/jenkins, as opposed to /var/lib/jenkins, which could explain the error, but nothing (nothing I’ve found, anyway) explains why jenkins would be trying to access the wrong home directory.

Has anybody else experienced this problem? Any suggestions for where to go debug-wise?

[UPDATE 20120312]

The direct cause of this problem is empty files in the $JENKINS_HOME/updates/ directory on the jenkins master. In this particular case, the master node is trying to parse $JENKINS_HOME/updates/hudson.tasks.Maven.MavenInstaller and send the data to the slave node so that it can update its maven installation. If I manually populate that file with data from another jenkins installation that I have, all processes go through just fine. However, due to a daily(?) update process, the file is replaced with another empty one, and so the problem persists.

This affects all self-installed tools (ant, java, etc.), and results in little side-effects like the version field under jenkins configuration -> maven -> install from apache being a text field instead of a drop-down.

So, the question becomes why are these files being downloaded empty? I can’t find any reference to where they’re being downloaded from, so I can’t directly debug the link. Even if I could, it appears to work from one Jenkins installation, and not from another. Anyone out there have any suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T09:19:19+00:00Added an answer on May 31, 2026 at 9:19 am

    Problem solved! The jenkins installation is fronted by an apache proxy, and it worked like a charm…almost. A minor tweak was required to get it to an error-free state. I had to change:

    ProxyPass         /jenkins/  http://localhost:8080/
    ProxyPassReverse  /jenkins/  http://localhost:8080/
    

    To:

    ProxyPass         /jenkins/  http://localhost:8080/jenkins/
    ProxyPassReverse  /jenkins/  http://localhost:8080/jenkins/
    

    And I had to add:

    JENKINS_ARGS="--prefix=/jenkins"
    

    To /etc/sysconfig/jenkins. After that adjustment, everything works fine.

    As a side note, the thing that tipped me off to the proxy configuration was that every ajax call was being made twice (once to ‘/…’ and once to ‘/jenkins/…’). At least, every one that succeeded. Once I made the configuration change, the ajax calls were just being made once each, and performance increased as well.

    This misconfiguration makes for some weird side-effects, so hopefully this post can help somebody else.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
I have a French site that I want to parse, but am running into
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I would like to run a str_replace or preg_replace which looks for certain words
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.