rockerbacon/modorganizer2-linux-installer

Installer fails if openJDK temp download directory already exists

Opened this issue · 0 comments

A couple times, I've had the installer fail if a temp file still exists from a previous run that didn't clean up properly for some reason. Work-around is to nuke the /tmp/mo2-linux-installer-downloads-cache directory and re-run the installer. Proper fix is probably to use a unique tmp directory (e.g., append the PID to the cache directory name so it doesn't step on itself if re-run).

INFO: all dependencies met

INFO: selected game 'fallout4'
INFO: found Steam in '/home/gmn42/.var/app/com.valvesoftware.Steam/.local/share/Steam'
INFO: game found in '/home/gmn42/.var/app/com.valvesoftware.Steam/.local/share/Steam'
INFO: found Steam in '/home/gmn42/.var/app/com.valvesoftware.Steam/.local/share/Steam'

INFO: proceeding with existing prefix

INFO: selected install directory '/home/gmn42/Games/mod-organizer-2-fallout4'
INFO: using wget2 backend
INFO: fetching remote resource at 'https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u312-b07/OpenJDK8U-jre_x64_windows_hotspot_8u312b07.zip'
INFO: downloading 'https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u312-b07/OpenJDK8U-jre_x64_windows_hotspot_8u312b07.zip' to '/tmp/mo2-linux-installer-downloads-cache/OpenJDK8U-jre_x64_windows_hotspot_8u312b07.zip'

mkdir: cannot create directory ‘/tmp/mo2-linux-installer-downloads-cache/OpenJDK8U-jre_x64_windows_hotspot_8u312b07’: File exists
INFO: removing '/tmp/mo2-linux-installer-downloads-cache/OpenJDK8U-jre_x64_windows_hotspot_8u312b07.zip'
INFO: removing '/tmp/mo2-linux-installer-downloads-cache/OpenJDK8U-jre_x64_windows_hotspot_8u312b07'
INFO: removing '/tmp/mo2-linux-installer-downloads-cache/winetricks'