Skip to content

Troubleshooting

This page covers the most common problems encountered during migration, their causes, and how to fix them.


Authentication and Permission Errors

401 Unauthorized

Symptom Ferry stops immediately with 401 Unauthorized
Cause The token you provided is wrong, expired, or was copied incorrectly
Solution Get a fresh token. Open Stoat in your browser, make sure you are logged in, then follow the step-by-step token guide to copy a new one. Tokens expire when you log out or change your password, so you may need to do this again if it has been a while.

400 Bad Request on server create

Symptom Ferry reports 400 Bad Request when attempting to create the server
Cause You may be using a bot token instead of a regular user token. Bot accounts cannot create servers on Stoat.
Solution Make sure you are using the token from a regular Stoat account, the same account you log in to when you chat. Ferry does not use bots. See the token guide for how to find the right token.

Stoat v0.15.7 maps ErrorType::IsBot to Status::BadRequest.


Rate Limit Errors

429 Too Many Requests (slow down)

Symptom Ferry slows significantly or logs frequent 429 Too Many Requests errors (this code means "slow down")
Cause Messages are being sent faster than the Stoat server allows
Solution Increase the rate limit delay. In the GUI, go back to the Setup screen and drag the rate limit slider to 2.0 or 3.0 seconds. On the CLI, add --rate-limit 2.0. If you are on a self-hosted instance, you can also relax the server-side rate limit settings.

Export and File Problems

Content missing from a migration you already ran?

If the migration finished cleanly and content is missing anyway, the cause may be a Ferry bug rather than anything in this page. Five bugs that lost content without a warning were fixed between v2.8.2 and v2.10.0. See Was my earlier migration affected?.

Attachment file missing

Symptom Ferry logs warnings about missing attachment files; some messages arrive without their attached images or files
Cause DiscordChatExporter did not download the media files. This happens when the export was created without the --media flag.
Solution Re-export from DiscordChatExporter with the --media flag. This downloads the files locally for Ferry to migrate.

No valid DiscordChatExporter (DCE) JSON files found

Symptom Ferry reports "No valid DCE JSON files found" and cannot start
Cause The export folder path is wrong, or the files are in the wrong format
Solution Confirm you are pointing Ferry at the folder that contains the .json files, not a parent folder. Also confirm you exported from DiscordChatExporter using --format Json (not HTML or CSV).

Mentions written as plain text

Symptom Ferry warns, with a count, that some messages "have mentions written as plain text instead of raw IDs". The validate screen sums the count across all export files. In Stoat those mentions arrive as @Username text
Cause Usually the export was created without --markdown false, so DiscordChatExporter rendered <@123456789> into @Username and the ID needed to rebuild the mention is gone. A message is also flagged when somebody typed a display name after an at-sign by hand, which is what the text looked like in Discord too.
Solution Check how the export was made before re-exporting. If --markdown false was missing, re-export with it and the mentions come back as IDs. If the export already used --markdown false, a re-export changes nothing, because the flagged text was typed that way in Discord. Either way, you can migrate the export as it stands: tick I understand, migrate anyway on the validate screen. What you give up is the link, since those mentions arrive as text with no link back to the user.

ferry validate exits 1 while this warning is present, so a script that gates on its exit status stops here. ferry migrate is not affected by the warning and never asks about it.


Content Appearance

Messages showing as [empty message]

Symptom Some messages in Stoat appear with the placeholder [empty message]
Cause The original Discord message had no text content, for example, a message that was only a sticker, a forwarded message, or a system event with no body. This is normal behavior.
Solution No action needed. These are faithfully representing messages that had no text in Discord. Forwarded messages are no longer among them, their content is migrated and marked [forwarded]. If your export was made with DiscordChatExporter older than 2.47 the forwarded content is not in the export at all; those are skipped with a warning in the migration report, and re-exporting recovers them.

Messages show [continued 1/3] markers

