Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours scrolling social media and waste money on things we forget, but won’t spend 30 minutes a day earning certifications that can change our lives.
Master in DevOps, SRE, DevSecOps & MLOps by DevOpsSchool!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

Artifactory: Comprehensive Troubleshooting Guide for JFrog Artifactory

Here’s a very comprehensive, up-to-date troubleshooting guide for JFrog Artifactory 7.x, covering the application, database, core components, all services, log files, and all the key troubleshooting commands.
This guide is tailored for self-hosted, Linux-based deployments but can be adapted for containers or Kubernetes as well.



1️⃣ Artifactory Application Troubleshooting Steps

A. Check if Artifactory is Running

sudo systemctl status artifactory
sudo systemctl status artifactory-router
sudo systemctl status artifactory-access
  • For containerized installs: docker ps or kubectl get pods -n <namespace>

Common problems: Service not started, Java crash, port not listening, out-of-memory.


B. Application Log Files & What to Look For

Log Directory:
/opt/artifactory-pro-7.23.3/var/log/

  • console.log: JVM and startup errors, fatal exceptions, low memory.
  • artifactory-service.log: Main service lifecycle, stacktraces, upgrades.
  • artifactory-request.log: HTTP requests to Artifactory REST API.
  • artifactory-request-trace.log: Trace of REST requests with debug detail.
  • artifactory-binarystore.log: Filestore and storage backend issues.
  • artifactory-metrics.log: Metrics, monitoring, custom endpoint hits.
  • archived/: Older rotated logs.
  • tomcat/: Tomcat-specific logs if needed.

Quick check for startup issues:

tail -100f /opt/artifactory-pro-7.23.3/var/log/console.log
Code language: JavaScript (javascript)

C. Useful App Diagnostic Commands

ps -ef | grep artifactory
lsof -i :8082           # Is Artifactory listening?
df -h /mnt/efs          # Storage mount status (EFS/NFS)
free -m                 # Memory available
top                     # JVM process CPU/ram usage
Code language: PHP (php)

Restart service:

sudo systemctl restart artifactory

Check service logs quickly:

sudo journalctl -u artifactory --since "2 hours ago"
Code language: JavaScript (javascript)

2️⃣ Artifactory Database Troubleshooting Steps

A. Basic Connectivity

  • Test DB connection from host:psql -U artifactory -h <db-host> -d artifactory
    • Look for authentication errors, permission issues, or connection refused.

B. Common DB Problems

  • Connection refused: DB not running, firewall, wrong system.yaml/JDBC URL.
  • Authentication failed: DB user/password mismatch.
  • Permission denied for schema public: User lacks schema/table create rights.

C. Log Files for DB Errors

  • console.log: Usually shows DB connection errors and stacktraces.
  • artifactory-service.log: Migration and DB schema update failures.

D. DB Permissions Fix Commands (Postgres Example)

GRANT ALL ON SCHEMA public TO artifactory;
ALTER SCHEMA public OWNER TO artifactory;
Code language: PHP (php)

To see DB connections (Postgres):

sudo -u postgres psql -c "SELECT * FROM pg_stat_activity WHERE datname='artifactory';"
Code language: JavaScript (javascript)

3️⃣ Artifactory Components Troubleshooting Steps

A. Filestore (NFS/EFS)

  • Check mount: df -h /mnt/efs mount | grep /mnt/efs ls -l /mnt/efs
  • Permission issues: Files must be owned by artifactory:artifactory.
  • Log files:
    • artifactory-binarystore.log
    • artifactory-service.log

Common issues:
“Permission denied”, “cannot write to storage”, “No space left on device”.

B. Router Service

  • Service status: sudo systemctl status artifactory-router
  • Logs:
    • router-service.log
    • router-request.log
    • router-traefik.log

C. Access Service

  • Service status: sudo systemctl status artifactory-access
  • Logs:
    • access-service.log
    • access-request.log
    • access-audit.log
    • access-security-audit.log

D. Frontend Service

  • Logs:
    • frontend-service.log
    • frontend-request.log

E. Metadata Service

  • Logs:
    • metadata-service.log
    • metadata-request.log
    • metadata-metrics.log

