minetest / minetest

Minetest is an open source voxel game-creation platform with easy modding and game creation
https://www.minetest.net/
Other
10.58k stars 1.99k forks source link

cannot add mods from internet #13584

Closed efa closed 3 weeks ago

efa commented 1 year ago
Minetest version
5.7.0 AppImage from https://gitlab.com/minetest/minetest/-/tags/5.7.0
OS / Hardware

Operating system: LMDE5 (based on Debian 11) CPU: Intel(R) Core(TM) i7-4710HQ CPU @ 2.50GHz

GPU model: GeForce GTX850M OpenGL version: 3.0 Mesa 20.3.5

Summary

cannot add mods from internet

Steps to reproduce

from the main Window, press "Select Mods", then press "Find More Mods" button always show "No packages could be retrieved"

Minetest 5.3.0 from Debian11 repo work as expected and find 321 mods

sfan5 commented 1 year ago

Please provide a log file and/or console output.

efa commented 1 year ago

I extracted the AppImage with: Minetest-5.7.0-1b95998d-x86_64.AppImage --appimage-extract

Here the console output: efa@08i7-2500:~/dLoad/Minetest/squashfs-root$ AppRun 2023-06-12 15:56:42: WARNING[Main]: system-wide share not found at "/builds/minetest/minetest/artifact/minetest/usr/share/minetest" 2023-06-12 15:56:42: WARNING[Main]: system-wide share found at "/home/efa/Downloads/Minetest/squashfs-root/usr/bin/../share/minetest" 2023-06-12 15:56:42: WARNING[Main]: Couldn't find a locale directory! 2023-06-12 15:56:42: [Main]: Automatically selecting world at [/home/efa/.minetest/worlds/try] 2023-06-12 15:56:42: WARNING[Main]: Could not load icon file '/builds/minetest/minetest/artifact/minetest/usr/share/icons/hicolor/128x128/apps/minetest.png' 2023-06-12 15:56:42: WARNING[Main]: Could not load icon file '/home/efa/Downloads/Minetest/squashfs-root/usr/bin/../share/minetest/misc/minetest-xorg-icon-128.png' 2023-06-12 15:56:46: ERROR[Main]: HTTPFetch for https://content.minetest.net/api/packages/?type=mod&type=game&type=txp&protocol_version=42&engine_version=5.7.0&hide=nonfree&hide=desktop_default failed (SSL peer certificate or SSH remote key was not OK) Quit message received.

How to recover the log file?

nininik0 commented 1 year ago

Do you have internet enabled?

nininik0 commented 1 year ago

Try to install minetest again

efa commented 1 year ago

this is the 5.7.0 AppImage from https://gitlab.com/minetest/minetest/-/tags/5.7.0 it is a portable app, no installation needed.

Minetest 5.3.0 from Debian11 repo work as expected and find 321 mods so internet is enabled

rubenwardy commented 1 year ago

The appimage works for me on Manjaro

2023-06-12 15:56:46: ERROR[Main]: HTTPFetch for [[ContentDB]] failed (SSL peer certificate or SSH remote key was not OK)

This is the error - it does not like the SSL certificate. Make sure your clock is correct and your system is up to date

efa commented 1 year ago
$ date
Mon Jun 12 19:14:13 CEST 2023

$ sudo apt update && sudo apt upgrade
Hit:1 http://deb.debian.org/debian bullseye-backports InRelease
Hit:2 http://security.debian.org bullseye-security InRelease                                                                                                                                                                                 
Hit:3 http://dl.google.com/linux/earth/deb stable InRelease                                                                                                                                                                                  
Hit:4 http://security.debian.org/debian-security bullseye-security InRelease                                                                                                                                                                 
Hit:5 https://dl.winehq.org/wine-builds/debian bullseye InRelease                                                                                                                                                                            
Hit:6 https://deb.debian.org/debian bullseye InRelease                                                                                                                                                                                       
Hit:7 https://linux.teamviewer.com/deb stable InRelease                                                                                                                                                                                      
Hit:8 https://deb.debian.org/debian bullseye-updates InRelease                                                                                                                                                                               
Hit:9 https://dl.google.com/linux/chrome/deb stable InRelease                                                                                                                                 
Hit:10 https://download.virtualbox.org/virtualbox/debian bullseye InRelease                                     
Hit:11 https://packages.element.io/debian default InRelease                               
Ign:12 http://packages.linuxmint.com elsie InRelease                
Hit:13 http://packages.linuxmint.com elsie Release
Hit:14 https://repo.steampowered.com/steam stable InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

if I open the link:

https://content.minetest.net/api/packages/?type=mod&type=game&type=txp&protocol_version=42&engine_version=5.7.0&hide=nonfree&hide=desktop_default

in a browser (Firefox) it show a list of 1922 numbers, that appear to be the mods.

It is Minetest 5.7 that cannot load the page.

efa commented 1 year ago

if can help, I repeated the test with Chrome and Konqueror, and both fail to load the page, they show a page full of code like this:

`[{"author":"Warr1024","name":"nodecore","release":19169,"short_description":"Featured. Minetest's top original voxel game about emergent mechanics and exploration","thumbnail":"https://content.minetest.net/thumbnails/1/6b28be927c.jpg","title":"NodeCore","type":"game"},{"author":"yaman","name":"alter","release":16458,"short_description":"Featured. A challenging puzzle game in a dystopian future.","thumbnail":"https://content.minetest.net/thumbnails/1/7550c290b5.png","title":"Alter","type":"game"},{"author":"Minetest","name":"minetest_game","release":18024,"short_description":"Featured. A lightweight and well-maintained base for modding","thumbnail":"https://content.minetest.net/thumbnails/1/8ffd1409ff.jpg","title":"Minetest Game","type":"game"},{"author":"Mantar","name":"exile","release":18933,"short_description":"Featured. Challenging, at times brutal, wilderness survival with simple technology. ","thumbnail":"https://content.minetest.net/thumbnails/1/0195f6298c.jpg","title":"Exile","type":"game"},{"author":"Wuzz

...

pet","thumbnail":"https://content.minetest.net/thumbnails/1/5efb5c945c.png","title":"Adopt a Space Worm","type":"game"},{"author":"Thunder1035","name":"pacman","release":13328,"short_description":" A Pacman inspired game","thumbnail":"https://content.minetest.net/thumbnails/1/30dd1c84d2.png","title":"Arcade3D","type":"game"}] `

sfan5 commented 1 year ago

This is probably some edge case or packaging mistake with the AppImage. I suggest you use a different way to install Minetest. Nobody really uses/tests the AppImage and we can't support it properly.

rubenwardy commented 1 year ago

Yeah. That error happens when you have outdated CA certificates. Firefox uses its own certificate stores by default, not sure about Chrome, so not surprised they work. Given that the distro version works, it seems the problem is with the AppImage interferring with certs, not sure why given that it doesn't appear to contain a cert store

efa commented 1 year ago

for old CA certificate this is strange, as my Debian is updated, and I can regularly upload code via SSH certificate to my github repos, and apparently all other app in this distro work and remotely connect as expected.

Anyway I will re-try the flatpak if you say with that I can download mods, I saw the flatpak Minetest distribution download about 1 GB

efa commented 1 year ago

just tested the flatpak. It start but once in the main Windows, the button "Select Mods" do not do anything. I see no error message in the console:

efa@08i7-2500:~$ flatpak run net.minetest.Minetest
Quit message received.

BTW, it do not see (main window list show no entry) my worlds created by 5.3.0 Debian11, that are still listed by AppImage portable apps. My data ENV VAR is so:

efa@08i7-2500:~$ echo $XDG_DATA_DIRS
/usr/share/mate:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop:/var/lib/flatpak/exports/share:/home/efa/.local/share/flatpak/exports/share:/home/efa/.minetest
efa commented 1 year ago

Just saw that (with the AppImage, while work for the flatpak version) going to "Content" tab and clicking button "Browse online content" show "No packages could be retrieved". In the console I still see the error: 2023-06-12 22:36:59: ERROR[Main]: HTTPFetch for https://content.minetest.net/api/packages/?type=mod&type=game&type=txp&protocol_version=42&engine_version=5.7.0&hide=nonfree&hide=desktop_default failed (SSL peer certificate or SSH remote key was not OK)

Just tested the un-official 5.7.0 AppImage from here: https://github.com/An0n3m0us/Minetest-AppImages/releases this can find online mods and worlds with no error in the console. This version also see my worlds.

So this bug is still valid for 5.7 flatpak version, for mods from internet

efa commented 2 weeks ago

in the mean time I upgraded my distro from Mint/LMDE5/Debian11 to Debian12

5.7.0 AppImage from https://gitlab.com/minetest/minetest/-/tags/5.7.0

Operating system: Debian 12 CPU: Intel(R) Core(TM) i7-4710HQ CPU @ 2.50GHz

GPU model: GeForce GTX850M OpenGL version: 4.6 Mesa 22.3.6-1

Here pressing "Select Mods", then press "Find More Mods", find 435 mods, all works