Install failed[118, -19], reason: Parsing error

Hello all, hopefully someone has encountered this problem before.

This web app previously installed successfully, then suddenly overnight we started getting the error “install failed[118, -19], reason: Parsing error” every time we issue the “tizen install” command. The certificate profiles and config.xml have not changed.

However, if I generate a new project with the command " tizen create web-project -n Example -p tv-samsung-6.5 -t BasicEmptyProject" then take the App ID from the newly generated project and apply it to my existing one, the install will succeed temporarily (12-24 hours). Obviously constantly changing the App ID isn’t a long term solution :slight_smile:

Full set of commands issued & output below - both before & after updating the App ID.

Thanks in advance

sdb devices
List of devices attached
192.168.0.35:26101      device          UE32T5300AKXXU

-----

cat tizen/staging/config.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<widget xmlns:tizen="http://tizen.org/ns/widgets" xmlns="http://www.w3.org/ns/widgets" id="http://yourdomain/tizen" version="1.0.0" viewmodes="maximized">
  <access origin="*" subdomains="true"/>
  <tizen:application id="Yi1xvJEX2n.ozone" package="Yi1xvJEX2n" required_version="2.3"/>
  <content src="dist/index.html"/>
  <feature name="http://tizen.org/feature/screen.size.normal.1080.1920"/>
  <icon src="icon.png"/>
  <name>Ozone</name>
  <tizen:metadata key="http://samsung.com/tv/metadata/prelaunch.support" value="true"/>
  <tizen:profile name="tv"/>
  <tizen:privilege name="http://tizen.org/privilege/application.launch"/>
  <tizen:setting screen-orientation="landscape" context-menu="enable" background-support="disable" encryption="disable" install-location="auto" hwkey-event="enable"/>
</widget>

-----

tizen build-web -out build -- tizen/staging
Build Web Application:  100% (10/10)

BUILD SUCCESSFUL

Output path : /Users/cgibson/code/ozone/tizen/staging/build
Excluded : [.build/*, .build, .sign/*, .sign, webUnitTest/*, webUnitTest, .externalToolBuilders/*, .externalToolBuilders, .buildResult/*, .buildResult, .settings/*, .settings, .package/*, .package, .tproject, .project, .sdk_delta.info, .rds_delta, *.wgt, .tizen-ui-builder-tool.xml]
Total time: 00:00:00.619

-----

tizen package -t wgt -s my-cert -- tizen/staging/build
Author certficate: /Users/cgibson/tizen-studio-data/keystore/author/my-cert.p12
Distributor1 certificate : /Users/cgibson/tizen-studio/tools/certificate-generator/certificates/distributor/tizen-distributor-signer.p12
Excludes File Pattern: {.manifest.tmp, .delta.lst}
Ignore File: /Users/cgibson/code/ozone/tizen/staging/build/.manifest.tmp
Package File Location: /Users/cgibson/code/ozone/tizen/staging/build/Ozone.wgt

-----

tizen install --name Ozone.wgt -- tizen/staging/build
Transferring the package...
Transferred the package: /Users/cgibson/code/ozone/tizen/staging/build/Ozone.wgt -> /home/owner/share/tmp/sdk_tools/tmp
Installing the package...
--------------------
Platform log view
--------------------
install Yi1xvJEX2n.ozone
package_path /home/owner/share/tmp/sdk_tools/tmp/Ozone.wgt
app_id[Yi1xvJEX2n.ozone] install start
app_id[Yi1xvJEX2n.ozone] installing[8]
app_id[Yi1xvJEX2n.ozone] installing[11]
app_id[Yi1xvJEX2n.ozone] installing[13]
app_id[Yi1xvJEX2n.ozone] installing[15]
app_id[Yi1xvJEX2n.ozone] installing[17]
app_id[Yi1xvJEX2n.ozone] installing[20]
app_id[Yi1xvJEX2n.ozone] installing[22]
app_id[Yi1xvJEX2n.ozone] installing[24]
app_id[Yi1xvJEX2n.ozone] installing[26]
app_id[Yi1xvJEX2n.ozone] installing[28]
app_id[Yi1xvJEX2n.ozone] installing[31]
app_id[Yi1xvJEX2n.ozone] installing[33]
app_id[Yi1xvJEX2n.ozone] installing[35]
app_id[Yi1xvJEX2n.ozone] installing[37]
app_id[Yi1xvJEX2n.ozone] installing[40]
app_id[Yi1xvJEX2n.ozone] install failed[118, -19], reason: Parsing error :
spend time for wascmd is [3571]ms
Failed to install Tizen application.
Total time: 00:00:05.282

-----

After updating ONLY the App ID...

----

tizen build-web -out build -- tizen/staging
Build Web Application:  100% (10/10)

BUILD SUCCESSFUL

Output path : /Users/cgibson/code/ozone/tizen/staging/build
Excluded : [.build/*, .build, .sign/*, .sign, webUnitTest/*, webUnitTest, .externalToolBuilders/*, .externalToolBuilders, .buildResult/*, .buildResult, .settings/*, .settings, .package/*, .package, .tproject, .project, .sdk_delta.info, .rds_delta, *.wgt, .tizen-ui-builder-tool.xml]
Total time: 00:00:00.541

-----

tizen package -t wgt -s my-cert -- tizen/staging/build
Author certficate: /Users/cgibson/tizen-studio-data/keystore/author/my-cert.p12
Distributor1 certificate : /Users/cgibson/tizen-studio/tools/certificate-generator/certificates/distributor/tizen-distributor-signer.p12
Excludes File Pattern: {.manifest.tmp, .delta.lst}
Ignore File: /Users/cgibson/code/ozone/tizen/staging/build/.manifest.tmp
Package File Location: /Users/cgibson/code/ozone/tizen/staging/build/Ozone.wgt

-----

tizen install --name Ozone.wgt -- tizen/staging/build
Transferring the package...
Transferred the package: /Users/cgibson/code/ozone/tizen/staging/build/Ozone.wgt -> /home/owner/share/tmp/sdk_tools/tmp
Installing the package...
--------------------
Platform log view
--------------------
install PA279wpSAU.ozone
package_path /home/owner/share/tmp/sdk_tools/tmp/Ozone.wgt
app_id[PA279wpSAU.ozone] install start
app_id[PA279wpSAU.ozone] installing[10]
app_id[PA279wpSAU.ozone] installing[13]
app_id[PA279wpSAU.ozone] installing[15]
app_id[PA279wpSAU.ozone] installing[18]
app_id[PA279wpSAU.ozone] installing[21]
app_id[PA279wpSAU.ozone] installing[23]
app_id[PA279wpSAU.ozone] installing[26]
app_id[PA279wpSAU.ozone] installing[28]
app_id[PA279wpSAU.ozone] installing[31]
app_id[PA279wpSAU.ozone] installing[34]
app_id[PA279wpSAU.ozone] installing[36]
app_id[PA279wpSAU.ozone] installing[39]
app_id[PA279wpSAU.ozone] installing[42]
app_id[PA279wpSAU.ozone] installing[44]
app_id[PA279wpSAU.ozone] installing[47]
app_id[PA279wpSAU.ozone] installing[50]
app_id[PA279wpSAU.ozone] installing[52]
app_id[PA279wpSAU.ozone] installing[55]
app_id[PA279wpSAU.ozone] installing[57]
app_id[PA279wpSAU.ozone] installing[60]
app_id[PA279wpSAU.ozone] installing[63]
app_id[PA279wpSAU.ozone] installing[65]
app_id[PA279wpSAU.ozone] installing[68]
app_id[PA279wpSAU.ozone] installing[71]
app_id[PA279wpSAU.ozone] installing[73]
app_id[PA279wpSAU.ozone] installing[76]
app_id[PA279wpSAU.ozone] installing[78]
app_id[PA279wpSAU.ozone] installing[81]
app_id[PA279wpSAU.ozone] installing[84]
app_id[PA279wpSAU.ozone] installing[86]
app_id[PA279wpSAU.ozone] installing[89]
app_id[PA279wpSAU.ozone] installing[92]
app_id[PA279wpSAU.ozone] installing[94]
app_id[PA279wpSAU.ozone] installing[97]
app_id[PA279wpSAU.ozone] installing[100]
app_id[PA279wpSAU.ozone] install completed
spend time for wascmd is [5080]ms
Installed the package: Id(PA279wpSAU.ozone)
Tizen application is successfully installed.
Total time: 00:00:06.791

I’m not a smart tv developer but my 2 cents. Are you changing the version number each time? I know for the Tizen Watch you need to do that or uninstall the previous one first.

Ron
Samsung Developer Relations

Hi Ron, thanks for your reply!

This occurs even when all previous versions have been uninstalled. The version number was defaulting to 1.0.0 for developer builds but our CI builds were incrementing the version and they also showed the same problem.

I think I found it, 118 is certificate error. But that doesn’t make sense if it is working for the other installs. However, It does not hurt to generate a new Samsung Tizen Distributor Certificate

Make sure you don’t have both a Samsung Distributor and Tizen Distributor certificate that will cause issues (at least in the Watch) because it will pick the tizen one and not the Samsung One.

If that isn’t it, open a Developer support request. If they can’t help they can direct you to the Smart TV Seller Office support.

Ron
Samsung Developer Relations