mojira.dev
MCL-25132

Minecraft Launcher won't start unless webcache2 directory has been deleted.

When starting the Minecraft Launcher installed on Arch Linux through the AUR (https://aur.archlinux.org/packages/minecraft-launcher ) a message warning about an “unexpected Error” appears. The only way to remedy this is to delete the “webcache2” directory within <path_to_minecraft_parent_directory>/.minecraft
See also the pinned comment on the AUR ( https://aur.archlinux.org/packages/minecraft-launcher#comment-1014716 )

Environment

Arch Linux x86_64
Linux 6.13.8-arch1-1
KWin (Wayland)
AMD Ryzen 7 5700X
AMD Radeon RX 7600

Linked issues

Comments 2

I have the same issue as well. I was wondering if I could make a script that would delete that folder every time I closed the launcher, which I had ChatGPT write for me. I recommend adding this as a startup script in KDE system settings.

#!/bin/bash

# Path to the webcache2 folder
WEBCACHE2_DIR="$HOME/.minecraft/webcache2"

echo "Script started"

while true; do
    # Check if the Minecraft Launcher process is running
    if pgrep -f "$HOME/.minecraft/launcher/minecraft-launcher" > /dev/null; then
        echo "Minecraft launcher is running"

        # Wait until Minecraft launcher is no longer running
        while pgrep -f "$HOME/.minecraft/launcher/minecraft-launcher" > /dev/null; do
            sleep 1
        done
        
        echo "Minecraft launcher closed"

        # Delete the webcache2 folder after launcher exits
        rm -rf "$WEBCACHE2_DIR"
        echo "webcache2 folder deleted."
    fi

    # Sleep for a short time before checking again
    sleep 2
done

Thank you for your report!
We're tracking this issue in https://report.bugs.mojang.com/servicedesk/customer/portal/2/MCL-24881 , so this ticket is being resolved and linked as a duplicate.

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Bug Tracker Guidelines -- 💬 Community Support -- 📧 Mojang Support (Technical Issues) -- 📧 Microsoft Support (Account Issues) -- ✍️ Feedback and Suggestions -- 📖 Game Wiki

Rose Reed

(Unassigned)

Unconfirmed

Retrieved