background image
Game Servers 380 7 Days to Die 4 Abiotic Factor 2 Aloft 2 alt:V 2 Americas Army Proving Grounds 2 Among Us 2 Archean 2 ARK Survival Ascended 6 ARK Survival Evolved 3 Arma 3 3 Arma Reforger 2 Aska 2 AssaultCube 2 Assetto Corsa 3 Astro Colony 2 Astroneer 2 Automobilista 2 2 Avorion 2 Banana Shooter 2 Barotrauma 3 BATTALION Legacy 2 BeamNG.drive (BeamMP) 2 Black Mesa 2 Brickadia 2 Call of Duty 2 Citadel: Forged with Fire 2 ClassiCube 2 Clone Hero 2 Colony Survival 2 Conan Exiles 4 Contagion 2 Core Keeper 2 Counter-Strike 2 3 Craftopia 2 CryoFall 2 CS2D 2 Cube 2: Sauerbraten 2 Cubic Odyssey 2 DayZ 4 DDNet 2 DDRaceNetwork 2 Dead Matter 2 Dont Starve Together 4 Eco 2 Empyrion Galactic Survival 2 Enshrouded 3 Escape from Tarkov 2 Euro Truck Simulator 2 2 Factorio 2 Farming Simulator 25 2 Fistful of Frags 2 FiveM 3 FortressCraft Evolved 2 Foundry 2 Foundry VTT 2 Frozen Flame 2 FTL Tachyon 2 Garrys Mod 3 Ground Branch 2 Half-Life 2 Deathmatch 2 Hogwarp 2 Holdfast: Nations at War 2 HumanitZ 2 Hurtworld 2 Hytale 1 Icarus 2 Insurgency Sandstorm 2 IOSoccer 2 Just Cause 3 Multiplayer 2 Kerbal Space Program 2 Killing Floor 2 3 LeagueSandbox 2 Left 4 Dead 2 Left 4 Dead 2 3 Longvinter 2 Los Angeles Crimes 2 Medal of Honor 2 Midnight Ghost Hunt 2 Mindustry 2 Minecraft 4 Minetest 2 Modiverse 2 Mordhau 3 Mount & Blade II: Bannerlord 2 Myth of Empires 2 Nazi Zombies Portable 2 Necesse 2 NeosVR 2 Neverwinter Nights EE 2 Night of the Dead 2 Nightingale 2 No Love Lost 2 No More Room in Hell 2 No One Survived 2 Nova-Life Amboise 2 Nuclear Option 2 Onset 2 Open Fortress 2 OpenArena 2 OpenRA 2 OpenRCT2 2 OpenTTD 2 Operation Harsh Doorstop 2 Palworld 3 Path of Titans 2 Pavlov VR 3 PixARK 2 Plains of Pain 2 Portal Knights 2 Post Scriptum 2 Project Zomboid 8 Puck 2 Quake Live 2 R5Reloaded 2 RedM 2 Renown 2 Resonite 2 Return to Moria 2 Rimworld Together 2 Rising World 2 Risk of Rain 2 1 Rust 4 Satisfactory 1 SCP Secret Laboratory 3 SCUM 2 Smalland 2 Solace Crafting 2 Soldat 2 Soldat 2 2 Sonic Robo Blast 2 2 Sons of the Forest 2 Soulmask 2 SourceCoop 2 Space Engineers 3 Space Station 14 2 Squad 3 Starbound 3 StarMade 2 Stationeers 2 Stormworks 2 Subnautica Nitrox 2 Sunkenland 2 SuperTuxKart 2 Sven Co-op 2 Swords 'n Magic and Stuff 2 Team Fortress 2 3 Teeworlds 2 Terraria 3 TerraTech Worlds 2 TF2 Classified 2 The Forest 3 The Front 2 The Isle 2 Tower Unite 2 Trackmania 2 Unturned 4 Urban Terror 2 V Rising 3 Valheim 3 VEIN 2 Veloren 2 Vintage Story 3 Voyagers of Nera 2 Wolfenstein: Enemy Territory 2 Wreckfest 2 Wurm Unlimited 2 Xonotic 2 Zandronum 2 Getting Started 2 Network & Connectivity 1 Server Management 2
Kateqoriyalar

RedM Troubleshooting

redm rdr2 troubleshooting errors 0 nəfər bunu faydalı hesab etdi
Mövcud dillər: ESPAÑOL

Troubleshooting guide for common RedM server issues including license key errors, server browser visibility, resource failures, client connections, database problems, and performance optimization. For initial setup instructions, see our RedM Server Setup Guide.

License Key Errors

License key issues are the most common problem when starting a new RedM server. Here are the typical errors and their solutions:

"Invalid license key" or "Could not authenticate"