Symptom Some messages in Stoat are split across multiple sequential messages with [continued 1/3], [continued 2/3], [continued 3/3] markers
Cause The original Discord message exceeded Stoat's 2000-character message limit. Ferry automatically splits long messages into sequential parts. This is normal behavior. No content is lost.
Solution No action needed. The full original message content is preserved across all parts. If this affects readability, self-hosted admins can raise the message_length limit in Revolt.overrides.toml, see Self-Hosted Stoat Tips.

Channel and Emoji Limits

Channel limit exceeded

Symptom Ferry stops or warns that the server has reached its channel limit
Cause The combined count of channels and flattened threads exceeds the Stoat server's per-server channel limit (200 by default)
Solution Choose one of these options: (1) Use --skip-threads (CLI) or the Skip threads checkbox (GUI) to omit thread content; (2) If you run a self-hosted instance, raise the server_channels limit in Revolt.overrides.toml, see Self-Hosted Stoat Tips.

Application Won't Launch

Ferry.exe blocked by antivirus (Windows)

Symptom Windows Defender or another antivirus quarantines or blocks ferry.exe
Cause Ferry is packaged as a single-file app using PyInstaller (a Python packaging tool). These self-extracting apps are frequently flagged as false positives by antivirus software because the extraction technique resembles some malware behavior.
Solution Add ferry.exe to your antivirus exclusion list. If your organization's policy prevents this, use the Python source distribution instead: clone the GitHub repository and install with uv pip install ., then run with ferry directly. The source distribution is not affected by this issue.

macOS "Apple could not verify Ferry is free of malware"

Symptom Double-clicking Ferry.app shows a dialog reading "Apple could not verify 'Ferry' is free of malware that may harm your Mac or compromise your privacy." The only buttons are Done and Move to Bin.
Cause Ferry is not notarized through Apple's paid developer program, so Gatekeeper blocks the first launch. It is not a fault in the app.
Solution Click Done, never Move to Bin, which deletes Ferry. Then open System Settings → Privacy & Security, scroll to the Security section, and click Open Anyway next to "Ferry" was blocked to protect your Mac. Confirm with Open Anyway again and enter your password. See Installation for the illustrated walkthrough.

The Open Anyway button is time-limited

It appears only after macOS has blocked Ferry, and it disappears again after about an hour. If it is not there, double-click Ferry.app again and return to Privacy & Security.

Right-clicking no longer works

Older guides tell you to right-click (or Control-click) the app and choose Open. Apple removed that shortcut in macOS 15 Sequoia. On macOS 15 and later, the System Settings route above is the only way through the dialog.

macOS "app is damaged and can't be opened"

Symptom macOS refuses to open Ferry.app with a message that the app is damaged or cannot be opened
Cause macOS automatically marks files downloaded from the internet as untrusted. This is a built-in security check called Gatekeeper. It is not an actual problem with Ferry.
Solution Run the following command in Terminal, then try opening Ferry again:
xattr -dr com.apple.quarantine /Applications/Ferry.app

The -r flag matters. Without it the quarantine flag is cleared only from the bundle folder, while the executable inside it stays blocked and the app still refuses to open. If you kept Ferry somewhere other than /Applications, substitute that path.

Ferry's window says it could not be drawn, and your browser opens

Symptom The Ferry window says "Ferry could not draw its window", and Ferry opens in your browser instead. On versions before 2.19.0 the same situation gave a blank window, or the message "Your browser does not support ES modules."
Cause Ferry draws its window using a renderer supplied by the operating system. On Windows that is the Microsoft Edge WebView2 Runtime, which is present on Windows 11 but not guaranteed on Windows 10. When it is missing or broken, the window cannot run Ferry's interface.
Solution Nothing is required: the migration works the same in the browser. To get the window back, install or repair the Evergreen WebView2 Runtime. If it is already installed, run the installer again; it repairs a broken install.

If the browser does not open by itself

Ferry serves its interface at http://localhost:8765 whether or not the window draws. Open that address in any browser and carry on.

Skipping the window entirely

Set the environment variable FERRY_NO_NATIVE=1 before starting Ferry and it will use your browser from the outset, without trying to draw its own window. This is the reliable option on a machine where the window never works.

