All Ionic Pro Deploy builds fail

Starting from yesterday (17/11/18) - Ionic Pro Deploy builds started to fail at the last step (upload app). Something related to fastlane (no idea what that is…).
The build started failing after I added and edit-config section to my config.xml file:

<edit-config target="NSCameraUsageDescription" file="*-Info.plist" mode="merge">
            <string>need camera access to take pictures</string>
</edit-config>

Anyone knows something about that?
This is the relevant log part:

[21:37:02]: ionic info [21:37:04]: ▸ ✔ Gathering environment info - done! [21:37:04]: ▸ Ionic: [21:37:04]: ▸ ionic (Ionic CLI) : 4.1.1 (/usr/local/lib/node_modules/ionic) [21:37:04]: ▸ Ionic Framework : ionic-angular 3.9.2 [21:37:04]: ▸ @ionic/app-scripts : 3.2.0 [21:37:04]: ▸ Cordova: [21:37:04]: ▸ cordova (Cordova CLI) : 8.0.0 [21:37:04]: ▸ Cordova Platforms : none [21:37:04]: ▸ Cordova Plugins : no whitelisted plugins (0 plugins total) [21:37:04]: ▸ System: [21:37:04]: ▸ NodeJS : v8.12.0 (/usr/local/bin/node) [21:37:04]: ▸ npm : 6.4.1 [21:37:04]: ▸ OS : Linux 4.14 [21:37:04]: Generating app manifest... [21:37:04]: ionic deploy manifest
[21:37:04]: ------------------------
[21:37:04]: — Step: upload_app —
[21:37:04]: ------------------------
[21:37:04]: Uploading app…
±-----------------±---------------------+
| Lane Context |
±-----------------±---------------------+
| DEFAULT_PLATFORM | ios |
| PLATFORM_NAME | android |
| LANE_NAME | android deploy_build |
±-----------------±---------------------+
[21:37:11]: Shell command exited with exit status 1 instead of 0.

±-----±------------------±------------+
| fastlane summary |
±-----±------------------±------------+
| Step | Action | Time (in s) |
±-----±------------------±------------+
| 1 | default_platform | 0 |
| 2 | build_summary | 1 |
| 3 | modify_config_xml | 0 |
| 4 | build_pro_app | 52 |
| :boom: | upload_app | 6 |
±-----±------------------±------------+

[21:37:11]: fastlane finished with errors

Looking for related GitHub issues on fastlane/fastlane…

:arrow_right: Improve Beta Setup
https://github.com/fastlane/fastlane/pull/1 [closed] 1 :speech_balloon:
04 Feb 2017

:arrow_right: Automatically upload DSYM to Firebase/Crashlytics
https://github.com/fastlane/fastlane/issues/13096 [closed] 7 :speech_balloon:
3 days ago

:arrow_right: Unlock keychain fails on Jenkins CI with 51 status code
https://github.com/fastlane/fastlane/issues/13492 [closed] 6 :speech_balloon:
6 weeks ago

and 56 more at: https://github.com/fastlane/fastlane/search?q=Shell%20command%20exited%20with%20exit%20status%201%20instead%20of%200.&type=Issues&utf8=✓

