renative icon indicating copy to clipboard operation
renative copied to clipboard

[Tizen] Tizen certificate is not generated automatically

Open GabrieleKaceviciute opened this issue 1 year ago β€’ 4 comments

Describe the bug If you run rnv on debug mode Tizen certificate is not generated and not added to Tizen certificate manager. And app fails to launch.

To Reproduce

  1. make sure you don’t have certificates added to Tizen certificate manager
  2. go to template-starter package
  3. do rnv run -p tizen
  4. check Tizen certificate manager

Expected behavior Certificate should appear in Tizen certificate manager and app should start

Screenshots or copy&paste

Γ— FAILED: C:\tizen-studio\tools\ide\bin\tizen.bat install -- C:\Users\dev\Desktop\renative\packages\template-starter\platformBuilds\template_tizen\output -n RNVanillaTV.wgt -t T-samsung-7.0-x86
[ error ] [run] COMMAND:

C:\tizen-studio\tools\ide\bin\tizen.bat install -- C:\Users\dev\Desktop\renative\packages\template-starter\platformBuilds\template_tizen\output -n RNVanillaTV.wgt -t T-samsung-7.0-x86

FAILED with ERROR:

app_id[NkVRhWHJST.RNVanillaTV] install failed[118, -12], reason: Check certificate error :
spend time for wascmd is [1769]ms
Failed to install Tizen application.
Total time: 00:00:04.117

Command failed with exit code 1: C:\tizen-studio\tools\ide\bin\tizen.bat install -- C:\Users\dev\Desktop\renative\packages\template-starter\platformBuilds\template_tizen\output -n RNVanillaTV.wgt -t T-samsung-7.0-x86
Transferring the package...
Transferred the package: C:\Users\dev\Desktop\renative\packages\template-starter\platformBuilds\template_tizen\output\RNVanillaTV.wgt -> /home/owner/share/tmp/sdk_tools/tmp
Installing the package...
--------------------
Platform log view
--------------------
install NkVRhWHJST.RNVanillaTV
package_path /home/owner/share/tmp/sdk_tools/tmp/RNVanillaTV.wgt
app_id[NkVRhWHJST.RNVanillaTV] install start
app_id[NkVRhWHJST.RNVanillaTV] installing[2]
app_id[NkVRhWHJST.RNVanillaTV] installing[5]
app_id[NkVRhWHJST.RNVanillaTV] installing[7]
app_id[NkVRhWHJST.RNVanillaTV] installing[10]
app_id[NkVRhWHJST.RNVanillaTV] installing[13]
app_id[NkVRhWHJST.RNVanillaTV] installing[15]
app_id[NkVRhWHJST.RNVanillaTV] installing[18]
app_id[NkVRhWHJST.RNVanillaTV] installing[21]
app_id[NkVRhWHJST.RNVanillaTV] installing[23]
app_id[NkVRhWHJST.RNVanillaTV] install failed[118, -12], reason: Check certificate error :
spend time for wascmd is [1769]ms
Failed to install Tizen application.
Total time: 00:00:04.117

Error: Command failed with exit code 1: C:\tizen-studio\tools\ide\bin\tizen.bat install -- C:\Users\dev\Desktop\renative\packages\template-starter\platformBuilds\template_tizen\output -n RNVanillaTV.wgt -t T-samsung-7.0-x86
Transferring the package...
Transferred the package: C:\Users\dev\Desktop\renative\packages\template-starter\platformBuilds\template_tizen\output\RNVanillaTV.wgt -> /home/owner/share/tmp/sdk_tools/tmp
Installing the package...
--------------------
Platform log view
--------------------
install NkVRhWHJST.RNVanillaTV
package_path /home/owner/share/tmp/sdk_tools/tmp/RNVanillaTV.wgt
app_id[NkVRhWHJST.RNVanillaTV] install start
app_id[NkVRhWHJST.RNVanillaTV] installing[2]
app_id[NkVRhWHJST.RNVanillaTV] installing[5]
app_id[NkVRhWHJST.RNVanillaTV] installing[7]
app_id[NkVRhWHJST.RNVanillaTV] installing[10]
app_id[NkVRhWHJST.RNVanillaTV] installing[13]
app_id[NkVRhWHJST.RNVanillaTV] installing[15]
app_id[NkVRhWHJST.RNVanillaTV] installing[18]
app_id[NkVRhWHJST.RNVanillaTV] installing[21]
app_id[NkVRhWHJST.RNVanillaTV] installing[23]
app_id[NkVRhWHJST.RNVanillaTV] install failed[118, -12], reason: Check certificate error :
spend time for wascmd is [1769]ms
Failed to install Tizen application.
Total time: 00:00:04.117
    at makeError (C:\Users\dev\Desktop\renative\node_modules\execa\lib\error.js:60:11)
    at handlePromise (C:\Users\dev\Desktop\renative\node_modules\execa\index.js:118:26)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