# Windows PowerShell
$env:FERRY_NO_NATIVE = "1"; .\Ferry-windows-x86_64.exe
# macOS and Linux
FERRY_NO_NATIVE=1 ferry-gui

Ferry.exe ignores --help and every other command

Symptom Running Ferry-windows-x86_64.exe --help from PowerShell prints nothing and opens the GUI.
Cause Versions before 2.12.0 ignored command-line arguments entirely.
Solution Upgrade to 2.12.0 or later from the releases page.

One case still opens the GUI by design

The app opens the GUI instead of running the command when there is nowhere to write output. That happens when it is launched from a Windows service, a scheduled task, or by dropping a file onto the icon. Run it from a terminal, or redirect its output to a file, and the command runs normally.

Because the app is windowed, your shell prints its next prompt before Ferry's output arrives. The output prints underneath that new prompt.


The Window Stops Responding

"Connection lost. Trying to reconnect..."

Symptom A grey box appears over the Ferry window reading "Connection lost. Trying to reconnect...", and it never goes away
Cause Ferry's window is a viewer for a small server that runs inside the app. This message means that server stopped, so the window has nothing left to talk to and will keep retrying forever. On versions before 2.8.4 this happened after force-quitting Ferry: the window survived the quit.
Solution Close the Ferry window, then reopen Ferry.

If the window will not close, or Ferry does not start again, quit the leftovers by hand:

  1. Open Activity Monitor (press ⌘ Space, type "Activity Monitor", press Return).
  2. Type Ferry in the search box.
  3. Select each result and click the ⊗ button in the toolbar, then Force Quit.
  4. Open Ferry again.

You will not lose a migration in progress

Ferry saves a checkpoint as it works. Start it again and choose Resume, it picks up from the last completed step rather than starting over. Messages already copied are not copied twice.


Migration Locks

Another migration is in progress

Symptom Ferry reports "Another migration is in progress" and refuses to start
Cause A prior Ferry run set an advisory lock marker in the Stoat server description. This prevents two Ferry instances from running against the same server simultaneously. The lock expires after 24 hours, but may persist if the prior migration crashed before it could clean up.
Solution If the prior migration is genuinely still running, wait for it to finish. If it crashed, add --force-unlock to your command to clear the stale lock and proceed.

Ferry cannot take the migration lock

Symptom Ferry stops before migrating with "Could not fetch server for lock check", "Could not acquire migration lock", or "The server description is N characters, too long to add the migration lock"
Cause Before migrating into an existing server, Ferry adds a short lock marker to the server description so a second run cannot write into the same server at once. It stops when it cannot read the server, cannot write the marker, or the description has no room for it. Stoat allows 1024 characters in a server description.
Solution For a network or permission problem, fix it and run again. For a long description, shorten it in Stoat's server settings. To continue without a lock, add --force-unlock, or tick Force unlock in the GUI's Advanced Options. Ferry then records a warning in the report.

Saved progress belongs to another server

Symptom Ferry stops before migrating with "The saved progress in ... belongs to Stoat server ..., but --server-id is ..."
Cause --incremental and --resume reuse the channel, role and message ids saved from the server the earlier run migrated into. --server-id named a different server, so those ids would point at the wrong place.
Solution To continue the earlier migration, run again without --server-id, or with the server id the message names as saved. To migrate into the other server, start a fresh migration in a new output folder.

Stale resume flag on relaunch

Symptom The GUI opens on the Migrate screen with a resume prompt, but Ferry immediately reports it cannot load the previous state, for example after you deleted or moved the output folder between runs
Cause The GUI persists a "resume available" flag alongside the state file. If the state file goes away and the flag does not, an older Ferry version raised a bare StateError that read like a bug in Ferry rather than an obviously stale flag
Solution From v2.19.7, Ferry clears the stale flag on the spot and surfaces a specific error naming the missing state file, the wizard then reopens fresh with your credentials filled in. No action is required beyond acknowledging the error. Nothing on the Stoat server is touched. On the CLI the equivalent is simply omitting --resume on the retry

DCE Verification Errors

DCE binary hash mismatch

Symptom Ferry reports "DCE binary hash mismatch"
Cause The downloaded DiscordChatExporter binary does not match the expected SHA-256 checksum. This can happen if the download was corrupted, if the cached binary is from a different version, or if you are using a self-built DCE binary.
Solution Delete the cached DCE binary (found in the Ferry data directory) and re-run Ferry, it will re-download a fresh copy. If you are using a self-built or custom DCE binary, pass --skip-dce-verify to bypass the checksum check.

DCE export is N days old

Symptom Ferry warns or errors with "DCE export is N days old" and refuses to continue
Cause Your DiscordChatExporter export is more than 30 days old. Ferry's freshness check flags old exports because Discord CDN attachment URLs expire, which means many attachments may no longer be downloadable.
Solution Re-export from DiscordChatExporter to get a fresh export. If your export includes all media locally (exported with --media) and you want to proceed anyway, add --force to override the freshness check.

Certificate Errors

unable to get local issuer certificate

Symptom Ferry (or the DiscordChatExporter download it triggers) fails with unable to get local issuer certificate, or another TLS/SSL certificate error
Cause The machine cannot verify the server's certificate. Common causes are HTTPS-scanning antivirus, a corporate proxy that intercepts TLS traffic, or a certificate authority missing from the machine's trust store.
Solution Point Ferry at a certificate bundle that includes the missing authority using the SSL_CERT_FILE environment variable, described below.
# Windows PowerShell
$env:SSL_CERT_FILE = "C:\path\to\your-ca-bundle.pem"
ferry migrate --export-dir ...

Ferry's own Python HTTPS connections use native macOS system certificate trust. Configured certificate files and the bundled roots remain additive. Certificate and hostname checks stay enabled. The separate Discord export executable keeps its own certificate checks.

Run ferry tls-check. On macOS, native-union means native trust and bundled roots loaded. native means the bundled roots did not load. Values beginning with native-unavailable- mean native initialization failed and a strict file-based context is in use. Reinstall a supported signed Ferry release if native initialization fails. Do not disable certificate or hostname checks.

If the Discord server export tool, DiscordChatExporter, is the download that fails, you can place the binary yourself instead of letting Ferry download it:

  1. Download the Windows archive (DiscordChatExporter.Cli.win-x64.zip, or the matching archive for your OS) from the DiscordChatExporter releases page, then extract it.
  2. Place the extracted DiscordChatExporter.Cli.exe at %USERPROFILE%\.discord-ferry\bin\dce\2.48\DiscordChatExporter.Cli.exe. The version folder name must be exactly 2.48. Ferry looks there first, and if a binary already exists, it uses that binary without downloading anything.

This skips a safety check

Ferry normally verifies the SHA-256 hash of the DCE binary it downloads. Placing a binary in this folder yourself bypasses that check entirely, because the download step that computes the hash never runs. Only do this with a binary you got directly from the official releases page above.

DCE still makes its own certificate checks

DiscordChatExporter is a separate self-contained program. It makes its own HTTPS calls against the Windows certificate store, independent of Ferry's. If the root store itself is the problem, exporting from Discord can still fail with a certificate error after the DCE download succeeds, or after you place the binary manually. That is the same underlying cause reappearing, not a new bug.


Proxy Configuration

Ferry reads HTTP_PROXY, HTTPS_PROXY and NO_PROXY the way most command-line tools do, and that is where most proxy questions start. It goes wider than that, though: on Windows and macOS, when those variables are not set, Ferry falls back to the system proxy settings a browser on the same machine would use. Someone who only set HTTPS_PROXY can still find Ferry routing traffic through a second proxy they never configured.

Ferry uses a proxy you did not set

Symptom Traffic goes through a proxy you never configured, or ferry tls-check reports a proxy-source of os
Cause No environment variable is set for that scheme, so Ferry fell back to the operating system's own proxy configuration.
Solution Run ferry tls-check and read proxy-source: env means a variable you set, os means the system fallback. To stop the fallback for one scheme, set the matching environment variable yourself. To stop all proxy use, see FERRY_DISABLE_PROXY below.

