an-anime-team / the-honkers-railway-launcher

The Honkers Railway launcher for Linux with automatic patching and telemetry disabling
https://discord.gg/ck37X6UWBp
GNU General Public License v3.0
614 stars 14 forks source link

"Failed to download wine: path is not mounted" on flatpak #72

Open ikaikahub opened 11 months ago

ikaikahub commented 11 months ago

After clicking "download" on the initial setup after choosing wine and dxvk version i get the error "Failed to download wine: Path is not mounted"

Heres the log before the error

2023-09-23T00:16:08.994737Z DEBUG minreq::connection: Redirecting (302) to: https://objects.githubusercontent.com/github-production-release-asset-2e65be/223100333/a63fe408-ef72-4d7b-92b2-fef11aae33c7?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230923%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230923T001608Z&X-Amz-Expires=300&X-Amz-Signature=07a6383b44f85680317491114ca6cec09cfc84306357a6c96e510b35babe73f7&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=223100333&response-content-disposition=attachment%3B%20filename%3Dwine-lutris-GE-Proton8-15-x86_64.tar.xz&response-content-type=application%2Foctet-stream
    at /run/build/railway/cargo/vendor/minreq-2.8.1/src/connection.rs:353

  2023-09-23T00:16:08.995105Z TRACE minreq::connection: Setting up TLS parameters for objects.githubusercontent.com.
    at /run/build/railway/cargo/vendor/minreq-2.8.1/src/connection.rs:167

  2023-09-23T00:16:08.995380Z TRACE minreq::connection: Establishing TCP connection to objects.githubusercontent.com.
    at /run/build/railway/cargo/vendor/minreq-2.8.1/src/connection.rs:175

  2023-09-23T00:16:08.997295Z TRACE minreq::connection: Timeout requested, it is currently: Ok(Some(7.66975895s))
    at /run/build/railway/cargo/vendor/minreq-2.8.1/src/connection.rs:154

  2023-09-23T00:16:09.033397Z TRACE minreq::connection: Establishing TLS session to objects.githubusercontent.com.
    at /run/build/railway/cargo/vendor/minreq-2.8.1/src/connection.rs:179

  2023-09-23T00:16:09.033518Z TRACE minreq::connection: Writing HTTPS request to objects.githubusercontent.com.
    at /run/build/railway/cargo/vendor/minreq-2.8.1/src/connection.rs:181

  2023-09-23T00:16:09.033541Z TRACE minreq::connection: Timeout requested, it is currently: Ok(Some(7.633507175s))
    at /run/build/railway/cargo/vendor/minreq-2.8.1/src/connection.rs:154

  2023-09-23T00:16:09.073410Z TRACE minreq::connection: Reading HTTPS response from objects.githubusercontent.com.
    at /run/build/railway/cargo/vendor/minreq-2.8.1/src/connection.rs:186

  2023-09-23T00:16:09.207162Z TRACE anime_game_core::installer::installer: Checking free space availability
    at /run/build/railway/cargo/vendor/anime-game-core/src/installer/installer.rs:107

  2023-09-23T00:16:09.213785Z ERROR anime_game_core::installer::installer: Path is not mounted: "/home/user/.var/app/moe.launcher.the-honkers-railway-launcher/data/honkers-railway-launcher/wine-lutris-GE-Proton8-15-x86_64.tar.xz"
    at /run/build/railway/cargo/vendor/anime-game-core/src/installer/installer.rs:118

  2023-09-23T00:16:09.213854Z ERROR honkers_railway_launcher::ui::first_run::download_components: Failed to download wine: Path is not mounted: "/home/user/.var/app/moe.launcher.the-honkers-railway-launcher/data/honkers-railway-launcher/wine-lutris-GE-Proton8-15-x86_64.tar.xz"
    at src/ui/first_run/download_components.rs:383

  2023-09-23T00:16:09.214128Z ERROR honkers_railway_launcher::ui::components::progress_bar: Downloading error: PathNotMounted("/home/user/.var/app/moe.launcher.the-honkers-railway-launcher/data/honkers-railway-launcher/wine-lutris-GE-Proton8-15-x86_64.tar.xz")
    at src/ui/components/progress_bar.rs:171
    in relm4::component::r#async::builder::update_with_view with input: UpdateFromState(InstallerUpdate(DownloadingError(PathNotMounted("/home/user/.var/app/moe.launcher.the-honkers-railway-launcher/data/honkers-railway-launcher/wine-lutris-GE-Proton8-15-x86_64.tar.xz")))), component: "honkers_railway_launcher::ui::components::progress_bar::ProgressBar", id: "0x7ffd6502bb50"

  2023-09-23T00:16:09.214292Z DEBUG honkers_railway_launcher::ui::first_run::main: Called first run window event: Toast { title: "Failed to download wine", description: Some("Path is not mounted: \"/home/user/.var/app/moe.launcher.the-honkers-railway-launcher/data/honkers-railway-launcher/wine-lutris-GE-Proton8-15-x86_64.tar.xz\"") }
    at src/ui/first_run/main.rs:178
    in relm4::component::sync::builder::update_with_view with input: Toast { title: "Failed to download wine", description: Some("Path is not mounted: \"/home/user/.var/app/moe.launcher.the-honkers-railway-launcher/data/honkers-railway-launcher/wine-lutris-GE-Proton8-15-x86_64.tar.xz\"") }, component: "honkers_railway_launcher::ui::first_run::main::FirstRunApp", id: "0x7ffd6502b3d0"
ikaikahub commented 11 months ago

I get this same error on an anime game launcher too

karmakarmeghdip commented 11 months ago

Are you perhaps using Fedora Silverblue or related distro? Changing the installation location to /var/home/user/.var/.... fixes the issue

bayazidbh commented 2 months ago

I think this should be on wiki in the Flatpak install section. But ideally the launcher could check if /home is mounted from else where (/var) to account for Silverblue/Atomic and Bazzite users. Immutable distro's getting more popular lately, after all.

Regardless, yeah, adding /var before the default path works.