When attempting to migrate from an On-Premise instance to a SaaS instance using JFrog CLI, you may encounter the following error:
panic: unaligned 64-bit atomic operation
This article outlines the root cause and provides steps to resolve the issue.
Root Cause:
1. Architecture Mismatch
The installed JFrog CLI version may not match the operating system's architecture. For example, installing a 64-bit JFrog CLI package on a 32-bit operating system can cause functionality issues.
2. Installation Method Discrepancy (OS layer compatibility)
The method used to install JFrog CLI may not align with the system's package management process.
For example: Installing the binary manually vs. using a package manager (yum for RPM-based systems or apt for Debian/Ubuntu) can create conflicts.
Resolution:
Step 1: Check System Architecture
Run the following command to verify whether your OS is 64-bit or 32-bit:
uname -a
If the output contains x86_64, the system is 64-bit.
If it includes i686 or i386, the system is 32-bit.
If the system is 32-bit, then please ensure that the CLI downloaded also complies with the 32-bit architecture.
Step 2: Uninstall Existing JFrog CLI
If there is an architecture mismatch or an installation method discrepancy, uninstall the current JFrog CLI version:
If installed manually, remove it from /usr/local/bin or the path where it was installed.
If installed using a package manager, remove it with:
yum remove jfrog-cli # For RPM-based systems
apt remove jfrog-cli # For Debian/Ubuntu systems
Step 3: Install the Correct JFrog CLI Version
Before reinstalling, ensure that you are using the correct CLI version that matches your system’s architecture and installation method.
Refer to the official JFrog CLI installation guide and CLI download repository (contains architecture-specific binaries)
Step 4: Contact JFrog Support
If the issue persists after following these steps, reach out to JFrog Support for further assistance.