Skip to content

Latest commit

 

History

History
255 lines (199 loc) · 12.2 KB

troubleshooting.md

File metadata and controls

255 lines (199 loc) · 12.2 KB

When something looks wrong

Failure modes that have actually happened, and what they mean. Anything not listed here has not been seen yet - if you hit it, it is new.

raven doctor says user namespaces are unavailable

The kernel restricts them. linux-hardened disables them outright, Ubuntu restricts them through AppArmor by default, and some hardened configurations turn them off deliberately.

Raven's only implemented mount backend needs them. Two other backends are designed for exactly this case - fuse-overlayfs, and a privileged helper - and neither is built yet. Until one is, Raven cannot run on such a kernel.

A program starts, exits cleanly, and prints nothing

Expected, for now, and it is not your setup.

Modern Windows keeps program strings in separate .mui resource files rather than inside the executable. A base holds around ten thousand of them, and Wine does not open them. LoadString finds nothing, so the program prints an empty message and exits zero. It ran - it just has nothing to say.

This is the largest known gap. See ../project/status.md.

A program appears to work, and you want to be sure it was Microsoft's

Wine ships several hundred .exe files of its own, so correct output proves nothing about where the program came from. Only the loader says:

WINEDEBUG=+loaddll raven run games -- wine 'C:\Windows\System32\where.exe'

native means the binary came from your Windows base. builtin means it was Wine's own.

Every .exe runs against ~/.wine instead of your environment

Wine's package registers a handler for the same MZ magic, and when both are present the kernel picks one silently - the failure looks like Raven losing your prefix, and it once cost an hour. The package prevents it by masking Wine's registration; if you assembled things by hand:

raven doctor

lists every registration claiming a .exe, names the one the kernel will pick, and prints the masking fix when it is not Raven's.

A second launch fails, or a program will not start again

A launch into an environment that already has a session joins it rather than refusing - that is what a session is for - so this is no longer what an ordinary second launch does. When a session's anchor dies, its persistent wineserver and Wine's services stay behind; the next launch sees that nothing of yours is among them and ends them before it starts a fresh session. What can still hold an environment busy is a program of yours that kept running after its session's anchor died, and overlayfs will not mount the same upper layer twice while it is there.

raven env status games

names the processes holding it, marking the anchor of a live session as such, and

raven env stop games

terminates them and releases the environment. A launch that cannot mount refuses with exactly these two commands rather than a bare Device or resource busy.

A launch refuses after a Wine update

A session keeps its wineserver running, and a client of another Wine version cannot talk to it. After an update, or once another Wine comes first on PATH, the next launch replaces an idle session, which costs about as much as a first launch. If a program started before the update is still running in the environment, the launch refuses and names the fix: close that program, or end the session with raven env stop <name>.

A script hangs on wineserver -w

winetricks and many install scripts wait with wineserver -w for Wine to finish. In a session the server does not exit on its own, so the wait lasts until raven env stop. usage.md has the way out.

Launching feels slower than Proton

Slightly. A process starts in about 157 ms in a Raven session and 123 ms in a plain Wine prefix. Almost all of the difference is the base's 338 real fonts, which Wine checks at every process start: a plain prefix given the same fonts takes 153 ms.

If a start takes nearer 240 ms, the base was probably deployed by an earlier release and still spells its directories the way Windows does. raven doctor says so; stop the base's environments and run raven base respell <base>. See usage.md.

Several plausible explanations were measured and ruled out along the way - ../internals/performance.md has the numbers, so nobody repeats them.

An environment will not delete

If destroy refused because the environment is running, that is deliberate - it named the processes holding the mount, and raven env stop <name> releases it. For anything else: overlayfs leaves a work/work directory with no permissions at all, which a plain recursive delete cannot enter - and it stops after removing the upper layer, leaving something that can neither be destroyed nor recreated.

raven env destroy restores permissions as it descends and handles this. If you deleted an environment by hand and hit it, chmod -R u+w the directory first.

A disk or hardware utility finds no devices

Seen with Rufus 4.15: the interface runs, and reports Windows VDS is unavailable then 0 devices found, with the USB key plugged in and visible to Linux.

Expected, under any Wine, forever. Tools like Rufus enumerate disks through SetupDi device interfaces, and nothing in Wine ever registers the disk interface class - the list is empty regardless of configuration. What can work is a tool that opens a device by name (\\.\PhysicalDriveN, \\.\D:) instead of asking for a list: raven env attach <env> /dev/sdX wires a real block device in for exactly that, with genuine sector read/write. The enumeration gap itself is a Wine patch, not a Raven feature; the full analysis, tier by tier, is in ../internals/device-passthrough.md. For a bootable USB stick, use the native tool: Ventoy, GNOME Disks, or dd.

The same Rufus is still a useful data point: under plain Wine it crashes at startup before showing a window; against a Raven environment it runs and renders. Real-Windows worlds sometimes fix programs, not just break them.

The Epic Games Launcher asks you to sign in at every start

