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

java.io.IOException: error=7, Argument list too long

XMLWordPrintable

      When

       Set jenkins user build variables

      is selected in job configuration, user ldap groups are captured in environment variable BUILD_USER_GROUPS.
      This gets passed to execute shell as a parameter.
      If a user is part of a large number of LDAP groups, the value of BUILD_USER_GROUPS will be a large value this is resulting on following error
      18:43:47 FATAL: command execution failed*18:43:47* java.io.IOException: error=7, Argument list too long*18:43:47* at java.lang.UNIXProcess.forkAndExec(Native Method)18:43:47 at java.lang.UNIXProcess.<init>(UNIXProcess.java:247)18:43:47 at java.lang.ProcessImpl.start(ProcessImpl.java:134)18:43:47 at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)18:43:47 Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to HapticsBuilder1*18:43:47* at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1784)18:43:47 at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)18:43:47 at hudson.remoting.Channel.call(Channel.java:1000)18:43:47 at hudson.Launcher$RemoteLauncher.launch(Launcher.java:1124)18:43:47 at hudson.Launcher$ProcStarter.start(Launcher.java:509)18:43:47 at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:144)18:43:47 at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:92)18:43:47 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)18:43:47 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:814)18:43:47 at hudson.model.Build$BuildExecution.build(Build.java:199)18:43:47 at hudson.model.Build$BuildExecution.doRun(Build.java:164)18:43:47 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:522)18:43:47 at hudson.model.Run.execute(Run.java:1896)18:43:47 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)18:43:47 at hudson.model.ResourceController.execute(ResourceController.java:101)18:43:47 at hudson.model.Executor.run(Executor.java:442)18:43:47 Caused: java.io.IOException: Cannot run program "/bin/bash" (in directory "<WORKSPACE_PATH>"): error=7, Argument list too long*18:43:47* at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)18:43:47 at hudson.Proc$LocalProc.<init>(Proc.java:254)18:43:47 at hudson.Proc$LocalProc.<init>(Proc.java:223)18:43:47 at hudson.Launcher$LocalLauncher.launch(Launcher.java:997)18:43:47 at hudson.Launcher$ProcStarter.start(Launcher.java:509)18:43:47 at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1398)18:43:47 at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1340)18:43:47 at hudson.remoting.UserRequest.perform(UserRequest.java:211)18:43:47 at hudson.remoting.UserRequest.perform(UserRequest.java:54)18:43:47 at hudson.remoting.Request$2.run(Request.java:376)18:43:47 at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:78)18:43:47 at java.util.concurrent.FutureTask.run(FutureTask.java:266)18:43:47 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)18:43:47 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)18:43:47 at java.lang.Thread.run(Thread.java:745)18:43:47 Build step 'Execute shell' marked build as failure

            zedasvacas Fábio Silva
            pallela raja pallela
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: