Disable Email Sending & Receiving During Upgrade

Hello,

I'm working to upgrade our Jira instance, and I am following the migration path. I have a test server that I've installed the target version (5.2) and am about to start my new instance. I'm at step 3.5 of the migration guide (https://confluence.atlassian.com/display/JIRA052/Migrating+JIRA+to+Another+Server), but want to make sure that sending emails and fetching emails are disabled.

The previous step says to follow the steps in Restoring Data (https://confluence.atlassian.com/display/JIRA052/Restoring+Data). Now unless I'm misunderstanding Step 1, it looks like those are changes when JIRA is not running as a service, however my instance is setup to run as a service. (setenv.bat specifically states the settings have no effect when JIRA runs as a service)

Should I be performing this step by starting JIRA manually by running the start-jira.bat script? Or are there different steps to follow (perhaps setting the Environment Variable at the OS level??) and I can run it as a service?

I just want to make sure I disable them correctly so as to not screw up our production environment (fetching emails) or confusing end users (sending emails).

Thanks!

Matt

2 answers

1 accepted

1 vote
Accepted answer

I finally found this article today after I had pretty much completed my migration...

https://confluence.atlassian.com/display/JIRA/Setting+Properties+and+Options+on+Startup#SettingPropertiesandOptionsonStartup-SettingPropertiesforWindowsServicesviaCommandLine

It even references the three specific flags at the bottom of the page! Why was this link not available on the Restoring Data page?!? I guess I'll go comment there.

I found that this is linked on the most up-to-date version of the article. So I guess it's my own fault for looking at the version that I was upgrading to??

https://confluence.atlassian.com/display/JIRA/Restoring+Data

0 votes

I set these three environment variables. Doesn't matter exactly how it's run (service, etc), but if these three are set in the environment, it will not send email, check for incoming mail, or follow up on "trackbacks". In older versions, I'd look at setenv.bat, but I'm not sure how the environment is handled in windows services.

-Datlassian.mail.senddisabled=true -Datlassian.mail.fetchdisabled=true -Djira.trackback.senddisabled=true

Hi, do we know if this also applies to JIRA Service Desk?

Hi @Daniel Varela Santoalla

It should be the same for JIRA Service Desk as it is basically JIRA.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,969 views 19 22
Read article

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