Seen with launcher 20.3.6 under Wine 11.20. The first sign-in works and holds while the launcher runs. At the next start the saved sign-in is refused, and the launcher's log (%LOCALAPPDATA%\EpicGamesLauncher\Saved\Logs\EpicGamesLauncher.log) shows errors.com.epicgames.common.oauth.invalid_dpop_proof with "Signatures of refresh tokens do not match".

The launcher binds its saved sign-in to a named key it creates through CNG in the Microsoft Software Key Storage Provider, and signs a proof with that key at every refresh (DPoP). Wine's ncrypt.dll keeps a named key only in the process that created it: NCryptOpenKey is a stub that returns NTE_NOT_SUPPORTED (0x80090029). The launcher therefore creates a new key at each start, and Epic's server rejects the saved token. A .NET probe in a throwaway environment shows the same: CngKey.Create of a named ECDSA P-256 key succeeds, and CngKey.Open of that name from a second process fails with 0x80090029.

The base's own ncrypt.dll is no way around it. Loaded as native under Wine 11.20 it unloads again before the first call, and the provider behind it keeps keys through the KeyIso service in lsass.exe, which Wine does not have.

This is Wine's to fix: NCryptOpenKey is still a stub on Wine's master branch in October 2026. Until then, sign in once each time the launcher starts.

Install Engine does nothing in the Epic Games Launcher

Seen with launcher 20.3.6: "Install Engine" does nothing, and the log shows EoshState = WaitingForBuildsAndItemFiles and found 0 entitled apps. This is not Raven's or Wine's: the same lines were reported on Windows 11 with launcher 20.3.5 in Epic's forum, along with an empty Engine Versions list, a greyed-out "+" and no licence agreement. The workaround posted there, not yet tried under Raven: in Unreal Engine > Samples, add a free sample such as the Game Animation Sample to the library and try to create a project from it. The launcher says the engine is missing, and from then on "Install Engine" and "+" work.

The logs of Epic Online Services (EOS), the background service the launcher hands installs to, also show EOS_SESSION_GUID environment variable is required. and exit code 91. That comes from EOS's own update step, which its service runs every two hours (EpicOnlineServicesHost.exe startandwait --mode=stage). Installs go through another copy of the same helper, which the launcher starts itself with that variable set: it reports MAINSERVICE_READY and accepts the launcher's sign-in. The update step fails because Wine runs a service under the user's account, not LocalSystem: a test service registered with sc create saw the SID S-1-5-21-0-0-0-1000. EOS's helper checks for LocalSystem (IsWellKnownSid in its os_toolbox.node), logs isSystemUser: false, and takes the path that needs the variable. Installing EOS through its MSI package works: EOS's installer logged MSI completed with Success (0).

A sign-in link or web page does not open

A program that opens a web link, such as a launcher's "sign in with your browser", goes through Wine's winebrowser, and every session points that at raven open-uri, which asks your desktop to open the link in your browser. Three things stop it:

  • No desktop portal that opens links. raven open-uri needs xdg-desktop-portal with a backend that opens links, and busctl or gdbus. GNOME and KDE have one; on Hyprland or a wlroots compositor, install xdg-desktop-portal-gtk. Without it the link goes to xdg-open inside the environment, where you are root, and a Chromium-based browser refuses to start: Running as root without --no-sandbox is not supported.
  • A local file. A help button that opens a manual on C:, or any file: link, stays inside the environment, because nothing outside can see C:. It opens with xdg-open as root, so a Chromium-based default browser still refuses it.
  • Your own setting. A Browsers value you put under HKCU\Software\Wine\WineBrowser yourself is left alone, whatever its type. Delete it, and the next session start writes Raven's.

An environment created before this picks it up at its next session start (raven env stop <name> once, if one is running).

A shortcut or a link back to a program does nothing

When a program creates a Start menu or desktop shortcut, or registers a file type or a link scheme of its own (com.epicgames.launcher://, fivem://), Wine writes a desktop entry for it: wine-protocol-*.desktop or wine-extension-*.desktop in ~/.local/share/applications/, a menu entry under ~/.local/share/applications/wine/, or a launcher on your desktop. Wine's command for it, env "WINEPREFIX=<prefix>" wine …, runs outside the environment. There C: is an empty directory, so Wine starts a second wineserver on the environment's prefix beside the session's, then stops with could not load kernel32.dll. A sign-in that returns to the program through its own link scheme is lost.

Raven rewrites those entries to start through raven run <name>, with the working directory Wine gave them passed as --cwd. It does this when it creates an environment, when a session starts, and every two seconds while the session runs. An entry that names a Raven binary that has since moved is pointed at the current one the same way. An entry written before this is fixed at the environment's next session start (raven env stop <name> once, if one is running).

Entries for an environment you have since destroyed are left as they are and start nothing. Delete them by hand if they bother you.

Anti-cheat refuses to start the game

If the publisher has enabled Easy Anti-Cheat or BattlEye's Linux support, the game should work - and if it works under Proton but not Raven, that is a bug worth reporting.

If the publisher has not enabled it - PUBG, Fortnite, Valorant - the game does not run on Linux at all, under anything. That is a decision at the publisher, and Raven will not work around it: these systems ban on detecting tampering, so a tool that tried would get you banned. See ../project/landscape.md.