blackberry / BB10-Webworks-Packager

The BB10 WebWorks Packager bundles the App content with the BB10 WebWorks Framework to create a BAR to run on the BB10 Device (or simulator)
27 stars 18 forks source link

Critical Bug - Any Bar file packaged with WebWorks fails when deploying #155

Closed nukulb closed 12 years ago

nukulb commented 12 years ago

Any bar file created using the latest (next branch) WebWorks packager will on deployment

Found In: Trunk build 1195

Output when the blackberry-deploy is called- Info: Sending request: Install and Launch Info: Action: Install and Launch Info: File size: 968172 Info: Installing AppAPI.testDev_AppAPI_75493059... Info: Processing 968172 bytes Info: Progress 32%... actual_dname:: actual_id:: actual_version:: result::failure 500 OSError: /apps/.new.AppAPI.testDevAppAPI75493059/native: [Errno 93] Directory not empty: '/apps/.new.AppAPI.testDev_AppAPI_____75493059/native'

nukulb commented 12 years ago

I think there is something wrong with the JNEXT.so and PPS.so that we are bundling using the packager. We should probably pick up the new ones.

nukulb commented 12 years ago

if I remove the jnext.so from the bar it seems to work but I need someone else reproduce and confirm

nukulb commented 12 years ago

remove jnext.so from the packager and you should be fine

dependencies/bar-dependencies/device/jnext/jnext.so

nukulb commented 12 years ago

It has been confirmed as an OS problem, to move past it you must uninstall the app first and then install

blackberry-deploy -uninstallApp -package device/AppAPI2.bar -device 169.254.0.1 -password qaqa

blackberry-deploy -installApp -package device/AppAPI2.bar -device 169.254.0.1 -password qaqa

You must do this everytime you re-deploy.

jnext.so MUST NOT BE DELETED

mdandrea commented 12 years ago

That workaround doesn't seem to be working for me. I do the uninstall then the install and get the same error as before (notice the uninstall command being executed first):

[exec] Executing 'C:\work\documents\webworks\BB10webworks-1.0.0.0\dependencies\tools\bin\blackberry-deploy.bat' with arguments: [exec] '-package' [exec] 'output/device/PushCapture.bar' [exec] '-device' [exec] '169.254.0.1' [exec] '-uninstallApp' [exec] '-password' [exec] 'tada' [exec] [exec] The ' characters around the executable and arguments are [exec] not part of the command. [exec] Info: Sending request: Uninstall [exec] Info: Action: Uninstall [exec] Info: Uninstalling testRel_pushcaptureb8c6c6ec... [exec] Info: Processing 0 bytes [exec] actual_dname::pushcapture.testRel_pushcaptureb8c6c6ec [exec] actual_id::testRel_pushcaptureb8c6c6ec [exec] actual_version::1.0.0.0 [exec] result::success [exec] Current OS is Windows 7 [exec] Executing 'C:\work\documents\webworks\BB10webworks-1.0.0.0\dependencies\tools\bin\blackberry-deploy.bat' with arguments: [exec] '-package' [exec] 'output/device/PushCapture.bar' [exec] '-device' [exec] '169.254.0.1' [exec] '-installApp' [exec] '-launchApp' [exec] '-password' [exec] 'tada' [exec] [exec] The ' characters around the executable and arguments are [exec] not part of the command. [exec] Info: Sending request: Install and Launch [exec] Info: Action: Install and Launch [exec] Info: File size: 1147815 [exec] Info: Installing pushcapture.testRel_pushcaptureb8c6c6ec... [exec] Info: Processing 1147815 bytes [exec] Info: Progress 94%... [exec] actual_dname:: [exec] actual_id:: [exec] actual_version:: [exec] result::failure 500 OSError: /apps/.new.pushcapture.testRel_pushcaptureb8c6c6ec/native: [Errno 93] Directory not empty: '/apps/.new.pushcapture.testRel_pushcaptureb8c6c6ec/native'

nukulb commented 12 years ago

what build are you trying @mdandrea

works for both @ishneur and me

nukulb commented 12 years ago

I tried trunk build buildID - 242419

ishneur commented 12 years ago

I don't have this issue anymore in trunk build 1210. Here are the steps I took with a clean OS install:

C:\Program Files\Research In Motion\BB10-Webworks-Packager-next-invoke-apps\depe ndencies\tools\bin>blackberry-deploy -installapp -package "C:\WebWorks\MyWidgets \BB10\Invocation\InvokeAPI\device\InvokeAPI.bar" -device 10.137.235.206 Info: Sending request: Install Info: Resetting stale session Info: Sending request: Install Info: Action: Install Info: File size: 963023 Info: Installing ... Info: Processing 963023 bytes Info: Progress 32%... Info: Progress 100%... Info: Progress 100%... actual_dname::InvokeAPI.testRel_InvokeAPI_fe0e662 actual_id::testRel_InvokeAPI_fe0e662 actual_version::1.0.0.1 result::success

C:\Program Files\Research In Motion\BB10-Webworks-Packager-next-invoke-apps\depe ndencies\tools\bin>blackberry-deploy -uninstallapp -package "C:\WebWorks\MyWidge ts\BB10\Invocation\InvokeAPI\device\InvokeAPI.bar" -device 10.137.235.206 Info: Sending request: Uninstall Info: Action: Uninstall Info: Uninstalling testRel_InvokeAPIfe0e662_... Info: Processing 0 bytes actual_dname::InvokeAPI.testRel_InvokeAPI_fe0e662 actual_id::testRel_InvokeAPIfe0e662_ actual_version::1.0.0.1 result::success

C:\Program Files\Research In Motion\BB10-Webworks-Packager-next-invoke-apps\depe ndencies\tools\bin>blackberry-deploy -installapp -package "C:\WebWorks\MyWidgets \BB10\Invocation\InvokeAPI\device\InvokeAPI.bar" -device 10.137.235.206 Info: Sending request: Install Info: Action: Install Info: File size: 963023 Info: Installing ... Info: Processing 963023 bytes Info: Progress 100%... actual_dname::InvokeAPI.testRel_InvokeAPI_fe0e662 actual_id::testRel_InvokeAPI_fe0e662 actual_version::1.0.0.1 result::success

mdandrea commented 12 years ago

It seems to be working better with the build from here: http://ci0000003863287:8080/hudson/job/BB10-Webworks-Packager/15/ Where do you guys get your builds?

-----Original Message----- From: Igor Shneur [mailto:reply@reply.github.com] Sent: Tuesday, June 19, 2012 10:55 AM To: Matthew D'Andrea Subject: Re: [BB10-Webworks-Packager] Critical Bug - Any Bar file packaged with WebWorks fails when deploying (#155)

I don't have this issue anymore in trunk build 1210. Here are the steps I took with a clean OS install:

C:\Program Files\Research In Motion\BB10-Webworks-Packager-next-invoke-apps\depe ndencies\tools\bin>blackberry-deploy -installapp -package "C:\WebWorks\MyWidgets \BB10\Invocation\InvokeAPI\device\InvokeAPI.bar" -device 10.137.235.206 Info: Sending request: Install Info: Resetting stale session Info: Sending request: Install Info: Action: Install Info: File size: 963023 Info: Installing ... Info: Processing 963023 bytes Info: Progress 32%... Info: Progress 100%... Info: Progress 100%... actual_dname::InvokeAPI.testRel_InvokeAPI_fe0e662 actual_id::testRel_InvokeAPI_fe0e662 actual_version::1.0.0.1 result::success

C:\Program Files\Research In Motion\BB10-Webworks-Packager-next-invoke-apps\depe ndencies\tools\bin>blackberry-deploy -uninstallapp -package "C:\WebWorks\MyWidge ts\BB10\Invocation\InvokeAPI\device\InvokeAPI.bar" -device 10.137.235.206 Info: Sending request: Uninstall Info: Action: Uninstall Info: Uninstalling testRel_InvokeAPIfe0e662_... Info: Processing 0 bytes actual_dname::InvokeAPI.testRel_InvokeAPI_fe0e662 actual_id::testRel_InvokeAPIfe0e662_ actual_version::1.0.0.1 result::success

C:\Program Files\Research In Motion\BB10-Webworks-Packager-next-invoke-apps\depe ndencies\tools\bin>blackberry-deploy -installapp -package "C:\WebWorks\MyWidgets \BB10\Invocation\InvokeAPI\device\InvokeAPI.bar" -device 10.137.235.206 Info: Sending request: Install Info: Action: Install Info: File size: 963023 Info: Installing ... Info: Processing 963023 bytes Info: Progress 100%... actual_dname::InvokeAPI.testRel_InvokeAPI_fe0e662 actual_id::testRel_InvokeAPI_fe0e662 actual_version::1.0.0.1 result::success


Reply to this email directly or view it on GitHub: https://github.com/blackberry/BB10-Webworks-Packager/issues/155#issuecomment-6427025


This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.

ishneur commented 12 years ago

I'm using http://ci0000003863287:8080/hudson/job/BB10-Webworks-Packager-next-invoke-apps/, but the one that you're using should be the same packager.