Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RNV Tizen TV unable to deploy into TVs #295

Closed
RicardasSimcikas opened this issue Oct 3, 2019 · 9 comments
Closed

RNV Tizen TV unable to deploy into TVs #295

RicardasSimcikas opened this issue Oct 3, 2019 · 9 comments
Labels
bug Something isn't working pinned support_chain

Comments

@RicardasSimcikas
Copy link
Contributor

Describe the bug
'rnv run -p tizen -d -t "TV ip" ' - unable to deploy into TVs.

Screenshots or copy&paste
Linux/mac

/home/testlab/tizen-studio/tools/ide/bin/tizen install -- /home/testlab/Desktop/testRnv/platformBuilds/helloWorld_tizen/output -n RNVanillaTV.wgt -t UE43NU7192 

FAILED with ERROR: 

Command failed with exit code 1 (EPERM): /home/testlab/tizen-studio/tools/ide/bin/tizen install -- /home/testlab/Desktop/testRnv/platformBuilds/helloWorld_tizen/output -n RNVanillaTV.wgt -t UE43NU7192
│ ⚠️  $ rnv run -p tizen -d -t 192.168.1.175 - WARNING: Looks like there is no emulator or device connected! Let's try to launch it. "rnv target launch -p tizen -t 192.168.1.175"
│ 🛑  $ rnv run -p tizen -d -t 192.168.1.175 - ERRROR! COMMAND: 

/home/testlab/tizen-studio/tools/emulator/bin/em-cli launch --name 192.168.1.175 

FAILED with ERROR: 

Error: 192.168.1.175 does not match any VM

Windows

C:\tizen-studio\tools\ide\bin\tizen.bat install -- C:\Users\ricsim\Desktop\test\platformBuilds\helloWorld_tizen\output -n RNVanillaTV.wgt -t UE43NU7192
FAILED with ERROR:
Command failed with exit code 2 (ENOENT): C:\tizen-studio\tools\ide\bin\tizen.bat install -- C:\Users\ricsim\Desktop\test\platformBuilds\helloWorld_tizen\output -n RNVanillaTV.wgt -t UE43NU7192
spawn C:\tizen-studio\tools\ide\bin\tizen.bat ENOENT
│ ⚠️  $ rnv run -p tizen -d -t 192.168.1.175 - WARNING: Looks like there is no emulator or device connected! Let's try to launch it. "rnv target launch -p tizen -t 192.168.1.175"
│ 🛑  $ rnv run -p tizen -d -t 192.168.1.175 - ERRROR! COMMAND:
C:\tizen-studio\tools\emulator\bin\em-cli.bat launch --name 192.168.1.175
FAILED with ERROR:
Command failed with exit code 2 (Unknown system error -2): C:\tizen-studio\tools\emulator\bin\em-cli.bat launch --name 192.168.1.175

Desktop (please complete the following information):

  • OS: Ubuntu 18.04.3 LTS, Windows 10, mac
  • RNV Version [0.27.5-alpha.3]
@RicardasSimcikas RicardasSimcikas added the bug Something isn't working label Oct 3, 2019
@mihaiblaga89
Copy link
Member

@RicardasSimcikas For tizen you first need to enable Dev mode on TV then set your PC's IP in "Host PC IP", as specified here (https://developer.samsung.com/tv/develop/getting-started/using-sdk/tv-device), section 1. But we will change the errors on RNV to be a little more descriptive in this case, instead of "EPERM" and provide full guidelines on how to do it.

@RicardasSimcikas
Copy link
Contributor Author

@mihaiblaga89 I did exactly the same and the error is still present.
Image from iOS

@mihaiblaga89
Copy link
Member

If you run rnv with -i it will give you more info, as stated in the other issue. There you can find the exact commands that are running, for example something with tizen-studio/.../sdb connect 192.168.1.175. Try running that command manually and see if it connects to your tv. sdb is a copy of android's adb, so you can run the same commands to debug, like sdb devices

@pavjacko pavjacko added this to To do in Roadmap Oct 5, 2019
@RicardasSimcikas
Copy link
Contributor Author

RicardasSimcikas commented Oct 8, 2019

rnv run -p tizen -d -i -t ip

install wgt
package_path /home/owner/share/tmp/sdk_tools/tmp/RNVanillaTV.wgt
was_install_app return WAS_TRUE
app_id[wgt] install start
app_id[wgt] installing[7]
app_id[wgt] installing[9]
app_id[wgt] installing[11]
app_id[wgt] installing[14]
app_id[wgt] installing[16]
app_id[wgt] install failed[118012]
spend time for wascmd is [1190]ms
cmd_ret:0
Failed to install Tizen application.
Total time: 00:00:01.984
🛑  $ rnv run -p tizen -d -i -t 192.168.1.175 - ERRROR! COMMAND:

/Users/ricardassimcikas/tizen-studio/tools/ide/bin/tizen install -- /Users/ricardassimcikas/Desktop/HelloWorld/platformBuilds/helloWorld_tizen/output -n RNVanillaTV.wgt -t UE43NU7192

FAILED with ERROR:

