Перестали работать приложения. переустановка с ошибкой


Перестали работать приложения. переустановка с ошибкой
Atom
22.07.2022


Сначала работали и Гидра и Дизайнер. Потом у Дизайнера приключился какой-то глюк, стал выдавать непрерывные ошибки. Переустановка не прошла, снес папку, стал переустанавливать - установку завершить не может, выдает ошибки.
Переустановил Инсталлер, после этого перестала работать и Гидра.
Снес всё, заново установил Инсталер, после этого ни один пакет из доступных бесплатных не может установиться до конца.

Ошибки в логах чаще всего такие:
VMPageInstallActions 22.07.2022 8:29:55 +05:00 Error CmdExecuteAsync error: System.InvalidCastException: Can't convert of type 'System.String' to type 'System.Xml.Linq.XElement'.
---> System.Xml.XmlException: Root element is missing.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlReader.MoveToContent()
at System.Xml.Linq.XElement.Load(XmlReader reader, LoadOptions options)
at System.Xml.Linq.XElement.Parse(String text, LoadOptions options)
at Ecng.Common.Converter.To(Object value, Type destinationType)
--- End of inner exception stack trace ---
at Ecng.Common.Converter.To(Object value, Type destinationType)
at Ecng.Common.Converter.To[T](Object value)
at StockSharp.Licensing.License..ctor(Byte[] body)
at StockSharp.Installer.ProfileHelper.KeepLicenseUpToDateAsync(CancellationToken token)
at StockSharp.Installer.UI.VMPageInstallActions.CmdExecuteAsync()

и такие
ProfileHelper 22.07.2022 8:23:03 +05:00 Error refresh license error: System.InvalidCastException: Can't convert of type 'System.String' to type 'System.Xml.Linq.XElement'.
---> System.Xml.XmlException: Root element is missing.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlReader.MoveToContent()
at System.Xml.Linq.XElement.Load(XmlReader reader, LoadOptions options)
at System.Xml.Linq.XElement.Parse(String text, LoadOptions options)
at Ecng.Common.Converter.To(Object value, Type destinationType)
--- End of inner exception stack trace ---
at Ecng.Common.Converter.To(Object value, Type destinationType)
at Ecng.Common.Converter.To[T](Object value)
at StockSharp.Licensing.License..ctor(Byte[] body)
at StockSharp.Installer.ProfileHelper.KeepLicenseUpToDateAsync(CancellationToken token)
at StockSharp.Installer.UI.VMPageInstallActions.CmdExecuteAsync()



но бывают и такие:
VMPageInstallActions 22.07.2022 8:21:06 +05:00 Error CmdExecuteAsync error: NuGet.Protocol.Core.Types.FatalProtocolException: Error downloading 'StockSharp.Hydra.5.0.124 : Microsoft.Data.SqlClient [3.0.1, ), Microsoft.Data.Sqlite [5.0.11, ), StockSharp.Algo.Export [5.0.30, ), StockSharp.Configuration.Adapters [5.0.134, ), StockSharp.Hydra.Core [5.0.124, ), StockSharp.Studio.Controls [5.0.134, ), StockSharp.Xaml.CodeEditor [5.0.113, )' from 'https://nuget.stocksharp.com/x/v3/package/stocksharp.hydra/5.0.124/stocksharp.hydra.5.0.124.nupkg'.
---> System.TimeoutException: The HTTP request to 'GET https://nuget.stocksharp...ydra.5.0.124.nupkg' has timed out after 100000ms.
at NuGet.Protocol.TimeoutUtility.StartWithTimeout[T](Func`2 getTask, TimeSpan timeout, String timeoutMessage, CancellationToken token)
at NuGet.Protocol.HttpRetryHandler.SendAsync(HttpRetryHandlerRequest request, String source, ILogger log, CancellationToken cancellationToken)
at NuGet.Protocol.HttpSource.GetThrottledResponse(Func`1 requestFactory, TimeSpan requestTimeout, TimeSpan downloadTimeout, Int32 maxTries, Boolean isRetry, Boolean isLastAttempt, Guid sessionId, ILogger log, CancellationToken cancellationToken)
at NuGet.Protocol.HttpSource.ProcessResponseAsync[T](HttpSourceRequest request, Func`2 processAsync, SourceCacheContext cacheContext, ILogger log, CancellationToken token)
at NuGet.Protocol.HttpSource.ProcessStreamAsync[T](HttpSourceRequest request, Func`2 processAsync, SourceCacheContext cacheContext, ILogger log, CancellationToken token)
at NuGet.Protocol.GetDownloadResultUtility.GetDownloadResultAsync(HttpSource client, PackageIdentity identity, Uri uri, PackageDownloadContext downloadContext, String globalPackagesFolder, ILogger logger, CancellationToken token)
--- End of inner exception stack trace ---
at NuGet.Protocol.GetDownloadResultUtility.GetDownloadResultAsync(HttpSource client, PackageIdentity identity, Uri uri, PackageDownloadContext downloadContext, String globalPackagesFolder, ILogger logger, CancellationToken token)
at NuGet.Protocol.DownloadResourceV3.GetDownloadResourceResultAsync(PackageIdentity identity, PackageDownloadContext downloadContext, String globalPackagesFolder, ILogger logger, CancellationToken token)
at NuGet.PackageManagement.PackageDownloader.GetDownloadResourceResultAsync(SourceRepository sourceRepository, PackageIdentity packageIdentity, PackageDownloadContext downloadContext, String globalPackagesFolder, ILogger logger, CancellationToken token)
at NuGet.PackageManagement.PackagePreFetcher.<>c__DisplayClass0_1.<<GetPackagesAsync>b__4>d.MoveNext()
--- End of stack trace from previous location ---
at NuGet.PackageManagement.PackagePreFetcherResult.EnsureResultAsync()
at NuGet.PackageManagement.PackagePreFetcherResult.GetResultAsync()
at NuGet.PackageManagement.NuGetPackageManager.ExecuteNuGetProjectActionsAsync(NuGetProject nuGetProject, IEnumerable`1 nuGetProjectActions, INuGetProjectContext nuGetProjectContext, PackageDownloadContext downloadContext, CancellationToken token)
at NuGet.PackageManagement.NuGetPackageManager.ExecuteNuGetProjectActionsAsync(NuGetProject nuGetProject, IEnumerable`1 nuGetProjectActions, INuGetProjectContext nuGetProjectContext, PackageDownloadContext downloadContext, CancellationToken token)
at NuGet.PackageManagement.NuGetPackageManager.ExecuteNuGetProjectActionsAsync(NuGetProject nuGetProject, IEnumerable`1 nuGetProjectActions, INuGetProjectContext nuGetProjectContext, PackageDownloadContext downloadContext, CancellationToken token)
at NuGet.PackageManagement.NuGetPackageManager.InstallPackageAsync(NuGetProject nuGetProject, PackageIdentity packageIdentity, ResolutionContext resolutionContext, INuGetProjectContext nuGetProjectContext, PackageDownloadContext downloadContext, IEnumerable`1 primarySources, IEnumerable`1 secondarySources, CancellationToken token)
at StockSharp.Installer.Installer.DoInstallAsync(InstallerProject project, CancellationToken token)
at StockSharp.Installer.Installer.InstallAsync(ProductVersion version, String dir, CancellationToken token)
at StockSharp.Installer.Product.InstallAsync(ProductVersion version, String dir, CancellationToken token)
at StockSharp.Installer.UI.VMPageInstallActions.ExecuteAsync(CancellationToken token)
at StockSharp.Installer.UI.VMPageInstallActions.CmdExecuteAsync()




Спасибо:




berg

Фотография
Дата: 22.07.2022
Ответить


Протестировал установку на другом ПК.
Инсталер установился со второго раза, Гидра при инсталяции выдала ошибку.
Я так понимаю, что проблема из-за таймаутов получения пакета с nuget.stocksharp.com. И что теперь с этим делать? Пауза явно на стороне сервера, с другими узлами в инете пауз на 100сек не бывает.

ProgressHelper 22.07.2022 15:57:34 +05:00 Warning Error downloading 'StockSharp.Hydra.Core.5.0.124 : NETStandard.Library [2.0.3, ), StockSharp.Algo [5.0.130, ), StockSharp.Licensing [5.0.125, ), StockSharp.Server.Core [5.0.101, ), StockSharp.Server.Fix [5.0.104, ), StockSharp.Studio.Community [5.0.111, ), StockSharp.Studio.Core [5.0.134, )' from 'https://nuget.stocksharp.com/x/v3/package/stocksharp.hydra.core/5.0.124/stocksharp.hydra.core.5.0.124.nupkg'.
The HTTP request to 'GET https://nuget.stocksharp...core.5.0.124.nupkg' has timed out after 100000ms.
ProgressHelper 22.07.2022 15:58:20 +05:00 Warning no compatible files found in package Microsoft.Build.Tasks.Git.1.0.0
ProgressHelper 22.07.2022 15:58:20 +05:00 Warning no compatible files found in package Microsoft.CodeAnalysis.Analyzers.3.3.2
ProgressHelper 22.07.2022 15:58:20 +05:00 Warning no compatible files found in package Microsoft.CSharp.4.7.0
...
тут перечисляются все package
...
ProgressHelper 22.07.2022 15:58:41 +05:00 Warning no compatible files found in package Microsoft.Windows.Compatibility.5.0.2
ProgressHelper 22.07.2022 15:59:45 +05:00 Warning Error downloading 'StockSharp.Hydra.5.0.124 : Microsoft.Data.SqlClient [3.0.1, ), Microsoft.Data.Sqlite [5.0.11, ), StockSharp.Algo.Export [5.0.30, ), StockSharp.Configuration.Adapters [5.0.134, ), StockSharp.Hydra.Core [5.0.124, ), StockSharp.Studio.Controls [5.0.134, ), StockSharp.Xaml.CodeEditor [5.0.113, )' from 'https://nuget.stocksharp.com/x/v3/package/stocksharp.hydra/5.0.124/stocksharp.hydra.5.0.124.nupkg'.
The HTTP request to 'GET https://nuget.stocksharp...ydra.5.0.124.nupkg' has timed out after 100000ms.
ProgressHelper 22.07.2022 16:01:25 +05:00 Warning Error downloading 'StockSharp.Hydra.5.0.124 : Microsoft.Data.SqlClient [3.0.1, ), Microsoft.Data.Sqlite [5.0.11, ), StockSharp.Algo.Export [5.0.30, ), StockSharp.Configuration.Adapters [5.0.134, ), StockSharp.Hydra.Core [5.0.124, ), StockSharp.Studio.Controls [5.0.134, ), StockSharp.Xaml.CodeEditor [5.0.113, )' from 'https://nuget.stocksharp.com/x/v3/package/stocksharp.hydra/5.0.124/stocksharp.hydra.5.0.124.nupkg'.
The HTTP request to 'GET https://nuget.stocksharp...ydra.5.0.124.nupkg' has timed out after 100000ms.
ProgressHelper 22.07.2022 16:03:06 +05:00 Warning Install failed. Rolling back...
Installer 22.07.2022 16:03:06 +05:00 Verbose nuget: unlocked
ProgressHelper 22.07.2022 16:03:06 +05:00 Error FatalProtocolException: Error downloading 'StockSharp.Hydra.5.0.124 : Microsoft.Data.SqlClient [3.0.1, ), Microsoft.Data.Sqlite [5.0.11, ), StockSharp.Algo.Export [5.0.30, ), StockSharp.Configuration.Adapters [5.0.134, ), StockSharp.Hydra.Core [5.0.124, ), StockSharp.Studio.Controls [5.0.134, ), StockSharp.Xaml.CodeEditor [5.0.113, )' from 'https://nuget.stocksharp.com/x/v3/package/stocksharp.hydra/5.0.124/stocksharp.hydra.5.0.124.nupkg'.
VMPageInstallActions 22.07.2022 16:03:06 +05:00 Error CmdExecuteAsync error: NuGet.Protocol.Core.Types.FatalProtocolException: Error downloading 'StockSharp.Hydra.5.0.124 : Microsoft.Data.SqlClient [3.0.1, ), Microsoft.Data.Sqlite [5.0.11, ), StockSharp.Algo.Export [5.0.30, ), StockSharp.Configuration.Adapters [5.0.134, ), StockSharp.Hydra.Core [5.0.124, ), StockSharp.Studio.Controls [5.0.134, ), StockSharp.Xaml.CodeEditor [5.0.113, )' from 'https://nuget.stocksharp.com/x/v3/package/stocksharp.hydra/5.0.124/stocksharp.hydra.5.0.124.nupkg'.
---> System.TimeoutException: The HTTP request to 'GET https://nuget.stocksharp...ydra.5.0.124.nupkg' has timed out after 100000ms.
at NuGet.Protocol.TimeoutUtility.StartWithTimeout[T](Func`2 getTask, TimeSpan timeout, String timeoutMessage, CancellationToken token)
at NuGet.Protocol.HttpRetryHandler.SendAsync(HttpRetryHandlerRequest request, String source, ILogger log, CancellationToken cancellationToken)
at NuGet.Protocol.HttpSource.GetThrottledResponse(Func`1 requestFactory, TimeSpan requestTimeout, TimeSpan downloadTimeout, Int32 maxTries, Boolean isRetry, Boolean isLastAttempt, Guid sessionId, ILogger log, CancellationToken cancellationToken)
at NuGet.Protocol.HttpSource.ProcessResponseAsync[T](HttpSourceRequest request, Func`2 processAsync, SourceCacheContext cacheContext, ILogger log, CancellationToken token)
at NuGet.Protocol.HttpSource.ProcessStreamAsync[T](HttpSourceRequest request, Func`2 processAsync, SourceCacheContext cacheContext, ILogger log, CancellationToken token)
at NuGet.Protocol.GetDownloadResultUtility.GetDownloadResultAsync(HttpSource client, PackageIdentity identity, Uri uri, PackageDownloadContext downloadContext, String globalPackagesFolder, ILogger logger, CancellationToken token)
--- End of inner exception stack trace ---
at NuGet.Protocol.GetDownloadResultUtility.GetDownloadResultAsync(HttpSource client, PackageIdentity identity, Uri uri, PackageDownloadContext downloadContext, String globalPackagesFolder, ILogger logger, CancellationToken token)
at NuGet.Protocol.DownloadResourceV3.GetDownloadResourceResultAsync(PackageIdentity identity, PackageDownloadContext downloadContext, String globalPackagesFolder, ILogger logger, CancellationToken token)
at NuGet.PackageManagement.PackageDownloader.GetDownloadResourceResultAsync(SourceRepository sourceRepository, PackageIdentity packageIdentity, PackageDownloadContext downloadContext, String globalPackagesFolder, ILogger logger, CancellationToken token)
at NuGet.PackageManagement.PackagePreFetcher.<>c__DisplayClass0_1.<<GetPackagesAsync>b__4>d.MoveNext()
--- End of stack trace from previous location ---
at NuGet.PackageManagement.PackagePreFetcherResult.EnsureResultAsync()
at NuGet.PackageManagement.PackagePreFetcherResult.GetResultAsync()
at NuGet.PackageManagement.NuGetPackageManager.ExecuteNuGetProjectActionsAsync(NuGetProject nuGetProject, IEnumerable`1 nuGetProjectActions, INuGetProjectContext nuGetProjectContext, PackageDownloadContext downloadContext, CancellationToken token)
at NuGet.PackageManagement.NuGetPackageManager.ExecuteNuGetProjectActionsAsync(NuGetProject nuGetProject, IEnumerable`1 nuGetProjectActions, INuGetProjectContext nuGetProjectContext, PackageDownloadContext downloadContext, CancellationToken token)
at NuGet.PackageManagement.NuGetPackageManager.ExecuteNuGetProjectActionsAsync(NuGetProject nuGetProject, IEnumerable`1 nuGetProjectActions, INuGetProjectContext nuGetProjectContext, PackageDownloadContext downloadContext, CancellationToken token)
at NuGet.PackageManagement.NuGetPackageManager.InstallPackageAsync(NuGetProject nuGetProject, PackageIdentity packageIdentity, ResolutionContext resolutionContext, INuGetProjectContext nuGetProjectContext, PackageDownloadContext downloadContext, IEnumerable`1 primarySources, IEnumerable`1 secondarySources, CancellationToken token)
at StockSharp.Installer.Installer.DoInstallAsync(InstallerProject project, CancellationToken token)
at StockSharp.Installer.Installer.InstallAsync(ProductVersion version, String dir, CancellationToken token)
at StockSharp.Installer.Product.InstallAsync(ProductVersion version, String dir, CancellationToken token)
at StockSharp.Installer.UI.VMPageInstallActions.ExecuteAsync(CancellationToken token)
at StockSharp.Installer.UI.VMPageInstallActions.CmdExecuteAsync()
Спасибо:

berg

Фотография
Дата: 22.07.2022
Ответить


Спасибо:


Добавить файлы через драг-н-дроп, , или вставить из буфера обмена.

loading
clippy