rippled Server Doesn't Sync (2024)

This page explains possible reasons a rippled server may start successfully, but get stuck in a "connected" state without ever fully connecting to the network. (If the server crashes during or shortly after startup, see Server Won't Start instead.)

These instructions assume you have installed rippled on a supported platform.

Normal Syncing Behavior

Syncing with the network normally takes about 5 to 15 minutes. During that time, the server does several things:

  • Loads a recommended validator list (for example, from vl.ripple.com) to determine which validators it trusts.
  • Discovers peer servers and connects to them.
  • Listens to its trusted validators to find which ledger hashes have been recently validated.
  • Downloads the full latest ledger from its peers, and uses that to build its internal database of ledger data.
  • Collects newly-broadcast transactions and attempts to apply them to its in-progress ledger.

If the server is unable to keep up with the network while doing these tasks, the server does not sync to the network.

First Step: Restart

Many syncing issues can be resolved by restarting the server. No matter why it didn't sync the first time, it may succeed on the second try.

If the server_info method shows a server_state other than proposing or full and a server_state_duration_us of more than 900000000 (15 minutes in microseconds), then you should shut down the rippled service, wait a few seconds, and start it again. Optionally, restart the entire machine.

If the problem persists, check the other possibilities listed on this page. If none of them seem to apply, open an issue in the rippled repository and add the "Syncing issue" label.

Usual Causes of Syncing Issues

The most common cause of syncing issues is not meeting the system requirements. The three most common shortfalls are:

  • Slow disks. You need a consistently fast solid state disk (SSD). Cloud providers like AWS usually don't guarantee disk performance, because it depends on hardware shared with other customers.
  • Insufficient RAM. The memory requirements vary depending on several factors including ones that are hard to predict like network load and how people use the XRP Ledger, so it's good to have more than the minimum system requirements.
  • Poor network connection. Network requirements vary the most based on how people use the XRP Ledger, but a slow or unstable connection can make it impossible to keep up with new transactions and data added to the XRP Ledger.

If you are having trouble remaining synced, double-check that your server meets the system requirements. Depending on how you use your server, you may need to meet the higher "Recommended" requirements. If you meet the "Recommended" requirements and still cannot sync, try the other possibilities on this page.

Couldn't Load Validator List

The default configuration uses a recommended list of validators retrieved from vl.ripple.com. This list is signed by Ripple's cryptographic key pair and has a built-in expiration date. If your server cannot download the list from vl.ripple.com for some reason, your server does not choose a set of trusted validators and cannot determine which possible ledgers to declare as valid. (If you are connected to the testnet or another parallel network, your server uses a list of trusted validators for that network instead.)

The validator_list block in the server_info method response shows the status of your validator list including its expiration date. If you have a list, but it's expired, it's possible that your server had connectivity to the validator list site before but hasn't been able to connect lately, so your current list expired while your server was unable to download a more updated list.

You can also use the validator_list_sites method to get more detailed information. If the last_refresh_status and last_refresh_time fields are missing from the validator site objects in the response, that probably indicates that your server is having trouble connecting to the validator list site. Check your firewall configuration to make sure you're not blocking outgoing traffic on port 80 (HTTP) or 443 (HTTPS). Also check that your DNS is able to resolve the domain of your validator list site.

Not Enough Peers

If your server does not connect to enough peer servers, it may not be able to download enough data to remain synced with the network as the network continues processing new transactions. This can happen if your network connection is unreliable, or if you configure your server as a private server without adding enough reliable fixed peers.

Use the peers method to get information about your server's current peers. If you have exactly 10 or 11 peers, that may indicate that your firewall is blocking incoming peer connections. Set up port forwarding to allow more incoming connections. If your server is configured as a private server, double-check the contents and syntax of the [ips_fixed] stanza in your config file, and add more proxies or public hubs if possible.

Corrupt Databases

In rare cases, corrupt data saved in your rippled server's internal databases could cause it to fail to sync. You can safely delete your server's databases in most circ*mstances as long as the server is not running. Corrupt data can be the result of a momentary hardware failure when copying or writing to disk, a more serious disk failure, a different process crashing and writing to the wrong part of the disk, or other issues.

As a test, you can temporarily change the paths to your server's databases as long as you have enough free space to re-download the current ledger and store other settings.

Note: When you change the database paths, the server does not load some saved settings, such as the server's current node key pair and peer reservations. If changing the database paths fixes your server' syncing problems, you may want to re-create some of these settings.

  1. Stop the rippled server if it is running.

    $ sudo systemctl stop rippled
  2. Create new empty folders to hold the fresh databases.

    $ mkdir /var/lib/rippled/db_new/$ mkdir /var/lib/rippled/db_new/nudb
  3. Edit the config file to use the new paths. Be sure to change the path field of the [node_db] stanza and the value of the [database_path] stanza.

    [node_db]type=NuDBpath=/var/lib/rippled/db_new/nudb[database_path] /var/lib/rippled/db_new

    The recommended installation uses the config file /etc/opt/ripple/rippled.cfg by default. Other places you can put a config file include $HOME/.config/ripple/rippled.cfg (where $HOME is the home directory of the user running rippled), $HOME/.local/ripple/rippled.cfg, or the current working directory from where you start rippled.

  4. Start the rippled server again.

    $ sudo systemctl start rippled

    If the server successfully syncs using the fresh databases, you can delete the folders that hold the old databases. You may also want to check for hardware failures, especially to your disk and RAM.

See Also

  • Concepts:
    • The rippled Server
    • Peer Protocol
    • Technical FAQ
  • Tutorials:
    • Understanding Log Messages
    • Capacity Planning
  • References:
    • rippled API Reference
      • peers method
      • server_info method
      • validator_list_sites method
rippled Server Doesn't Sync (2024)

FAQs

Rippled Server Doesn't Sync? ›

Corrupt Databases. In rare cases, corrupt data saved in your rippled server's internal databases could cause it to fail to sync. You can safely delete your server's databases in most circ*mstances as long as the server is not running.

Is the XRP network down? ›

According to its status page Ledger Ripple (XRP) is currently up. You can check the most recent events in the 'Recent Outages and Issues' section above. How can I get notified when Ledger Ripple (XRP) is not working or have outages?

What is the format for XRP address? ›

XRP, also known as Ripple, has one default address type. Addresses always begin with "r", are between 25 and 35 characters long, use alphanumeric characters (excluding the number "0", capital letters "O", capital letters "I", and lowercase letters "l"), and are case-sensitive.

What does an XRP address look like? ›

Accounts in the XRP Ledger are identified by an address in the XRP Ledger's base58 format. The address is derived from the account's master public key, which is in turn derived from a secret key. An address is represented as a string in JSON and has the following characteristics: Between 25 and 35 characters in length.

What is happening to XRP right now? ›

The XRP price is $0.48305412, a change of -1.46% over the past 24 hours as of 1:00 a.m. The recent price action in XRP left the Read more...

Is XRP ever going to recover? ›

However, based on historical performance and market trends, it's possible that XRP could experience growth over the next few years. Keep an eye on the news surrounding Ripple in regard to the SEC case and its ongoing developments.

Which network is the XRP Ledger? ›

The XRP Ledger is a decentralized public blockchain built for business. The peer-to-peer network that manages the ledger is open to everyone.

Why is my XRP address invalid? ›

The Address of the account in the XRP Ledger's base58 format. This is not the public key, but a hash-of-a-hash of it. It also has a checksum so a typo almost certainly results in an invalid address rather than a valid, but different address.

What is my Ripple address? ›

Each wallet has its own unique receiving address. This is a sequence of numbers and letters, and a ripple address always begins with an 'r'. A receiving address is similar to a bank account number. You can find it in your wallet under the tab or button 'Receive'.

What network is XRP on? ›

XRP operates on its decentralized, open-source blockchain, the XRP Ledger (XRPL). Unlike most cryptocurrencies, XRP is pre-mined, with a maximum token supply of 100 billion. The token's total supply was/are distributed in three ways: First, 80 billion XRP tokens were allocated to Ripple (the company).

How do I activate my XRP address? ›

You can activate your address by sending at least 10 XRP from a different source. Also, some exchanges may require your address to be converted to an x-address before you can send XRP to your Ledger wallet.

Why is XRP not showing up on my Ledger? ›

If you're having trouble with XRP funds not showing up after being transferred to an exchange, this issue could be due to the absence of a memo or destination tag in your transaction. It's important to remember that when sending XRP or XLM from your Ledger wallet to an exchange, including a memo tag is essential.

Does XRP have a future? ›

Our real-time XRP to USD price update shows the current Ripple price as $0.486184 USD. Our most recent Ripple price forecast indicates that its value will increase by 29.36% and reach $0.628937 by June 25, 2024.

Is XRP supply fixed? ›

Unlike most cryptocurrencies, XRP is pre-mined, with a maximum token supply of 100 billion. The token's total supply was/are distributed in three ways: First, 80 billion XRP tokens were allocated to Ripple (the company). To ensure a stable supply of XRP, 55 billion XRP were locked in an escrow account.

What is the deal with XRP? ›

XRP is Cryptocurrency

at the time) and decided to gift 80 billion XRP to Ripple in exchange for Ripple developing on the XRP Ledger. Since then, the company has regularly sold XRP, used it to strengthen XRP markets and improve network liquidity, and incentivized development of the greater ecosystem.

When to sell XRP? ›

Deciding when to sell Ripple depends on your individual financial goals, risk tolerance and market conditions. Consider factors like price trends, your investment timeline and potential tax implications. You may want to consult with a financial advisor and conduct thorough research before making any decisions.

References

Top Articles
Latest Posts
Article information

Author: Jamar Nader

Last Updated:

Views: 6248

Rating: 4.4 / 5 (55 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Jamar Nader

Birthday: 1995-02-28

Address: Apt. 536 6162 Reichel Greens, Port Zackaryside, CT 22682-9804

Phone: +9958384818317

Job: IT Representative

Hobby: Scrapbooking, Hiking, Hunting, Kite flying, Blacksmithing, Video gaming, Foraging

Introduction: My name is Jamar Nader, I am a fine, shiny, colorful, bright, nice, perfect, curious person who loves writing and wants to share my knowledge and understanding with you.