-
Notifications
You must be signed in to change notification settings - Fork 427
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
Warning: Failed searching manifest: Failed fetching manifest - Failed downloading manifest #952
Comments
Same on Linux. First time I install
$ ./configure --lua-version=5.3 --prefix=$HOME/.luarocks
$ make bootstrap
$ which luarocks
$HOME/.luarocks/bin/luarocks $ luarocks install dkjosn
Warning: Failed searching manifest: Failed fetching manifest for https://luarocks.org - Failed downloading https://luarocks.org/manifest - $HOME/.cache/luarocks/https___luarocks.org/manifest
Warning: Failed searching manifest: Failed fetching manifest for https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/ - Failed downloading https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/manifest - $HOME/.cache/luarocks/https___raw.githubusercontent.com_rocks-moonscript-org_moonrocks-mirror_master_/manifest
Warning: Failed searching manifest: Failed fetching manifest for http://luafr.org/moonrocks/ - Failed downloading http://luafr.org/moonrocks/manifest - $HOME/.cache/luarocks/http___luafr.org_moonrocks_/manifest
Warning: Failed searching manifest: Failed fetching manifest for http://luarocks.logiceditor.com/rocks - Failed downloading http://luarocks.logiceditor.com/rocks/manifest - $HOME/.cache/luarocks/http___luarocks.logiceditor.com_rocks/manifest
Error: No results matching query were found. I can load manifest URLS in browser. It also fails a search, example: $ luarocks search dkjosn
Warning: Failed searching manifest: Failed fetching manifest for https://luarocks.org - Failed downloading https://luarocks.org/manifest - ...
dkjosn - Search results for Lua 5.3:
====================================
|
Installing with Tried and failed:
Happens also cloning the repo. Furthermore: $ luarocks install --verbose
...
os.execute: cd '$HOME/' && test '-e' '$HOME/./../../../../../../../../../.luarocks-no-project'
Results: 3
1 (nil): nil
2 (string): exit
3 (number): 1
io.popen: stat -c '%U' '$HOME/.cache/luarocks' 2> /dev/null
Error: Argument missing. See '$HOME/.luarocks/lib/luarocks/rocks-5.3/luarocks/dev-1/bin/luarocks help install'.
...
$ $HOME/.luarocks/lib/luarocks/rocks-5.3/luarocks/dev-1/bin/luarocks help install
lua: error loading module 'luarocks.core.cfg' from file '$HOME/.luarocks':
cannot read $HOME/.luarocks: Is a directory
stack traceback:
[C]: in ?
[C]: in function 'require'
...rocks/lib/luarocks/rocks-5.3/luarocks/dev-1/bin/luarocks:4: in main chunk
[C]: in ? |
Hello,
no change if I delete thank you. |
Containers often run things from the root directory. This makes the <name> argument mandatory when running `luarocks init` from `/`. See #952 (comment)
Avoid reporting itself via the true path of the script; use the wrapper instead. That is, instead of ``` Error: Argument missing. See '$HOME/.luarocks/lib/luarocks/rocks-5.3/luarocks/dev-1/bin/luarocks help install'. ``` report ``` Error: Argument missing. See '$HOME/.luarocks/bin/luarocks help install'. ``` See #952 (comment)
@vincentkerdraon You need to add the |
Still no luck. |
macOS 10.15.6 is also the same problem |
Arch Linux: problem could be fixed. EDIT: Problems were wrong permissions due to default settings of a sandboxing solution (firejail). |
What is this really mean? I am newer to Lua. |
I successfully fix this by setting environment var, maybe help for others. export https_proxy=192.168.31.45:12333
export http_proxy=192.168.31.45:12333
|
It means that you might need to install |
I hit this issue when running luarocks on alpine linux. Alpine linux includes a Edit: see the implementation at luarocks/src/luarocks/fs/tools.lua Line 157 in 85f1549
luarocks/src/luarocks/fs/tools.lua Line 19 in 85f1549
|
Given that the |
We'd end up restricted to whatever limitations a third-party reimplementation of the tool we're trying to use decided to impose; we're using those flags for practical reasons. I've put the effort to make LuaRocks flexible enough to use GNU Wget, Curl and LuaSocket and three backends it's already enough... On another note, most of the failures reported in this PR look totally unrelated. What I think we should actually do is to start always building LuaRocks as a binary bundling LuaSocket and stop using third-party CLI tools altogether, but that would require a non-trivial effort in reworking our build process (the current process for building LuaRocks binaries is not designed to bootstrap on a system from scratch). |
Lua isn't the main language I work in, but it looks like luarocks/src/luarocks/fs/tools.lua Lines 16 to 36 in 85f1549
It appears that the order of preference was changed between versions Most of the docs out in the world recommend installing Rather than limiting the flags used, perhaps the code at luarocks/src/luarocks/fs/lua.lua Lines 124 to 126 in 4f66ca5
wget --version to ensure that the version of wget called is GNU wget .
Alternatively, the LuaSocket fix sounds amazing as a user of luarocks. I agree the bug reports seem to stem from different issues related to calling CLI tools that may or may not exist. |
The build process for |
I have the same problem,
It seems that the Environmental Information:
I found that LuaRocks 3.8.0 is ok.
|
Indeed I'm removing sed -i '/WGET/d' /usr/local/share/lua/5.1/luarocks/fs/tools.lua |
@carnei-ro I recognized this in my luarocks docker containers just now and find out that it's the busybox version of wget which don't have the option. After running |
If it is going to prioritize it above other options |
ran into this exact issue today as well. Seems like it should indeed detect. Or see if we can do without that |
First time to use Lua on my Macbook. Surprised to be blocked by such a basic function. Wasted hours of time to search around, I found it's caused by broken wget installation. After I run |
I'm using MacOS. Running |
using alpine 3.18 under LXD container, I choose to install luarocks from source, it works
|
I confirm that this adding fixed my pipeline too : https://github.com/sm360/nginx-ingress-controller-with-lua-resty-openidc/blob/main/Dockerfile#L10 Thanks for sharing it 👍 |
Hi, same here. hello from 2023) |
I followed the instructions to install luarocks on Windows 7, but I cannot install any rocks. It seems that luarocks is incapable of downloading the manifest.
I have successfully manually visited the manifest page. My web browser is capable of downloading the manifest and displaying it to me.
Does anyone know how this failure occurs?
command line log:
The text was updated successfully, but these errors were encountered: