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
Global install fails on Amazon Linux 2 #525
Comments
to keep track when trying to tackle this late, because this issue seems to have multiple sub-issues, here are all that i found:
could you maybe provide debug logs for both when not using and using (and because i am not familiar with amazon's environment, could you also maybe provide a way for me to test it locally if possible?) |
btw, in your code block for |
Thanks for the quick response. Earlier I was able to use Docker (see steps under |
Ok, today I was able to use Docker again to reproduce the issue. Here's the debug output without specifying the download URL
And here it is with specifying the download URL (I've tried the rhel70 this time)
Yeah, that was just a formatting issue. I've edited the issue description to fix it. |
ok, now i see the issue for the binary name & download url: PS: i hope you dont mind me editing your post to be more readable |
Note: created issue #528 to track deriving binary name from config options |
Here you go: cat /etc/os-release
Thanks, I learned something new today ;-) |
thanks, i guess i know where the problem is:
|
with 8609c49 (included in the released 7.3.5), the fix for the extra quote is included |
with ce42fad, multiple |
Here you go: npm install mongodb-memory-server-global@7.4.0-beta.1
The download URL does not seem to work yet. Was your goal to support Amazon 2 or use one of the "likes"? For Amazon 2 the download URL would be |
not yet, see #527
yes, this was more or less the intention, which with the log got confirmed, thanks, but like mentioned earlier in #525 (comment) (first in the list): but from first impressions, it looks like it does not generate a correct |
i am currently looking into this (as mentioned in #525 (comment)), could you provide when you tried to use this option? (like did the binary already exist locally or still needed to be downloaded) |
version
|
Regarding "did the download file already exists": I usually remove the Here's the result with beta 2 npm install mongodb-memory-server-global@7.4.0-beta.2
Download now works, but the extraction somehow fails. Any ideas?
|
what exactly do you mean? guessing from the log and your PS: if you mean the size of the binary, no this is not wrong, i downloaded the archive and looked at the file, it is ~61-~63MB (depending on how its shown / counted) PPS: i would not recommend to have your project in the root of your container (i would recommend to at least put it in a dedicated directory) |
You're right: The binary looks good and is working. Not sure what I had in mind yesterday. So all good then, thanks! 👍 PPS: Right, I'm just using root in my test container. It's not the setup I have in the real project. |
Versions
What is the Problem?
Installation of the mongodb dist fails with
When looking up the URL on https://www.mongodb.org/dl/linux I think it should be
linux/mongodb-linux-x86_64-amazon2-4.0.25.tgz
. Maybelinux/mongodb-linux-x86_64-rhel70-4.0.25.tgz
would also work. Note thatrhel
seems to no longer exist, butrhel70
does. I guess we could open another issue for that.I've tried setting the download URL via
export MONGOMS_DOWNLOAD_URL=https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-amazon2-v3.6-latest.tgz
. This makes the download succeed, but the package is placed with a weird name and subsequent commands fail:Specifying the download url and version leads to a similar result:
This is how the ~/.cache/mongodb-binaries/ looks after running the above:
I've also tried setting
MONGOMS_ARCH=linux-x86_64-amazon2
. This does not seem to change anything.Code Example
Start a container with Amazon Linux 2, for example:
Then from inside the container
Do you know why it happenes?
no
The text was updated successfully, but these errors were encountered: