Uploaded image for project: 'Appcelerator Studio'
  1. Appcelerator Studio
  2. TISTUD-8823

Error during update of titanium SDK from studio on Windows OS

    Details

    • Type: Bug
    • Status: In Progress
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: Release 4.9.0, Release 4.9.1
    • Fix Version/s: None
    • Component/s: SDK
    • Labels:
      None
    • Environment:

      OS: Win 10 Pro
      Appc Studio: 4.9.0.201705302345, 4.9.1.201707130742
      Ti SDK: 6.1.0.GA, 6.1.2.v20170710160853
      Appc CLI: 6.2.2
      Node: 6.10.3

      Description

      An error is shown during the SDK update process via studio.

      Steps to Reproduce:
      1. Open Appc Studio on Windows OS
      2. Go to Help -> Check for Appcelerator Updates
      3. When prompted for a SDK update, select to install the SDK update

      Actual Result:
      An error is shown during the process related to access on ti.cloudpush module. The updated SDK version otherwise gets installed. Check the screenshot. Also below are the studio logs:

      !MESSAGE Error encountered during update
      !SUBENTRY 1 com.aptana.core 4 4 2017-07-17 12:26:42.485
      !MESSAGE Could not write file: C:\ProgramData\Titanium\modules\android\ti.cloudpush\4.0.3\example\app.js.
      !STACK 1
      org.eclipse.core.runtime.CoreException: Could not write file: C:\ProgramData\Titanium\modules\android\ti.cloudpush\4.0.3\example\app.js.
      	at org.eclipse.core.internal.filesystem.Policy.error(Policy.java:55)
      	at org.eclipse.core.internal.filesystem.local.LocalFile.openOutputStream(LocalFile.java:406)
      	at org.eclipse.core.filesystem.provider.FileStore.copyFile(FileStore.java:221)
      	at org.eclipse.core.filesystem.provider.FileStore.copy(FileStore.java:143)
      	at org.eclipse.core.internal.filesystem.local.LocalFile.copy(LocalFile.java:117)
      	at com.aptana.core.util.IOUtil.copyDirectory(IOUtil.java:351)
      	at com.aptana.core.util.IOUtil.copyDirectory(IOUtil.java:322)
      	at com.aptana.core.util.IOUtil.copyDirectory(IOUtil.java:322)
      	at com.aptana.core.util.IOUtil.copyDirectory(IOUtil.java:322)
      	at com.aptana.core.util.IOUtil.copyDirectory(IOUtil.java:322)
      	at com.aptana.core.util.IOUtil.copyDirectory(IOUtil.java:322)
      	at com.aptana.core.util.IOUtil.copyDirectory(IOUtil.java:322)
      	at com.aptana.core.util.IOUtil.copyDirectoryWithProgress(IOUtil.java:197)
      	at com.appcelerator.titanium.update.core.TitaniumUpdaterUtil.unpackSDK(TitaniumUpdaterUtil.java:59)
      	at com.appcelerator.titanium.update.core.TitaniumUpdaterUtil.installSDK(TitaniumUpdaterUtil.java:104)
      	at com.appcelerator.titanium.update.core.release.TitaniumSDKRelease.installSDKs(TitaniumSDKRelease.java:310)
      	at com.appcelerator.titanium.update.core.release.TitaniumSDKRelease.install(TitaniumSDKRelease.java:188)
      	at com.appcelerator.titanium.update.internal.core.TitaniumReleasesUpdater.installTitaniumUpdates(TitaniumReleasesUpdater.java:443)
      	at com.appcelerator.titanium.update.internal.core.TitaniumReleasesUpdater.access$1(TitaniumReleasesUpdater.java:399)
      	at com.appcelerator.titanium.update.internal.core.TitaniumReleasesUpdater$6.run(TitaniumReleasesUpdater.java:1080)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      Caused by: java.io.FileNotFoundException: C:\ProgramData\Titanium\modules\android\ti.cloudpush\4.0.3\example\app.js (Access is denied)
      	at java.io.FileOutputStream.open0(Native Method)
      	at java.io.FileOutputStream.open(Unknown Source)
      	at java.io.FileOutputStream.<init>(Unknown Source)
      	at org.eclipse.core.internal.filesystem.local.LocalFile.openOutputStream(LocalFile.java:397)
      	... 19 more
      !SUBENTRY 2 org.eclipse.core.filesystem 4 272 2017-07-17 12:26:42.754
      !MESSAGE Could not write file: C:\ProgramData\Titanium\modules\android\ti.cloudpush\4.0.3\example\app.js.
      !STACK 0
      java.io.FileNotFoundException: C:\ProgramData\Titanium\modules\android\ti.cloudpush\4.0.3\example\app.js (Access is denied)
      	at java.io.FileOutputStream.open0(Native Method)
      	at java.io.FileOutputStream.open(Unknown Source)
      	at java.io.FileOutputStream.<init>(Unknown Source)
      	at org.eclipse.core.internal.filesystem.local.LocalFile.openOutputStream(LocalFile.java:397)
      	at org.eclipse.core.filesystem.provider.FileStore.copyFile(FileStore.java:221)
      	at org.eclipse.core.filesystem.provider.FileStore.copy(FileStore.java:143)
      	at org.eclipse.core.internal.filesystem.local.LocalFile.copy(LocalFile.java:117)
      	at com.aptana.core.util.IOUtil.copyDirectory(IOUtil.java:351)
      	at com.aptana.core.util.IOUtil.copyDirectory(IOUtil.java:322)
      	at com.aptana.core.util.IOUtil.copyDirectory(IOUtil.java:322)
      	at com.aptana.core.util.IOUtil.copyDirectory(IOUtil.java:322)
      	at com.aptana.core.util.IOUtil.copyDirectory(IOUtil.java:322)
      	at com.aptana.core.util.IOUtil.copyDirectory(IOUtil.java:322)
      	at com.aptana.core.util.IOUtil.copyDirectory(IOUtil.java:322)
      	at com.aptana.core.util.IOUtil.copyDirectoryWithProgress(IOUtil.java:197)
      	at com.appcelerator.titanium.update.core.TitaniumUpdaterUtil.unpackSDK(TitaniumUpdaterUtil.java:59)
      	at com.appcelerator.titanium.update.core.TitaniumUpdaterUtil.installSDK(TitaniumUpdaterUtil.java:104)
      	at com.appcelerator.titanium.update.core.release.TitaniumSDKRelease.installSDKs(TitaniumSDKRelease.java:310)
      	at com.appcelerator.titanium.update.core.release.TitaniumSDKRelease.install(TitaniumSDKRelease.java:188)
      	at com.appcelerator.titanium.update.internal.core.TitaniumReleasesUpdater.installTitaniumUpdates(TitaniumReleasesUpdater.java:443)
      	at com.appcelerator.titanium.update.internal.core.TitaniumReleasesUpdater.access$1(TitaniumReleasesUpdater.java:399)
      	at com.appcelerator.titanium.update.internal.core.TitaniumReleasesUpdater$6.run(TitaniumReleasesUpdater.java:1080)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      

        Attachments

          Activity

            People

            • Assignee:
              ppedduri Prashanth Pedduri (Inactive)
              Reporter:
              ssekhri Satyam Sekhri
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: