Discussion Forums  >  Self Hosted Control Panels

Replies: 13    Views: 148

AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
02/08/13 03:35 AM (12 years ago)

2.1.8 Something Went Wrong upgrade problem (CURL?)

I am having a problem with my 2.1.8 self hosted upgrade and I'm wondering if anyone can help. The upgrade looked as if it had run OK, only tricky part was I had to change the old API secret (not so tricky). I went into the new CP, all looked OK, so I tried to download an existing project - I get the error "Something Went Wrong" on the first step. Last upgrade from 2.1.6 to 2.1.7 hiccuped with the same symptoms, which were pinpointed to the way my hosting provider allows CURL to operate, but after @David made some changes from 'localhost' to mysevername in a setup file, all was good. Problem now is that things have changed and the old instructions to patch files don't seem to apply to 2.1.8 (or if they do I can't find them), so I am a completely stuck! I've pinged David a request, but as I am stuck and as the day after a big release his hands may be full, I thought I'd ask if anyone on the forum has had similar problems and if anyone can suggest where to look. Thanks, Alan
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
02/08/13 03:54 AM (12 years ago)
Hmm... I just checked mine; so far, it's ok. It 'did' prepare the file for about 10 minutes, and never seemed to stop. I refreshed, tried it again, and everything went as planned. Not sure if I killed off another API request during the attempt. Do you have get a definable error? Are you still using 'localhost'? Domain Name? Will an IP Address work? (That's how I have to do it) Does it do it on 'all' apps, or just one? Cheers! -- Smug
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
02/08/13 08:27 AM (12 years ago)
Hi @Smugwimp I'm glad your works, mine looks OK until I try to download a project. It fails at the first step of the two step process, it takes about 10 secs of trying before I see the error message "Something Went Wrong". I tried a couple of apps, all gave the same result. In the installation process, I put in the server name as before, I don't have a dedicated IP, I suspect the changes would possibly need to be in some of the php files, database or something on the server like that, but I don't know where.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
02/08/13 08:57 AM (12 years ago)
Hey Alan, I had an issue with downloads after I upgraded as well. It complained about the app icon not being a jpg or something like that. So, I uploaded the same icon again, and all was well. What exact error message are you getting...anything more than "Something Went Wrong?" Mark
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
02/08/13 11:49 AM (12 years ago)
Hi Mark I simply tried to download an existing (and working) app so I coould put it into xcode that was fine on 2.1.7 as a test of my 2.1.8 upgrade. I tried with an app for eclipse too. Both gave me the same "Something Went Wrong" message. I wish I could say more, but there isn't much more to tell. The console looks OK, says powered by buzztouch 2.1.8, but I can't work! Hey ho, there is football on TV this weekend!
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
02/09/13 02:19 AM (12 years ago)
@AlanMac: Football this weekend - cool - ours is over! I saw your email and immediately remember the last "go round" with this issue. If my memory serves me right it was not something you could adjust or fix with your access level to the machine so we ended up changing the logic a bit to get it to work. To this day, you're the only one (ever, really) that needed that strange adjustment. I'm thinking others may too, we just don't know about them. Details (a repeat from last time but interesting for others?)...The issue on this .php box is the fnGetConfigData() method in the bt_appDownload_AJAX.php file. This method has one purpose: to create the config.txt file to include in the app's xcode project. This method is failing on this box. The reason: The API on this server, the same server that's running the control panel is used to create this config data. If you look at the Core settings of an app, you'll see the dataURL points to the API. You can easily cut n paste this URL into a browser bar and see the config data. BUT, when this same dataURL is "loaded" from within a .php script running on this machine - it will not work. The reason it will not work is unknown - for sure - but it's something to do with the HTTP Config file in the hosts configuration. How do I know this... I know this because the URL that produces the config data works perfectly well when it's requested by a browser, a phone, anything online really. But, when it's called using cURL, from the same .php that's running behind the url, it won't work. Have a look at the fnGetConfigData() on line 290 of bt_appDownload_AJAX.php. You'll see a very very simple cURL call to the dataURL - on the same box. It does't work. The error is related to an unknown host or something. I'll bet the host setup on the Apache configuration is virtual, and among many other virtual hosts, all sharing IP addresses, etc. Complicated stuff! The fix is to re-write the fnGetConfigData() method on his machine so it uses a totally different approach to create the config.txt data. I'll need to re-create this method for him because the changes with 2.1.8 (features) prevent me from using the older, existing method I created last time. This was provided for nerdy entertainment only. Alan, I'm aware of this and will produce a solution. I do not have your login info anymore so I'll trust you to upload and test the adjustment. Look for an email in the next day or two?
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
02/09/13 02:53 AM (12 years ago)
Hi David, I see that there is a lot going on right now & your response is much appreciated. I anticiapted you would need access, your gmail inbox should have info has the necessary info in a mail from me. Last time around, I approached my hosting provider who advised that CURL was configured in specific way (I forgot the details, I think it prevents CURL being called from localhost) as a matter of their security policy. I suppose you've heard the story of King Midas - everything he touched turned to gold? Well, many years ago, I worked in an IT engineering group testing software systems. I was told I had 'the reverse Midas Touch'. If it could be broken, I would find the way - I think I was just born that way and I haven't lost it! Alan
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
02/14/13 11:49 AM (12 years ago)
Hi David, any news? I'm starting to get withdrawl symptoms!
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
02/14/13 03:53 PM (12 years ago)
Have you tried downloading another copy of v2.1.8 and using it? They've made a few changes that I must have missed the word on... but a good many bugs have been fixed... give it a shot, you may have been fixed and didn't know it... I was. Cheers! -- Smug
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
04/16/13 02:14 PM (12 years ago)
Just for the record, this had a happy ending. Thanks David.
 
StandOUT
Code is Art
Profile
Posts: 8
Reg: Jun 06, 2013
Toronto
10,280
like
07/16/13 06:47 AM (12 years ago)
Hi It look's like I have this problem as well. I get the bt-config data if I enter the dataurl in a browser but the process fails with 'something went wrong' on retrieval of the config data when the php runs after I request the source download. If there a work around for this? Thanks
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
07/16/13 09:58 AM (12 years ago)
This may be one for @David (or @PSMDanny since yesterday?). @farcat (using Heart Internet, same as me) http://www.buzztouch.com/forum/thread.php?tid=A02D839D255A40B61883547 also needed David to sprinkle some magic. I'm keeping my fingers crossed that the next upgrade has the fix for this built-in.
 
StandOUT
Code is Art
Profile
Posts: 8
Reg: Jun 06, 2013
Toronto
10,280
like
07/16/13 11:47 AM (12 years ago)
Thanks for the response Alan. Are you suggesting I contact either @David or @PSMDanny or has this comment already gotten to them. I am not clear on the forum protocol yet (being a newcomer and not having participated much yet.) Also I was not clear whether you were suggesting I was hosting with Heart Internet...so just to be super clear I am hosting with Canadian Web Hosting. But I think I might have the same issue described above. Again thanks and please let me know if I need to initiate some other action to get some help. Cheers!
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
07/16/13 12:27 PM (12 years ago)
I mentioned Heart only to emphasise that the service provider can indeed be the problem. David may not monitor old threads actively (he gets a lot of activity!), so to get some attention, contact options would be to start a new thread or send a message to [email protected] and see who picks it up. Good luck!
 

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.