Command failed with exit code 1 (EPERM): /Users/ricardassimcikas/tizen-studio/tools/ide/bin/tizen install -- /Users/ricardassimcikas/Desktop/HelloWorld/platformBuilds/helloWorld_tizen/output -n RNVanillaTV.wgt -t UE43NU7192
⚠️  $ rnv run -p tizen -d -i -t 192.168.1.175 - WARNING: Looks like there is no emulator or device connected! Let's try to launch it. "rnv target launch -p tizen -t 192.168.1.175"
$ rnv run -p tizen -d -i -t 192.168.1.175 - launchTizenSimulator:192.168.1.175 - Starting!
_execute: /Users/ricardassimcikas/tizen-studio/tools/emulator/bin/em-cli launch --name 192.168.1.175
⠸ Executing: /Users/ricardassimcikas/tizen-studio/tools/emulator/bin/em-cli launch --name 192.168.1.175Error: 192.168.1.175 does not match any VM
✖ FAILED: /Users/ricardassimcikas/tizen-studio/tools/emulator/bin/em-cli launch --name 192.168.1.175
Error: 192.168.1.175 does not match any VM

I have tried to run '/Users/ricardassimcikas/tizen-studio/tools/ide/bin/tizen install -- /Users/ricardassimcikas/Desktop/HelloWorld/platformBuilds/helloWorld_tizen/output -n RNVanillaTV.wgt -t UE43NU7192' separately, but output is the same.

sdb devices

Ricardass-iMac:HelloWorld ricardassimcikas$ /Users/ricardassimcikas/tizen-studio/tools/sdb connect 192.168.1.175
192.168.1.175:26101 is already connected

@stale
Copy link

stale bot commented Dec 7, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Dec 7, 2019
@stale stale bot closed this as completed Dec 14, 2019
Roadmap automation moved this from To Decide to RELEASED Dec 14, 2019
@MrAndrewMal
Copy link

MrAndrewMal commented May 21, 2020

There is news on a bug, how fix?
Enabled Dev mode on TV, set PC ip in "HOST PC IP".

Mac

$ rnv run -p tizen -d -t 10.0.0.235 - ERRROR! COMMAND: 

/Users/andrei/tizen-studio/tools/ide/bin/tizen install -- /Users/andrei/work/web/TV/platformBuilds/helloWorld_tizen/output -n RNVanillaTV.wgt -t PH49F 

FAILED with ERROR: 

Error: Command failed with exit code 1 (EPERM): /Users/andrei/tizen-studio/tools/ide/bin/tizen install -- /Users/andrei/work/web/TV/platformBuilds/helloWorld_tizen/output -n RNVanillaTV.wgt -t PH49F
    at makeError (/usr/local/lib/node_modules/rnv/node_modules/execa/lib/error.js:58:11)
    at handlePromise (/usr/local/lib/node_modules/rnv/node_modules/execa/index.js:112:26)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
│ ⚠️  $ rnv run -p tizen -d -t 10.0.0.235 - WARNING: Looks like there is no emulator or device connected! Let's try to launch it. "rnv target launch -p tizen -t 10.0.0.235"
│ 🛑  $ rnv run -p tizen -d -t 10.0.0.235 - ERRROR! COMMAND: 

/Users/andrei/tizen-studio/tools/emulator/bin/em-cli launch --name 10.0.0.235 

FAILED with ERROR: 

Error: 10.0.0.235 does not match any VM

➜ TV rnv target launch -p tizen -t 10.0.0.235

✖ FAILED: /Users/andrei/tizen-studio/tools/emulator/bin/em-cli launch --name 10.0.0.235

│  🚀  SUMMARY | 21.05.2020, 13:24:38                                          
│  $ rnv target launch -p tizen -t 10.0.0.235                                  
│  ReNative Version: 0.29.0                                                    
│  Project Name: TV                                                            
│  Project Version: 0.1.0                                                      
│  App Config: helloWorld                                                      
│  Workspace: rnv                                                              
│  Supported Platforms: tizen, webos                                           
│  Env Info: darwin | x64 | node v13.11.0                                      
│  Platform: tizen                                                             
│  Executed Time: 0h:0m:0s:478ms                                               
│                                                                              
│ 🛑  $ rnv target launch -p tizen -t 10.0.0.235 - ERRROR! COMMAND: 

/Users/andrei/tizen-studio/tools/emulator/bin/em-cli launch --name 10.0.0.235 

FAILED with ERROR: 

Error: 10.0.0.235 does not match any VM
➜  tools ./sdb devices           
List of devices attached 
10.0.0.235:26101    	device    	PH49F

@pavjacko pavjacko removed the wontfix This will not be worked on label May 24, 2020
@pavjacko pavjacko added this to BACKLOG in Work via automation May 24, 2020
@pavjacko pavjacko moved this from RELEASED to To Decide in Roadmap May 24, 2020
@pavjacko pavjacko reopened this May 24, 2020
Work automation moved this from BACKLOG to In progress May 24, 2020
@pavjacko pavjacko moved this from In progress to BACKLOG: TV in Work May 24, 2020
@EyMaddis
Copy link
Contributor

EyMaddis commented Dec 8, 2020

I think I had the same problem... if I remember correctly my workaround was to edit the ~/.rnv/renative.json directly and avoid the -t argument

@Govindsa421
Copy link

Govindsa421 commented Feb 14, 2023

ya i have also facing same this issues. while sdb connect its show already connected to tv but while running renative project on samsung smart tv it is not launhed.
can anyone help us how to resolve this issues

@pauliusguzas
Copy link
Collaborator

Hello, probably what is happening here is that Renative has wrong certificate name provided in appConfigs -> <your_app_name> -> renative.json under tizen object "certificateProfile": "<my_cert_name>". Renative creates certificate RNVanillaCert, so you can try using this in renative.json or you can create your own in TizenStudio -> Tools -> Certificate Manager

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pinned support_chain
Projects
No open projects
Roadmap
  
To Decide
Work
  
BACKLOG: TV
Development

No branches or pull requests

7 participants