realm / realm-swift

Realm is a mobile database: a replacement for Core Data & SQLite
https://realm.io
Apache License 2.0
16.32k stars 2.15k forks source link

pod install 0.95.0 failed #2446

Closed goreycn closed 9 years ago

goreycn commented 9 years ago

Try to install realm with Cocoapods, I got the message below

Installing Realm (0.95.0)
[!] /bin/bash -c
set -e
sh build.sh cocoapods-setup

core is not a symlink. Deleting...
Downloading dependency: core 0.92.1.1
Downloading core failed. Please try again once you have an Internet connection.

and pod version:

pod --version
0.38.2
segiddins commented 9 years ago

Can you try again, ensuring that you have an active internet connection while installing?

codesourse commented 9 years ago

Installing Realm (0.94.1) [!] /bin/bash -c set -e sh build.sh cocoapods-setup

core is not a symlink. Deleting... Downloading dependency: core 0.92.1.1 Downloading core failed. Please try again once you have an Internet connection.

codesourse commented 9 years ago

Installing Realm (0.95.0) [!] /bin/bash -c set -e sh build.sh cocoapods-setup

core is not a symlink. Deleting... Downloading dependency: core 0.92.1.1 Downloading core failed. Please try again once you have an Internet connection.

codesourse commented 9 years ago

I meet it, too

segiddins commented 9 years ago

@jpsim is it possible your S3 configuration changes could've caused this?

codesourse commented 9 years ago

I installing others is ok.

Downloading dependencies Installing AFNetworking (2.5.4) Installing ASProgressPopUpView (0.8) Installing Base64nl (1.2) Installing FCUUID (1.1.4) Installing GZIP (1.0.3) Installing IGDigest (1.1.2) Installing Mantle (2.0.4) Installing Realm (0.95.0) [!] /bin/bash -c set -e sh build.sh cocoapods-setup

core is not a symlink. Deleting... Downloading dependency: core 0.92.1.1 Downloading core failed. Please try again once you have an Internet connection.

segiddins commented 9 years ago

This is strange, since I'm not having any trouble downloading the core zip myself

jpsim commented 9 years ago

@jpsim is it possible your S3 configuration changes could've caused this?

That's the most likely option I can think of too. @codesourse would it be possible for you to share your public IP address with us? You can email it to us privately to help@realm.io if you prefer. We recently had to implement some IP filtering to prevent Realm from being downloaded from countries that we aren't allowed to export to, and I get the feeling that this filtering is affecting you.

bdash commented 9 years ago

I can reproduce the error myself 9 times out of 10. Running the curl step manually, with arguments tweaked to get decent errors, I see that I'm getting HTTP/1.1 403 Forbidden.

codesourse commented 9 years ago

@jpsim i sent your email.

goreycn commented 9 years ago

We recently had to implement some IP filtering to prevent Realm from being downloaded from countries that we aren't allowed to export to, and I get the feeling that this filtering is affecting you.

That's the point , so I have to give it up (cocoapod)?

any way, realm.framework works well.

haitham-aboshahba-sociomantic commented 9 years ago

I have the exact same error with Realm 0.95, internet connection is active, cocoapods 0.38.2 . After trying with cURL from terminal, i've got 403 Forbidden

padarom commented 9 years ago

Can confirm this (from Germany).

Have been wondering why I'm getting a message such as Version <html><head><title>403 Forbidden</title></head>....</html> is now available ... while running my app and now I can't update anymore. Before looking deeper into this issue, I have followed another recommendation to delete a couple of folders (including Pods/RealmCocoa), so my current installation is gone now.

It's not this IP address alone, I've tried from work and from home and it's 403 Forbidden for both.

We recently had to implement some IP filtering to prevent Realm from being downloaded from countries that we aren't allowed to export to, and I get the feeling that this filtering is affecting you.

Does this mean you're not allowed to export this software to Germany? o.O

haitham-aboshahba-sociomantic commented 9 years ago

@Padarom exactly, i'm trying from Berlin :) and my installation is gone as i deleted the Pods and xxxx.xcworkspace

shayanbo commented 9 years ago

Beacause of bad net env. the prepare command Realm provide is sh build.sh cocoapod-setup, mainly code is download realm-core, download realm-core if $TMPDIR/core_bin/core-${REALM_CORE_VERSION}.tar.bz2 file not exists. so if you downloads always failed, you can download realm-core directly according to url provided by build.sh (shell script function download_core), and then backup it, when you need pod install realm, you can mv it to $TMPDIR/core_bin/core-${REALM_CORE_VERSION}.tar.bz2.

${REALM_CORE_VERSION} is core version , such as 0.92.1.1

padarom commented 9 years ago

There's even a 403 Forbidden when manually going on static.realm.io (which is where it's hosted), no matter which file we try to access. So there's no chance manually downloading without using a VPN or something the like.

I've sent a mail to help@realm.io so they can investigate a bit further. Can't really continue my work right now, so that's a bad thing.

shayanbo commented 9 years ago

I put last realm-core 0.92.1.1 to my dropbox, https://www.dropbox.com/s/r0w7u1ox5n4i3ms/core-0.92.1.1.tar.bz2?dl=0

haitham-aboshahba-sociomantic commented 9 years ago

great , Thanks :+1:

haitham-aboshahba-sociomantic commented 9 years ago

i confirm it's working now after downloading the file from @MickeyHub 's dropbox and placing into $TMPDIR/core_bin/

thanks again

padarom commented 9 years ago

Worked like a charm, thanks :+1: At least I'm able to get working again for now :)

Though the issue should still be looked into for the future

shayanbo commented 9 years ago

