React-native-code-push: Error: Failed to release a CodePush update. (appcenter cli 2.6.7)

Created on 7 Sep 2020  路  6Comments  路  Source: microsoft/react-native-code-push

I got an issue with appcenter cli 2.3.3, exactly here:
https://github.com/microsoft/react-native-code-push/issues/1886

After upgrade to newest version appcenter cli 2.6.7, I got the error:

Error: Failed to release a CodePush update.
error Command failed with exit code 3.

Steps to Reproduce

  1. Using react-native custom build
    package.json
    "react": "16.13.1", "react-native": "mobiletechvn/react-native#v0.63.2.fix-shadow-node",
  2. Then run codepush: appcenter codepush release-react -a MY_REPO -d Development -t 3.0.490 -x
  3. Got the error

If i use "react-native": "0.63.2", => It work!

Expected Behavior

Should work without error

Actual Behavior

Here log output

Running "react-native bundle" command:

node node_modules/.bin/react-native bundle --assets-dest /var/folders/vk/d6dx88ld467_n1j2bxyvprzh0000gn/T/code-push202087-5764-16r58ub.1rv8/CodePush --bundle-output /var/folders/vk/d6dx88ld467_n1j2bxyvprzh0000gn/T/code-push202087-5764-16r58ub.1rv8/CodePush/index.android.bundle --dev false --entry-file index.js --platform android
Welcome to React Native!
                Learn once, write anywhere

info Writing bundle output to:, /var/folders/vk/d6dx88ld467_n1j2bxyvprzh0000gn/T/code-push202087-5764-16r58ub.1rv8/CodePush/index.android.bundle
info Done writing bundle output
info Copying 195 asset files
info Done copying assets
Converting JS bundle to byte code via Hermes, running command:

Error: Failed to release a CodePush update.
error Command failed with exit code 3.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Reproducible Demo

Please see reproduction steps

Environment

  • react-native-code-push version: 6.3.0
  • react-native version: 0.63.2 custom core
  • iOS/Android/Windows version: all
  • Does this reproduce on a debug build or release build? => Debug
  • Does this reproduce on a simulator, or only on a physical device? => N/A
android

Most helpful comment

Hi @luatnd
Thanks for reporting!

Thanks for this case, we will try to fix it as soon as possible.

All 6 comments

Hi @luatnd
Thanks for reporting!

Thanks for this case, we will try to fix it as soon as possible.

Hi

I was also able to reproduce the issue with

"react-native": "^0.63.3",

Working fine with

"react-native": "0.63.3",
$> appcenter --help

Visual Studio App Center helps you build, test, distribute, and monitor mobile apps.
Version 2.7.1

In my case the issue was only occurring on Android

@yfuks your issue seem to be different one, related to semver version, which is discussed in #1676 so if you have a working example on which we can try to repro, could you please share it in the aforementioned issue?

I've created the PR:1104 with fix for appcenter-cli. Let's wait for the review and release.

@n-kurdiukov-akvelon I have a similar issue if using "react-native": "github:jitsi/react-native#efd2aff5661d75a230e36406b698cfe0ee545be2", in my package.json, even when using appcenter version 2.7.3

please tell me if you want me to open a new issue.

edit:
should not the getReactNativeVersion looks into node_modules/react-native/package.json to see the installed version rather than in the project package.json ?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Fuhrmann picture Fuhrmann  路  3Comments

EdmundMai picture EdmundMai  路  4Comments

fanzhiri picture fanzhiri  路  3Comments

vira-khdr picture vira-khdr  路  3Comments

Adr1ann picture Adr1ann  路  3Comments