proxy-source is a single value, not one per scheme. If you have HTTP_PROXY set in the environment and HTTPS falling back to the system, tls-check reports one source for both, and it is the one HTTPS resolved from. Read proxy-http and proxy-https to see the two addresses; when they differ, at least one of them came from the other source.

FERRY_DISABLE_PROXY=1 turns off every proxy Ferry would otherwise use, whether it came from an environment variable or the operating system. NO_PROXY exempts individual hosts, for example NO_PROXY=stoat.internal,localhost, while leaving the rest of the configuration in place. A third switch comes from Python's standard library: setting the matching lowercase variable to an empty string turns off one scheme at a time. http_proxy="" disables the HTTP proxy without touching https_proxy.

A TLS-inspecting proxy needs two settings, not one

A corporate proxy that inspects HTTPS traffic presents its own certificate in place of the real one. Routing through the proxy only solves half of that: Ferry also needs SSL_CERT_FILE pointed at a bundle that includes the proxy's certificate authority, the same mechanism described in Certificate Errors above. Without it, Ferry reaches the proxy and then fails to verify what the proxy hands back.

FERRY_DISABLE_PROXY=1 does not fix the export

Symptom The kill switch is set, later migration phases run fine, but exporting from Discord (phase 0) still fails or still goes through a proxy
Cause DiscordChatExporter is a separate program and reads the operating system's proxy settings on its own. FERRY_DISABLE_PROXY=1 only turns off proxy use inside Ferry; it has no way to reach into DCE's resolution.
Solution Clear the proxy at its source instead: on Windows, Settings → Network & internet → Proxy; on macOS, System Settings → Network → (your connection) → Details → Proxies. Once the system entry is gone, both Ferry and DCE stop using it.

The proxy scan runs once per process

Ferry reads the proxy configuration when it starts and keeps that answer for the rest of the run. Connecting through a virtual private network, or changing networks partway through a migration, does not change what Ferry uses. Restart Ferry after a network change if a stale proxy setting seems to be involved.

ferry tls-check reports a proxy the GUI does not use

Symptom ferry tls-check reports a proxy, but the desktop GUI seems to run without one, or an export from the GUI goes through unproxied
Cause The CLI reads proxy variables from the process environment or an operator-selected environment file. Automatic .env discovery is disabled. The desktop GUI reads only the process environment.
Solution For the CLI, select an operator-owned file such as ferry --env-file /path/to/operator.env tls-check. For the GUI, set HTTPS_PROXY and other proxy variables before launching Ferry. Do not select a file received with an export.

An authenticating proxy breaks the export phase

