atlas-install-plugin on remote server, getting 404 error

Hello everyone, I have a problem with atlas-install-plugin.
Getting "Install Plugin: Upload failed[404]: Not Found" error.

On locall host everything works fine, but on remote server I get this problem again and again.
The only difference between this two Jira instance is in context path and port - on locall it's "... :2990/jira" but on remote it's "... :8080/".

My command :

atlas-install-plugin --username 'someuser' --password 'somePassword' --plugin-key 'superPluginKey' -p 8080 --server 'remoteIP' --context-path /

and get this:

------------------------------------------------------------------------

[INFO] Install Plugin: Couldn't get the token from upm. Headers. Falling back to
legacy upload.

....

[INFO] Unable to execute mojo

Install Plugin: Upload failed[404]: Not Found

------------------------------------------------------------------------

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to execute mojo
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:703)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
Goal(DefaultLifecycleExecutor.java:553)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:523)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:371)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:332)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:181)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to execute moj
o
at org.twdata.maven.mojoexecutor.MojoExecutor.executeMojoImpl(MojoExecut
or.java:128)
at org.twdata.maven.mojoexecutor.MojoExecutor$ExecutionEnvironmentM2.exe
cuteMojo(MojoExecutor.java:466)
at org.twdata.maven.mojoexecutor.MojoExecutor.executeMojo(MojoExecutor.j
ava:80)
at com.atlassian.maven.plugins.ampsdispatcher.AbstractAmpsDispatcherMojo
.execute(AbstractAmpsDispatcherMojo.java:64)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:483)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:678)
... 16 more
Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to execute moj
o
at org.twdata.maven.mojoexecutor.MojoExecutor.executeMojoImpl(MojoExecut
or.java:128)
at org.twdata.maven.mojoexecutor.MojoExecutor$ExecutionEnvironmentM2.exe
cuteMojo(MojoExecutor.java:466)
at org.twdata.maven.mojoexecutor.MojoExecutor.executeMojo(MojoExecutor.j
ava:80)
at com.atlassian.maven.plugins.amps.MavenGoals.installPlugin(MavenGoals.
java:1197)
at com.atlassian.maven.plugins.amps.pdk.InstallMojo.execute(InstallMojo.
java:17)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:483)
at org.twdata.maven.mojoexecutor.MojoExecutor.executeMojoImpl(MojoExecut
or.java:126)
... 21 more
Caused by: org.apache.maven.plugin.MojoExecutionException: Install Plugin: Uploa
d failed[404]: Not Found
at com.atlassian.maven.plugins.pdk.InstallPluginMojo.legacyUploadFile(In
stallPluginMojo.java:220)
at com.atlassian.maven.plugins.pdk.InstallPluginMojo.uploadFile(InstallP
luginMojo.java:162)
at com.atlassian.maven.plugins.pdk.InstallPluginMojo.execute(InstallPlug
inMojo.java:134)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:483)
at org.twdata.maven.mojoexecutor.MojoExecutor.executeMojoImpl(MojoExecut
or.java:126)
... 27 more

Thanks for help.

1 answer

1 accepted

This widget could not be displayed.

Find solution.
You need to have already installed two plugins on your target Jira instance to be able to use atlas-install-plugin command.

  1. Apache Commons FileUpload Bundle
  2. Atlassian PDK Install Plugin

Now it works fine! Hope someone find this helpful for him.

Hi,

I am facing the same issue but with confluence. How do I get these plugins? I was unable to find them on the marketplace. Are these system plugins? Thanks.

Thanks! I installed the pdk plugin and got it woking.

please follow the link https://confluence.atlassian.com/display/UPM/Installing+add-ons for add on installation steps.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

83 views 0 1
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you