-
Notifications
You must be signed in to change notification settings - Fork 156
Phonegap remote build failed #814
Comments
I'm coming up with the same problem. Our team has purchase the Creative Cloud for the use of the build services on PhoneGap, it would really be appreciated if someone could support us over in Adobe?
|
strange issue, thanks for posting the stack trace. |
Also receiving the same issue. |
Same issue. |
I tried it on Mac also and has the same problem |
Same issue here |
Same here, trying the phonegap NFC "getting started" (https://github.com/chariotsolutions/phonegap-nfc/blob/master/doc/GettingStartedPhoneGapBuild.md) [phonegap] compressing the app... |
The exact same error here too. I'd save time by using this tool, so it's a bummer it doesn't work anymore. It looks like a trivial issue too. I updated to the latest node, cordova and phonegap just now, to see if it changed. It didn't. |
I found a dirty workaround. Since I don't own a mac I am stuck with phonegap build to build for iOS but I hope it will be fixed soon. I remove my project from build.phonegap.com Sometimes the build won't upload on the first try then I try to upload again and eventually the project will apear in build.phonegap.com Hope this will help someone. |
I have PCs with Windows, macOS and Linux, so I use PGB because convenience:
Anywho 1: Why did you have to remove the project first? If the upload part works, you shouldn't have to. Anywho 2: When I run phonegap remote on an existing project it actually uploads the code and starts building, so the error happens after those stages. I didn't have to remove the project. Mileage may vary. |
I'm using almost same workaround. So my setup is - all automated
|
@LasseAtomic For me it uploads and builds correctly multiple times as-is. I checked by changing the version. I used "call phonegap remote --no-proxy build android". |
@andersborgabiro I read somewhere the error has something to do with PGB not being able to clean up. Therefore it seems logic to me the upload works again whenever I delete the project myself. |
I've built 10ish times since I posted and they all succeeded with no handholding. But fixing the bug is still needed, a year or so after its inception. |
Hi Guys As I mentioned we using an automated setup to delete and build the app. Behind this there is a build of an angular app, from where the output is copied into the phonegap/www and then starting the build. Today when my angular developer have done a number of changes, the phonegap have stopped working. No changes has been done to the phonegap environement etc, only to the content of the /www/ folder (and I have tried with an older version of that folder... The "look and feel" of the error is unchanged. I get the exact same crash as in the first post of july 30th, but now the app is newer created in build.pg.... So apparently nothing is uploaded, but it says compressing files... Any clues on where I can look for info? |
Works great for me, despite the classical error.
Yet I got this from phonegap-cli when upgrading npm, node, cordova-cli and phonegap-cli (in that order) today. Windows 10 64-bit. PS C:\WINDOWS\system32> npm i -g phonegap
|
Same error here. Environment: |
I am seeing this same error as well. Environment:
Error:
|
This still has no fix? |
My experience of this, as mentioned before, is that building still always works, so did you check the result at build.phonegap.com? Of course it's insane that this probably very simple bug is not fixed, but maybe there's only a janitor and his dog that maintains the CLI tools by now (I'm hopefully kidding). |
It's been more than 8 months, this is definitely not the support you expect from a company like adobe, especially for a tool that also has a paid plan. |
Based on the stack trace, the issue is actually in the phonegap-build dependency: https://github.com/phonegap/node-phonegap-build/ This issue is the relevant one and it seems there is a quick fix PR: phonegap/node-phonegap-build#68 Since the PR has not been merged (and this issue is largely being ignored) you might also consider downgrading node <v10 when using PBG to get rid of the error. |
Updating PhoneGap via npm also indicates it's time to update the CLI applictions (this is after updating npm, node and cordova):
|
I'am trying to remote build the clean hello world app.
After zipping and uploading file the phonegap crashes
I noticed and old error where the fix was to update note.js to v11, I have updated to v12 without any changes
PhoneGap CLI, node & npm versions
Phonegap 8.2.2
Windows 2012 server
NPM 10.14 and 12.7
Expected Behaviour
Build success
Actual Behaviour
Crashs
Steps to Reproduce
Create hello world, build remote
Error messages
$phonegap remote build ios
[phonegap] compressing the app...
[phonegap] uploading the app...
There was an unhandled exception within phonegap-cli! If you would like to help
the PhoneGap project, please file the following details over at https://github.c
om/phonegap/phonegap-cli/issues
TypeError [ERR_INVALID_CALLBACK]: Callback must be a function. Received undefine
d
at makeCallback (fs.js:150:11)
at Object.rmdir (fs.js:682:14)
at Object.cleanup (C:\Users\Administrator\AppData\Roaming\npm\node_modules\p
honegap\node_modules\phonegap-build\lib\phonegap-build\create\zip.js:119:16)
at Object.callback (C:\Users\Administrator\AppData\Roaming\npm\node_modules
phonegap\node_modules\phonegap-build\lib\phonegap-build\create\remote.js:83:21)
at Request._callback (C:\Users\Administrator\AppData\Roaming\npm\node_module
s\phonegap\node_modules\phonegap-build-api\lib\api.js:214:22)
at Request.self.callback (C:\Users\Administrator\AppData\Roaming\npm\node_mo
dules\phonegap\node_modules\request\request.js:185:22)
at Request.emit (events.js:203:13)
at Request. (C:\Users\Administrator\AppData\Roaming\npm\node_modu
les\phonegap\node_modules\request\request.js:1161:10)
at Request.emit (events.js:203:13)
at IncomingMessage. (C:\Users\Administrator\AppData\Roaming\npm\n
ode_modules\phonegap\node_modules\request\request.js:1083:12)
The text was updated successfully, but these errors were encountered: