mojira.dev
MCL-17255

.minecraft can no longer be a symlink

If .minecraft is a symlink to another folder (in my case another internal storage device), the launcher fails to start entirely, with various errors about missing files and translations.

Copying .minecraft to my home folder or mounting it to that location allows the launcher and client to start without issue.

Using a symlink worked in the previous launcher version, and would be preferable to a mount point or storing on my home folder directly.

Linked issues

Attachments

Comments 4

I also cannot run the launcher. I have the .minecraft folder  symlinked to a location on another drive. Attaching a bit of the log produced when launching from a shell.

 

 

And my system details:

Ubuntu Bionic

Linux pc 4.15.0-136-generic #140-Ubuntu SMP Thu Jan 28 05:20:47 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Minecraft-launcher Debian package v915

 

 

  1. Remove the .minecraft symlink. There should not be anything at ~/.minecraft

  2. run the launcher

  3. launcher fails. see below.

.minecraft/bootstrap_log.txt:

[Info: 2021-03-14 03:34:25.295208003: NetQueue.cpp(157)] NetQueue: Setting up.
[Info: 2021-03-14 03:34:25.295502809: mainLinux.cpp(250)] Running launcher bootstrap (version 915)
[Info: 2021-03-14 03:34:25.295347337: NetQueue.cpp(575)] NetQueue: worker thread started.
[Debug: 2021-03-14 03:34:25.295947169: PlatformLinux.cpp(44)] HOME dir (getpwuid): /home/myusername
[Debug: 2021-03-14 03:34:25.295960525: PlatformLinux.cpp(49)] HOME dir (env): /home/myusername
[Error: 2021-03-14 03:34:25.296933413: Settings.cpp(40)] Failed to determine configuration file size: No such file or directory
[Info: 2021-03-14 03:34:25.297432965: Common.cpp(32)] Native Launcher Version: 915
[Info: 2021-03-14 03:34:25.297459723: Common.cpp(33)] Operating System: Linux
[Info: 2021-03-14 03:34:25.297474180: Common.cpp(34)] Application Data directory: //.../.minecraft
[Info: 2021-03-14 03:34:25.297505700: Common.cpp(35)] Executable Path: /.../minecraft-launcher
[Info: 2021-03-14 03:34:25.297517020: Common.cpp(36)] App Directory dir: //.../bin
[Info: 2021-03-14 03:34:25.297546015: Common.cpp(37)] Game data directory: //.../.minecraft
[Info: 2021-03-14 03:34:25.297556991: Common.cpp(38)] Launcher dir: //.../launcher
[Info: 2021-03-14 03:34:25.297568969: Common.cpp(39)] Java dir: //.../jre-x64
[Info: 2021-03-14 03:34:25.297579881: Common.cpp(40)] TmpDir dir: //.../MinecraftLauncher.1000
[Info: 2021-03-14 03:34:25.297590610: Common.cpp(41)] x64: true
[Info: 2021-03-14 03:34:25.297918296: mainLinux.cpp(308)] relaunchedExe: /home/myusername/.minecraft/launcher/minecraft-launcher selfExe: /usr/bin/minecraft-launcher
[Info: 2021-03-14 03:34:25.297937242: mainLinux.cpp(312)] Top level executable, forwarding signals.
[Error: 2021-03-14 03:34:25.297954114: mainLinux.cpp(330)] Invalid start directory!
[Info: 2021-03-14 03:34:25.298709620: NetQueue.cpp(585)] NetQueue: Starting net action https://sentry.io/api/5254002/store/

Here is a workaround for Linux

Remove symlink:

rm -f ~/.minecraft

Create empty folder:

mkdir ~/.minecraft 

Bind mount the folder on the other disk under the folder in your home fdirectory:

sudo mount --bind /LOCATION_OF_ACTUAL_DATA_FOLDER/.minecraft  ~/.minecraft

 

NickNackGus

(Unassigned)

Unconfirmed

crash, minecraftlauncher, symlink

Retrieved