Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-20327

“Form too large” errors submitting view configurations with many jobs

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • core
    • Windows XP Professional, Version 2002, SP3
      Intel(R)Xeon(R) CPU
      X5670 @ 2.93 GHz
      2,67 GHz, 2,00 GB of RAM
      Physical Address Extension

      Jenkins was today upgraded from 1.527 to 1.537.

      I have created a new job (by copying an older job), and saved.
      I want to integrate the new job into a Jenkins view, select it, press "Edit view", select the new job, press save

      and get the following Java exception:

      javax.servlet.ServletException: java.lang.IllegalStateException: Form too large 241320>200000
        at …
      

      The issue is critical, because I have to implement a lot of new jobs for our testing environment, we are short before a new release of our software.

      Thanks a lot for providing a solution for this problem.

      Attached is the above stacktrace, as well as the output found in the error logging on the Jenkins master server, and the version of all installed plugins.

          [JENKINS-20327] “Form too large” errors submitting view configurations with many jobs

          Angela Bauer created issue -

          Angela Bauer added a comment -

          Additional hints:

          • additional restart of Jenkins master did not help (after upgrade from 1.527 to 1.537 restart was already performed)
          • I found, that in config.xml yet version 1.527 was referenced, manually changing it to 1.537 did not help, too.
          • as a workaround, I downgraded to 1.527, now the described problem does not occur any longer.
            However, I would need 1.537 due to clearcase polling solution

          Angela Bauer added a comment - Additional hints: additional restart of Jenkins master did not help (after upgrade from 1.527 to 1.537 restart was already performed) I found, that in config.xml yet version 1.527 was referenced, manually changing it to 1.537 did not help, too. as a workaround, I downgraded to 1.527, now the described problem does not occur any longer. However, I would need 1.537 due to clearcase polling solution

          Daniel Baldo added a comment -

          The versions after a release 1.527 must have some problems, because I realize the people are downgrading.
          I have another issue (https://issues.jenkins-ci.org/browse/JENKINS-19248) that I'm waiting for the correction also.

          Daniel Baldo added a comment - The versions after a release 1.527 must have some problems, because I realize the people are downgrading. I have another issue ( https://issues.jenkins-ci.org/browse/JENKINS-19248 ) that I'm waiting for the correction also.

          Kari Sivonen added a comment - - edited

          In our Jenkins this problems starts in 1.536. Version used before was 1.528 or 1.526 and there was not this problem.

          EDIT: New information:
          I have this problem anymore. I don't be sure why, but no jenkins or plugins are updated. We had a problems to sending emails. Jenkins uses more than 4 minutes for each users to generate/send emails for developers. noe of plugin update help for this problem. Then I notice it takes long time only for those users who hasn't email configured to users config.xml file, but Jenkins resolve email address somehow. I add email address to each users config.xml and reload those. That helps to email problems and after couple of days I tried this view editing and it works also. For me there not seems to be any connect whit those two issue, but nothing else modifications are not done. Of cource amount of resets are done, but before that any reset not help this problem.

          Hopley this may helps to solve this issue. Or if some one have problems to email sending takes too long, this may help them also.

          Kari Sivonen added a comment - - edited In our Jenkins this problems starts in 1.536. Version used before was 1.528 or 1.526 and there was not this problem. EDIT: New information: I have this problem anymore. I don't be sure why, but no jenkins or plugins are updated. We had a problems to sending emails. Jenkins uses more than 4 minutes for each users to generate/send emails for developers. noe of plugin update help for this problem. Then I notice it takes long time only for those users who hasn't email configured to users config.xml file, but Jenkins resolve email address somehow. I add email address to each users config.xml and reload those. That helps to email problems and after couple of days I tried this view editing and it works also. For me there not seems to be any connect whit those two issue, but nothing else modifications are not done. Of cource amount of resets are done, but before that any reset not help this problem. Hopley this may helps to solve this issue. Or if some one have problems to email sending takes too long, this may help them also.

          wbauer added a comment -

          Same here, we upgraded from 1.527 to 1.538 and the problem appeared.
          Switching back is a bad thing since several critical issues for us were fixed > 1.527

          wbauer added a comment - Same here, we upgraded from 1.527 to 1.538 and the problem appeared. Switching back is a bad thing since several critical issues for us were fixed > 1.527

          Dennys Hsieh added a comment -

          I have the same issue in 1.538 and I found this document, is it help? Because I'm not sure where is the jetty.xml
          https://wiki.jenkins-ci.org/pages/viewpage.action?pageId=42469648

          Dennys Hsieh added a comment - I have the same issue in 1.538 and I found this document, is it help? Because I'm not sure where is the jetty.xml https://wiki.jenkins-ci.org/pages/viewpage.action?pageId=42469648

          Angela Bauer added a comment -

          @Dennis
          I found this: https://issues.jenkins-ci.org/browse/JENKINS-5210 ... but I did not find jetty.xml on our system ;-(

          @Kari
          could you please explain in more detail (which config.xml?) what you did to overcome the email problems? Thank you! I could not find any emails in <JENKINS_HOME>.config.xml (version 1.527).

          Angela Bauer added a comment - @Dennis I found this: https://issues.jenkins-ci.org/browse/JENKINS-5210 ... but I did not find jetty.xml on our system ;-( @Kari could you please explain in more detail (which config.xml?) what you did to overcome the email problems? Thank you! I could not find any emails in <JENKINS_HOME>.config.xml (version 1.527).

          Kari Sivonen added a comment -

          @Angela
          I mean those config.xml which are in users folder. E.g $JENKINS_HOME/users/<userid>/config.xml.
          If you go to http://yourjenkins:8080/user/<userid>/configure you can configure this xml. If E-mail address on configure page are empty, it means it is not set in config.xml. If you then set email address in config page it comes to config.xml also. In some cases there may be something like <userid>@<yourdomain>.com in config page, but still nothing in config.xml. That comes from some plugin (ldap?)/ setting. But if there are not email in config.xml, it means Jenkins try to solve it everytime it send emails.

          And one more issue here is that all users have not own config.xml in jenkins. I don't know why, but if you go to configure page and save your changes, config.xml file is generated.

          Kari Sivonen added a comment - @Angela I mean those config.xml which are in users folder. E.g $JENKINS_HOME/users/<userid>/config.xml. If you go to http://yourjenkins:8080/user/ <userid>/configure you can configure this xml. If E-mail address on configure page are empty, it means it is not set in config.xml. If you then set email address in config page it comes to config.xml also. In some cases there may be something like <userid>@<yourdomain>.com in config page, but still nothing in config.xml. That comes from some plugin (ldap?)/ setting. But if there are not email in config.xml, it means Jenkins try to solve it everytime it send emails. And one more issue here is that all users have not own config.xml in jenkins. I don't know why, but if you go to configure page and save your changes, config.xml file is generated.
          Dennys Hsieh made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]

          Kyle Kinkade added a comment -

          Submitting edit view form on a jenkins box that has 30912 jobs.

          Kyle Kinkade added a comment - Submitting edit view form on a jenkins box that has 30912 jobs.

            stephenconnolly Stephen Connolly
            baue_ang Angela Bauer
            Votes:
            11 Vote for this issue
            Watchers:
            35 Start watching this issue

              Created:
              Updated:
              Resolved: