Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to do download manifests, files, etc etc #1666

Open
justdie386 opened this issue Apr 20, 2024 · 3 comments
Open

Unable to do download manifests, files, etc etc #1666

justdie386 opened this issue Apr 20, 2024 · 3 comments
Labels

Comments

@justdie386
Copy link

justdie386 commented Apr 20, 2024

Please read the following before submitting:

  • Please do NOT submit bug reports for questions. Ask questions in the Gitter
    chat-room
    .
  • Please do NOT submit duplicate bug reports. Look through the issue
    tracker
    before submitting.

Please fill out the following:

  • Platform:

    • Windows.
  • LuaRocks version:

    • luarocks 3.11.0 LuaRocks main command-line interface
  • Configuration file:

lua_version = "5.1"
rocks_trees = {
   "C:\\Users\\justi\\OneDrive\\Bureau\\lua\\luarocks\\rocks"
}
variables = {
   CC = "x86_64-w64-mingw32-gcc",
   CURL = "C:\\Users\\justi\\scoop\\shims\\curl.exe",
   LUA_BINDIR = "C:\\Users\\justi\\OneDrive\\Bureau\\lua\\bin",
   LUA_DIR = "C:\\Users\\justi\\OneDrive\\Bureau\\lua\\",
   LUA_INCDIR = "C:\\Users\\justi\\OneDrive\\Bureau\\lua\\include",
   LUA_LIBDIR = "C:\\Users\\justi\\OneDrive\\Bureau\\lua\\lib",
   WGET = "C:\\Users\\justi\\OneDrive\\Bureau\\lua\\bin\\wget.exe"
}
  • LuaRocks output from when the issue occurred:
fs.is_superuser()
fs.check_command_permissions(table: 0000000002a542b0)
fs.exists("C:\\Users\\justi\\OneDrive\\Bureau\\lua\\luarocks\\rocks\\lib\\luarocks\\rocks-5.1")
fs.is_writable("C:\\Users\\justi\\OneDrive\\Bureau\\lua\\luarocks\\rocks\\lib\\luarocks\\rocks-5.1")
fs.is_dir("C:\\Users\\justi\\OneDrive\\Bureau\\lua\\luarocks\\rocks\\lib\\luarocks\\rocks-5.1")
fs.absolute_name("C:\\Users\\justi\\OneDrive\\Bureau\\lua\\luarocks\\rocks\\lib\\luarocks\\rocks-5.1")
fs.exists("C:\\Users\\justi\\OneDrive\\Bureau\\lua\\luarocks\\rocks\\lib\\luarocks\\rocks-5.1\\tmpluarockstestwritable.deleteme")
fs.exists("C:\\Users\\justi\\OneDrive\\Bureau\\lua\\luarocks\\rocks\\share\\lua\\5.1")
fs.is_writable("C:\\Users\\justi\\OneDrive\\Bureau\\lua\\luarocks\\rocks\\share\\lua\\5.1")
fs.is_dir("C:\\Users\\justi\\OneDrive\\Bureau\\lua\\luarocks\\rocks\\share\\lua\\5.1")
fs.absolute_name("C:\\Users\\justi\\OneDrive\\Bureau\\lua\\luarocks\\rocks\\share\\lua\\5.1")
fs.exists("C:\\Users\\justi\\OneDrive\\Bureau\\lua\\luarocks\\rocks\\share\\lua\\5.1\\tmpluarockstestwritable.deleteme")
fs.exists("C:\\Users\\justi\\OneDrive\\Bureau\\lua\\luarocks\\rocks\\bin")
fs.root_of("C:\\Users\\justi\\OneDrive\\Bureau\\lua\\luarocks\\rocks\\bin")
fs.absolute_name("C:\\Users\\justi\\OneDrive\\Bureau\\lua\\luarocks\\rocks\\bin")
fs.exists("C:\\Users\\justi\\OneDrive\\Bureau\\lua\\luarocks\\rocks")
fs.is_writable("C:\\Users\\justi\\OneDrive\\Bureau\\lua\\luarocks\\rocks")
fs.is_dir("C:\\Users\\justi\\OneDrive\\Bureau\\lua\\luarocks\\rocks")
fs.absolute_name("C:\\Users\\justi\\OneDrive\\Bureau\\lua\\luarocks\\rocks")
fs.exists("C:\\Users\\justi\\OneDrive\\Bureau\\lua\\luarocks\\rocks\\tmpluarockstestwritable.deleteme")
fs.exists("C:\\Users\\justi\\OneDrive\\Bureau\\lua\\luarocks\\rocks\\share\\lua\\5.1")
fs.is_writable("C:\\Users\\justi\\OneDrive\\Bureau\\lua\\luarocks\\rocks\\share\\lua\\5.1")
fs.is_dir("C:\\Users\\justi\\OneDrive\\Bureau\\lua\\luarocks\\rocks\\share\\lua\\5.1")
fs.absolute_name("C:\\Users\\justi\\OneDrive\\Bureau\\lua\\luarocks\\rocks\\share\\lua\\5.1")
fs.exists("C:\\Users\\justi\\OneDrive\\Bureau\\lua\\luarocks\\rocks\\share\\lua\\5.1\\tmpluarockstestwritable.deleteme")
fs.lock_access("C:\\Users\\justi\\OneDrive\\Bureau\\lua\\luarocks\\rocks", nil)
fs.make_dir("C:\\Users\\justi\\OneDrive\\Bureau\\lua\\luarocks\\rocks")
fs.file_age("C:\\Users\\justi\\OneDrive\\Bureau\\lua\\luarocks\\rocks\\lockfile.lfs")

os.execute:     C:"\Users\justi\OneDrive\Bureau\lua\\bin\lua5.1.exe" -e "io.write(tostring(jit and jit.version:gsub([[^%S+ (%S+).*]], [[%1]])))" > C:\Users\justi\AppData\Local\Temp/luarocks-4518
..........: 0
fs.make_dir("C:\\Users\\justi\\AppData\\Local\\LuaRocks\\Cache\\https___luarocks.org")
fs.file_age("C:\\Users\\justi\\AppData\\Local\\LuaRocks\\Cache\\https___luarocks.org\\manifest-5.1.zip.check")
fs.lock_access("C:\\Users\\justi\\AppData\\Local\\LuaRocks\\Cache\\https___luarocks.org")
fs.make_dir("C:\\Users\\justi\\AppData\\Local\\LuaRocks\\Cache\\https___luarocks.org")
fs.file_age("C:\\Users\\justi\\AppData\\Local\\LuaRocks\\Cache\\https___luarocks.org\\lockfile.lfs")
fs.download("https://luarocks.org/manifest-5.1.zip", "C:\\Users\\justi\\AppData\\Local\\LuaRocks\\Cache\\https___luarocks.org\\manifest-5.1.zip", true)
fs.absolute_name("C:\\Users\\justi\\AppData\\Local\\LuaRocks\\Cache\\https___luarocks.org\\manifest-5.1.zip")
fs.unlock_access(lock metatable: 0000000002b44f68)
fs.make_dir("C:\\Users\\justi\\AppData\\Local\\LuaRocks\\Cache\\https___luarocks.org")
fs.file_age("C:\\Users\\justi\\AppData\\Local\\LuaRocks\\Cache\\https___luarocks.org\\manifest-5.1.check")
fs.lock_access("C:\\Users\\justi\\AppData\\Local\\LuaRocks\\Cache\\https___luarocks.org")
fs.make_dir("C:\\Users\\justi\\AppData\\Local\\LuaRocks\\Cache\\https___luarocks.org")
fs.file_age("C:\\Users\\justi\\AppData\\Local\\LuaRocks\\Cache\\https___luarocks.org\\lockfile.lfs")
fs.download("https://luarocks.org/manifest-5.1", "C:\\Users\\justi\\AppData\\Local\\LuaRocks\\Cache\\https___luarocks.org\\manifest-5.1", true)
fs.absolute_name("C:\\Users\\justi\\AppData\\Local\\LuaRocks\\Cache\\https___luarocks.org\\manifest-5.1")
fs.unlock_access(lock metatable: 0000000002b44298)
Warning: Failed searching manifest: Failed downloading https://luarocks.org/manifest-5.1 - host or service not provided, or not known
fs.make_dir("C:\\Users\\justi\\AppData\\Local\\LuaRocks\\Cache\\https___raw.githubusercontent.com_rocks-moonscript-org_moonrocks-mirror_master")
fs.file_age("C:\\Users\\justi\\AppData\\Local\\LuaRocks\\Cache\\https___raw.githubusercontent.com_rocks-moonscript-org_moonrocks-mirror_master\\manifest-5.1.zip.check")
fs.lock_access("C:\\Users\\justi\\AppData\\Local\\LuaRocks\\Cache\\https___raw.githubusercontent.com_rocks-moonscript-org_moonrocks-mirror_master")
fs.make_dir("C:\\Users\\justi\\AppData\\Local\\LuaRocks\\Cache\\https___raw.githubusercontent.com_rocks-moonscript-org_moonrocks-mirror_master")
fs.file_age("C:\\Users\\justi\\AppData\\Local\\LuaRocks\\Cache\\https___raw.githubusercontent.com_rocks-moonscript-org_moonrocks-mirror_master\\lockfile.lfs")
fs.download("https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/manifest-5.1.zip", "C:\\Users\\justi\\AppData\\Local\\LuaRocks\\Cache\\https___raw.githubusercontent.com_rocks-moonscript-org_moonrocks-mirror_master\\manifest-5.1.zip", true)
fs.absolute_name("C:\\Users\\justi\\AppData\\Local\\LuaRocks\\Cache\\https___raw.githubusercontent.com_rocks-moonscript-org_moonrocks-mirror_master\\manifest-5.1.zip")
fs.unlock_access(lock metatable: 0000000002b44518)
fs.make_dir("C:\\Users\\justi\\AppData\\Local\\LuaRocks\\Cache\\https___raw.githubusercontent.com_rocks-moonscript-org_moonrocks-mirror_master")
fs.file_age("C:\\Users\\justi\\AppData\\Local\\LuaRocks\\Cache\\https___raw.githubusercontent.com_rocks-moonscript-org_moonrocks-mirror_master\\manifest-5.1.check")
fs.lock_access("C:\\Users\\justi\\AppData\\Local\\LuaRocks\\Cache\\https___raw.githubusercontent.com_rocks-moonscript-org_moonrocks-mirror_master")
fs.make_dir("C:\\Users\\justi\\AppData\\Local\\LuaRocks\\Cache\\https___raw.githubusercontent.com_rocks-moonscript-org_moonrocks-mirror_master")
fs.file_age("C:\\Users\\justi\\AppData\\Local\\LuaRocks\\Cache\\https___raw.githubusercontent.com_rocks-moonscript-org_moonrocks-mirror_master\\lockfile.lfs")
fs.download("https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/manifest-5.1", "C:\\Users\\justi\\AppData\\Local\\LuaRocks\\Cache\\https___raw.githubusercontent.com_rocks-moonscript-org_moonrocks-mirror_master\\manifest-5.1", true)
fs.absolute_name("C:\\Users\\justi\\AppData\\Local\\LuaRocks\\Cache\\https___raw.githubusercontent.com_rocks-moonscript-org_moonrocks-mirror_master\\manifest-5.1")
fs.unlock_access(lock metatable: 0000000002b447e8)
Warning: Failed searching manifest: Failed downloading https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/manifest-5.1 - host or service not provided, or not known
fs.make_dir("C:\\Users\\justi\\AppData\\Local\\LuaRocks\\Cache\\https___loadk.com_luarocks")
fs.file_age("C:\\Users\\justi\\AppData\\Local\\LuaRocks\\Cache\\https___loadk.com_luarocks\\manifest-5.1.zip.check")
fs.lock_access("C:\\Users\\justi\\AppData\\Local\\LuaRocks\\Cache\\https___loadk.com_luarocks")
fs.make_dir("C:\\Users\\justi\\AppData\\Local\\LuaRocks\\Cache\\https___loadk.com_luarocks")
fs.file_age("C:\\Users\\justi\\AppData\\Local\\LuaRocks\\Cache\\https___loadk.com_luarocks\\lockfile.lfs")
fs.download("https://loadk.com/luarocks/manifest-5.1.zip", "C:\\Users\\justi\\AppData\\Local\\LuaRocks\\Cache\\https___loadk.com_luarocks\\manifest-5.1.zip", true)
fs.absolute_name("C:\\Users\\justi\\AppData\\Local\\LuaRocks\\Cache\\https___loadk.com_luarocks\\manifest-5.1.zip")
fs.unlock_access(lock metatable: 0000000002b6fd68)
fs.make_dir("C:\\Users\\justi\\AppData\\Local\\LuaRocks\\Cache\\https___loadk.com_luarocks")
fs.file_age("C:\\Users\\justi\\AppData\\Local\\LuaRocks\\Cache\\https___loadk.com_luarocks\\manifest-5.1.check")
fs.lock_access("C:\\Users\\justi\\AppData\\Local\\LuaRocks\\Cache\\https___loadk.com_luarocks")
fs.make_dir("C:\\Users\\justi\\AppData\\Local\\LuaRocks\\Cache\\https___loadk.com_luarocks")
fs.file_age("C:\\Users\\justi\\AppData\\Local\\LuaRocks\\Cache\\https___loadk.com_luarocks\\lockfile.lfs")
fs.download("https://loadk.com/luarocks/manifest-5.1", "C:\\Users\\justi\\AppData\\Local\\LuaRocks\\Cache\\https___loadk.com_luarocks\\manifest-5.1", true)
fs.absolute_name("C:\\Users\\justi\\AppData\\Local\\LuaRocks\\Cache\\https___loadk.com_luarocks\\manifest-5.1")
fs.unlock_access(lock metatable: 0000000002b6eff8)
Warning: Failed searching manifest: Failed downloading https://loadk.com/luarocks/manifest-5.1 - host or service not provided, or not known
fs.unlock_access(lock metatable: 0000000002b44e78)

Error: No results matching query were found for Lua 5.1.
To check if it is available for other Lua versions, use --check-lua-versions.
fs.change_dir_to_root()
  • Description:
    Really not sure, i uninstalled the chocolatey package manager, for some reason, and since then, it has failed to download any packages, with the error: failed to download manifest etc etc host or service not provided, or not known
    I ran the official uninstallation script from their website, but doubt it could be the issue
    https://docs.chocolatey.org/en-us/choco/uninstallation

    Weird enough, it can downloads files no problem on msys2, only issue being the classic "cannot create directory". I suspect it is because luarocks is still using window's default wget, which probably won't doesn't work with luarocks, even tho i set the proper wget.exe in the config.lua as shown above, which i got from the repo's win32/tools/wget.exe

@hishamhm
Copy link
Member

From the debug logs it looks like LuaRocks is not using wget, but rather attempting to download it on its own, using luasocket + luasec. It looks like this "host or service not provided, or not known" message comes from LuaSec: https://github.com/lunarmodules/luasec/blob/master/src/luasocket/wsocket.c#L414

The EAI_NONAME error hints at a DNS problem? This seems to be a duplicate of #1507 — I'm not sure how to further diagnose this.

@justdie386
Copy link
Author

It happened after installing chocolatey, so it probably messed something up deep down, i'll prob just reinstall windows, should fix the issue.

@smbape
Copy link

smbape commented Jun 13, 2024

I had the same problem after reinstalling wsl.
Deleting the folder %USERPROFILE%\AppData\Local\LuaRocks\Cache resolved the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants