Skip to content
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] operational issue: installService.sh fails #367

Closed
bbaassssiiee opened this issue Jan 24, 2024 · 1 comment
Closed

Comments

@bbaassssiiee
Copy link
Contributor

bbaassssiiee commented Jan 24, 2024

Is this a request for help?:


Is this a BUG REPORT or FEATURE REQUEST? (choose one):
BUG REPORT

Which installer:
Ansible

Which product and version (eg: ansible & collection version - 7.24.2):
Ansible core 2.12.10
JFrog Platform 10.17.0 release

Which operating system and version(eg: ubuntu & version - 20.4):
RHEL8

Which product license (Enterprise/Pro):
Enterprise

JFrog support reference (if already raised with support team):

What happened:

  • In the update from 7.71.11 to 7.77.3 the playbook runs a task Copy new app to artifactory app.
  • Later it tries a task Install Service which fails.
TASK [jfrog.platform.artifactory : Create artifactory service] *****************
task path: /root/.ansible/collections/ansible_collections/jfrog/platform/roles/artifactory/shared/install_service.yml:2
fatal: [artifactory]: FAILED! => {"changed": true, "cmd": ["/opt/jfrog/artifactory/app/bin/installService.sh"], "delta": "0:00:20.293135", "end": "2024-01-24 15:57:44.961119", "msg": "non-zero return code", "rc": 1, "start": "2024-01-24 15:57:24.667984", "stderr": "chown: cannot dereference '/opt/jfrog/artifactory/app/frontend/bin/server/dist/node_modules/@contrast/fn-inspect/build/node_gyp_bins/python3': No such file or directory", "stderr_lines": ["chown: cannot dereference '/opt/jfrog/artifactory/app/frontend/bin/server/dist/node_modules/@contrast/fn-inspect/build/node_gyp_bins/python3': No such file or directory"], "stdout": "\nInstalling artifactory as a Unix service that will run as user artifactory and group artifactory\nInstalling artifactory with home /opt/jfrog/artifactory/app\nCreating Group artifactory...already exists... DONE\nCreating user artifactory...already exists... DONE\nModifying environment file /opt/jfrog/artifactory/app/bin/artifactory.default... DONE\n\u001b[33m** INFO: Please create/edit system.yaml file in /opt/jfrog/artifactory/var/etc to set the correct environment\u001b[0m\n\u001b[33m         Templates with information can be found in the same directory\u001b[0m\nStopping the artifactory service...\nInitializing artifactory.service service with systemctl... DONE\nRemoving old custom drivers : /opt/jfrog/artifactory/app/artifactory/tomcat/lib/jf_README.md\nCopying /opt/jfrog/artifactory/var/bootstrap/artifactory/tomcat/lib/README.md to /opt/jfrog/artifactory/app/artifactory/tomcat/lib/jf_README.md\nResolved .mc.enabled (false) from /opt/jfrog/artifactory/var/etc/system.yaml\n\nSetting file permissions...\n\n\u001b[31m** ERROR: Could not set permissions\u001b[0m", "stdout_lines": ["", "Installing artifactory as a Unix service that will run as user artifactory and group artifactory", "Installing artifactory with home /opt/jfrog/artifactory/app", "Creating Group artifactory...already exists... DONE", "Creating user artifactory...already exists... DONE", "Modifying environment file /opt/jfrog/artifactory/app/bin/artifactory.default... DONE", "\u001b[33m** INFO: Please create/edit system.yaml file in /opt/jfrog/artifactory/var/etc to set the correct environment\u001b[0m", "\u001b[33m         Templates with information can be found in the same directory\u001b[0m", "Stopping the artifactory service...", "Initializing artifactory.service service with systemctl... DONE", "Removing old custom drivers : /opt/jfrog/artifactory/app/artifactory/tomcat/lib/jf_README.md", "Copying /opt/jfrog/artifactory/var/bootstrap/artifactory/tomcat/lib/README.md to /opt/jfrog/artifactory/app/artifactory/tomcat/lib/jf_README.md", "Resolved .mc.enabled (false) from /opt/jfrog/artifactory/var/etc/system.yaml", "", "Setting file permissions...", "", "\u001b[31m** ERROR: Could not set permissions\u001b[0m"]}

  • Artifactory is not starting

What you expected to happen:
Smooth upgrade.

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know:

Workaround

Changing line 213 of jfrog/artifactory/app/bin/installService.sh

chown -RL ${JF_ARTIFACTORY_USER}:${JF_ARTIFACTORY_GROUP} ${JF_PRODUCT_HOME}/app || /bin/true
@bbaassssiiee bbaassssiiee changed the title [ansible/artifactory] Regression: installService.sh fails [ansible/artifactory] operational issue: installService.sh fails Jan 24, 2024
@bbaassssiiee
Copy link
Contributor Author

root cause cannot dereference '/opt/jfrog/artifactory/app/frontend/bin/server/dist/node_modules/@contrast/fn-inspect/build/node_gyp_bins/python3 because /usr/bin/python3 was not present on our system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant