---
updatedAt: 2026-05-21T09:14:56.000Z
agentTools:
  siteIndex: https://docs.jfrog.com/llms.txt
  projectIndex: https://docs.jfrog.com/installation/llms.txt
---

# Xray Upgrade with FIPS

Upgrade Xray in FIPS-compliant environments by stopping the service, applying the package, and restarting with FIPS mode enabled.

Follow these steps to upgrade Xray with FIPS:

1. Stop the running service:

   ```bash
   cd $JFROG_HOME/xray/app/bin
   ./xray.sh stop ## as xray user

   or via service 
   systemctl stop xray.service
   ```

   Wait for the services started by the Xray user to stop
2. Extract the new version:

   ```bash
   mv jfrog-xray-<version>-linux.tar.gz /opt/jfrog/
   cd /opt/jfrog
   tar -xf jfrog-xray-<version>-linux.tar.gz
   ```
3. Replace the `$JFROG_HOME/xray/app` with the new `app` folder:

   ```bash
   # Export variables to simplify commands
   export JFROG_HOME=/opt/jfrog   ## this is your old xray dir
   export JF_NEW_VERSION=/opt/jfrog/jfrog-xray-<version>-linux

   # Remove app
   rm -rf $JFROG_HOME/xray/app

   # Copy new app
   cp -fr $JF_NEW_VERSION/app $JFROG_HOME/xray/

   # Make sure to chown again to set the right permissions for xray user
   eg: chown -R xray:xray /opt/jfrog/xray

   # Remove extracted new version
   rm -rf $JF_NEW_VERSION
   ```
4. Before starting the Xray service, set the following env variable in the file `/opt/jfrog/xray/app/bin/xray.default`

   ```bash
   export RABBITMQ_ADVANCED_CONFIG_FILE="${JF_PRODUCT_HOME}/var/etc/advanced.conf"
   ```
5. Set permissions:

   ```bash
   chown -R xray:xray /opt/jfrog/xray
   ```
6. Start the service:

   ```bash
   xray/app/bin/xray.sh start|stop  ## As xray user

   or via service 

   systemctl <start|stop|status> xray.service
   ```

## Related Topics

* [Xray Upgrade](upgrading-xray)
* [Xray Upgrade from Version 3.x to 3.x](upgrading-from-xray-version-3-x-to-3-x)
* [Install Xray with FIPS](install-xray-with-fips)
* [Xray System Requirements](xray-system-requirements-and-platform-support)
* [Installing Xray](installing-xray)