Symptom Ferry connects through a proxy without trouble, but exporting from Discord (phase 0) fails with a 407 from the proxy
Cause When Ferry resolves a proxy from the system settings and that proxy needs a username and password, Ferry authenticates itself but cannot hand the credential to DiscordChatExporter. A password sitting in a child process's environment is readable by other processes on some systems, so Ferry withholds it and DCE receives only the proxy address.
Solution Set HTTPS_PROXY yourself with the credential in the URL (https://user:pass@host:port) if that trade-off is acceptable. DCE inherits a variable you set directly; it only misses the one Ferry resolved on your behalf.

The proxy protocol called SOCKS is not supported

Symptom A proxy notice at startup or in ferry tls-check names a SOCKS proxy, and Ferry connects direct anyway
Cause Ferry speaks HTTP and HTTPS to a proxy, not SOCKS. A SOCKS proxy set through any variable, including ALL_PROXY, falls outside what Ferry can use.
Solution Point HTTP_PROXY, HTTPS_PROXY, or ALL_PROXY at an HTTP or HTTPS proxy for the same server. ALL_PROXY is honoured as a fallback for http and https when no scheme-specific proxy is set, so a single ALL_PROXY=http://host:port reaches every phase. There is no workaround for a SOCKS-only setup; Ferry writes a notice naming what it found, so the direct connection has a stated cause.

Flag Conflicts

--resume and --incremental are mutually exclusive

Symptom Ferry reports --resume and --incremental are mutually exclusive and exits immediately
Cause Both flags were passed on the same command. They serve different purposes and cannot be combined.
Solution Use --resume to continue a migration that was interrupted mid-run (the state file was written but migration did not finish). Use --incremental when a prior migration completed successfully and you want to migrate only new messages that have arrived since.

Circuit Breaker Pausing

Circuit breaker open

Symptom Logs show "Circuit breaker open" and migration pauses for 30 seconds
Cause The Stoat API has failed 5 times in a row. Ferry's circuit breaker activates to avoid hammering a struggling server.
Solution Ferry will automatically retry after 30 seconds with exponential backoff. If this keeps happening, check that your Stoat instance is running and reachable. On self-hosted instances, check the Stoat server logs for errors.

Attachment limits

Attachment overflow

Symptom Messages in Stoat show [+N more attachment(s) not migrated (Stoat limit: 5): <file names>] at the end
Cause The original Discord message had more than 5 attachments. Stoat allows a maximum of 5 attachments per message. This is a platform limit, not a Ferry bug.
Solution No action needed. The first 5 attachments are migrated. The overflow note tells you how many were left out and lists their file names.

Permission and Role Issues

Permission evidence is missing or unsupported

Symptom Migration, Retry or Repair stops with a permission outcome instead of continuing
Cause Source evidence is missing or mismatched, target access changed, or selected rules cannot be represented and proved. Per-member overrides stop the whole operation; they are not skipped.
Solution Keep the export, output, state and receipts. Follow permission recovery: source refresh, read-only Check, then explicit Repair for supported corrections. Do not add helper roles or delete progress to bypass a refusal.

Avatar Issues

Migrated messages show no author picture

Symptom The Avatars phase reports "Pictures set for 0 of N authors", or fewer than you expect, and some messages show the migrating account's own picture instead of the author's.
Cause The report's "Author Pictures" section (and migration_report.json, key author_pictures) counts each reason. "no Discord token": pictures need a Discord token and none was given. "token rejected": Discord refused the token. "token cannot look up users": Discord does not let this token read other users, which can happen with a personal-account token. "no Discord picture": the author has no picture on Discord. "lookup failed": Discord did not answer for that author. "export link not accepted": the export holds a picture link that is not on Discord's picture servers. "link too long": the picture link is longer than the 256 characters Stoat accepts.
Solution Run a new migration with a valid Discord token (--discord-token, or DISCORD_TOKEN), preferably a bot token for the server. Ferry looks each author up once. Messages that are already migrated are not changed.

Post-Migration Validation

Validation count mismatches

Symptom Post-migration validation (--validate-after) reports "Validation found issues: N failing, N warned, N ok." instead of "Validation passed"
Cause Validation looks up every channel, role, category and emoji by ID on the live server. A failing entry is one Ferry recorded but could not find, for example because it was deleted afterwards or its creation failed during the structure phase.
Solution Run ferry check for the per-item list, and check the migration report (migration_report.md in your output directory) for errors. ferry repair restores what the check found missing, or you can re-run the migration with --resume to retry failed items.

Getting More Help

If your issue is not listed here:

  1. Run ferry validate on your export and check the warnings output, it often points directly to the problem.
  2. Run the migration with --verbose (CLI) to get per-message detail in the log.
  3. Run ferry stats <output-dir> after a failed or partial migration to see the aggregate picture: counts, fidelity score, and a truncated preview of the most recent error, often faster than scanning state.json by hand. See the CLI reference.
  4. Check the migration report in ferry-output/ for a full list of errors and warnings.
  5. Select Feedback in the app, or run ferry feedback. Review the public preview before sending. See what Ferry shares and retains.

Before sharing logs

Review your log output before sharing it publicly. Logs may contain channel names, user display names, or message content from your server. Redact any sensitive information before posting. Ferry never attaches a raw export to a feedback report.