UPM is encountering a 404 error when installing plugin

Hi, I hope someone can assist me!

I'm in the process of writing an Atlassian Connect based plugin and while it works via the local install, and registers in the Market Place it will not install in our Cloud instance as it receives a 404 error at about the 60% mark of the install when uploading it via the UPM.

The add-on host returned HTTP response code 404 when we tried to contact it during installation. Please try again later or contact the add-on vendor.

N.B. I have configured the baseUrl to point to my Cloud9 https based workspace and the files are accessible anonymously.

I'm struggling to find any related doco or examples on how to re-configure the various files for the Market Place, everything so far is for local dev - which is much easier.  If anyone has some further advanced example projects / code or walk-throughs I'd greatly appreciate them!

My process is currently failing at during Step 2 of "Applying a token from the administration console" on the Cloud Installation page.  It should be this painful so I know I'm missing something simple - but what?

ps. how do I get the server logs from our cloud instance of JIRA to check for the real error details?

Thanks in advance

Garry

5 answers

Do you have domain and SSL for your baseUrl? I remember struggling with self signed SSL.

I'm still testing the plugin so I've simply uploaded the code into my Cloud9 workspace and am using the example website/server to host the files. I've did verify that there is SSL based access to these files from various browsers and PC's. I just checked again and the c9 site uses a certificate issued by COMODO RSA Domain Validation Secure Server CA via sha256RSA (2048) algo. Could it be a configuration issue? I have modified two files as follows - are these correct? atlassian-connect.json "baseUrl": "https://<c9 website demo project>/html/plugin", "links": { "self": "https://<c9 website demo project>/html/plugin/atlassian-connect.json" }, and, config.json "localBaseUrl": "https://<c9 website demo project>/html/plugin", It's just a plugin - it should be this painful... Thanks

Can you look to logs of your play server? The content of mine atlassian-connect.json: { "key": "${addonKey}", "name": "My Work", "description": "Work Calendar plugin", "baseUrl": "${localBaseUrl}", "version": "1.2.22", "vendor": { "name": "Volodymyr Krupach", "url": "${localBaseUrl}" }, "authentication": { "type": "jwt" }, "lifecycle": { "installed": "/installed" }, "modules": { "generalPages": [ { "url": "/calendar", "key": "calendar-page", "name": { "value": "My Work" }, "conditions": [ { "condition": "user_is_logged_in" } ] } ] }, "scopes": [ "read", "write", "delete" ] } I do not have config.json probably because I am on old version of the atlassian-connect-play-java

Hi Volodymyr, I found the issue! It was to do with the install of npm on the host...what can I say I buggered it up. Thanks for your assistance.

Hey im having the same issue with you. Do you still have some solution steps as to how you resolved it? Thanks

Glad that you made it!

Suggest an answer

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

Looking for anyone who made the switch to Data Center

The Jira Marketing team is putting together an ebook on migrating to Data Center. We're looking for pro tips on how you staffed your project team and organized your Proof of Concept. Share yo...

41 views 0 2
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