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.
Find solution.
You need to have already installed two plugins on your target Jira instance to be able to use atlas-install-plugin command.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try this:
Apache Commons FileUpload Bundle - http://central.maven.org/maven2/commons-fileupload/commons-fileupload/1.3/commons-fileupload-1.3.jar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
please follow the link https://confluence.atlassian.com/display/UPM/Installing+add-ons for add on installation steps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.