Atlas-run-standalone fails when run for the first time

When running atlas-run-standalone for the first time (e.g., in a fresh docker container) it fails with the following error:

INFO: Created user preferences directory.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  17.291 s
[INFO] Finished at: 2025-01-28T09:24:36Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.atlassian.maven.plugins:amps-maven-plugin:9.1.11:run-standalone (default-cli) on project standalone-pom: Execution default-cli of goal com.atlassian.maven.plugins:amps-maven-plugin:9.1.11:run-standalone failed: java.io.FileNotFoundException: https://marketplace.atlassian.com/rest/1.0/plugins/atlassian-plugin-sdk-tgz -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException

We see this issue since approx. 27.01.25 10:00 CET without changing anything in our setup.

We suspect this is related to https://developer.atlassian.com/changelog/#CHANGE-2251.

When running the command for a second time it succeeds.

Do you have any idea what causes the issue and how to fix it?


Steps to reproduce the error:

create a folder with the following Dockerfile:

FROM ubuntu:latest
RUN apt-get update && apt-get install -y openjdk-8-jre
RUN echo 'JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64/' >> /home/ubuntu/.bashrc
RUN echo 'export JAVA_HOME' >> /home/ubuntu/.bashrc
RUN echo 'export PATH=$PATH:$JAVA_HOME/bin' >> /home/ubuntu/.bashrc
RUN apt update && apt install -y wget
RUN wget --no-verbose https://marketplace.atlassian.com/download/apps/1210993/version/900100100 -O atlassian-plugin-sdk-9.1.1.tar.gz
RUN tar -xzf atlassian-plugin-sdk-9.1.1.tar.gz -C /opt
RUN tar -xzf atlassian-plugin-sdk-9.1.1.tar.gz -C /opt
RUN echo 'export PATH=/opt/atlassian-plugin-sdk-9.1.1/bin:$PATH' >> /home/ubuntu/.bashrc
  1. Run
docker build -t atlas-debug-image .
docker run -it atlas-debug-image bash
  1. Then run inside the docker container
source /home/ubuntu/.bashrc
atlas-run-standalone -u 9.1.11 --product confluence -v 8.5.0

This will result in the error. If you run int again it works. If you exit/stop the docker container and run from 2 again you can reproduce it again.

4 Likes

For us it’s working if we set the following property:

<skipAllPrompts>true</skipAllPrompts>

However, it looks like a bug inside the amps-maven-plugin:

I contacted Atlassian already with a ticket.

3 Likes

Hi all,
This is indeed an issue in the current versions of AMPS as we can see below:

Please follow the ticket above for further updates on this matter.

Best regards,
Bernardo Andreeti
Atlassian Support

Thank you for the info

Nitz