You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Artifactory 3.5.3-0升级至5.6 PRO失败求助:目录结构异常

Artifactory 3.5.3→5.6 PRO Upgrade Fix for Custom Apache-Tomcat Directory on Windows Server

Hi there, I’ve dealt with this exact scenario before—custom Tomcat directory names throwing off Artifactory’s upgrade logic on Windows. The core issue is that default upgrade scripts expect a tomcat folder under Artifactory_Home, but your setup uses apache-tomcat. Here’s a step-by-step fix tailored to your environment:

Prerequisites First: Backup Everything

Before touching anything, make sure you have full backups of:

  • Artifactory_Home\data (Derby database and repository content)
  • Artifactory_Home\etc (configuration files)
  • Artifactory_Home\logs (for troubleshooting if things go wrong)
  • Artifactory_Home\apache-tomcat\webapps\artifactory (the deployed web app)
  • Stop the Artifactory Windows service completely before proceeding.

Step 1: Upgrade from 3.5.3 to 3.9 PRO

  1. Download the Artifactory 3.9 PRO Windows ZIP package (avoid the installer, since it will try to create a new tomcat folder).
  2. Extract the ZIP to a temporary folder. You’ll see a default tomcat directory inside.
  3. Copy the contents of the temporary tomcat\webapps folder over your existing Artifactory_Home\apache-tomcat\webapps—this replaces the old 3.5.3 artifactory WAR with the 3.9 version.
  4. Preserve your custom Tomcat configs: Don’t overwrite apache-tomcat\conf\server.xml, apache-tomcat\conf\tomcat-users.xml, or any custom SSL/port settings you’ve configured.
  5. Update the Artifactory startup script (Artifactory_Home\bin\artifactory.bat) to explicitly point to your custom Tomcat path:
    • Open the file in a text editor, find the line where CATALINA_HOME is set, and change it to:
      set CATALINA_HOME=%ARTIFACTORY_HOME%\apache-tomcat
      
  6. Start the Artifactory service. Check Artifactory_Home\logs\artifactory.log for any errors—look for the line Artifactory successfully started to confirm the upgrade worked. Test the UI and basic repository operations before moving on.

Step 2: Upgrade from 3.9 to 4.x (Latest Stable 4.x Release)

  1. Download the latest 4.x PRO Windows ZIP (e.g., 4.17.3, the final 4.x release).
  2. Stop the Artifactory service again, and re-backup your current Artifactory_Home just in case.
  3. Extract the 4.x ZIP to a temp folder. Copy the tomcat\webapps\artifactory.war from the temp folder to your apache-tomcat\webapps directory—delete the existing artifactory folder first (Tomcat will auto-deploy the new WAR).
  4. Copy all JAR files from the temp tomcat\lib folder to your apache-tomcat\lib folder (overwrite duplicates—4.x updates Tomcat dependencies).
  5. Check your Artifactory_Home\etc\artifactory.system.properties file: Ensure the artifactory.data.dir points to your existing data folder (it should by default, but double-check).
  6. Start the service, monitor the log closely. 4.x will run database migration scripts for Derby—wait until you see the startup success message. Verify all repositories and configurations are intact.

Step 3: Upgrade from 4.x to 5.6 PRO

  1. Download the Artifactory 5.6 PRO Windows ZIP.
  2. Stop the service and backup once more (this is the final jump, so extra caution helps).
  3. First, confirm your apache-tomcat version: 5.6 requires Tomcat 8.0.x. If your current apache-tomcat is 7.x, you’ll need to upgrade Tomcat:
    • Download Tomcat 8.0.x for Windows, extract it to a temp folder.
    • Copy your custom conf files (server.xml, tomcat-users.xml, etc.) from the old apache-tomcat to the new Tomcat 8 folder.
    • Rename the new Tomcat folder to apache-tomcat and replace your old one in Artifactory_Home.
  4. Extract the 5.6 ZIP to a temp folder. Copy the tomcat\webapps\artifactory.war to your apache-tomcat\webapps (delete the existing artifactory folder first).
  5. Copy the tomcat\conf\context.xml from the temp 5.6 folder to your apache-tomcat\conf, but merge your existing Derby database configuration into it (don’t overwrite entirely—keep your custom data source settings).
  6. Update the artifactory.bat script again if needed to ensure CATALINA_HOME points to your apache-tomcat folder.
  7. Start the service. 5.6 will run additional migration steps for the Derby database. Monitor the log until startup completes, then test all functionality (UI, repository uploads/downloads, user permissions).

Critical Troubleshooting Tips

  • If the service fails to start, check the apache-tomcat\logs\localhost.log for Tomcat-specific errors (e.g., missing JARs, port conflicts).
  • If Artifactory complains about missing Tomcat paths, double-check the CATALINA_HOME variable in artifactory.bat—this is the most common fix for custom directory names.
  • Never skip version jumps: Stick strictly to 3.5.3 → 3.9 → 4.x → 5.6, as each version handles incremental database and configuration migrations.

内容的提问来源于stack exchange,提问作者Frogger

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.21 07:07:21