8 Replies Latest reply on Jul 17, 2015 5:33 AM by John Wolf

    StageNow

    John Wolf

      I am trying to push an APK to a TC55 with KK. Here is the log file. The Wi-Fi configured correctly but the APK push failed. Any thoughts on the issue? Could it be incompatible MX version?

       

      1970-01-23 02:54:25,654 INFO  [main.DecodeBarcode]-[177] Starting StageNow Client app

      1970-01-23 02:54:25,656 INFO  [main.DecodeBarcode]-[177] Creating DataWedge's StageNow Profile

      1970-01-23 03:09:06,481 WARN  [main.DecodeBarcode]-[169] BarcodeData, Invalid Barcode read

      1970-01-23 03:09:12,275 WARN  [main.DecodeBarcode]-[169] BarcodeData, Invalid Barcode read

      1970-01-23 03:09:19,171 WARN  [main.DecodeBarcode]-[169] BarcodeData, Invalid Barcode read

      1970-01-23 03:09:34,317 WARN  [main.DecodeBarcode]-[169] BarcodeData, Invalid Barcode read

      1970-01-23 03:12:54,220 WARN  [main.DecodeBarcode]-[169] BarcodeData, Invalid Barcode read

      1970-01-23 03:12:58,373 WARN  [main.DecodeBarcode]-[169] BarcodeData, Invalid Barcode read

      1970-01-23 03:13:01,777 INFO  [main.DecodeBarcode]-[177] Exit StageNow Client app

      1970-01-23 03:16:34,772 INFO  [main.DecodeBarcode]-[177] Starting StageNow Client app

      2015-06-22 16:56:42,452 INFO  [main.DecodeBarcode]-[177] Barcode Staging Success: MX Response = <wap-provisioningdoc><characteristic type="Batch" version="0.5"><parm name="BatchFileType" value="2"/><parm name="BatchFileAccessMethod" value="3"/><characteristic type="file-details"><parm name="BinFileRequireEncodings" value="0"/><parm name="BinFileData" value="AQykMGr9VprJAT4bQ9cjOGGoJglzQwoBmyoopZ8BEiGeqfJaBG2uGfEdQmP6M8sIvbH2rghCJJl7 HIwL9e9Yno6GI0NksObBtxs+uC0oOhSVqklc5QLodMKSVuLDgcVVsuQJrvWIw8D06nLtjDBRbodD muIXNMRD+gJ7M3MYVtoensWb8MiyHezPiomnziUm+Ja71n5aPuzyxEdRQOvPubwGPNfb3pMT1x7Q lcwKhKjPsI4E8IukVgeEM57RyFq1rGUWedNDsQ02WJYmR7+ObTo= "/></characteristic></characteristic></wap-provisioningdoc>

      2015-06-22 16:56:52,601 INFO  [main.DecodeBarcode]-[177] Exit StageNow Client app

      2015-06-23 12:46:25,922 INFO  [main.DecodeBarcode]-[177] Starting StageNow Client app

      2015-06-23 12:46:29,450 ERROR [main.DecodeBarcode]-[161] Not able to retrive Mx Version., ex= null

      2015-06-23 12:46:29,538 ERROR [main.DecodeBarcode]-[161] Error while getting functionality, ex = length=2; regionStart=0; regionLength=4

      2015-06-23 12:47:50,375 INFO  [main.DecodeBarcode]-[177] Exit StageNow Client app

      2015-06-23 12:52:15,084 INFO  [main.DecodeBarcode]-[177] Exit StageNow Client app

      2015-06-23 12:53:11,405 INFO  [main.DecodeBarcode]-[177] Barcode Staging Success: MX Response = <wap-provisioningdoc><characteristic type="Batch" version="0.5"><parm name="BatchFileType" value="2"/><parm name="BatchFileAccessMethod" value="3"/><characteristic type="file-details"><parm name="BinFileRequireEncodings" value="0"/><parm name="BinFileData" value="AToax4p1jPfXF9NCWkYRYX/31HyeAsg99b8vHq6j/Yh6qIavNNym9p7FlfZqJzZzZ2tR1DKFH/+9 gds1bWKavemFS6AgNLAUZQjdq2iAHY1ZZ2V7B/qCzy3pHGg8MnjgD/vuUyUHdWzDC3jJz12nq/NP nAl7xHaCH8aciM9aTgYd+Au40AfTQpyoI8isq0thGbhuElXXOTEFFk67mgehgYsP2lvEKoc1XQ3Z U+onpeF+SopuJxCM7lnAxV4dh74O5CuucbQBOwt4HFy8uF9v7hw= "/></characteristic></characteristic></wap-provisioningdoc>

      2015-06-23 12:53:18,642 INFO  [main.DecodeBarcode]-[177] Exit StageNow Client app

        • Re: StageNow
          Hector Meza

          John, can you provide some details on what you are looking to do  along with exporting the profile and attaching it

           

          i.e.  1) set staging Wifi

               2) copy APK

               3) Install apk

               etc.

           

          Installing an APK should be straight forward, hopefully once I have the exported project we can figure out the issue (The log files are not very intuitive).

           

          One thing to consider, if you are coping the apk via stage now and the file already exist, it will spit out an error.

           

          HM

            • Re: StageNow
              John Wolf

              I'm just trying a simple push an APK to the internal SD card of the TC55. Here is the config

               

              <?xml version="1.0" encoding="utf-8"?>

              <wap-provisioningdoc>

                <!--SettingID=47-->

                <characteristic version="4.1" type="Wi-Fi">

                  <characteristic type="System">

                    <parm name="WiFiAction" value="enable" />

                  </characteristic>

                  <parm name="UseRegulatory" value="0" />

                  <parm name="UseAdvancedOptions" value="0" />

                  <parm name="NetworkAction" value="Add" />

                  <characteristic type="network-profile">

                    <parm name="SSID" value="wolffamilyG_no_map" />

                    <parm name="SecurityMode" value="1" />

                    <parm name="WPAMode" value="2" />

                    <characteristic type="key-details">

                      <parm name="KeyType" value="Passphrase" />

                      <parm name="ProtectKey" value="1" />

                      <parm name="PassphraseWPAEncrypted" value="&amp;#1270&amp;#127YKYI8R0MvkcWjmXnIksv/RWVxLgvFACx9CDZZ+872HkMBiMXxKEHbYdqVRYulBuu/K02yGG5pziMFQRvZBcWXQbqEAb8uaeHSmoxszJQ7ZggXijoAIenYEgqTTYqmvOQDyVfO7VU+C6xsg4ifDk/wqNNh7MiegK4oV++i7OaggkgFWEaLZblePuhfap85/ysg4i6vYzrFV1gIBsbY4DyjenDlTb2jWr0edogl9ek0b2+cRopTUo4Z48Jgx20L9+oB+nIOsCene9gecn2HqAbZYz+rxfnHZvX88wyERobs3nznO0oRViQX90Z36Uqge70smM1LZuGElflWQ27Byx3Xw==" />

                    </characteristic>

                    <parm name="UseDHCP" value="1" />

                    <parm name="UseProxy" value="0" />

                  </characteristic>

                </characteristic>

                <!--SettingID=48-->

                <characteristic version="4.1" type="Wi-Fi">

                  <characteristic type="System">

                    <parm name="WiFiAction" value="enable" />

                  </characteristic>

                  <parm name="UseRegulatory" value="0" />

                  <parm name="UseAdvancedOptions" value="0" />

                  <parm name="NetworkAction" value="Connect" />

                  <characteristic type="network-profile">

                    <parm name="SSID" value="wolffamilyG_no_map" />

                  </characteristic>

                </characteristic>

                <!--SettingID=43-->

                <characteristic version="0.6" type="FileMgr">

                  <parm name="FileAction" value="1" />

                  <characteristic type="file-details">

                    <parm name="TargetAccessMethod" value="2" />

                    <parm name="TargetPathAndFileName" value="/sdcard/MyfirstAPP.apk" />

                    <parm name="SourceAccessMethod" value="1" />

                    <parm name="SourceURI" value="ftp-p://StageNow:StageNow@localhost:21/SETTINGS/FileMgr_071015_161820_1820/MyfirstAPP.apk" />

                  </characteristic>

                </characteristic>

                <!--SettingID=44-->

                <characteristic version="4.2" type="AppMgr">

                  <parm name="Action" value="Install" />

                  <parm name="APK" value="/sdcard/MyfirstAPP.apk" />

                </characteristic>

                <!--SettingID=45-->

                <characteristic version="0.6" type="FileMgr">

                  <parm name="FileAction" value="1" />

                  <characteristic type="file-details">

                    <parm name="TargetAccessMethod" value="2" />

                    <parm name="TargetPathAndFileName" value="/sdcard/MyfirstAPP.apk" />

                    <parm name="SourceAccessMethod" value="1" />

                    <parm name="SourceURI" value="ftp-p://StageNow:StageNow@localhost:21/SETTINGS/FileMgr_071015_161953_1953/MyfirstAPP.apk" />

                  </characteristic>

                </characteristic>

                <!--SettingID=46-->

                <characteristic version="4.2" type="AppMgr">

                  <parm name="Action" value="Install" />

                  <parm name="APK" value="/sdcard/MyfirstAPP.apk" />

                </characteristic>

              </wap-provisioningdoc>

              <!--{"decisions":[{"answer":"Yes","id":156,"question":"Would you like to Connect to a Network?  The StageNow Client will use this Network to obtain the Staging content in the Deployment section.","steps":null,"type":2},{"answer":"WLAN","id":174,"question":"Which type of Network would you like to Connect to?","steps":null,"type":0},{"answer":"No","id":175,"question":"Would you like to Manage Certificates related to Wi-Fi Networks?","steps":null,"type":2},{"answer":"No","id":176,"question":"Would you like to Disconnect from the current Connected Wi-Fi Network?","steps":null,"type":3},{"answer":"No","id":177,"question":"Would you like to Disable all existing Wi-Fi Networks?","steps":null,"type":3},{"answer":"Yes","id":178,"question":"Would you like to Add a new Wi-Fi Network?","steps":null,"type":3},{"answer":"No","id":157,"question":"Would you like to Connect to a Network?  The Rapid Deployment Client will use this Network to obtain the Staging content in the Deployment section.","steps":null,"type":2},{"answer":"No","id":158,"question":"Would you like to Uninstall an installed Application?","steps":null,"type":3},{"answer":"Yes","id":159,"question":"Would you like to Install an Application?","steps":null,"type":2},{"answer":"No","id":160,"question":"Does your Application require any License management (e.g. SimulScan)?","steps":null,"type":2},{"answer":"No","id":161,"question":"Does your Application leverage SimulScan?","steps":null,"type":2},{"answer":"Downloaded","id":162,"question":"Is your Application (.APK file) already present on the device?","steps":null,"type":0},{"answer":"No","id":163,"question":"Would you like to download an Application Data file?","steps":null,"type":3},{"answer":"No","id":164,"question":"Would you like to launch an APK file?","steps":null,"type":3},{"answer":"Yes","id":165,"question":"Would you like to Install an Application?","steps":null,"type":2},{"answer":"No","id":166,"question":"Does your Application require any License management (e.g. SimulScan)?","steps":null,"type":2},{"answer":"No","id":167,"question":"Does your Application leverage SimulScan?","steps":null,"type":2},{"answer":"Downloaded","id":168,"question":"Is your Application (.APK file) already present on the device?","steps":null,"type":0},{"answer":"No","id":169,"question":"Would you like to download an Application Data file?","steps":null,"type":3},{"answer":"No","id":170,"question":"Would you like to launch an APK file?","steps":null,"type":3},{"answer":"No","id":171,"question":"Would you like to Install an Application?","steps":null,"type":2},{"answer":"No","id":172,"question":"Would you like to Connect to another Network? This Network would be used after Staging.","steps":null,"type":2},{"answer":"No","id":173,"question":"Would you like to Reboot the device?","steps":null,"type":2}],"profile_name":"PushAPK","settings":[{"EmbedFileName":"","EmbedFileParmName":"","ID":43,"Name":"FileMgr_071015_161820_1820","TemplateName":"FileMgr","TemplateVersion":"0.6"},{"EmbedFileName":"","EmbedFileParmName":"","ID":44,"Name":"AppMgr_071015_161905_195","TemplateName":"AppMgr","TemplateVersion":"4.2"},{"EmbedFileName":"","EmbedFileParmName":"","ID":45,"Name":"FileMgr_071015_161953_1953","TemplateName":"FileMgr","TemplateVersion":"0.6"},{"EmbedFileName":"","EmbedFileParmName":"","ID":46,"Name":"AppMgr_071015_162018_2018","TemplateName":"AppMgr","TemplateVersion":"4.2"},{"EmbedFileName":"","EmbedFileParmName":"","ID":47,"Name":"Wi-Fi_071015_162445_2445","TemplateName":"Wi-Fi","TemplateVersion":"4.1"},{"EmbedFileName":"","EmbedFileParmName":"","ID":48,"Name":"Wi-Fi_071015_162620_2620","TemplateName":"Wi-Fi","TemplateVersion":"4.1"}],"steps":[{"contents":[{"decision_id":175,"order":0,"parent_decision_id":175,"setting_id":0,"step_id":0}],"index":"1.1.1","parent_decision_id":174,"section":"StageNowConfig"},{"contents":[{"decision_id":176,"order":0,"parent_decision_id":176,"setting_id":0,"step_id":0}],"index":"1.1.2","parent_decision_id":174,"section":"StageNowConfig"},{"contents":[{"decision_id":177,"order":0,"parent_decision_id":177,"setting_id":0,"step_id":0}],"index":"1.1.3","parent_decision_id":174,"section":"StageNowConfig"},{"contents":[{"decision_id":0,"order":0,"parent_decision_id":178,"setting_id":47,"step_id":0}],"index":"1.1.4","parent_decision_id":174,"section":"StageNowConfig"},{"contents":[{"decision_id":0,"order":0,"parent_decision_id":0,"setting_id":48,"step_id":0}],"index":"1.1.5","parent_decision_id":174,"section":"StageNowConfig"},{"contents":[{"decision_id":174,"order":0,"parent_decision_id":174,"setting_id":0,"step_id":0}],"index":"1.1","parent_decision_id":156,"section":"StageNowConfig"},{"contents":[{"decision_id":156,"order":0,"parent_decision_id":156,"setting_id":0,"step_id":0}],"index":"1","parent_decision_id":0,"section":"StageNowConfig"},{"contents":[{"decision_id":157,"order":0,"parent_decision_id":157,"setting_id":0,"step_id":0}],"index":"1","parent_decision_id":0,"section":"RDConfig"},{"contents":[{"decision_id":158,"order":0,"parent_decision_id":158,"setting_id":0,"step_id":0}],"index":"1","parent_decision_id":0,"section":"Deployment"},{"contents":[{"decision_id":160,"order":0,"parent_decision_id":160,"setting_id":0,"step_id":0}],"index":"2.1","parent_decision_id":159,"section":"Deployment"},{"contents":[{"decision_id":161,"order":0,"parent_decision_id":161,"setting_id":0,"step_id":0}],"index":"2.2","parent_decision_id":159,"section":"Deployment"},{"contents":[{"decision_id":0,"order":0,"parent_decision_id":0,"setting_id":43,"step_id":0}],"index":"2.3.1","parent_decision_id":162,"section":"Deployment"},{"contents":[{"decision_id":0,"order":0,"parent_decision_id":0,"setting_id":44,"step_id":0}],"index":"2.3.2","parent_decision_id":162,"section":"Deployment"},{"contents":[{"decision_id":162,"order":0,"parent_decision_id":162,"setting_id":0,"step_id":0}],"index":"2.3","parent_decision_id":159,"section":"Deployment"},{"contents":[{"decision_id":163,"order":0,"parent_decision_id":163,"setting_id":0,"step_id":0}],"index":"2.4","parent_decision_id":159,"section":"Deployment"},{"contents":[{"decision_id":164,"order":0,"parent_decision_id":164,"setting_id":0,"step_id":0}],"index":"2.5","parent_decision_id":159,"section":"Deployment"},{"contents":[{"decision_id":166,"order":0,"parent_decision_id":166,"setting_id":0,"step_id":0}],"index":"2.6.1","parent_decision_id":165,"section":"Deployment"},{"contents":[{"decision_id":167,"order":0,"parent_decision_id":167,"setting_id":0,"step_id":0}],"index":"2.6.2","parent_decision_id":165,"section":"Deployment"},{"contents":[{"decision_id":0,"order":0,"parent_decision_id":0,"setting_id":45,"step_id":0}],"index":"2.6.3.1","parent_decision_id":168,"section":"Deployment"},{"contents":[{"decision_id":0,"order":0,"parent_decision_id":0,"setting_id":46,"step_id":0}],"index":"2.6.3.2","parent_decision_id":168,"section":"Deployment"},{"contents":[{"decision_id":168,"order":0,"parent_decision_id":168,"setting_id":0,"step_id":0}],"index":"2.6.3","parent_decision_id":165,"section":"Deployment"},{"contents":[{"decision_id":169,"order":0,"parent_decision_id":169,"setting_id":0,"step_id":0}],"index":"2.6.4","parent_decision_id":165,"section":"Deployment"},{"contents":[{"decision_id":170,"order":0,"parent_decision_id":170,"setting_id":0,"step_id":0}],"index":"2.6.5","parent_decision_id":165,"section":"Deployment"},{"contents":[{"decision_id":171,"order":0,"parent_decision_id":171,"setting_id":0,"step_id":0}],"index":"2.6.6","parent_decision_id":165,"section":"Deployment"},{"contents":[{"decision_id":165,"order":0,"parent_decision_id":165,"setting_id":0,"step_id":0}],"index":"2.6","parent_decision_id":159,"section":"Deployment"},{"contents":[{"decision_id":159,"order":0,"parent_decision_id":159,"setting_id":0,"step_id":0}],"index":"2","parent_decision_id":0,"section":"Deployment"},{"contents":[{"decision_id":172,"order":0,"parent_decision_id":172,"setting_id":0,"step_id":0}],"index":"3","parent_decision_id":0,"section":"Deployment"},{"contents":[{"decision_id":173,"order":0,"parent_decision_id":173,"setting_id":0,"step_id":0}],"index":"4","parent_decision_id":0,"section":"Deployment"}],"wdd_name":"ManageApplications"}-->

                • Re: StageNow
                  Ian Hatton

                  John,

                   

                  Try using a full file path to the APK on the device i.e. replace /sdcard/ with either /storage/sdcard0 or /storage/sdcard1 depending upon whether you want to use internal or external storage.

                  • Re: Re: StageNow
                    Hector Meza

                    John, it looks like your are trying to push and install the same app twice.

                     

                    Some things to be aware of:

                     

                    If you are trying to copy a file that already exist - Error!  So if you copy MyFirstApp.apk to the SDcard and it is already there, the profile will fail!

                     

                    The same holds true if you try to install an app that is already installed.

                     

                    Edit your profile and remove the second copy/install.  You also need to validate the WI-FI is correct

                     

                    I am attaching a basic sample of a profile that connects to a wifi network and pushes a file then installs it as reference.  You can edit it and compare the commands with yours.  You can also import it - but you will need to change the WLAN and file name to match yours.

                     

                    I believe this should help address your issue.