Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Your Product is Broken: Artifactory
#!/bin/bash
## Setup a VM
vagrant init ubuntu/xenial64
vagrant up
## Install OpenJDK 8
sudo add-apt-repository ppa:rpardini/adoptopenjdk
sudo apt-get update
sudo apt-get install adoptopenjdk-8-jdk-hotspot-set-default
## Install Artifactory
curl https://bintray.com/user/downloadSubjectPublicKey?username=jfrog | sudo apt-key add -
echo "deb https://jfrog.bintray.com/artifactory-debs xenial main" | sudo tee -a /etc/apt/sources.list
sudo apt-get update
sudo apt-get install jfrog-artifactory-oss
sudo systemctl start artifactory.service
sudo systemctl status artifactory.service
# ● artifactory.service - Setup Systemd script for Artifactory in Tomcat Servlet Engine
# Loaded: loaded (/lib/systemd/system/artifactory.service; enabled; vendor preset: enabled)
# Active: activating (auto-restart) (Result: exit-code) since Mon 2019-04-15 02:17:12 UTC; 1s ago
# Process: 3758 ExecStop=/opt/jfrog/artifactory/bin/artifactoryManage.sh stop (code=exited, status=0/SUCCESS)
# Process: 3500 ExecStart=/opt/jfrog/artifactory/bin/artifactoryManage.sh start (code=exited, status=0/SUCCESS)
# Main PID: 3551 (code=exited, status=1/FAILURE)
#
# Apr 15 02:17:12 ubuntu-xenial systemd[1]: artifactory.service: Unit entered failed state.
# Apr 15 02:17:12 ubuntu-xenial systemd[1]: artifactory.service: Failed with result 'exit-code'.
sudo journalctl -u artifactory.service
# More logs that show your scripts are broken.
# Systemd on Bionic Beaver won't even start Artifactory from the Deb package.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.