Vaadin 10 Production Mode hangs on Bamboo server

Hello everybody,

We are trying to take our existing Vaadin 10 app into Production Mode for a new release, but since beginning of September it always hangs installing Yarn. Sometimes - extremely rare - it’s working.

There is no explicit error message, it just stops proceeding…

01-Oct-2019 15:02:54 	[INFO]
 Installing required frontend tools to '/usr/local/bamboo/bamboo-home/xml-data/build-dir/27328513/HECA-MPP-JOB1/target'
01-Oct-2019 15:02:54 	[INFO]
 Installing node version v8.11.1
01-Oct-2019 15:02:54 	[INFO]
 Downloading https://nodejs.org/dist/v8.11.1/node-v8.11.1-linux-x64.tar.gz to /usr/local/bamboo/bamboo-home/xml-data/build-dir/27328513/HECA-MPP-JOB1/target/cache/node-v8.11.1-linux-x64.tar.gz
01-Oct-2019 15:02:54 	[INFO]
 No proxies configured
01-Oct-2019 15:02:54 	[INFO]
 No proxy was configured, downloading directly
01-Oct-2019 15:02:55 	[INFO]
 Unpacking /usr/local/bamboo/bamboo-home/xml-data/build-dir/27328513/HECA-MPP-JOB1/target/cache/node-v8.11.1-linux-x64.tar.gz into /usr/local/bamboo/bamboo-home/xml-data/build-dir/27328513/HECA-MPP-JOB1/target/node/tmp
01-Oct-2019 15:02:57 	[INFO]
 Copying node binary from /usr/local/bamboo/bamboo-home/xml-data/build-dir/27328513/HECA-MPP-JOB1/target/node/tmp/node-v8.11.1-linux-x64/bin/node to /usr/local/bamboo/bamboo-home/xml-data/build-dir/27328513/HECA-MPP-JOB1/target/node/node
01-Oct-2019 15:02:57 	[INFO]
 Installed node locally.
01-Oct-2019 15:02:57 	[INFO]
 Installing Yarn version v1.6.0
01-Oct-2019 15:02:57 	[INFO]
 Downloading https://github.com/yarnpkg/yarn/releases/download/v1.6.0/yarn-v1.6.0.tar.gz to /usr/local/bamboo/bamboo-home/xml-data/build-dir/27328513/HECA-MPP-JOB1/target/cache/yarn-v1.6.0.tar.gz
01-Oct-2019 15:02:57 	[INFO]
 No proxies configured
01-Oct-2019 15:02:57 	[INFO]
 No proxy was configured, downloading directly
01-Oct-2019 15:02:58 	Oct 01, 2019 3:02:58 PM org.apache.http.client.protocol.ResponseProcessCookies processCookies
01-Oct-2019 15:02:58 	WARNING: Invalid cookie header: "Set-Cookie: has_recent_activity=1; path=/; expires=Tue, 01 Oct 2019 14:02:57 -0000". Invalid 'expires' attribute: Tue, 01 Oct 2019 14:02:57 -0000
01-Oct-2019 15:02:58 	Oct 01, 2019 3:02:58 PM org.apache.http.client.protocol.ResponseProcessCookies processCookies
01-Oct-2019 15:02:58 	WARNING: Invalid cookie header: "Set-Cookie: logged_in=no; domain=.github.com; path=/; expires=Sat, 01 Oct 2039 13:02:58 -0000; secure; HttpOnly". Invalid 'expires' attribute: Sat, 01 Oct 2039 13:02:58 -0000

This is our Maven profile for Production Mode:

<profile>
            <id>production-mode</id>
            <dependencies>
                <dependency>
                    <groupId>com.vaadin</groupId>
                    <artifactId>flow-server-production-mode</artifactId>
                </dependency>
            </dependencies>    
            <build>
                <plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-checkstyle-plugin</artifactId>
						<version>3.1.0</version>
						<configuration>
							<encoding>UTF-8</encoding>
							<consoleOutput>false</consoleOutput>
							<logViolationsToConsole>false</logViolationsToConsole>
							<failsOnError>false</failsOnError>
							<failOnViolation>false</failOnViolation>
							<linkXRef>false</linkXRef>
						</configuration>
						<executions>
							<execution>
								<id>checkstyle</id>
								<phase>validate</phase>
								<goals>
									<goal>check</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<groupId>org.owasp</groupId>
						<artifactId>dependency-check-maven</artifactId>
						<version>5.2.0</version>
						<configuration>
							<versionCheckEnabled>true</versionCheckEnabled>
							<suppressionFile>suppressions.xml</suppressionFile>
						</configuration>
						<executions>
							<execution>
								<phase>compile</phase>
								<goals>
									<goal>check</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
                    <plugin>
                        <groupId>com.vaadin</groupId>
                        <artifactId>vaadin-maven-plugin</artifactId>
                        <version>${vaadin.version}</version>
                        <executions>
                            <execution>
                                <goals>
                                    <goal>copy-production-files</goal>
                                    <goal>package-for-production</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>

Manually downloading Yarn from CLI on the same machine works as well:

wget https://github.com/yarnpkg/yarn/releases/download/v1.6.0/yarn-v1.6.0.tar.gz
--2019-10-01 18:00:00--  https://github.com/yarnpkg/yarn/releases/download/v1.6.0/yarn-v1.6.0.tar.gz
Resolving github.com (github.com)... 140.82.118.3
Connecting to github.com (github.com)|140.82.118.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/49970642/579f55b4-3d73-11e8-8b3a-7472f42f8ed9?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20191001%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20191001T160000Z&X-Amz-Expires=300&X-Amz-Signature=03642734efa686404d9db931bf6ecef7503fbef544b184a4961b9d9dc00a7b35&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dyarn-v1.6.0.tar.gz&response-content-type=application%2Foctet-stream [following]

--2019-10-01 18:00:00--  https://github-production-release-asset-2e65be.s3.amazonaws.com/49970642/579f55b4-3d73-11e8-8b3a-7472f42f8ed9?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20191001%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20191001T160000Z&X-Amz-Expires=300&X-Amz-Signature=03642734efa686404d9db931bf6ecef7503fbef544b184a4961b9d9dc00a7b35&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dyarn-v1.6.0.tar.gz&response-content-type=application%2Foctet-stream
Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)... 52.217.36.52
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.217.36.52|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 941806 (920K) [application/octet-stream]

Saving to: ‘yarn-v1.6.0.tar.gz’

yarn-v1.6.0.tar.gz                             100%[=================================================================================================>]
 919.73K  2.00MB/s    in 0.4s

2019-10-01 18:00:01 (2.00 MB/s) - ‘yarn-v1.6.0.tar.gz’ saved [941806/941806]



Do you have any clues?

Kind regards
Philipp