Discussion Forums  >  Self Hosted Control Panels

Replies: 10    Views: 95

satit
I hate code!
Profile
Posts: 89
Reg: Feb 16, 2012
bangkok
6,640
05/09/13 10:05 PM (12 years ago)

Can not download IOS Source Code!!!

Hi, In my Self host v2.1.8 can download Android Source code But can not for IOS Source Code. After click Prepare package for download . It's never stop to showing a circle animation long time. How to solve it? Satit P.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
05/09/13 10:25 PM (12 years ago)
Do you use godaddy? I have had similar problems with them. Sometimes it works, sometimes it doesn't. Always an issue with the iOS side. If it works, it usually takes a long time. Try going back and requesting the download again. btw: hostgator does not have this problem. Nor does it have the problem with push notifications!
 
satit
I hate code!
Profile
Posts: 89
Reg: Feb 16, 2012
bangkok
6,640
like
05/09/13 10:29 PM (12 years ago)
I do not use Both(godaddy,hostgator), It's My server. Why android code can get it faster?
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
05/09/13 10:30 PM (12 years ago)
not sure - but others have had this problem too.
 
WebNevees
Code is Art
Profile
Posts: 206
Reg: Oct 28, 2012
KL
11,660
like
05/09/13 11:08 PM (12 years ago)
I had the problem of not being able to download the source code package, but it was different than yours. Both packages weren't working at all. Errors popped up, and there was no problem with a stuck animation. Eventually I found that for some reason the control panel had appended non JSON junk to the end of my config file, and that was rendering the packaging useless. First check your server. In my case it was creating the package but wouldn't download it to my mac. It was there though in a folder in my server.
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
05/10/13 01:54 AM (12 years ago)
Satit, try using a different browser like Firefox or Chrome and download your project - I bet it will work. Happens to me all the time ;) Cheers, David https://buzztouchmods.com
 
satit
I hate code!
Profile
Posts: 89
Reg: Feb 16, 2012
bangkok
6,640
like
05/10/13 03:14 AM (12 years ago)
@Devid I'd already using firefox(lastest version) Well, i will try it again in chrome. NO luck like you.
 
satit
I hate code!
Profile
Posts: 89
Reg: Feb 16, 2012
bangkok
6,640
like
05/10/13 04:19 AM (12 years ago)
There are the same result after test with Chrome Version 26.0.1410.63 and Firefox 20.0 . As @WebNevees said the zip file(*-iOS-BTv2.0-*.zip) stay in the folder "temp/files" , it's still showing animation with no download link any-more. after get a zip file from the server then compiled with Xcode. The Xcode said "Build Failed" Any idea?
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
05/10/13 09:06 AM (12 years ago)
This is rarely a browser issue. There are two routines involved in the download process that fail on some hosts. Niether of these fail on most servers but some low-costs hosts do cause trouble. This is how it works. 1) You click "download" 2) Your server uses cURL to contact the BT API. The BT API creates a downloadable package (.zip file) 3) Your server uses cURL to download this .zip file from BT. 4) Your server processes this package on your server and includes your plugins, config.txt data, etc. The two most common failure points are a) Your server not allowed to download a .zip from an external source. This is cURL failing to download a .zip from the BT API. And b) Your server unable to create the config.txt file. This is also related to cURL. The Fix: You need to figure out why your server won't allow cURL downloads. There are lots of reasons low cost hosts prevent some of these functions. It's easy to diagnose if you're familiar with .PHP. Nearly impossible if you're not :-) iOS is a larger / heavier download than Android so you may be able to do fetch the smaller Android package and not the larger iOS package. The next release of BT Self Hosted includes some fixes to improve this when it's running on lower-power servers with minimal features. Today, you'll need to figure out where your server is failing and go from there. Hope this helps.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
05/10/13 09:30 AM (12 years ago)
Interesting points David. I noticed on my godaddy hosting that the iOS would sometimes work (albeit slow) and sometimes not. On a different godaddy hosting plan (same type of plan though) it worked fine, no delays. On my new hostgator plan it works fine no delays. Hopefully the next update resolves the issue for most people. Probably there should be a disclaimer with self-hosted installs that says 'may not work 100% with all servers. See wiki for current list of hosting plans that people have had success with.'
 
WebNevees
Code is Art
Profile
Posts: 206
Reg: Oct 28, 2012
KL
11,660
like
05/10/13 09:45 AM (12 years ago)
Oh satit this is exactly what I ran into and I think it was most probably the first time it had come up in BT. I finally got to the bottom of it. The reason your build fails is that your BT_config file has for some reason been tampered with by the BT Server files. check the one in your project first then check the one in your self hosted server. You can see it in view JSON Configuration Data Menu (or something like that). Most probably it has some html stuck to the end of it. When your app wants to run it uses the bad config and will run it but it isn't good JSON so it goes berzerk! Just clean out the junk at the end of the file and you're good to go. No rinse and repeat necessary here!
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.