Cause Solution
License key is mistyped or has extra spaces Copy the key directly from Keymaster. Remove any leading/trailing whitespace from the CFX_LICENSE startup variable in GPanel or the sv_licenseKey line in server.cfg.
IP address mismatch The key is registered to a different IP than your server's actual IP. Go to Keymaster, check the registered IP, and update it to match your server's IP shown in GPanel.
Key set in both GPanel and server.cfg with different values Ensure the key is consistent. It is best to set it in the GPanel startup variable and let the egg handle passing it to the server. Remove or comment out sv_licenseKey from server.cfg if GPanel handles it.
Cfx.re account issue or key revoked Log in to Keymaster and verify the key is still active. Generate a new key if the old one was deleted or expired.
Keymaster service is temporarily down Check Cfx.re status page for outages. Wait and try again later.
Important: If you recently received a new server or your server IP changed (e.g., after a node migration), you must update the IP in Keymaster or generate a new license key. The old key will not work on a different IP.

Server Not Appearing in Browser

If your server is running but players cannot find it in the RedM server browser:

Checklist

  1. Wait at least 5 minutes. After starting, the server needs time to register with the Cfx.re master server list. New servers may take several minutes to appear.
  2. Verify the license key is valid. The server will not be listed without a working license key. Check the server console for license-related errors.
  3. Check endpoint configuration. Ensure endpoint_add_tcp and endpoint_add_udp in server.cfg use the correct port:
    endpoint_add_tcp "0.0.0.0:30120"
    endpoint_add_udp "0.0.0.0:30120"
    The port must match the one assigned in GPanel.
  4. Check for "sv_master1" or listing settings. Ensure you have not accidentally set the server to not list itself. There should be no sv_master1 "" in your config (this disables master list registration).
  5. Verify the server is actually running. Check the GPanel console. If the server crashed or stopped, it will not appear in the browser.
  6. Try direct connect. Even if the server is not in the browser, direct connect should work. Have a player press F8 in RedM and type:
    connect YOUR_SERVER_IP:PORT
Tip: You can verify your server is reachable by using the Cfx.re server lookup. Try navigating to http://YOUR_SERVER_IP:PORT/info.json in a web browser. If the server is running and accessible, it will return a JSON response with server information.

Resource Loading Failures

Resource errors are common when adding new scripts or frameworks to your server. Here are the most frequent issues:

"Could not find resource [resource_name]"

  • The resource folder does not exist in the resources/ directory, or is in the wrong location.
  • The folder name does not match the name used in ensure. Resource names are case-sensitive.
  • Fix: Verify the resource folder exists and the name in server.cfg matches exactly. Use GPanel file manager or SFTP to check.

"Failed to load resource [resource_name]: manifest error"

  • The resource's fxmanifest.lua or __resource.lua has a syntax error.
  • The manifest references files that do not exist in the resource folder.
  • Fix: Open the manifest file and check for typos, missing commas, or references to non-existent files. Check the server console for the specific line number of the error.

"Error loading script [filename]: [error details]"

  • A Lua, C#, or JavaScript file within the resource has a syntax or runtime error.
  • Fix: Read the full error message in the console. It will include the file name and line number. Common causes include:
    • Missing dependencies (another resource that must be loaded first)
    • Outdated resource not compatible with current RedM server version
    • Incorrect configuration values in the resource's config file

Resource Load Order Issues

Resources in server.cfg are loaded in the order they appear. If a resource depends on another (e.g., vorp_inventory depends on vorp_core), the dependency must be listed first:

# Correct order - dependencies first
ensure oxmysql
ensure vorp_core
ensure vorp_inventory
ensure vorp_stores

# Wrong order - will cause errors
# ensure vorp_inventory   <-- depends on vorp_core
# ensure vorp_core        <-- loaded too late
Warning: If a resource fails to load, any resources that depend on it will also fail. Always check the console output carefully to identify the root cause, which is usually the first error that appears.

Client Connection Issues

When players cannot connect to your server:

"Connection timed out" / "Failed to connect"

Cause Solution
Server is not running Check GPanel console to confirm the server is online and not crashed.
Wrong IP or port Verify the player is using the correct IP and port from GPanel. See How to Find Your Server IP and Port.
Endpoint misconfiguration Ensure endpoint_add_tcp and endpoint_add_udp in server.cfg use port 0.0.0.0:PORT where PORT matches GPanel.
Server is full Check if sv_maxclients has been reached. Increase the value if your hosting plan allows it.

"Connection rejected by server"

  • Server password: If sv_password is set, the player must enter the correct password.
  • Whitelist/allowlist resource: If you have a whitelist resource enabled, the player must be approved before connecting.
  • Ban: The player may be banned. Check your ban list or database for their identifiers.

Client crashes on connect

  • A resource on the server is sending bad data or has a client-side script error that crashes the client.
  • Fix: Disable recently added resources one at a time to identify the problematic one. Check the server console for errors during client connection.
  • Ensure the player's RedM client is up to date.

