Developer Studio 5.2 Adding packages broken [Toolchain]

Seems the tool in devstudio for adding tool chains is broken the work around on linux is as follows

cd ~legato/
legato-spm -m ..... -i

See
https://source.sierrawireless.com/resources/airprime/software/legato_spm/

Hi @gregnietsky

Please can you elaborate on what looks to be broken?
No known issue in 5.2 concerning this so far…

In a new install of DS [from web] going to packages and trying to add the R14 toolchain [i686 or x86_64] it tries to install but fails.

It is unable to download the toolchain and install it from the package manager in DS i tried it on a clean install and reverted to doing it from the CLI and post here as a FYI … all other packages install fine and even upgrades fine …

It could be my local connection / ISP but does not explain why all other packages work fine …

Hi @gregnietsky,

is there any URL in the logs?

Yes, please post the logs here
Workspace logs are stored in workspace/.metadata/.log

Thanks ill file that :smiley:

This looks like what you looking for

!ENTRY com.swi.spm.core 4 0 2017-07-05 21:24:51.872
!MESSAGE P2 Install error: An error occurred while collecting items to be installed
!STACK 1
org.eclipse.core.runtime.CoreException: An error occurred while collecting items to be installed
        at org.eclipse.oomph.util.OomphPlugin.coreException(OomphPlugin.java:280)
        at org.eclipse.oomph.p2.internal.core.ProfileTransactionImpl$3.commit(ProfileTransactionImpl.java:547)
        at org.eclipse.oomph.p2.internal.core.ProfileTransactionImpl.commit(ProfileTransactionImpl.java:340)
        at org.eclipse.oomph.p2.internal.core.ProfileTransactionImpl.commit(ProfileTransactionImpl.java:325)
        at com.swi.spm.core.pluginmanager.P2InstallUtil.installIUInProfile(P2InstallUtil.java:215)
        at com.swi.spm.core.pluginmanager.P2InstallUtil.installSPMPackInTempProfile(P2InstallUtil.java:127)
        at com.swi.spm.core.pluginmanager.P2InstallUtil.installSPMPackFromAnUpdateSiteToTempDir(P2InstallUtil.java:412)
        at com.swi.spm.core.pluginmanager.P2InstallUtil.installSPMPackFromAnUpdateSiteToDir(P2InstallUtil.java:367)
        at com.swi.spm.core.pluginmanager.P2InstallUtil.installSPMPackFromAnUpdateSiteToPlatformPackagesDir(P2InstallUtil.java:384)
        at com.swi.spm.core.pluginmanager.PluginInstaller.installIUs(PluginInstaller.java:292)
        at com.swi.spm.core.delegates.pkg.UpdateSitePathRepositoryImpl2.install(UpdateSitePathRepositoryImpl2.java:110)
        at com.swi.spm.pluginmanager.ui.jobs.InstallFunction.install(InstallFunction.java:72)
        at com.swi.spm.pluginmanager.ui.jobs.InstallFunction.internalRun(InstallFunction.java:37)
        at com.swi.commons.core.job.SwiFunction.run(SwiFunction.java:40)
        at com.swi.commons.core.job.SwiFunction.executeSubtask(SwiFunction.java:99)
        at com.swi.commons.core.job.SwiChainedFunctions.internalRun(SwiChainedFunctions.java:63)
        at com.swi.commons.core.job.SwiFunction.run(SwiFunction.java:40)
        at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
Contains: session context was:(profile=SPMrepo8912094216986233955, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Contains: Unable to write to repository: file:/home/gregory/devstudio/workspace/.metadata/spm.tmp/installedIU/repo8912094216986233955/.
java.io.IOException: Failed to create directory /home/gregory/devstudio/workspace/.metadata/spm.tmp/installedIU/repo8912094216986233955/plugins/com.swi.spm.legato.toolchain.1.7.3.SWI9X15Y_07120900-wp85-wp750x-native-x86_64-201705021320_1.7.3.SWI9X15Y_07120900-wp85-wp750x-native-x86_64-201705021320.
        at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getOutputStream(SimpleArtifactRepository.java:957)
        at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.transferSingle(MirrorRequest.java:279)
        at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.transfer(MirrorRequest.java:223)
        at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.perform(MirrorRequest.java:153)
        at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifact(SimpleArtifactRepository.java:707)
        at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifacts(SimpleArtifactRepository.java:778)
        at org.eclipse.equinox.internal.p2.engine.DownloadManager.fetch(DownloadManager.java:112)
        at org.eclipse.equinox.internal.p2.engine.DownloadManager.start(DownloadManager.java:100)
        at org.eclipse.equinox.internal.p2.engine.phases.Collect.completePhase(Collect.java:104)
        at org.eclipse.equinox.internal.p2.engine.Phase.postPerform(Phase.java:251)
        at org.eclipse.equinox.internal.p2.engine.Phase.perform(Phase.java:101)
        at org.eclipse.equinox.internal.p2.engine.PhaseSet.perform(PhaseSet.java:47)
        at org.eclipse.equinox.internal.p2.engine.Engine.perform(Engine.java:75)
        at org.eclipse.equinox.internal.p2.engine.Engine.perform(Engine.java:44)
        at org.eclipse.equinox.internal.provisional.p2.director.PlanExecutionHelper.executePlan(PlanExecutionHelper.java:42)
        at org.eclipse.oomph.p2.internal.core.ProfileTransactionImpl$3.commit(ProfileTransactionImpl.java:543)
        at org.eclipse.oomph.p2.internal.core.ProfileTransactionImpl.commit(ProfileTransactionImpl.java:340)
        at org.eclipse.oomph.p2.internal.core.ProfileTransactionImpl.commit(ProfileTransactionImpl.java:325)
        at com.swi.spm.core.pluginmanager.P2InstallUtil.installIUInProfile(P2InstallUtil.java:215)
        at com.swi.spm.core.pluginmanager.P2InstallUtil.installSPMPackInTempProfile(P2InstallUtil.java:127)
        at com.swi.spm.core.pluginmanager.P2InstallUtil.installSPMPackFromAnUpdateSiteToTempDir(P2InstallUtil.java:412)
        at com.swi.spm.core.pluginmanager.P2InstallUtil.installSPMPackFromAnUpdateSiteToDir(P2InstallUtil.java:367)
        at com.swi.spm.core.pluginmanager.P2InstallUtil.installSPMPackFromAnUpdateSiteToPlatformPackagesDir(P2InstallUtil.java:384)
        at com.swi.spm.core.pluginmanager.PluginInstaller.installIUs(PluginInstaller.java:292)
        at com.swi.spm.core.delegates.pkg.UpdateSitePathRepositoryImpl2.install(UpdateSitePathRepositoryImpl2.java:110)
        at com.swi.spm.pluginmanager.ui.jobs.InstallFunction.install(InstallFunction.java:72)
        at com.swi.spm.pluginmanager.ui.jobs.InstallFunction.internalRun(InstallFunction.java:37)
        at com.swi.commons.core.job.SwiFunction.run(SwiFunction.java:40)
        at com.swi.commons.core.job.SwiFunction.executeSubtask(SwiFunction.java:99)
        at com.swi.commons.core.job.SwiChainedFunctions.internalRun(SwiChainedFunctions.java:63)
        at com.swi.commons.core.job.SwiFunction.run(SwiFunction.java:40)
        at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
!SUBENTRY 1 org.eclipse.equinox.p2.engine 4 4 2017-07-05 21:24:51.874

Hi @gregnietsky

Looks similar to Developer Studio 5.0 - Error installing package - #4 by daav
Are you using an encrypted file system for your home directory?

By the way, using legato-spm is a good workaround since it uses a temporary directory as workspace…

Yes i am using and have been using ecrypt to encrypt for a while this popped up only now … i am more a CLI fan but need to make sure it works in the build tool …

Thank you for the feedback.