tizen

Desktop (please complete the following information):

  • OS: windows 10 Pro
  • Node Version 18.14.2
  • RNV Version 1.0.0-canary.8

  • OS: macOS Ventura 13.5.2 (Intel)
  • Node Version 18.14.2
  • RNV Version 1.0.0-canary.8

  • OS: macOS Big Sur 11.6 (M1)
  • Node Version 18.14.2
  • RNV Version 1.0.0-canary.8

Additional context Note: Same issue was on 0.37.3

GabrieleKaceviciute avatar Nov 23 '23 09:11 GabrieleKaceviciute

On linux sertifiacte was generated but when laucnhing app still getting same error, so sertificate wasn't generated in correct way probably

pauliusguzas avatar Nov 23 '23 14:11 pauliusguzas

1.0.0-rc.3 macOS and Windows Certificate is generated but still getting same error on CLI ->

βœ” Executing: /Users/gabriele/tizen-studio/tools/ide/bin/tizen uninstall -p NkVRhWHJST.RNVanillaTV -t T-samsung-7.0-x86
βœ– FAILED: /Users/gabriele/tizen-studio/tools/ide/bin/tizen install -- /Users/gabriele/Desktop/renative/packages/template-starter/platformBuilds/template_tizen/output -n RNVanillaTV.wgt -t T-samsung-7.0-x86
[ error ] [run] COMMAND:

/Users/gabriele/tizen-studio/tools/ide/bin/tizen install -- /Users/gabriele/Desktop/renative/packages/template-starter/platformBuilds/template_tizen/output -n RNVanillaTV.wgt -t T-samsung-7.0-x86

FAILED with ERROR:

app_id[NkVRhWHJST.RNVanillaTV] install failed[118, -12], reason: Check certificate error : :Invalid certificate chain with certificate in signature.:<-3>
spend time for wascmd is [535]ms
Failed to install Tizen application.
Total time: 00:00:01.323

Command failed with exit code 1: /Users/gabriele/tizen-studio/tools/ide/bin/tizen install -- /Users/gabriele/Desktop/renative/packages/template-starter/platformBuilds/template_tizen/output -n RNVanillaTV.wgt -t T-samsung-7.0-x86
Transferring the package...
Transferred the package: /Users/gabriele/Desktop/renative/packages/template-starter/platformBuilds/template_tizen/output/RNVanillaTV.wgt -> /home/owner/share/tmp/sdk_tools/tmp
Installing the package...
--------------------
Platform log view
--------------------
install NkVRhWHJST.RNVanillaTV
package_path /home/owner/share/tmp/sdk_tools/tmp/RNVanillaTV.wgt
app_id[NkVRhWHJST.RNVanillaTV] install start
app_id[NkVRhWHJST.RNVanillaTV] installing[2]
app_id[NkVRhWHJST.RNVanillaTV] installing[5]
app_id[NkVRhWHJST.RNVanillaTV] installing[7]
app_id[NkVRhWHJST.RNVanillaTV] installing[10]
app_id[NkVRhWHJST.RNVanillaTV] installing[13]
app_id[NkVRhWHJST.RNVanillaTV] installing[15]
app_id[NkVRhWHJST.RNVanillaTV] installing[18]
app_id[NkVRhWHJST.RNVanillaTV] installing[21]
app_id[NkVRhWHJST.RNVanillaTV] installing[23]
app_id[NkVRhWHJST.RNVanillaTV] install failed[118, -12], reason: Check certificate error : :Invalid certificate chain with certificate in signature.:<-3>
spend time for wascmd is [535]ms
Failed to install Tizen application.
Total time: 00:00:01.323

Error: Command failed with exit code 1: /Users/gabriele/tizen-studio/tools/ide/bin/tizen install -- /Users/gabriele/Desktop/renative/packages/template-starter/platformBuilds/template_tizen/output -n RNVanillaTV.wgt -t T-samsung-7.0-x86
Transferring the package...
Transferred the package: /Users/gabriele/Desktop/renative/packages/template-starter/platformBuilds/template_tizen/output/RNVanillaTV.wgt -> /home/owner/share/tmp/sdk_tools/tmp
Installing the package...
--------------------
Platform log view
--------------------
install NkVRhWHJST.RNVanillaTV
package_path /home/owner/share/tmp/sdk_tools/tmp/RNVanillaTV.wgt
app_id[NkVRhWHJST.RNVanillaTV] install start
app_id[NkVRhWHJST.RNVanillaTV] installing[2]
app_id[NkVRhWHJST.RNVanillaTV] installing[5]
app_id[NkVRhWHJST.RNVanillaTV] installing[7]
app_id[NkVRhWHJST.RNVanillaTV] installing[10]
app_id[NkVRhWHJST.RNVanillaTV] installing[13]
app_id[NkVRhWHJST.RNVanillaTV] installing[15]
app_id[NkVRhWHJST.RNVanillaTV] installing[18]
app_id[NkVRhWHJST.RNVanillaTV] installing[21]
app_id[NkVRhWHJST.RNVanillaTV] installing[23]
app_id[NkVRhWHJST.RNVanillaTV] install failed[118, -12], reason: Check certificate error : :Invalid certificate chain with certificate in signature.:<-3>
spend time for wascmd is [535]ms
Failed to install Tizen application.
Total time: 00:00:01.323
    at makeError (/Users/gabriele/Desktop/renative/node_modules/execa/lib/error.js:60:11)
    at handlePromise (/Users/gabriele/Desktop/renative/node_modules/execa/index.js:118:26)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)


[ warn ] [run] There is no emulator or device connected! Let's try to launch it. "rnv target launch -p tizen -t T-samsung-7.0-x86"
[ task ] [run] launchTizenSimulator:T-samsung-7.0-x86[2]
βœ– FAILED: /Users/gabriele/tizen-studio/tools/emulator/bin/em-cli launch --name T-samsung-7.0-x86
[ error ] [run] COMMAND:

/Users/gabriele/tizen-studio/tools/emulator/bin/em-cli launch --name T-samsung-7.0-x86

FAILED with ERROR:

Error: Failed to start this VM.
[T-samsung-7.0-x86] is running now...

Command failed with exit code 2: /Users/gabriele/tizen-studio/tools/emulator/bin/em-cli launch --name T-samsung-7.0-x86
Error: Failed to start this VM.
[T-samsung-7.0-x86] is running now...

Error: Command failed with exit code 2: /Users/gabriele/tizen-studio/tools/emulator/bin/em-cli launch --name T-samsung-7.0-x86
Error: Failed to start this VM.
[T-samsung-7.0-x86] is running now...
    at makeError (/Users/gabriele/Desktop/renative/node_modules/execa/lib/error.js:60:11)
    at handlePromise (/Users/gabriele/Desktop/renative/node_modules/execa/index.js:118:26)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

GabrieleKaceviciute avatar Dec 13 '23 10:12 GabrieleKaceviciute

Windows and Arm macOS OS 1.0.0-rc.3 npx rnv run -p tizenwatch -t ip sdb devices do show watch as connected successfully

√ Executing: C:\tizen-studio\tools\ide\bin\tizen.bat uninstall -p cHIP2fIRQZ -t SM-R500
Γ— FAILED: C:\tizen-studio\tools\ide\bin\tizen.bat install -- C:\Users\dev\Desktop\renative\packages\template-starter\platformBuilds\template_tizenwatch\output -n RNVanillaWatch.wgt -t SM-R500
[ error ] [run] COMMAND:

C:\tizen-studio\tools\ide\bin\tizen.bat install -- C:\Users\dev\Desktop\renative\packages\template-starter\platformBuilds\template_tizenwatch\output -n RNVanillaWatch.wgt -t SM-R500

FAILED with ERROR:

__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[error] val[-12] error message: :Non trusted certificate is used. Register valid certificate:<-32>
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[end] val[fail]
processing result : Check certificate error [-12] failed
spend time for pkgcmd is [1192]ms

Failed to install Tizen application.
Total time: 00:00:03.908

Command failed with exit code 1: C:\tizen-studio\tools\ide\bin\tizen.bat install -- C:\Users\dev\Desktop\renative\packages\template-starter\platformBuilds\template_tizenwatch\output -n RNVanillaWatch.wgt -t SM-R500
path is /home/owner/share/tmp/sdk_tools/tmp/RNVanillaWatch.wgt
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[start] val[install]
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[install_percent] val[10]
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[install_percent] val[13]
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[install_percent] val[16]
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[install_percent] val[18]
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[install_percent] val[21]
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[install_percent] val[24]
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[error] val[-12] error message: :Non trusted certificate is used. Register valid certificate:<-32>
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[end] val[fail]
processing result : Check certificate error [-12] failed
spend time for pkgcmd is [1192]ms

Failed to install Tizen application.
Total time: 00:00:03.908

Error: Command failed with exit code 1: C:\tizen-studio\tools\ide\bin\tizen.bat install -- C:\Users\dev\Desktop\renative\packages\template-starter\platformBuilds\template_tizenwatch\output -n RNVanillaWatch.wgt -t SM-R500
path is /home/owner/share/tmp/sdk_tools/tmp/RNVanillaWatch.wgt
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[start] val[install]
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[install_percent] val[10]
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[install_percent] val[13]
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[install_percent] val[16]
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[install_percent] val[18]
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[install_percent] val[21]
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[install_percent] val[24]
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[error] val[-12] error message: :Non trusted certificate is used. Register valid certificate:<-32>
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[end] val[fail]
processing result : Check certificate error [-12] failed
spend time for pkgcmd is [1192]ms

Failed to install Tizen application.
Total time: 00:00:03.908
    at makeError (C:\Users\dev\Desktop\renative\node_modules\execa\lib\error.js:60:11)
    at handlePromise (C:\Users\dev\Desktop\renative\node_modules\execa\index.js:118:26)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)


[ warn ] [run] There is no emulator or device connected! Let's try to launch it. "rnv target launch -p tizenwatch -t 192.168.1.31"
[ task ] [run] launchTizenSimulator:192.168.1.31[1]
Γ— FAILED: C:\tizen-studio\tools\emulator\bin\em-cli.bat launch --name 192.168.1.31
[ error ] [run] COMMAND:

C:\tizen-studio\tools\emulator\bin\em-cli.bat launch --name 192.168.1.31

FAILED with ERROR:

Command failed with exit code 2: C:\tizen-studio\tools\emulator\bin\em-cli.bat launch --name 192.168.1.31

Error: Command failed with exit code 2: C:\tizen-studio\tools\emulator\bin\em-cli.bat launch --name 192.168.1.31
    at makeError (C:\Users\dev\Desktop\renative\node_modules\execa\lib\error.js:60:11)
    at handlePromise (C:\Users\dev\Desktop\renative\node_modules\execa\index.js:118:26)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Intel macOS getting below, sdb devices show watch

βœ” Executing: /Users/pauliusguzas/tizen-studio/tools/ide/bin/tizen uninstall -p cHIP2fIRQZ -t SM-R500
βœ– FAILED: /Users/pauliusguzas/tizen-studio/tools/ide/bin/tizen install -- /Users/pauliusguzas/Desktop/renative/renative/packages/template-starter/platformBuilds/template_tizenwatch/output -n RNVanillaWatch.wgt -t SM-R500
[ error ] [run] COMMAND:

/Users/pauliusguzas/tizen-studio/tools/ide/bin/tizen install -- /Users/pauliusguzas/Desktop/renative/renative/packages/template-starter/platformBuilds/template_tizenwatch/output -n RNVanillaWatch.wgt -t SM-R500

FAILED with ERROR:

__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[error] val[-12] error message: :Non trusted certificate is used. Register valid certificate:<-32>
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[end] val[fail]
processing result : Check certificate error [-12] failed
spend time for pkgcmd is [1160]ms
Failed to install Tizen application.
Total time: 00:00:03.389

Command failed with exit code 1: /Users/pauliusguzas/tizen-studio/tools/ide/bin/tizen install -- /Users/pauliusguzas/Desktop/renative/renative/packages/template-starter/platformBuilds/template_tizenwatch/output -n RNVanillaWatch.wgt -t SM-R500
path is /home/owner/share/tmp/sdk_tools/tmp/RNVanillaWatch.wgt
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[start] val[install]
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[install_percent] val[10]
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[install_percent] val[13]
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[install_percent] val[16]
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[install_percent] val[18]
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[install_percent] val[21]
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[install_percent] val[24]
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[error] val[-12] error message: :Non trusted certificate is used. Register valid certificate:<-32>
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[end] val[fail]
processing result : Check certificate error [-12] failed
spend time for pkgcmd is [1160]ms

Failed to install Tizen application.
Total time: 00:00:03.389

Error: Command failed with exit code 1: /Users/pauliusguzas/tizen-studio/tools/ide/bin/tizen install -- /Users/pauliusguzas/Desktop/renative/renative/packages/template-starter/platformBuilds/template_tizenwatch/output -n RNVanillaWatch.wgt -t SM-R500
path is /home/owner/share/tmp/sdk_tools/tmp/RNVanillaWatch.wgt
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[start] val[install]
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[install_percent] val[10]
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[install_percent] val[13]
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[install_percent] val[16]
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[install_percent] val[18]
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[install_percent] val[21]
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[install_percent] val[24]
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[error] val[-12] error message: :Non trusted certificate is used. Register valid certificate:<-32>
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[end] val[fail]
processing result : Check certificate error [-12] failed
spend time for pkgcmd is [1160]ms

Failed to install Tizen application.
Total time: 00:00:03.389
    at makeError (/Users/pauliusguzas/Desktop/renative/renative/node_modules/execa/lib/error.js:60:11)
    at handlePromise (/Users/pauliusguzas/Desktop/renative/renative/node_modules/execa/index.js:118:26)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)


[ warn ] [run] There is no emulator or device connected! Let's try to launch it. "rnv target launch -p tizenwatch -t 192.168.1.31"
[ task ] [run] launchTizenSimulator:192.168.1.31[1]
βœ– FAILED: /Users/pauliusguzas/tizen-studio/tools/emulator/bin/em-cli launch --name 192.168.1.31
[ error ] [run] COMMAND:

/Users/pauliusguzas/tizen-studio/tools/emulator/bin/em-cli launch --name 192.168.1.31

FAILED with ERROR:

Error: 192.168.1.31 does not match any VM

Command failed with exit code 2: /Users/pauliusguzas/tizen-studio/tools/emulator/bin/em-cli launch --name 192.168.1.31
Error: 192.168.1.31 does not match any VM

Error: Command failed with exit code 2: /Users/pauliusguzas/tizen-studio/tools/emulator/bin/em-cli launch --name 192.168.1.31
Error: 192.168.1.31 does not match any VM
    at makeError (/Users/pauliusguzas/Desktop/renative/renative/node_modules/execa/lib/error.js:60:11)
    at handlePromise (/Users/pauliusguzas/Desktop/renative/renative/node_modules/execa/index.js:118:26)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

pauliusguzas avatar Dec 18 '23 16:12 pauliusguzas

remaining issues moved to https://github.com/flexn-io/renative/issues/1268

pauliusguzas avatar Jan 16 '24 07:01 pauliusguzas