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

Failed to Install Mongodb 4.2.3 #8

Open
byteshiva opened this issue Jan 24, 2020 · 9 comments
Open

Failed to Install Mongodb 4.2.3 #8

byteshiva opened this issue Jan 24, 2020 · 9 comments

Comments

@byteshiva
Copy link

Failed to Install Mongodb 4.2.3

➜ asdf install mongodb 4.2.3
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   243    0   243    0     0    201      0 --:--:--  0:00:01 --:--:--   201

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

@jmromer
Copy link
Contributor

jmromer commented Apr 1, 2020

Looks like the tarball URL is no longer valid — we're getting back XML:

<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>96F941E55E607993</RequestId><HostId>FAIRcWDpbqq9fRdgOMLtMYk36aGOit6hyNN1a1jPt8mfqpUNcKn4ZA3SpHXq6Srgf5d0I/OjkDM=</HostId></Error>
% asdf install mongodb 4.2.3

+ install_mongo version 4.2.3 ~/.asdf/installs/mongodb/4.2.3
+ local install_type=version
+ local version=4.2.3
+ local install_path=~/.asdf/installs/mongodb/4.2.3
+ local platform=
+ local arch=
+ local tempdir=
+ local tempfile=
+ local filename=
+ local download_url=
++ uname
+ '[' Linux = Darwin ']'
+ platform=osx
++ uname -m
+ '[' x86_64 = x86_64 ']'
+ arch=x86_64
+ '[' linux = osx ']'
++ mktemp -dt asdf-mongodb.XXXX
+ tempdir=/var/folders/7c/nwp4zv3574n24s27qgxfxkrm0000gn/T/asdf-mongodb.EMna
+ [[ linux = \o\s\x ]]
+ filename=mongodb-osx-ssl-x86_64-4.2.3.tgz
+ tempfile=/var/folders/7c/nwp4zv3574n24s27qgxfxkrm0000gn/T/asdf-mongodb.EMna/mongodb-osx-ssl-x86_64-4.2.3.tgz
+ download_url=https://fastdl.mongodb.org/osx/mongodb-osx-ssl-x86_64-4.2.3.tgz
+ curl -L https://fastdl.mongodb.org/osx/mongodb-osx-ssl-x86_64-4.2.3.tgz -o /var/folders/7c/nwp4zv3574n24s27qgxfxkrm0000gn/T/asdf-mongodb.EMna/mongodb-osx-ssl-x86_64-4.2.3.tgz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- -100   243    0   243    0     0   1567      0 --:--:-- --:--:-- --:--:--  1567
+ cat /var/folders/7c/nwp4zv3574n24s27qgxfxkrm0000gn/T/asdf-mongodb.EMna/mongodb-osx-ssl-x86_64-4.2.3.tgz

<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>96F941E55E607993</RequestId><HostId>FAIRcWDpbqq9fRdgOMLtMYk36aGOit6hyNN1a1jPt8mfqpUNcKn4ZA3SpHXq6Srgf5d0I/OjkDM=</HostId></Error>

+ tar zxf /var/folders/7c/nwp4zv3574n24s27qgxfxkrm0000gn/T/asdf-mongodb.EMna/mongodb-osx-ssl-x86_64-4.2.3.tgz -C /Users/jmromer/.asdf/installs/mongodb/4.2.3 --strip-components=1

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
+ exit 1

@jmromer
Copy link
Contributor

jmromer commented Apr 1, 2020

@byteshiva There's a PR up for this: #9

@byteshiva
Copy link
Author

@byteshiva There's a PR up for this: #9

Will this PR work for linux ubuntu platforms.

@jmromer
Copy link
Contributor

jmromer commented Apr 2, 2020

No, thanks for clarifying though — I updated the PR.

It looks like the linux URL format has been changed substantially:

https://repo.mongodb.org/apt/ubuntu/dists/xenial/mongodb-org/4.2/multiverse/binary-amd64/mongodb-org-server_4.2.5_amd64.deb

see: https://www.mongodb.com/download-center/community

@byteshiva
Copy link
Author

byteshiva commented Apr 3, 2020

No, thanks for clarifying though — I updated the PR.

It looks like the linux URL format has been changed substantially:

https://repo.mongodb.org/apt/ubuntu/dists/xenial/mongodb-org/4.2/multiverse/binary-amd64/mongodb-org-server_4.2.5_amd64.deb

see: https://www.mongodb.com/download-center/community

Thanks , is it possible in future to support Linux platform for latest versions of MongoDB

@jmromer
Copy link
Contributor

jmromer commented Apr 3, 2020 via email

@ma-koyama
Copy link

ma-koyama commented Sep 17, 2020

@sylph01
Hey, if u fix the code follow my code, u can maybe resolve this issue.
I'm sorry if they're wrong.

Incorrect ( asdf-mongodb/bin/install )

tar zxf "${tempfile}" -C $install_path --strip-components=1 || exit 1

Correct ( asdf-mongodb/bin/install )

tar xvf "${tempfile}" -C $install_path --strip-components=1 || exit 1

@megatux
Copy link

megatux commented Nov 25, 2020

Hi, just to add some more info to help on creating a PR and fix this issue, I visited the releases page at https://www.mongodb.com/download-center/community/releases and choose this tar file for my Manjaro Linux distro: https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu1804-4.4.2.tgz setting the download_url variable in ~/.asdf/plugins/mongodb/bin/install script and seems to be working correctly.

$ mongod --version
db version v4.4.2
Build Info: {
    "version": "4.4.2",
    "gitVersion": "15e73dc5738d2278b688f8929aee605fe4279b0e",
    "openSSLVersion": "OpenSSL 1.1.1h  22 Sep 2020",
    "modules": [],
    "allocator": "tcmalloc",
    "environment": {
        "distmod": "ubuntu1804",
        "distarch": "x86_64",
        "target_arch": "x86_64"
    }
}

@Blaze34
Copy link
Contributor

Blaze34 commented Feb 19, 2021

May be it'll solve problem for somebody
#11

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

No branches or pull requests

5 participants