/media/atlassian-data filesystem is 100% full - bamboo

When I try to run a build with bamboo I get the following error:
error 03-Nov-2021 01:54:20 write .docker_temp_258181997: no space left on device
simple 03-Nov-2021 01:54:20 Failing task since return code of [/usr/bin/docker save --output=app.tar pl-app-prod:latest] was 1 while expected 0
error 03-Nov-2021 01:54:20 Error occurred while running Task 'Build Container(6)' of type com.atlassian.bamboo.plugins.bamboo-docker-plugin:task.docker.cli.
error 03-Nov-2021 01:54:20 com.atlassian.bamboo.task.TaskException: Failed to execute task
error 03-Nov-2021 01:54:20 at com.atlassian.bamboo.plugins.docker.service.BuildService.execute(BuildService.java:57)
error 03-Nov-2021 01:54:20 at com.atlassian.bamboo.plugins.docker.tasks.cli.DockerCliTask.execute(DockerCliTask.java:70)
error 03-Nov-2021 01:54:20 at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$3(TaskExecutorImpl.java:319)
error 03-Nov-2021 01:54:20 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:252)
error 03-Nov-2021 01:54:20 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:319)
error 03-Nov-2021 01:54:20 at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:112)
error 03-Nov-2021 01:54:20 at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:73)
error 03-Nov-2021 01:54:20 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.executeBuildPhase(DefaultBuildAgent.java:204)
error 03-Nov-2021 01:54:20 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:176)
error 03-Nov-2021 01:54:20 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.lambda$waitAndPerformBuild$0(BuildAgentControllerImpl.java:131)
error 03-Nov-2021 01:54:20 at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:185)
error 03-Nov-2021 01:54:20 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:125)
error 03-Nov-2021 01:54:20 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:127)
error 03-Nov-2021 01:54:20 at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:48)
error 03-Nov-2021 01:54:20 at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:26)
error 03-Nov-2021 01:54:20 at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:17)
error 03-Nov-2021 01:54:20 at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:41)
error 03-Nov-2021 01:54:20 at java.lang.Thread.run(Thread.java:748)
error 03-Nov-2021 01:54:20 Caused by: com.atlassian.bamboo.docker.DockerException: Error running Docker save command
error 03-Nov-2021 01:54:20 at com.atlassian.bamboo.plugins.docker.client.DockerCmd.save(DockerCmd.java:126)
error 03-Nov-2021 01:54:20 at com.atlassian.bamboo.plugins.docker.service.BuildService.execute(BuildService.java:50)
error 03-Nov-2021 01:54:20 ... 17 more
error 03-Nov-2021 01:54:20 Caused by: com.atlassian.utils.process.ProcessException: Error executing /usr/bin/docker save --output=app.tar pl-app-prod:latest
error 03-Nov-2021 01:54:20 at com.atlassian.bamboo.plugins.docker.process.DockerTaskProcessService.execute(DockerTaskProcessService.java:64)
error 03-Nov-2021 01:54:20 at com.atlassian.bamboo.plugins.docker.client.DockerCmd.save(DockerCmd.java:124)
error 03-Nov-2021 01:54:20 ... 18 more
When I run df here's what I see:
Filesystem 1K-blocks Used Available Use% Mounted on
udev 4079032 0 4079032 0% /dev
tmpfs 817384 8940 808444 2% /run
/dev/xvda1 8065444 5112196 2936864 64% /
tmpfs 4086920 4 4086916 1% /dev/shm
tmpfs 5120 0 5120 0% /run/lock
tmpfs 4086920 0 4086920 0% /sys/fs/cgroup
/dev/xvdf 2096128000 2094223308 1904692 100% /media/atlassian-data
tmpfs 817384 0 817384 0% /run/user/15000
tmpfs 817384 0 817384 0% /run/user/1000
So /media/atlassian-data is 100% full. Cool. What files can I delete to clear up space?
I don't want to go deleting stuff at random because I don't want to break Bamboo. Like I'm cool deleting all but the most recent release for each project but idk where on the file system the releases are. I mean, if I have to delete all the releases, that's cool, too, but again, idk where I'd go to do that and I don't want to just go deleting stuff at random because I really don't want to have to rebuild Bamboo and all the build plans and what not from scratch.

I was able to configure the Global Expiry to delete builds older than 90 days using the instructions at https://confluence.atlassian.com/bamboo/configuring-global-expiry-289277253.html :
Click the icon in the Bamboo header and choose Overview.
Click Expiry (under 'Plans') in the left-hand navigation panel.
From there the rest was pretty intuitive.

Related

How to resolve "cannot pipe" issue with testcafe-hammerhead

When running tests, I'm getting the following error:
1 Unhandled promise rejection:
Error: Cannot pipe, not readable
at new NodeError (node:internal/errors:387:5)
at ServerResponse.pipe (node:_http_outgoing:1070:22)
at respondOnWebSocket (D:\e2e\0.0.157\node_modules\testcafe\node_modules\testcafe-hammerhead\lib\request-pipeline\websocket.js:56:9)
at Array.decideOnProcessingStrategy (D:\e2e\0.0.157\node_modules\testcafe\node_modules\testcafe-hammerhead\lib\request-pipeline\stages.js:77:48)
at run (D:\e2e\0.0.157\node_modules\testcafe\node_modules\testcafe-hammerhead\lib\request-pipeline\index.js:20:34)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
Does anyone have a suggestion on how to resolve this?
See future updates related to this issue in this GitHub thread.

An error occurred while analyzing 'package-lock.json' (Node Audit Analyzer)

I try to use dependency-check-maven in every test build job in Jenkins:
mvn org.owasp:dependency-check-maven:6.2.2:aggregate -DskipSystemScope=true -Dformat=ALL -DprettyPrint=true -DcentralAnalyzerEnabled=false -DassemblyAnalyzerEnabled=false -DyarnAuditAnalyzerEnabled=false -DbundleAuditAnalyzerEnabled=false -DversionCheckEnabled=true
Unfortunately I have a problem with few projects and Node Audit Analyzer, which checks package-lock.json files.
During running Maven's plugin there's a warning in log:
[WARNING] An error occurred while analyzing '/var/lib/jenkins/workspace/testbuild/project/module-web/src/main/resources/dev/package-lock.json' (Node Audit Analyzer).
which cause final error:
[ERROR] Failed to execute goal org.owasp:dependency-check-maven:6.2.2:aggregate (default-cli) on project project: One or more exceptions occurred during dependency-check analysis: One or more exceptions occurred during analysis:
[ERROR] AnalysisException: Failed to read results from the NPM Audit API (NodeAuditAnalyzer); the analyzer is being disabled and may result in false negatives.
[ERROR] caused by SocketException: Connection reset
[ERROR] AnalysisException: Failed to read results from the NPM Audit API (NodeAuditAnalyzer); the analyzer is being disabled and may result in false negatives.
[ERROR] caused by IOException: Error writing to server
In most problematic projects there's only one error: SocketException: Connection reset OR IOException: Error writing to server, but sometimes there are both of them in the same build log.
To use this plugin I added parameter -DnodeAuditAnalyzerEnabled=false but it's not a solution I want to accept.
I tried to execute Maven in debug mode. Here's a stacktrace with mentioned error:
[DEBUG] Error reading dependency or connecting to NPM Audit API
java.io.IOException: Error writing to server
at sun.net.www.protocol.http.HttpURLConnection.writeRequests (HttpURLConnection.java:699)
at sun.net.www.protocol.http.HttpURLConnection.writeRequests (HttpURLConnection.java:711)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0 (HttpURLConnection.java:1585)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream (HttpURLConnection.java:1492)
at java.net.HttpURLConnection.getResponseCode (HttpURLConnection.java:480)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode (HttpsURLConnectionImpl.java:347)
at org.owasp.dependencycheck.data.nodeaudit.NodeAuditSearch.submitPackage (NodeAuditSearch.java:176)
at org.owasp.dependencycheck.data.nodeaudit.NodeAuditSearch.submitPackage (NodeAuditSearch.java:133)
at org.owasp.dependencycheck.analyzer.NodeAuditAnalyzer.analyzePackage (NodeAuditAnalyzer.java:188)
at org.owasp.dependencycheck.analyzer.NodeAuditAnalyzer.analyzeDependency (NodeAuditAnalyzer.java:145)
at org.owasp.dependencycheck.analyzer.AbstractAnalyzer.analyze (AbstractAnalyzer.java:131)
at org.owasp.dependencycheck.AnalysisTask.call (AnalysisTask.java:88)
at org.owasp.dependencycheck.AnalysisTask.call (AnalysisTask.java:37)
at java.util.concurrent.FutureTask.run (FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:624)
at java.lang.Thread.run (Thread.java:748)
[WARNING] An error occurred while analyzing '/var/lib/jenkins/workspace/testbuild/project/module-web/src/main/resources/dev/package-lock.json' (Node Audit Analyzer).
[DEBUG]
org.owasp.dependencycheck.analyzer.exception.AnalysisException: Failed to read results from the NPM Audit API (NodeAuditAnalyzer); the analyzer is being disabled and may result in false negatives.
at org.owasp.dependencycheck.analyzer.NodeAuditAnalyzer.analyzePackage (NodeAuditAnalyzer.java:197)
at org.owasp.dependencycheck.analyzer.NodeAuditAnalyzer.analyzeDependency (NodeAuditAnalyzer.java:145)
at org.owasp.dependencycheck.analyzer.AbstractAnalyzer.analyze (AbstractAnalyzer.java:131)
at org.owasp.dependencycheck.AnalysisTask.call (AnalysisTask.java:88)
at org.owasp.dependencycheck.AnalysisTask.call (AnalysisTask.java:37)
at java.util.concurrent.FutureTask.run (FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:624)
at java.lang.Thread.run (Thread.java:748)
Caused by: java.io.IOException: Error writing to server
at sun.net.www.protocol.http.HttpURLConnection.writeRequests (HttpURLConnection.java:699)
at sun.net.www.protocol.http.HttpURLConnection.writeRequests (HttpURLConnection.java:711)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0 (HttpURLConnection.java:1585)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream (HttpURLConnection.java:1492)
at java.net.HttpURLConnection.getResponseCode (HttpURLConnection.java:480)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode (HttpsURLConnectionImpl.java:347)
at org.owasp.dependencycheck.data.nodeaudit.NodeAuditSearch.submitPackage (NodeAuditSearch.java:176)
at org.owasp.dependencycheck.data.nodeaudit.NodeAuditSearch.submitPackage (NodeAuditSearch.java:133)
at org.owasp.dependencycheck.analyzer.NodeAuditAnalyzer.analyzePackage (NodeAuditAnalyzer.java:188)
at org.owasp.dependencycheck.analyzer.NodeAuditAnalyzer.analyzeDependency (NodeAuditAnalyzer.java:145)
at org.owasp.dependencycheck.analyzer.AbstractAnalyzer.analyze (AbstractAnalyzer.java:131)
at org.owasp.dependencycheck.AnalysisTask.call (AnalysisTask.java:88)
at org.owasp.dependencycheck.AnalysisTask.call (AnalysisTask.java:37)
at java.util.concurrent.FutureTask.run (FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:624)
at java.lang.Thread.run (Thread.java:748)
[INFO] Finished Node Audit Analyzer (31 seconds)
In the same log in debug mode I found URL used by the anylyzer - https://registry.npmjs.org/-/npm/v1/security/audits Maybe this service has some limits?
I would be grateful for any help.
I was getting a similar error:
NodeAuditAnalyzer failed on ...\package-lock.json
An error occurred while analyzing '...\package-lock.json' (Node Audit Analyzer).
Deleting package-lock.json and the node_modules directory then running npm install to recreate fixed the issue.