"Could not download file" errors

  • The server is trying to send a large file (e.g., a streaming asset) that exceeds transfer limits or the connection is unstable.
  • Fix: Reduce the size of streamed assets, use a CDN/external hosting for large files if supported, or have the player retry the connection.

Database Problems (MySQL / oxmysql)

Most RedM roleplay frameworks use MySQL for persistent data storage. The most common database connector is oxmysql.

Connection Failed Errors

If oxmysql (or another MySQL connector) fails to connect, check the following:

# Typical oxmysql connection string in server.cfg
set mysql_connection_string "mysql://user:password@host:3306/database_name?charset=utf8mb4"
Error Solution
ECONNREFUSED or "Connection refused" The MySQL server is not running, the host/port is wrong, or the MySQL server is not accepting external connections. Verify the host, port, and that your database server is online.
ER_ACCESS_DENIED_ERROR Wrong username or password in the connection string. Double-check credentials in your database hosting panel.
ER_BAD_DB_ERROR The database name does not exist. Create the database first through your database management panel (phpMyAdmin, etc.).
ETIMEDOUT The database server is unreachable. Check if there are firewall rules blocking the connection, or if the database host is correct.
"Too many connections" The database has hit its maximum connection limit. This can happen if resources are not properly closing connections, or if the limit is too low. Restart the server and check your MySQL max_connections setting.
Tip: If your RedM server and MySQL database are on the same machine, use localhost or 127.0.0.1 as the host. If they are on different servers, use the database server's IP address and ensure the MySQL user has remote connection privileges.

Missing Tables or Schema Errors

Roleplay frameworks often require database tables to be set up before they can function:

  1. Check the framework's documentation or GitHub repository for SQL import files (often named database.sql, schema.sql, or similar).
  2. Import the SQL file into your database using phpMyAdmin or a MySQL client.
  3. Some frameworks auto-create tables on first start. Ensure the database user has CREATE TABLE privileges.

Performance Issues

If your RedM server is experiencing lag, low tick rate, or general poor performance:

Identifying Performance Problems

Check the server console for performance warnings. RedM servers target a tick rate of around 30-64 ticks per second. You can monitor this with:

  • txAdmin dashboard: If txAdmin is available, it shows real-time server performance metrics.
  • Server console: Watch for "slow tick" or "resource hitch" warnings.
  • resmon command: Type resmon 1 in the server console (or F8 console) to enable the resource monitor, which shows CPU time per resource.

Common Performance Solutions

Issue Solution
High CPU usage from a specific resource Use resmon 1 to identify the resource. Consider replacing it with a more optimized alternative, or contact the resource developer.
Too many resources loaded Each resource consumes server resources. Audit your resource list and remove any that are unused or redundant.
Database query bottleneck Slow or unindexed database queries can cause server hitches. Check oxmysql slow query warnings in the console. Add indexes to frequently queried columns.
High player count causing lag Reduce sv_maxclients to a level your server hardware can handle. Consider upgrading your hosting plan for more resources.
OneSync entity limits Too many spawned entities (peds, vehicles, objects) can degrade performance. Use resources that clean up unused entities.
Memory leaks Some poorly coded resources leak memory over time. Monitor server RAM usage in GPanel. Regular server restarts (every 6-12 hours) can mitigate this.

Recommended Practices

  • Schedule automatic restarts every 6-12 hours using GPanel's schedule feature or txAdmin to clear accumulated memory and entity issues.
  • Keep resources updated to benefit from performance fixes and optimizations.
  • Avoid duplicate functionality — do not run two resources that do the same thing (e.g., two weather systems).
  • Test new resources on a staging server (or with low player count) before deploying to your main server.
  • Monitor server metrics regularly through GPanel or txAdmin to catch problems early.
Note: If you are consistently experiencing performance issues despite optimization, your server may need a higher-tier hosting plan with more CPU and RAM resources. Contact our support team to discuss upgrade options.

General Troubleshooting Tips

  1. Always read the server console output. Almost every error includes a message in the console that tells you what went wrong and where.
  2. Restart the server after config changes. Most changes to server.cfg require a full server restart to take effect.
  3. Disable resources one at a time to isolate problems. Comment out ensure lines in server.cfg with #.
  4. Keep backups of working configurations before making changes. Download your server.cfg and database before major updates.
  5. Check Cfx.re forums and documentation at docs.fivem.net for official documentation that applies to both FiveM and RedM.
  6. Verify resource compatibility with your server version. Resources built for older versions may not work with current RedM builds.

Related Articles

Need Help?

Still experiencing issues with your RedM server? Open a support ticket and include any error messages from your server console. Our team will help you diagnose and resolve the problem.


Bu məqalə faydalı oldu?

Ready to Get Started?

The servers are booted, select your plan and become our latest satisfied client.