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 download archive from the server #295

Open
millenniumgdjordan opened this issue Jun 2, 2015 · 61 comments
Open

Unable to download archive from the server #295

millenniumgdjordan opened this issue Jun 2, 2015 · 61 comments
Assignees
Labels
Milestone

Comments

@millenniumgdjordan
Copy link

I'm aware of some of the recent issues with the client update and subsequent CLI update, however, after updating both (and actually a fresh OSX Yosemite install) I'm still getting an Unable to download archive from server error when I try to connect from an iPad mini. A browser running ripple emulator connects fine (although for some reason gives me password errors when I try Parse.com auth through it). Also, android phonegap client connects, but it is slow.

The project itself is rather large (400+ MB) is it possible that the iOS client is timing out, but the android client waits throught the long download? Anything you could point me to would be appreciated. Even help with parse authentication :)

Versions:
OSX 10.10.3
CLI: 5.0.0-0.28.1
iOS 8.3
Phonegap Developer 1.5.2

@timkim
Copy link
Contributor

timkim commented Jun 2, 2015

Hi @millenniumgdjordan

A 400MB project isn't something we've tested on our side but I can definitely see how it could break on iOS. The new changes we introduced are mainly contained in the content sync plugin. I believe we are going to increase the time out for iOS so hopefully that will fix your problem.

As for the parse auth error, it might be how Ripple proxies the ajax call. That would be my guess.

@LuisFabian
Copy link

I had the same problem, the application displays a message warning me and says: "Unable to download archive from the server"

screenshot_2015-06-10-22-41-55

the solution was to update the the desktop application:
https://github.com/phonegap/phonegap-app-desktop/releases

regards!!

@Colkerr
Copy link

Colkerr commented Jun 11, 2015

I have the same problem.Don't know what to do with the link above to GitHub. Is there not an easy way to get the latest version. Anyway they are all Mac at the link above and I am Windows. I have just installed desktop and mobile so seems strange if I have an old version.

@LuisFabian
Copy link

Hi @Colkerr, follow these steps:

  1. download the file zip
    select_zip
    (in my case for win64)

  2. Extract the files
    extract

Select your files and copy
copytodirectory

  1. Copy the files to the next directory, (C:\ProgramFile(x86)\Adobe\PhoneGap\PhoneGap Desktop)
    directory

Replace your files
copyandreplace

  1. Run the application PhonGab anew and ready!

I hope it has helped you, good luck!!

@millenniumgdjordan
Copy link
Author

@timkim

Thanks for your reply! I'm in the middle of restructuring my app so that the video data that's currently causing about 75% of the bulk will be streamed from web servers instead of contained in the app. (They just keep adding more and more video.) That should hopefully make it play a little better with phonegap.

Other than that, using Phonegap has been such an amazing experience. I'm learning... constantly learning. lol. Thanks for all your hard work!

@timkim
Copy link
Contributor

timkim commented Jun 17, 2015

Hi @millenniumgdjordan

Thanks for the kind comments :)

To note, we're still working on the connection issue. It seems like a number of our users are reporting a fair number of issues despite our recent updates. If you are still experiencing errors, help us out by filling out this questionnaire: #307

@prasaddp5
Copy link

Unable to download archive from server and Unable to properly connect to the server issue still persists in latest executables. Its highly unstable.

@FeedyFeedback
Copy link

Not working! Please help need to get it finished within 2 weeks! I have tried version 0.1.7 and 0.1.2 with the mobile app and with bluestacks android simulator. both saying: Unable to download archive from server and Unable to properly connect to the server issue still persists in latest executables

Please HELP!!
Btw: size 5mb

@jeyaseelan89
Copy link

Please help me as well to solve the above problem. I had try all ways above ways but its not workout. Is there there any other solution for this issue?

Please HELP...!

@SlimeQ
Copy link

SlimeQ commented Jul 20, 2015

same problem. i've been through dozens of guides and none of them are quite right... this seems to be the most recent solution but i can't connect after serving

i'm on ubuntu 12.04

edit:

i found that a power surge last night had left my router suddenly unable to authenticate anything. restarted and everything works great. this was one of many SSL related problems i'd been running into.

@rintuzi123
Copy link

I have Phonegap version 0.1.9 installed in my PC. And I'm experiencing the same problem while connecting from my Windows Phone Phonegap Developer App.
It's showing error: Unable to download archive from server. Unable to properly connect to the server. But here connecting to my home network is not a problem. I'm connected to same network from PC and Phone and the Connection is OK and It has a better Internet Connection also. Please help.
wp_ss_20150829_0002

@mrzulkarnine
Copy link

Dear @rintuzi123 , please make sure there is no other application using port 3000.

@adcentury
Copy link

I have the same issue.

The app can be downloaded in Android device.

But when i use iphone to conncet to the server, it shows "Unable to download archive from the server" and "Unable to properly connet to the server".

Plz help...

@cocodelacueva
Copy link

Yo tengo el mismo problema! :(

@mwbrooks mwbrooks modified the milestone: Backlog Sep 11, 2015
@mwbrooks mwbrooks removed the backlog label Sep 11, 2015
@Vaishu18
Copy link

I'm finding the same issue. I have the latest versions of phonegap on both my PC and my Android phone. Even with the firewall off, I'm not able to connect to the server on which my app is running. It shows download error following which is a pop up message that says unable to download archive from the server. Please help me solve this issue. And yes, my PC and phone are connected to the same network.

@mwbrooks mwbrooks added the bug label Sep 17, 2015
@mwbrooks mwbrooks self-assigned this Sep 17, 2015
@mwbrooks
Copy link
Collaborator

Hey @Vaishu18,

Thanks for reporting the issue. We've chipped away at a few connection issues, but what you're experiencing has been a hard one to solve. I've tested on a Windows 7, 8.0, and 10 virtual machine on my home network. It's worked fine.

The firewall and anti-virus are the obvious culprits, but you seem to have ruled those out. Are you able to test the same PC and Android phone on a different network? One approach is to create a hotspot with your Android device. I'm curious whether there are other network policies that may be causing the issue.

@Vaishu18
Copy link

I created a hotspot with my android device and connected my PC to check if
that works. However it did not. Still the same error. Could it be an issue
of incompatibility between the latest version of phonegap i.e 1.10 and the
phonegap app on my android device?

On Fri, Sep 18, 2015 at 1:33 AM, Michael Brooks [email protected]
wrote:

Hey @Vaishu18 https://github.com/Vaishu18,

Thanks for reporting the issue. We've chipped away at a few connection
issues, but what you're experiencing has been a hard one to solve. I've
tested on a Windows 7, 8.0, and 10 virtual machine on my home network. It's
worked fine.

The firewall and anti-virus are the obvious culprits, but you seem to have
ruled those out. Are you able to test the same PC and Android phone on a
different network? One approach is to create a hotspot with your Android
device. I'm curious whether there are other network policies that may be
causing the issue.


Reply to this email directly or view it on GitHub
#295 (comment)
.

@romaM197
Copy link

LuisFabian thanks

@mwbrooks
Copy link
Collaborator

@Vaishu18 what version of PhoneGap (Desktop or CLI version) are you using with the PhoneGap Android app?

@Radcliffe
Copy link

I had the same issue, but maybe for a different reason. The PhoneGap desktop app showed the message "Server is running on http://169.134.128.212:3000," so I entered that IP address in the mobile app. This didn't work because my computer is behind a router.

I ran ipconfig from the command line (in Windows) and I saw the following line:

IPv4 Address. . . . . . . . . . . : 10.0.0.10

So I entered 10.0.0.10:3000 instead of the public IP address, and it worked.

@Cybernoid77
Copy link

I'm having the same exact problem with Windows Phone. PhoneGap Desktop works fine with iPhone and Android, but won't load anything on Win Phone. I get "Unable to download" and "Unable to unzip" and then a webpage saying "We're having trouble displaying this page." The size of the project is 67,5Mb and it works fine on other devices using the same configuration, server and connection.

It would help a lot, if I could just open the app on Win Phone. It's kinda hard to test it if it won't even open...

EDIT: I dropped the size down to 30Mb, still the same problem. Only now the error message comes up faster. :)

@mwbrooks mwbrooks modified the milestones: Fix Connect and Download, Backlog Sep 29, 2015
@mwbrooks
Copy link
Collaborator

Awesome info @Radcliffe and @Cybernoid77! I've created a separate milestone to breakout these connection issues, so that we can focus on them better.

@mwbrooks
Copy link
Collaborator

Hey all,

This has been a hard issue to reproduce. At the moment, I suspect that the PhoneGap CLI is displays the incorrect IP Address, which leads the connection issue.

I've published a new version of the PhoneGap CLI that may address this by displaying all available (public) network adapter addresses. The first address listed is the CLI's best guess at your primary adapter.

I'd appreciate it if you could upgrade to the latest CLI and let me know if this helps or not.

Thanks!
Michael

@mikeleshtembari
Copy link

Ok. My scenario with solution:
Desktop App, Win 7, Android 4.3
Error: Cannot connect.
Solution: Reconnected through notebook WIFI and now it works.
(ps. Try disabling the windows firewall)

@pbb72
Copy link

pbb72 commented Dec 3, 2015

Just want to chime in that I am also having trouble with the desktop app displaying the wrong IP address (on Windows 10).

Running "ipconfig" showed that I had 4 network adapters ("Ethernet adapter Ethernet", "Ethernet adapter Ethernat 2", "Ethernet adapter Ethernet 3" and "Wireless LAN adapter Wi-Fi"). Obviously the latter should be used, but the PhoneGap desktop app was showing the IP from the first adapter.

Uninstalling VMWare Player removed the first two adapters, but now PhoneGap was still displaying the wrong IP, that of "Ethernet adapter Ethernet 3". Haven't got a clue where that one is coming from, and don't know how to disable it.

However, disabling the adapters is not necessary at all. It's just the PhoneGap desktop app that shows the wrong IP. So, entering the correct IP (that of the Wi-Fi) in the Android PhoneGap app combined with the port number from the desktop app, makes everything work great! 😄

@millenniumgdjordan
Copy link
Author

Hi! Sorry it's been a while since I opened this. Eventually pared all the bulky data from the app and started streaming it in instead and with a smaller app size, this fixed my own problem, but now that there's other people with issues, I don't know if I should close, or if @mwbrooks will close when enough people seem satisfied? Like I said I think my original issue was just the ridiculous size of my package (hehe) and that has been solved by cleaning up. I'm leaving the thread :)

@mwbrooks
Copy link
Collaborator

mwbrooks commented Dec 3, 2015

@pbb72 Sorry to hear that you're having that issue - it's a common one that we're working through. I've patched it with the latest PhoneGap CLI but the PhoneGap Desktop is a little more complicated. You can track the progress of the work on this issue: phonegap/phonegap-app-desktop#494

@millenniumgdjordan thanks for the update and glad to hear that the app size was the issue! Since this issue is a popular place to collect connection issues, I'm going to leave it open for now. Everyone's feedbacks helps us narrow down the various edge cases that people are hitting.

@provoco
Copy link

provoco commented Dec 4, 2015

@Radcliffe Great! it solved my problem.

@virgilshelton
Copy link

Thanks! I just disabled Windows firewall and all is well!

@timkim
Copy link
Contributor

timkim commented Jan 20, 2016

Hi everyone,

I've collected the above cases and documented them into a troubleshooting section into our docs: http://docs.phonegap.com/references/developer-app/troubleshoot-faq/

Have a look at that if you're still experiencing problems.

@kazalvis
Copy link

Did this ever get resolved? Still having issues on mac.

@virgilshelton
Copy link

@kazalvis try disabling your firewall that's what fixed it on Windows 10, here's instructions for your Mac https://www.youtube.com/watch?v=tPEP4uC8-gg

@kentr
Copy link

kentr commented Feb 14, 2016

@kazalvis Disabling the system firewall worked for me on OSX 10.11 (El Capitan).

@kentr
Copy link

kentr commented Feb 14, 2016

Created an issue and PR for adding OSX firewall information to the troubleshoot-faq page.

@hsoehalim
Copy link

I'm having the same problem with iPhone + OSX (with firewall turned off). Can someone tell me where the archive is located? From the log, I saw briefly a 404/__api__/appzip msg.

@kentr
Copy link

kentr commented Feb 25, 2016

@hsoehalim

From the log, I saw briefly a 404/api/appzip msg

I usually see a single 404/__api__/appzip in the log, even when it finally works.

I also usually see PhoneGap Developer do several attempts to download the zip before it succeeds.

@hsoehalim
Copy link

@kentr : I've tried may times and still running into the same issue. Suppose if for some miracle it does work, I don't think to "keep retrying" is viable solution :)

@kentr
Copy link

kentr commented Feb 25, 2016

@hsoehalim: There might have been a misunderstanding... What I meant was that for me — even with correct IP / port, firewall off, etc — the app retries automatically several times and eventually succeeds on it's own, and an initial 404 in the log is always part of that process.

I mentioned it in case you're manually cancelling the connection attempts.

@11plustwo
Copy link

I'm on a mac using a virtual machine for windows (VMWare) and my issue was solved when I changed the VM's network settings so the VM appears as a separate device on the network. As in, they don't share a local IP.

@harshita3994
Copy link

Hi,
So there have been numerous posts as to why we get the error and none of it is able to resolve my issue. My firewall is off.
When I try pasting 192.168.1.13:3000/app/appzip the site says its taking too long to respond.
I am on the same network and my internet connection is fine,
Moreover my android device gives me a download error
"Unable to download archive from the server.
Unable to properly connect to the server"

I am on Windows OS 7.
I haven't been able to connect the two devices before.

Any help is greatly appreciated

@JackBondSBCC
Copy link

@mwbrooks I had been experiencing this problem for the lat couple of days. The IP address that was being displayed on the desktop application was the same as my IPv4 address after running the ipconfig command in cmd. I read one of the previous comments that suggested turning of the firewall. I did this and it now works perfectly.

@mwbrooks
Copy link
Collaborator

@JackBondSBCC That's great to hear. We have the firewall fix documented in our FAQ but it's a far cry from obvious and easy to find.

This is an ongoing issue for a lot of Windows users. So, I think we need to find a helpful way to detect and walkthrough the solution.

@frtkync
Copy link

frtkync commented Jul 20, 2016

I use Eset Smart Security on my computer. I deactivated firewall and protection for 10 minutes, then try again and it worked. It seems it is related to security issue pals.

@maheshbabudoredla
Copy link

maheshbabudoredla commented Aug 30, 2016

#I have Phonegap version 6.3.0 installed in my PC. When i try to integrate my application to mobile(ASUS)
It's showing error: Unable to download archive from server. Unable to properly connect to the server.

Can any one please help me out how to rectify the above issue.

@majidparan
Copy link

just turn off windows firewall :) from antiviruse software

android programmer at aracode

@skout90
Copy link

skout90 commented Jan 31, 2017

@mwbrooks
Thanks

I solved this problem by firewall setting.
window , firewall -> allowed apps section
image

@erhanyasar
Copy link

erhanyasar commented Jun 9, 2017

I tried the Firewall turned off hence still prouduce the same problem on macOS Sierra 10.12.5 with PhoneGap v0.4.4 both on 3G and dsl.

@erhanyasar
Copy link

erhanyasar commented Jun 9, 2017

Well, for me it was Atom (IDE) blocks all my ports. I realized when it shows the same project on the browser even I try a couple of different projects on different sizes to test. Closing Atom let me able to open it on the phone app.

With that progress even I have a couple of working demos I still have a few applications not working properly yet. Is there anyone ran into this kind of browser window when try to run the app?

ekran resmi 2017-06-09 11 21 15

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

No branches or pull requests