`react-native run-android` fails when I pass `--deviceId`

I have a react-native project that builds fine with react-native run-android. But if I run it as react-native run-android --deviceId xxxx, I get the following error:
> Task :#remobile_react-native-qrcode-local-image:verifyReleaseResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':#remobile_react-native-qrcode-local-image:verifyReleaseResources'.
> 1 exception was raised by workers:
com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
error: resource android:style/TextAppearance.Material.Widget.Button.Borderless.Colored not found.
error: resource android:style/TextAppearance.Material.Widget.Button.Colored not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values-v26/values-v26.xml:7: error: resource android:attr/colorError not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values-v26/values-v26.xml:11: error: resource android:attr/colorError not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values-v26/values-v26.xml:15: error: style attribute 'android:attr/keyboardNavigationCluster' not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values/values.xml:2734: error: resource android:attr/fontStyle not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values/values.xml:2735: error: resource android:attr/font not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values/values.xml:2736: error: resource android:attr/fontWeight not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values/values.xml:2737: error: resource android:attr/fontVariationSettings not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values/values.xml:2738: error: resource android:attr/ttcIndex not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values/values.xml:2902: error: resource android:attr/startX not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values/values.xml:2905: error: resource android:attr/startY not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values/values.xml:2908: error: resource android:attr/endX not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values/values.xml:2911: error: resource android:attr/endY not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values/values.xml:2919: error: resource android:attr/offset not found.
error: failed linking references.
It's quite strange. It's as if react-native can't interpret static files in a QR-code library when passing a --deviceId. Any ideas why this might be?
Here's the repo if anyone is interested.

java.net.UnknownHostException: redisson-netty-2-6 ERROR DNSMonitor

redissonClient.getNodesGroup().pingAll()
Returning true but still getting the exception ->
[10-09-2018 21:00:05.337] [redisson-netty-2-6]
[ERROR]
DNSMonitor$1$1:98 cr_id= parent_reqid= reqid=
Unable to resolve
xxxx.redis.cache.windows.net java.net.UnknownHostException: failed to
resolve 'xxxx.redis.cache.windows.net' after 4 queries
Fixed in 2.15.1 / 3.10.1 versions

Setting up ruby-rvm (1.6.9-0ubuntu2) ... error

Setting up ruby-rvm (1.6.9-0ubuntu2) ...
dpkg-statoverride: error: syntax error: unknown group 'admin' in statoverride file
dpkg: error processing ruby-rvm (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
ruby-rvm
E: Sub-process /usr/bin/dpkg returned an error code (1)
This error is drivin me crazy. can anyone help me.. m fed offfffff
https://bugs.launchpad.net/ubuntu/+source/ruby-rvm/+bug/963662
Locate /var/lib/dpkg/info/ruby-rvm.postinst
Opened it and replaced the admin group requirement to sudo. Save the file and try again.