New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

snadmin install-services error #505

Closed
OpusKrokus opened this Issue Nov 2, 2018 · 2 comments

Comments

Projects
None yet
3 participants
@OpusKrokus
Copy link

OpusKrokus commented Nov 2, 2018

The below command:
.\snadmin install-services dataSource:.\SQL2016 initialCatalog:sensenet ForcedReinstall:true
errs out with the following error:

20:01:47.1917	ApplicationException: Phase terminated with error: The UTC time represented when the offset is applied must be between year 0 and 10,000.
Parameter name: offset
   at SenseNet.Packaging.PackageManager.ExecuteCurrentPhase(Manifest manifest, ExecutionContext executionContext) in E:\BuildAgent\_work\63\s\src\ContentRepository\Packaging\PackageManager.cs:line 165
   at SenseNet.Packaging.PackageManager.Execute(String packagePath, String targetPath, Int32 currentPhase, String[] parameters, TextWriter console) in E:\BuildAgent\_work\63\s\src\ContentRepository\Packaging\PackageManager.cs:line 71
   at SenseNet.Tools.SnAdmin.SnAdminRuntime.ExecutePhase(String packagePath, String targetDirectory, Int32 phase, String[] parameters, String logFilePath, Boolean help, Boolean schema) in E:\BuildAgent\_work\63\s\src\Tools\SnAdminRuntime\SnAdminRuntime.cs:line 191
---- Inner Exception:
ArgumentOutOfRangeException: The UTC time represented when the offset is applied must be between year 0 and 10,000.
Parameter name: offset
   at System.DateTimeOffset.ValidateDate(DateTime dateTime, TimeSpan offset)
   at System.DateTimeOffset..ctor(DateTime dateTime)
   at SenseNet.ContentRepository.Storage.Caching.SnMemoryCache.Insert(String key, Object value, CacheDependency dependencies) in E:\BuildAgent\_work\63\s\src\Storage\Caching\SnMemoryCache.cs:line 49
   at SenseNet.ContentRepository.Storage.DataBackingStore.CacheNodeHead(NodeHead head, String idKey, String pathKey) in E:\BuildAgent\_work\63\s\src\Storage\DataBackingStore.cs:line 136
   at SenseNet.ContentRepository.Storage.DataBackingStore.GetNodeHead(Int32 nodeId) in E:\BuildAgent\_work\63\s\src\Storage\DataBackingStore.cs:line 65
   at SenseNet.ContentRepository.User.get_Administrator() in E:\BuildAgent\_work\63\s\src\ContentRepository\User.cs:line 47
   at SenseNet.ContentRepository.Security.DesktopAccessProvider.get_CurrentUser() in E:\BuildAgent\_work\63\s\src\ContentRepository\Security\DesktopAccessProvider.cs:line 36
   at SenseNet.ContentRepository.Storage.Security.AccessProvider.ChangeToSystemAccount() in E:\BuildAgent\_work\63\s\src\Storage\Security\AccessProvider.cs:line 45
   at SenseNet.ContentRepository.Security.DesktopAccessProvider.GetCurrentUser() in E:\BuildAgent\_work\63\s\src\ContentRepository\Security\DesktopAccessProvider.cs:line 52
   at SenseNet.ContentRepository.Storage.Security.AccessProvider.ChangeToSystemAccount() in E:\BuildAgent\_work\63\s\src\Storage\Security\AccessProvider.cs:line 45
   at SenseNet.ContentRepository.RepositoryInstance.DoStart() in E:\BuildAgent\_work\63\s\src\ContentRepository\RepositoryInstance.cs:line 141
   at SenseNet.ContentRepository.RepositoryInstance.Start(RepositoryStartSettings settings) in E:\BuildAgent\_work\63\s\src\ContentRepository\RepositoryInstance.cs:line 107
   at SenseNet.ContentRepository.Repository.Start(RepositoryStartSettings settings) in E:\BuildAgent\_work\63\s\src\ContentRepository\Repository.cs:line 55
   at SenseNet.Packaging.Steps.StartRepository.Execute(ExecutionContext context) in E:\BuildAgent\_work\63\s\src\ContentRepository\Packaging\Steps\StartRepository.cs:line 55
   at SenseNet.Packaging.PackageManager.ExecuteCurrentPhase(Manifest manifest, ExecutionContext executionContext) in E:\BuildAgent\_work\63\s\src\ContentRepository\Packaging\PackageManager.cs:line 112

20:01:47.2827	===============================================================================
20:01:47.2977	SnAdmin stopped with error.

The only way to move forward is to change the local machine to UTC or UTC-1 (see this SO post).

@tusmester tusmester added this to the Sprint 171 milestone Nov 3, 2018

@tusmester tusmester added the bug label Nov 3, 2018

@tusmester

This comment has been minimized.

Copy link
Member

tusmester commented Nov 3, 2018

Thank you for investigating this, we looked into it at will come up with a solution soon.

@kavics kavics self-assigned this Nov 3, 2018

@tusmester

This comment has been minimized.

Copy link
Member

tusmester commented Nov 7, 2018

We published the fix in release 7.4.1.

@tusmester tusmester closed this Nov 7, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment