[Plugins] Some plugin builds will fail

  • 1
  • Announcement
  • Updated 7 years ago
Updating some plugins and some builds using plugins may fail during the process. Sorry for the inconvenience.
Photo of ryan

ryan, Developer

  • 1538 Posts
  • 132 Reply Likes

Posted 7 years ago

  • 1
Photo of thomas patrick levy

thomas patrick levy

  • 32 Posts
  • 2 Reply Likes
Within the last 20 minutes I noticed my Android build started failing with a "Oh geez. Your build failed. Sorry, but a problem occurred on the build server" error --

Is this possibly related? I am using the ChildBrowser plugin?

And if it is, potentially, related, any idea when the upgrade will be finished?
Photo of ryan

ryan, Developer

  • 1538 Posts
  • 132 Reply Likes
Upgrade is done. This included an update to how plugins are installed, so differing behaviour may be seen.

One thing to note is that you should ensure you don't already have the Childbrowser assets in your app zip (or repo), i.e. there shouldn't be a childbrowser/ directory, or a childbrowser.js file.

If that doesn't solve it, share your app ID and we'll look into it.
Photo of thomas patrick levy

thomas patrick levy

  • 32 Posts
  • 2 Reply Likes
thanks!
Photo of ryan

ryan, Developer

  • 1538 Posts
  • 132 Reply Likes
Upgrade finished. If you're facing any problems, let us know.
Photo of Cy Sousley

Cy Sousley

  • 9 Posts
  • 0 Reply Likes
Ryan, I'm still getting the "Oh Geez" error for IOS and Android, other builds are fine. My app ID is 427967. Any advice? Thanks!
Photo of Bob Johnson

Bob Johnson

  • 34 Posts
  • 1 Reply Like
My iOS builds are successful, but even known good code is now dying on app start with:

"*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bunde: 'NSBundle (loaded)' with name '

and

Application 'UIKitApplication:[my sku][0xde6e]' exited abnormally with signal 6: Abort trap: 6

Is this related? Is there an issue with Build all of a sudden? I'm now testing with 2 week old, known-good code and this is still happening.
Photo of Bob Johnson

Bob Johnson

  • 34 Posts
  • 1 Reply Like
Thanks. 316154
Photo of ryan

ryan, Developer

  • 1538 Posts
  • 132 Reply Likes
Photo of Bob Johnson

Bob Johnson

  • 34 Posts
  • 1 Reply Like
OK, so I can't say this looks good. Am I dead in the water here?
Photo of ryan

ryan, Developer

  • 1538 Posts
  • 132 Reply Likes
I'm afraid I don't have a fix for this right now. However this is a priority issue as is the Facebook plugin. Best I can say at this moment is ASAP.
Photo of Bob Johnson

Bob Johnson

  • 34 Posts
  • 1 Reply Like
Thanks for the update, Ryan.
Photo of ryan

ryan, Developer

  • 1538 Posts
  • 132 Reply Likes
Cy, You the following file in your source repo: PushNotification.js. Delete this file, as it is part of the Push Plugin, and will be injected into your app by PhoneGap Build. Build is failing to install the PushNotification.js file in your app because its already there.

I also notice you have the file cordova-2.3.0.js which should be removed.
Photo of Cy Sousley

Cy Sousley

  • 9 Posts
  • 0 Reply Likes
Thanks for your help Ryan, works fine now!
Photo of pierrick lété

pierrick lété

  • 2 Posts
  • 0 Reply Likes
Hello Ryan,

We can't compile our app ("Oh Geez" error) since this morning (builds are ok yesterday and we made no changes)

Our app id : 416767

Please let me know if you find the issue !

Thank You
Photo of ryan

ryan, Developer

  • 1538 Posts
  • 132 Reply Likes
Pierrick, you're facing the very same issue as above -- you have the files cdv-plugin-fb-connect.js and facebook-js-sdk.js in your app zip package. Delete these. They are part of the FacebookConnect plugin, and PhoneGap Build will inject these files into your app.

Remember that we need to match the version of these files with the version of native Facebook plugin code that we use to build your app. If you use your own copies of these JS files, they could be out of sync with the native plugin code.
Photo of pierrick lété

pierrick lété

  • 2 Posts
  • 0 Reply Likes
Thank you Ryan!
Photo of ryan

ryan, Developer

  • 1538 Posts
  • 132 Reply Likes
An important part we haven't made clear enough regarding plugins and Hydration -- we've updated the plugin native code, and when this happens, you need to completely reinstall the app -- Hydration will not update the native code. Its a missing feature of Hydration to notify the user when they need to do a full reinstall.

Thanks Heinrich.
Photo of Silverback IS

Silverback IS

  • 21 Posts
  • 0 Reply Likes
I have also posted here:
http://community.phonegap.com/nitobi/...

I get this error:
"plugman --platform www --project /tmp/gimlet/8cb18fde-d4ea-11e2-9c7c-22000a98b3d6/app/dist --plugin /home/ec2-user/gimlet/vendor/hydration/plugins/GenericPush/1.3.2": sh: line 7: plugman: command not found

Please could you help? It's since I put in the push notifications pugin but why would the server return that it doesn't recognise the 'plugman' command? Is this an error on your side or mine? It's driving me mad.
Thanks
App ID: 437556
Repo: https://github.com/silverbackis/SF28/

I noticed before you changed to plugman that another app I had working stopped but maybe becuase my app references in the plugin.xml were slightly wrong. I seems to have checked everything without finding a solution. Thank you,

Daniel
Photo of srknc

srknc

  • 8 Posts
  • 0 Reply Likes
Hi,
I changed some html codes and phonegap build gave same funny error (oh geez..)
I'm using push notification and childbrowser plugins.
I changed phonegap version line to;

commented these lines;
<!-- <gap:plugin name="ChildBrowser"/> -->
<!-- <gap:plugin name="GenericPush"/> -->
changed child browser function to;
//window.plugins.childBrowser.showWebPage(url,{ showLocationBar: true });
window.open(url, '_blank', 'location=yes');
Still it is not building the app, what should i do?
app id:316822
thanks.
Photo of Justin Carlson

Justin Carlson

  • 1 Post
  • 0 Reply Likes
I'm also receiving the error.

""plugman --platform www --project /tmp/gimlet/SOME-LONG-ID/app/dist --plugin /home/ec2-user/gimlet/vendor/hydration/plugins/GenericPush/1.3.2": sh: line 7: plugman: command not found"

This for me also started when having hydration on and setting up the GenericPush plugin. Turning off hydration does in fact remove it. Is this just a bug? Or can we not have push notifications and hydration setup at the same time?
Photo of ryan

ryan, Developer

  • 1538 Posts
  • 132 Reply Likes
This was a server misconfiguration, should be fixed now. Sorry for the inconvenience.
Photo of srknc

srknc

  • 8 Posts
  • 0 Reply Likes
Hi Ryan, Building process working now but push notification not working. Plugin line in config.xml is;

And the method i'm calling;
pushNotification.register(push_ios_tokenHandler, push_ios_errorHandler, {"badge":"true","sound":"true","alert":"true","ecb":"onNotificationAPN"});
Are there any change at this lines, i was using push notification before update.
Thanks.
Photo of Silverback IS

Silverback IS

  • 21 Posts
  • 0 Reply Likes
Unfortunately I tried just putting the gap:plugin name="GenericPush" / line back in the config and the same error has returned.
Photo of ryan

ryan, Developer

  • 1538 Posts
  • 132 Reply Likes
OK should be fixed (again) now.
Photo of Silverback IS

Silverback IS

  • 21 Posts
  • 0 Reply Likes
Thanks Ryan, There are no errors anymore, but the script stops on the same line as srknc:
pushNotification.register(tokenHandler, errorHandler, {"badge":"true","sound":"true","alert":"true","ecb":"onNotificationAPN"}); for ios, haven't tested android yet.

I have these functions inside a try statement which returns no error, no console errors, the function is being called as I have an alert just before the function, no error or success handlers are called.

Is this part of the same issue or an issue with my codes in your opinion?
Photo of Silverback IS

Silverback IS

  • 21 Posts
  • 0 Reply Likes
On android it returns 'class not found'
Turned off hydration then ios and android fail to build, I clicked the notify us button
Turned off debugging, same issue, doesn't build.
Turned hydration and debugging back on - now hydration is completing but the ios and android builds are failing...
Photo of ryan

ryan, Developer

  • 1538 Posts
  • 132 Reply Likes
Silverback, can you (a) post this problem to a new thread and (b) let us know what your seeing right now, and your App ID? Thanks.
Photo of Silverback IS

Silverback IS

  • 21 Posts
  • 0 Reply Likes
Hi Ryan, absolutely, thanks. I don't often post to forums so I don't know my way around as easily and general practices. The new topic is here:
http://community.phonegap.com/nitobi/...

The app id and repo link are there. Thanks for your help and I'm very happy to hack away at it myself if the error is definitely on my side, it's just a spent a while when the original error was happening so it'd be good to know for sure!
Photo of acro sean

acro sean

  • 2 Posts
  • 0 Reply Likes
Hi

For the past few weeks, i have desperately being trying to implement push notifications from a third party site, pushwoosh.com and today they gave me some advice, and it also pointed to this thread. They gave me this advice:

''It seems that you are building "hydrated" build with Phonegap. Please try building non-hydrated build as currently it looks like Phonegap guys experiencing some problems with hydrated builds and push plugin:
http://community.phonegap.com/nitobi/...

Also please don't include PushNotification.js and cordova.js files as they should be injected automatically by the build process.''

I did what they said and it still doesnt work! :-( I removed PushNotification.js but i dont have cordova.js references anywhere in my code, i turned off the hydrated option, and it built the app successfully, an error has crept in the code on my index file, (but that is probably my fault somewhere down the line), but it doesnt prompt me on opening the file about 'push notification', nor does it say its registered on my app in pushwoosh.com.

Is this anything that anybody could help me with or give me any advice, any thing would be greatly appreciated as this has driven me crackers!

I could upload my files somewhere if that is helpful.

Thank you again in advance for any body that could help me
Photo of acro sean

acro sean

  • 2 Posts
  • 0 Reply Likes
just realised this could help!! My app ID is 444163

I have tried this app with two types of certificates, one with which i thought was set up correctly to enable push notifications...