almost always failed for China's net env.😂

jpsim commented 9 years ago

Sorry about the trouble, we've disabled IP filtering on AWS S3 for the time being so you should now be able to download core (and other assets served from static.realm.io).

austinkettner commented 9 years ago

I am experiencing this exact issue right now targetting 0.95.0. Also your website links all lead to errors, confirming access problems (at least on my end). @jpsim

jpsim commented 9 years ago

@austinkettner we're experiencing issues with S3 since 9am Pacific Time this morning. I'll post again here once we've resolved the issues.

austinkettner commented 9 years ago

Thanks @jpsim, much appreciated!

jpsim commented 9 years ago

Ok, now resolved. It may take a few minutes for these changes to propagate. Thanks for your patience.

bnadim commented 9 years ago

Hi, I am experiencing the same issue from France trying to get the branch swift 2.0

jpsim commented 9 years ago

@bnadim that sounds like a different issue, please open a new ticket at https://github.com/realm/realm-cocoa/issues/new

luohui8891 commented 9 years ago

Still got following issue:

[!] /bin/bash -c
set -e
sh build.sh cocoapods-setup

core is not a symlink. Deleting...
Downloading dependency: core 0.92.2
Downloading core failed. Please try again once you have an Internet connection.
jpsim commented 9 years ago

Looks like Realm's core binaries couldn't be downloaded, as the message indicates. If you generally have difficulty downloading large assets from AWS S3 hosted in the US, that could explain the issue. Only advice I can give is to try again.

luohui8891 commented 9 years ago

Thanks @jpsim . And yes, the core has been download after 10+ times.

shayanbo commented 9 years ago

same as @luohui8891, I want to die

luohui8891 commented 9 years ago

@MickeyHub hey guy, just FYI, I have tried again via US VPN, it works.

neugartf commented 9 years ago

Same here, tried it several times. No success.

[!] /bin/bash -c 
set -e
sh build.sh cocoapods-setup

core is not a symlink. Deleting...
Downloading dependency: core 0.94.0
Downloading core failed. Please try again once you have an Internet connection.

Is there any ip address or url I can verify with that this is in fact caused by aws s3? Thanks!

neugartf commented 9 years ago

thanks @MickeyHub , that worked! Although it's important to rename the downloaded file to "core-VERSION.tar.bz2".

shayanbo commented 9 years ago

@luohui8891 ,Thank you, I think it'll be OK. @neugartf , I updated dropbox share link to latest realm-core(0.94.0, tag:v0.96.0) realm-core

losingle commented 9 years ago

I meet it, too

 > Running prepare command
   $ /bin/bash -c  set -e sh build.sh cocoapods-setup
   core is not a symlink. Deleting...
   Downloading dependency: core 0.94.0
   Downloading core failed. Please try again once you have an Internet connection.
[!] /bin/bash -c
set -e
sh build.sh cocoapods-setup

core is not a symlink. Deleting...
Downloading dependency: core 0.94.0
Downloading core failed. Please try again once you have an Internet connection.
beeender commented 9 years ago

@losingle What is the ISP you are using? China Telecom?

losingle commented 9 years ago

@beeender China Telecom over Japan VPN

shayanbo commented 9 years ago

ditto

hengchengfei commented 9 years ago

directly download the latest version core-0.94.0.tar.bz2. put it to the folder $TMPDIR/core_bin.

2015-10-26 4 40 08

allensu212 commented 8 years ago

have the same issue here:

[!] /bin/bash -c set -e sh build.sh cocoapods-setup

core is not a symlink. Deleting... Downloading dependency: core 0.95.5 Downloading core failed. Please try again once you have an Internet connection.

@jpsim ,does Taiwan is one of countries that is affected by IP filtering? Thank you

jpsim commented 8 years ago

@jpsim ,does Taiwan is one of countries that is affected by IP filtering? Thank you

No, only the countries listed as blocked in our README.

ytrugg commented 8 years ago

I have the same issue here from Holland. I'm trying to download realm core 0.95.5.

cookeri6 commented 8 years ago

Having this issue from the US. Any progress been made on this?

mrackwitz commented 8 years ago

We're tracking this issue now by #2713, please take a look at the proposed workaround there and whether your error matches the output shown there, when trying to download the latest version of Realm. If that shouldn't fix it, please open up a new issue instead.

zhangxistudy11 commented 8 years ago

@MickeyHub You are right.I meet this issue frequently in China.

bitraven commented 8 years ago

I had this problem today after updating Cocoapods from 0.39.0 to 1.0.1 then to 1.1.0.rc.2

prior to the 1.0.1 upgrade, pod install would properly install RealmSwift, but after, I got the error:

[!] /bin/bash -c set -e sh build.sh cocoapods-setup

I downgraded back to 0.39.0 and ran pod install again, and received the following (new) error:

xcrun: error: active developer path ("/Applications/Xcode-beta.app/Contents/Developer") does not exist, use sudo xcode-select --switch path/to/Xcode.app to specify the Xcode that you wish to use for command line developer tools (or see man xcode-select) Downloading dependencies

I deleted Xcode-beta from my system a few days/weeks ago when GM8 hit, so running xcode-select -r to reset to the default command line tools path resolved that error on 0.39.0

on a whim, I re-upgraded to 1.0.1 and re-ran pod install.

This time, no issues, everything installed just fine.

Not sure if it's the same issue as what other (US) people have seen, but it might be worth looking in to if you're hitting this error. (I did not add this to #2713 because I'm not in China ...)

TouchLiang commented 6 years ago

@neugartf Yes!!!Thank you for your 'rename' !!! lol