modrinth / code

The Modrinth monorepo containing all code which powers Modrinth!
https://modrinth.com
Other
985 stars 187 forks source link

Error produced when the app updates upon opening. (Linux) #2515

Open JaredRichardWilliam opened 1 month ago

JaredRichardWilliam commented 1 month ago

Please confirm the following.

What version of the Modrinth App are you using?

https://github.com/modrinth/code/releases/tag/v0.8.8

What operating systems are you seeing the problem on?

Linux ^1

Describe the bug

Upon opening the app it forces an update which causes this error upon finishing:

Image

> Read-only file system (os error 30) at path "/app/bin/tauri_current_app2GdAT8"

Steps to reproduce

Example

https://github.com/user-attachments/assets/b905beac-41b7-4dc9-bbd8-311822fe7211

Steps

Open the app and wait for it to finish updating:

  1. Image
  2. Image

Expected behaviour

No response

Additional context

I have redownloaded the app and restarted it multiple times with the same result.

pokahs commented 1 month ago

I just got a similar message but instead of os error 30 I got os error 13 (permission denied etc) on Debian with the .deb installed. But I simply tried running the app with sudo privileges in terminal, which worked, and after restarting my pc the app returned to normal, didn't need to use sudo.

Norbiros commented 1 month ago

I just got a similar message but instead of os error 30 I got os error 13 (permission denied etc) on Debian with the .deb installed. But I simply tried running the app with sudo privileges in terminal, which worked, and after restarting my pc the app returned to normal, didn't need to use sudo.

I believe this problem was caused by an invalid binary name in one of the 0.8.x releases. It should be fixed now, so just reinstall or update the app using sudo.

JaredRichardWilliam commented 1 month ago

Thanks im new to linux terminal so I forgot I can just run it with sudo. I'll see if that fixes the issue.

RokeJulianLockhart commented 1 month ago

On a new installation, I've the same problem:

Example

  1. Reproduction

    1. Screencast

      https://github.com/user-attachments/assets/bfb47938-39c7-4b5c-b498-d78f2e386490

    2. Commands

      flatpak -vvv install 'https://dl.flathub.org/repo/appstream/com.modrinth.ModrinthApp.flatpakref' && \
      flatpak -vvv update  'app/com.modrinth.ModrinthApp/x86_64/stable' --commit=ec083848d78b8259bbae1ef8c1dfebe1fdbd7ad188922f224e2e3b2b6dcdd1fd && \
      flatpak -vvv run     'app/com.modrinth.ModrinthApp/x86_64/stable'
  2. Demonstration

    1. Update Screenshot

      Image

      This might relate to https://github.com/modrinth/code/issues/2513#issue-2590918221.

    2. Error

      1. Screenshot

        Image

      2. Text

        > ```log > Read-only file system (os error 30) at path "/app/bin/tauri_current_app0O7XXa" > ```
Norbiros commented 1 month ago

On a new installation, I've the same problem:

And you also tried installing .deb? Or appimage?

RokeJulianLockhart commented 1 month ago

https://github.com/modrinth/code/issues/2515#issuecomment-2417869815

@Norbiros,

  1. And you also tried installing .deb?

    I'm unable to install the .deb (outside distrobox) due to me using a non-Debian-based OS (like the OP, who is my brother).

  2. Or appimage?

    Additionally, the .AppImage has a different problem - when I access the undermentioned:

    https://github.com/user-attachments/assets/c0d5fd45-c24a-4634-af15-f46d5c82a0cb

    ...it indefinitely hangs. I should report this separately, alongside the misspelled error in the aforementioned screenshots ("ennsuring").

I would like to evaluate the .deb's counterpart - the .RPM. However, it isn't possible to download from modrinth.com/app:

```HTML Download the RPM ```

This is somewhat of a mess.

Norbiros commented 1 month ago

...it indefinitely hangs. I should report this separately, alongside the misspelled error in the aforementioned screenshots.

Maybe it's the same bug as #2508

Example / Commands

I tried exact same commands, but with --user, and I got: Invalid cross-device link (os error 18). Flatpak does sometimes weird things with isolating fs, so if you want, you could try building our app manually... Also, flatpak version isn't really maintained by modrinth, so you could report it here

The problem is that tauri decides to use /app/bin/tauri_current as tmp dir. I'll look into it later

RokeJulianLockhart commented 1 month ago

Maybe it's the same bug as https://github.com/modrinth/code/issues/2508

@Norbiros, thanks. I've asked at https://github.com/modrinth/code/issues/2508#issuecomment-2417976298.

Also, flatpak version isn't really maintained by modrinth, so you could report it here

I wasn't aware it was unofficial - I have filed https://github.com/flathub/com.modrinth.ModrinthApp/issues/30#issue-2593074753, but can ask @jaredrichardwilliam to close this too, if that's useful.

Norbiros commented 1 month ago

but can ask to close this too, if that's useful.

You can leave it for now. Probably this is caused by our misconfiguration or it is just a Tauri bug.

RokeJulianLockhart commented 1 month ago

https://github.com/modrinth/code/issues/2515#issuecomment-2417901822

@Norbiros, where and how do I report the misspelling in that error string? I ask because searching this monorepo for https://github.com/search?q=repo%3Amodrinth%2Fcode%20ennsuring&type=code returns 0 results. I presume you utilize an external translation platform? If so, I've been unable to ascertain which.

Norbiros commented 1 month ago

@Norbiros, where and how do I report the misspelling in that error string?

It was fixed in #2492

Flatfire commented 1 month ago

#2515 (comment)

@Norbiros,

1. > And you also tried installing .deb?

   I'm unable to install [the `.deb`](https://launcher-files.modrinth.com/versions/0.8.9/linux/Modrinth%20App_0.8.9_amd64.deb) (outside `distrobox`) due to me using a non-Debian-based OS (like the OP, who is my brother).

2. > Or appimage?

   Additionally, [the `.AppImage`](https://launcher-files.modrinth.com/versions/0.8.9/linux/Modrinth%20App_0.8.9_amd64.AppImage) has a different problem - when I access the undermentioned:

       2024-10-16.21-35-17.mp4

   ...it indefinitely hangs. I should report this separately, alongside [the misspelled error in the aforementioned screenshots](https://private-user-images.githubusercontent.com/42837531/377217782-1e2b337d-4f9d-46b0-8b91-d02ad369a21f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjkxMTE0NzAsIm5iZiI6MTcyOTExMTE3MCwicGF0aCI6Ii80MjgzNzUzMS8zNzcyMTc3ODItMWUyYjMzN2QtNGY5ZC00NmIwLThiOTEtZDAyYWQzNjlhMjFmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDEwMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQxMDE2VDIwMzkzMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTE0ZjkwOTU4ZjE5NWViMDFmN2VhOTFmNjhmOWVjNjYyNGQ5YjAyNTlmNDI5MGNlZGU5OWI3MDRjZDAxZTY5NTcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.GleawyY0h5k1ZAbYbZ2eJKWbDUhtnN3v7d3qPEuiQvU) ("ennsuring").

I would like to evaluate the .deb's counterpart - the .RPM. However, it isn't possible to download from modrinth.com/app:

Download the RPM

This is somewhat of a mess.

The RPM did build, and is available in the build artifacts for 0.8.9, but yes for some strange reason, unlike 0.8.8, it did not link properly on the home page. It's actually included in the "Ubuntu 22.04.zip" file found here: https://github.com/modrinth/code/actions/runs/11360474470. I believe there are some shenanigans to be resolved here.

RokeJulianLockhart commented 1 month ago

https://github.com/modrinth/code/issues/2515#issuecomment-2420702805

@Flatfire, would that be worth its own ticket? If you haven't reported it, I don't mind doing so, and copying the content of that comment as its description.

Flatfire commented 1 month ago

#2515 (comment)

@Flatfire, would that be worth its own ticket? If you haven't reported it, I don't mind doing so, and copying the content of that comment as its description.

Hey, no I haven't. Please do so if you haven't already. I've not had the time to sit down and kick open a new issue.

RokeJulianLockhart commented 1 month ago

https://github.com/modrinth/code/issues/2515#issuecomment-2424956123

@Flatfire, I've filed https://github.com/modrinth/code/issues/2847#issue-2601887527 and https://github.com/modrinth/code/issues/2848#issue-2602082490.