Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Linux remote agent build fails with env size message?

Jeff_Schaeffer January 28, 2019

When running a build (first one triggered with merge) the build stalls and eventually fails.  Upon rerunning manually the build succeeds.  Repeatable.

In the log there is a warning message just prior the stall that says:

"The size of environment is 4862, make sure your build environment handles this correctly"

Is the build running out of java env and if so, how can I bump that up?

1 answer

0 votes
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 28, 2019

Hi @Jeff_Schaeffer,

This is a message that informs you that there are a lot of environment variables configured on the system. 

There is a kb article about the issue and the recommendation is trimming down the variables.

Build fails because the environment block used to start a process cannot be longer than X bytes

Jeff_Schaeffer January 28, 2019

Yep, saw that, the error is different but has some similarities I agree.   If I were to run out of env I'd expect and error similar.  So how do I go about bumping that env space up as there aren't an excess amount of variables (No Globals, No Plan level, only scripting)?

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events