F. Event Service

  • Logs:
    • event-service.log
    • event-request.log

4️⃣ Each Artifactory Service Troubleshooting Steps

Key Artifactory services in systemd (native install):

  • artifactory (main node)
  • artifactory-access (access control)
  • artifactory-router (reverse proxy/router)
  • (plus optional xray, metadata, event, frontend if separate)

Restart or check each individually:

sudo systemctl restart artifactory-router
sudo systemctl status artifactory-router

sudo systemctl restart artifactory-access
sudo systemctl status artifactory-access

Check if ports are listening:

sudo ss -ltnp | grep 8082   # Artifactory main
sudo ss -ltnp | grep 8046   # Router
sudo ss -ltnp | grep 8040   # Access
Code language: PHP (php)

5️⃣ Log Files Reference Table

Log FileDescription
console.logJVM, core, and startup issues
artifactory-service.logMain app events, errors
artifactory-request.logIncoming HTTP/REST API calls
artifactory-request-trace.logDebug request tracing
artifactory-binarystore.logStorage/filestore operations
access-service.logIdentity/SSO/auth events
router-service.logRouter internal events
router-traefik.logTraefik (router/proxy) details
frontend-service.logWeb UI service
metadata-service.logMetadata service
event-service.logEvents and notifications
tomcat/*Embedded Tomcat (legacy)
archived/Rotated older logs

6️⃣ Essential Troubleshooting Commands

CommandWhat It Does
systemctl status <svc>See service status
journalctl -u <svc> --since "1 hour ago"Recent service logs
tail -f <logfile>Live log tail
df -h /mnt/efsFilestore disk status
`ps -efgrep artifactory`
`ss -ltnpgrep `
curl http://localhost:8082/artifactory/api/system/pingHealth ping
curl http://localhost:8046/router/api/v1/system/healthRouter health
psql -U artifactory -h <db-host> -d artifactoryTest DB connectivity

7️⃣ Web/API Health Checks

  • Artifactory Ping:
    http://localhost:8082/artifactory/api/system/ping
    (returns OK when running)
  • HA Node Status:
    http://localhost:8082/artifactory/api/system/ha/nodes
  • Router Health:
    http://localhost:8046/router/api/v1/system/health

8️⃣ Common Problems & Fixes Table

Problem/SymptomLogs to CheckCommon Causes / Fixes
Service won’t startconsole.log, systemctlJava heap, permission, config, storage
DB connection failsconsole.log, artifactory-service.logWrong URL/creds, DB down, pg_hba.conf, privileges
Filestore errorsartifactory-binarystore.logNFS/EFS mount, permissions, quota
Router 502/503router-service.log, router-traefik.logPort conflict, network, wrong service startup order
UI login failsaccess-service.log, artifactory-request.logAccess service down, DB error, clock skew
401/403 from APIaccess-service.log, artifactory-request.logToken/SSO issue, missing permission
Out-of-memoryconsole.log, systemctlJVM heap size, large requests, memory leak
Disk fullconsole.log, df -h, binarystoreToo many artifacts, logs, backups; clear space or expand volume
HA node not visibleartifactory-service.log, UIWrong node.id, clock skew, network, missing joinKey

9️⃣ When All Else Fails:

  • Increase log level:
    Edit logback.xml to set DEBUG or TRACE for modules.
  • Reboot host/server (if Java process hung).
  • Clear browser cache (if UI rendering breaks).
  • Check NTP/time sync on all nodes (important for HA).
  • Restore from backup if data loss/corruption.

🔟 Support Tools


Proactive Monitoring

  • Enable Metrics:
    Use Prometheus endpoint /artifactory/api/v1/metrics for integration.
  • External monitoring:
    Set up monitoring/alerts for memory, disk, process, ping.

🟢 Summary Table: Core Troubleshooting Steps

AreaKey Files/CommandsWhat to Check
Applicationconsole.log, artifactory-service.log, systemctl statusJVM, startup, ports
Databaseconsole.log, psql, DB logsConnectivity, privileges
Filestorebinarystore.log, df -h, mount, chownStorage, mount, perms
Access/Routeraccess-service.log, router-service.log, status, health APIInter-service comms
HAUI (nodes), logs, joinKey, clock syncAll nodes visible

Older Guide

Below is a comprehensive, practical troubleshooting guide for JFrog Artifactory 7.x, designed for sysadmins and SREs handling production systems. It covers core areas: application, database, components, individual services, log file references, common commands, and hands-on debugging actions.

1. Artifactory Application Troubleshooting Steps

A. General Application Health

  • Check Service Status: text# Systemd-based sudo systemctl status artifactory # Init script $JFROG_HOME/artifactory/app/bin/artifactory.sh status
  • Web UI/REST API Reachability:
    • Access http://<host>:8082/artifactory/
    • Test API: textcurl -u admin:<password> http://<host>:8082/artifactory/api/system/ping
  • Check for Maintenance Mode or Lock Files:
    • Look for .lock, .maintenance, or upgrade flags in $JFROG_HOME/artifactory/var/etc.

B. Configuration Issues

  • Validate system.yaml: text$JFROG_HOME/artifactory/app/bin/diagnostics/diagnosticsUtil validate yaml \ $JFROG_HOME/artifactory/var/etc/system.yaml \ $JFROG_HOME/artifactory/var/etc/system.full-template.yaml --uncomment-before-parse
  • Check for Tabs/Bad Indentation (YAML is space-sensitive).
  • Restart Artifactory after config changes.

2. Artifactory Database Troubleshooting Steps

A. Connectivity

  • Test Database Connection as Artifactory User: text# PostgreSQL Example psql -h <db-host> -U artifactory -d artifactory
  • Validate JDBC Configuration:
    Confirm in system.yaml (shared: database:) and that the JDBC driver .jar is placed in $JFROG_HOME/artifactory/var/bootstrap/artifactory/tomcat/lib.

B. Permissions

  • Check Schema Privileges: sql-- In psql: \c artifactory GRANT ALL ON SCHEMA public TO artifactory; ALTER SCHEMA public OWNER TO artifactory; GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO artifactory; GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO artifactory; GRANT ALL PRIVILEGES ON ALL FUNCTIONS IN SCHEMA public TO artifactory;
  • For Startup/Migration Failures:
    Look for permission denied for schema public or no pg_hba.conf entry—fix DB configuration as above.

C. Availability & Performance

  • Is the DB process running? textsudo systemctl status postgresql # Or for MySQL/MariaDB sudo systemctl status mysql
  • Network Check: texttelnet <db-host> 5432 # or nc -zv <db-host> 5432

3. Artifactory Components Troubleshooting Steps

Typical Components:

  • Artifactory Core
  • Access Service (auth, tokens)
  • Router
  • Metadata
  • Frontend
  • Event

A. How to Check Component Health

  • Service Logs: Review logs per component (see Log List below).
  • Service Ports: ComponentDefault PortRouter8082Artifactory Core8081Access8040Metadata8086Event8061Frontend8070 Verify with netstat -ltnp or ss -tuln.
  • Process Status and Errors: textps aux | grep java systemctl status artifactory

B. Troubleshoot Inter-component Issues

  • If Router is down: UI/API not available.
  • If Access Service is down: Authentication, permissions fail.
  • If Metadata/Event: Metadata sync, repo events, webhooks may fail.

4. Artifactory Services Troubleshooting Steps

A. Service-Specific Health Checks

ServiceKey FunctionMain Log FileCommon Checks
Artifactory (Core)Repositories, REST/APIartifactory-service.log8081 active, log errors
AccessTokens, Auth, RBACaccess-service.log8040 active, token/auth tests
RouterAPI Gateway/Reverse Proxyrouter-service.log, router-traefik.log8082 active, 502/404s
MetadataPackage metadata servicemetadata-service.log8086 active, catalog queries
EventEvent handlingevent-service.log8061 active, event failures
FrontendUI layerfrontend-service.log8070 active, UI up

B. Restart & Status Commands

text# To restart all manually via scripts
$JFROG_HOME/artifactory/app/bin/artifactory.sh restart

# Or check per systemd service (custom setups may have separate units)
sudo systemctl status artifactory
sudo systemctl restart artifactory

C. Advanced: Debug Mode

  • Increase log verbosity (in logback.xml or via UI/REST).
  • Monitor logs real-time: texttail -f /opt/artifactory-pro-7.23.3/var/log/artifactory-service.log

5. Artifactory Log Files: What They Are For

Located in: /opt/artifactory-pro-7.23.3/var/log/

Log FilePurpose
artifactory-service.logCore server start/stop, errors, core ops
artifactory-request.logAll incoming REST/API/UI requests
artifactory-request-out.logOutbound requests from Artifactory
artifactory-access.logRecords logins and permission checks
access-service.logAuth/token system main log
access-audit.logAccess/repo security audit trail
access-request.logAll token/authz requests
access-security-audit.logSecurity-specific audit logs
router-service.logAPI Gateway/router-level events
router-traefik.logReverse-proxy and routing errors
frontend-service.logUI layer startup/errors
event-service.logEvent publication and failures
metadata-service.logMetadata service ops/errors
artifactory-binarystore.logBinary store actions/issues
artifactory-import-export.logImport/export progress and errors
console.logSystem stdout/stderr, JVM exceptions
archived/Older rotated logs
Additional logs as features/plugins warrant

6. Essential Troubleshooting Commands

text# List running Java processes (inspect PIDs)
ps aux | grep java

# List open/listening ports (find which service is listening)
netstat -plnt
ss -tulnp

# Check disk space (low space can break Artifactory)
df -h
du -sh $JFROG_HOME/artifactory/var

# Monitor system resources
top
htop

# Search for errors in logs
grep -i error /opt/artifactory-pro-7.23.3/var/log/artifactory-service.log
grep 'Caused by:' /opt/artifactory-pro-7.23.3/var/log/*

# Validate YAML configurations
python3 -c 'import yaml,sys; yaml.safe_load(open(sys.argv[1]))' system.yaml

# Test DB access (PostgreSQL example)
psql -h <dbhost> -U artifactory -d artifactory

7. Common Problems & Fast Solutions

SymptomCheck/Remedy
Cannot start ArtifactoryCheck main logs (service.log, router-service.log), disk
Web UI/API unavailableRouter down? Port open? LB misrouting?
“permission denied for schema public” on PostgresGrant permissions to artifactory user (see above)
Connection refused to DBDB process/host/port, firewall, pg_hba.conf
Frequent 503/502, node not joining clusterLicenses, join key, file store mount, node id unique, logs
“YAML validation failed”Tabs, structure, check with template/validator
Plugins/Integrations don’t loadPlugin logs, config in etc/plugins, service logs
Slow response, GC pausesJVM heap, DB/query latency, disk IO

8. Advanced: Network & HA Debugging

  • Cluster Node Status:
    • Check UI → Admin → Cluster → Node status
    • Review router-service.log for join/ping errors
  • Storage/NFS Status for Filestore: textdf -h /mnt/nfs-volume/filestore # Check mount status and permissions
  • Database Failover/Replication Logs:
    • For DB clusters: check replication, failover logs on DB host(s)

9. Proactive Monitoring & Best Practices

  • Enable system monitoring (CPU, mem, disk, DB connections)
  • Configure log rotation and retention (archived logs)
  • Periodic backup and test restores of configuration and filestore
  • Restarts after configuration changes or upgrades
  • Regularly review logs for new/unexpected patterns after upgrade/plugins

Summary Table – Artifactory Logs and Services Quick Reference

ComponentMain Log FileService PortCommand Example
Artifactoryartifactory-service.log8081tail -f artifactory-service.log
Accessaccess-service.log8040tail -f access-service.log
Routerrouter-service.log, router-traefik.log8082tail -f router-service.log
Eventevent-service.log8061tail -f event-service.log
Metadatametadata-service.log8086tail -f metadata-service.log
Frontendfrontend-service.log8070tail -f frontend-service.log

This guide can serve as your operational reference for rapidly diagnosing and resolving issues with JFrog Artifactory 7 in any enterprise environment. Adjust specific paths, ports, and credentials as per your deployment. For detailed root cause analysis, escalate persistent issues with logs and config files to JFrog Support.

Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.

0
Would love your thoughts, please comment.x
()
x