Hello Team,
I have started writing ansible script for JIRA upgradation on localhost and getting the below error,
- name: Create response.varfile
file:
path: "{{ jira_download_dir }}/response.varfile"
state: touch
mode: 0755
- name: Fill response.varfile
lineinfile:
path: "{{ jira_download_dir }}/response.varfile"
line: "{{ item.line }}"
state: present
create: yes
with_items:
- { line: 'backupJira$Boolean=true' }
- { line: 'app.install.service$Boolean=false' }
- { line: 'existingInstallationDir=/usr/local/JIRA Software' }
- { line: 'app.jiraHome=/var/atlassian/application-data/jira' }
- { line: 'sys.confirmedUpdateInstallationString=true' }
- { line: 'sys.languageId=en' }
- { line: 'sys.installationDir=/opt/atlassian/jira' }
- { line: 'executeLauncherAction$Boolean=true' }
- { line: 'httpPort$Long=8080' }
- { line: 'portChoice=default' }
- name: Executing jira upgradation
command: "{{ jira_download['dest'] }} -q -varfile /tmp/response.varfile"
Below Issue I am facing in the step "Executing jira upgradation",
fatal: [localhost]: FAILED! => {
"changed": true,
"cmd": [
"/tmp/atlassian-jira-software-8.1.0-x64.bin",
"-q",
"-varfile",
"/tmp/response.varfile"
],
"delta": "0:00:03.502487",
"end": "2020-12-08 12:02:18.707628",
"invocation": {
"module_args": {
"_raw_params": "/tmp/atlassian-jira-software-8.1.0-x64.bin -q -varfile /tmp/response.varfile",
"_uses_shell": false,
"argv": null,
"chdir": null,
"creates": null,
"executable": null,
"removes": null,
"stdin": null,
"stdin_add_newline": true,
"strip_empty_ends": true,
"warn": true
}
},
"msg": "non-zero return code",
"rc": 1,
"start": "2020-12-08 12:02:15.205141",
"stderr": "No directory found in specified location",
"stderr_lines": [
"No directory found in specified location"
],
"stdout": "Unpacking JRE ...\nStarting Installer ...",
"stdout_lines": [
"Unpacking JRE ...",
"Starting Installer ..."
]
}
Note:
It is probably what it says it is - the directory you have told it to use is not there, or the process owner does not have write and execute permissions on it.
Hello @Nic Brough -Adaptavist- ,
After changing the owner and group of the files, still facing the same issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Then your code is looking for the wrong directory, or it's not creating the directory it needs to.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.