/var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane_core/lib/fastlane_core/ui/interface.rb:153:in shell_error!': [!] Shell command exited with exit status 1 instead of 0. (FastlaneCore::Interface::FastlaneShellError) from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane_core/lib/fastlane_core/ui/ui.rb:17:inmethod_missing’
from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/helper/sh_helper.rb:80:in sh_control_output' from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/helper/sh_helper.rb:12:insh’
from /builds/project-0/fastlane/actions/upload_app.rb:13:in run' from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/runner.rb:253:inblock (2 levels) in execute_action’
from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/actions/actions_helper.rb:50:in execute_action' from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/runner.rb:232:inblock in execute_action’
from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/runner.rb:227:in chdir' from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/runner.rb:227:inexecute_action’
from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/runner.rb:157:in trigger_action_by_name' from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/fast_file.rb:149:inmethod_missing’
from Fastfile:76:in block (2 levels) in parsing_binding' from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/lane.rb:33:incall’
from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/runner.rb:49:in block in execute' from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/runner.rb:45:inchdir’
from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/runner.rb:45:in execute' from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/lane_manager.rb:56:incruise_lane’
from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/command_line_handler.rb:36:in handle' from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/commands_generator.rb:108:inblock (2 levels) in run’
from /var/lib/gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in call' from /var/lib/gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:inrun’
from /var/lib/gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in run_active_command' from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:inrun!’
from /var/lib/gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in run!' from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/commands_generator.rb:333:inrun’
from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/commands_generator.rb:41:in start' from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/cli_tools_distributor.rb:108:intake_off’
from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/bin/fastlane:23:in ' from /usr/local/bin/fastlane:22:inload’
from /usr/local/bin/fastlane:22:in `

Running after script…
$ run “clean-up”
ERROR: Job failed: command terminated with exit code 1

2 Likes

Long wait for build to start:
Waiting for pod ionic-runners/runner-c9648220-project-0-concurrent-1q85p4 to be running, status is Pending

Then build terminates with no reason at random points during the build.

Update: even after reverting the change that (allegedly) caused the build to fail, the build still fails with the same error!

Hi everyone, I got the exact same issue since saturday morning.
It was working fine 4 days ago…

+----------------------------+---------------------------------------------------------+
|                                     Lane Context                                     |
+----------------------------+---------------------------------------------------------+
| DEFAULT_PLATFORM           | ios                                                     |
| PLATFORM_NAME              | android                                                 |
| LANE_NAME                  | android package_build                                   |
| DOWNLOAD_CREDENTIAL_EXISTS | true                                                    |
+----------------------------+---------------------------------------------------------+
[07:59:31]: Shell command exited with exit status 255 instead of 0.

+------+-----------------------+-------------+
|              fastlane summary              |
+------+-----------------------+-------------+
| Step | Action                | Time (in s) |
+------+-----------------------+-------------+
| 1    | default_platform      | 0           |
| 2    | build_summary         | 1           |
| 3    | modify_config_xml     | 0           |
| 4    | build_pro_app         | 98          |
| 5    | download_credential   | 1           |
| 6    | build_android_cordova | 333         |
| 💥  | upload_apk            | 0           |
+------+-----------------------+-------------+

[07:59:31]: fastlane finished with errors

Looking for related GitHub issues on fastlane/fastlane...

➡️  Bugfix 240 handle bad behavior of action collector
    https://github.com/fastlane/fastlane/pull/255 [closed] 2 💬
    04 Feb 2017

/var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane_core/lib/fastlane_core/ui/interface.rb:153:in `shell_error!': [!] Shell command exited with exit status 255 instead of 0. (FastlaneCore::Interface::FastlaneShellError)
	from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in `method_missing'
	from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/helper/sh_helper.rb:80:in `sh_control_output'
	from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/helper/sh_helper.rb:12:in `sh'
	from /builds/baptiste-dulac/kapitaliser-app/fastlane/actions/upload_apk.rb:23:in `run'
	from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/runner.rb:253:in `block (2 levels) in execute_action'
	from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action'
	from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/runner.rb:232:in `block in execute_action'
	from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/runner.rb:227:in `chdir'
	from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/runner.rb:227:in `execute_action'
	from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
	from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/fast_file.rb:149:in `method_missing'
	from Fastfile:86:in `block (2 levels) in parsing_binding'
	from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/lane.rb:33:in `call'
	from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
	from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
	from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
	from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/lane_manager.rb:56:in `cruise_lane'
	from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
	from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run'
	from /var/lib/gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
	from /var/lib/gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
	from /var/lib/gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
	from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
	from /var/lib/gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
	from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/commands_generator.rb:333:in `run'
	from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/commands_generator.rb:41:in `start'
	from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/cli_tools_distributor.rb:108:in `take_off'
	from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/bin/fastlane:23:in `'
	from /usr/local/bin/fastlane:22:in `load'
	from /usr/local/bin/fastlane:22:in `

Started seeing this issue over the weekend:

Waiting for pod ionic-runners/runner-c9648220-project-0-concurrent-5xwq5s to be running, status is Pending

Some builds work and some don’t. I understand different errors but this may help others running into similar issue.

Same here. Any workaround?

Same issue here, I have enrolled to Ionic Pro service few days ago and since then Im not able to create android APK. Also a notable mention is that Im using bitbucket as a repository.

[12:02:04]: --- Step: upload_apk ---
[12:02:04]: ------------------------
[12:02:04]: ▸ The user-provided path platforms/android/build/outputs/apk/debug/android-debug.apk does not exist.
+----------------------------+-----------------------+
|                    Lane Context                    |
+----------------------------+-----------------------+
| DEFAULT_PLATFORM           | ios                   |
| PLATFORM_NAME              | android               |
| LANE_NAME                  | android package_build |
| DOWNLOAD_CREDENTIAL_EXISTS | false                 |
+----------------------------+-----------------------+
[12:02:04]: Shell command exited with exit status 255 instead of 0.

The user-provided path platforms/android/build/outputs/apk/debug/android-debug.apk does not exist.


+------+-----------------------+-------------+
|              fastlane summary              |
+------+-----------------------+-------------+
| Step | Action                | Time (in s) |
+------+-----------------------+-------------+
| 1    | default_platform      | 0           |
| 2    | build_summary         | 1           |
| 3    | modify_config_xml     | 0           |
| 4    | build_pro_app         | 42          |
| 5    | download_credential   | 0           |
| 6    | build_android_cordova | 317         |
| 💥   | upload_apk            | 0           |
+------+-----------------------+-------------+

[12:02:04]: fastlane finished with errors

Looking for related GitHub issues on fastlane/fastlane...

➡️  Execution fails on fastlane-0.1.14
    https://github.com/fastlane/fastlane/issues/79 [closed] 5 💬
    22 Sep 2016

➡️  Documentation - ipa vs. ipa (shenzhen)?
    https://github.com/fastlane/fastlane/issues/72 [closed] 2 💬
    22 Sep 2016

➡️  Extension Support
    https://github.com/fastlane/fastlane/issues/76 [closed] 6 💬
    11 Dec 2016

and 13715 more at: https://github.com/fastlane/fastlane/search?q=Shell%20command%20exited%20with%20exit%20status%20255%20instead%20of%200.%0A%0AThe%20user-provided%20path%20platforms%2Fandroid%2Fbuild%2Foutputs%2Fapk%2Fdebug%2Fandroid-debug.apk%20does%20not%20exist.%0A&type=Issues&utf8=✓

/var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane_core/lib/fastlane_core/ui/interface.rb:153:in `shell_error!': [!] Shell command exited with exit status 255 instead of 0. (FastlaneCore::Interface::FastlaneShellError)

The user-provided path platforms/android/build/outputs/apk/debug/android-debug.apk does not exist.

	from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in `method_missing'
	from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/helper/sh_helper.rb:80:in `sh_control_output'
	from /builds/Sipodsoftware/hoteo-ionic-app/fastlane/actions/upload_apk.rb:26:in `run'
	from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/runner.rb:253:in `block (2 levels) in execute_action'
	from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action'
	from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/runner.rb:232:in `block in execute_action'
	from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/runner.rb:227:in `chdir'
	from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/runner.rb:227:in `execute_action'
	from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
	from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/fast_file.rb:149:in `method_missing'
	from Fastfile:86:in `block (2 levels) in parsing_binding'
	from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/lane.rb:33:in `call'
	from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
	from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
	from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
	from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/lane_manager.rb:56:in `cruise_lane'
	from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
	from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run'
	from /var/lib/gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
	from /var/lib/gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
	from /var/lib/gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
	from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
	from /var/lib/gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
	from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/commands_generator.rb:333:in `run'
	from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/commands_generator.rb:41:in `start'
	from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/cli_tools_distributor.rb:108:in `take_off'
	from /var/lib/gems/2.3.0/gems/fastlane-2.108.0/bin/fastlane:23:in `'
	from /usr/local/bin/fastlane:22:in `load'
	from /usr/local/bin/fastlane:22:in `
'
Running after script...
$ run "clean-up"
ERROR: Job failed: command terminated with exit code 1

Same problem here, did you find a solution?

EDIT My problem was that ionic cordova resources failed (for some reason) and I was trying to package an incomplete app. The error did not said that anywhere