-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ansible/artifactory] Upgrade fails on Ubuntu 22.04 during the Check artifactory version task #365
Comments
@dlundgren Thanks for reporting this issue. We have created a ticket internally to track this issue. We will update you once we fix this issue . Thanks !! |
Debian default shell doesn't support the pipefail option, which is mandatory according to To resolve add this to your [defaults]
executable = /bin/bash |
Believe I am having the same / similar issue:
|
That the above file isn't in But in ; However artifactory home is set to : jfrog_home_directory: /opt/jfrog not : artifactory_home: "{{ jfrog_home_directory }}/artifactory-{{ artifactory_flavour }}-{{ artifactory_version }}" So not sure how this task is supposed to work?
|
Is there a workaround? |
There is this file that ansible did create on install with version info; [root@server info]# cat installer-info.json Ansible managed{ |
There is this file that annsible did create on install with version info;
|
Above was from this task ; ./roles/artifactory/tasks/main.yml: line 144 - 150
|
Can this file be used instead and updated with the installer-info.json.j2 or a template to keep it up to date when you upgrade? Would you know ; @dlundgren ? |
Your issue is different as it's trying to locate a file that is in a different place from the default. In your case, by setting I would delete |
No, I am not setting it to : artifactory_home: "{{ jfrog_home_directory }}/artifactory-{{ artifactory_flavour }}-{{ artifactory_version }}" I have it set to the default: aka : artifactory_home: "{{ jfrog_home_directory }}/artifactory" However, that's where I found that specific file name. |
I mean why isn't it looking for : name: Configure installer info vs what it is looking at? name: Check artifactory version |
I can't answer why the role doesn't look at I can say that the This leads me to believe that your installation failed, or this collection/role wasn't used to install Artifactory, and it's installed manually in another folder. At which point the upgrade tasks probably won't work properly, as |
True, I guess that is the answer, it makes more sense to look at the actual app properties. Right ok, so it copies the extract into ./artifactory [root@server jfrog]# pwd I see that now with this task.
and there are folders/files in there: cd /opt/jfrog/artifactory/app but not this file which is strange; artifactory.product.version.properties /opt/jfrog/artifactory-pro-7.77.3/app OOOOH. well, this may answer the above question; I installed 7.19.4 as that was the current version that we are running on another host. I'm taking the MySQL db and exporting it, importing it into this new server, and doing a rsync of the filestore over to the new box also. I was thinking it would be better to do the same version for that first migration, then I would upgrade the version which is why you see the 2 versions above. However, the first version which is what I used for the initial install does not have the artifactory.product.version.properties as part of the *.tar extract. So I wonder when that got added. And If I could copy just that file in then? Or should I just install the latest version instead of trying to install the old version first and then upgrading? [root@server app]# pwd |
Seems like a lot of work to go back to every previous release to make sure that file is there. A quicker option is if that file is not there perhaps look for the installer-info.json file that was created with older versions. I was able to work around the issue by copying the artifactory.product.version.properties file from the newer build and then editing it to contain the older version information. |
Moving what I found to a new issue. |
* #365 Use `fetch` and `lookup('ini')` to get the version (#369) * [ansible] JFrog Platform 10.17.1 release --------- Co-authored-by: David Lundgren <[email protected]>
Fixed via #375 |
Is this a request for help?:
No, I solved it locally by removing
set -o pipefail;
and running the role again.Is this a BUG REPORT or FEATURE REQUEST? (choose one):
BUG REPORT
Which installer:
Ansible role/artifactory
Which product and version (eg: ansible & collection version - 7.24.2):
Collection version 10.16.4
Which operating system and version(eg: ubuntu & version - 20.4):
Ubuntu 22.04
Which product license (Enterprise/Pro):
Pro
JFrog support reference (if already raised with support team):
N/A
What happened:
What you expected to happen:
That the role upgraded Artifactory.
How to reproduce it (as minimally and precisely as possible):
Run the role against Ubuntu 22.04 (after having Artifactory already installed) and use the following variables
The text was updated successfully, but these errors were encountered: