{"action":"created","issue":{"url":"https://api.github.com/repos/chocolatey/choco/issues/1059","repository_url":"https://api.github.com/repos/chocolatey/choco","labels_url":"https://api.github.com/repos/chocolatey/choco/issues/1059/labels{/name}","comments_url":"https://api.github.com/repos/chocolatey/choco/issues/1059/comments","events_url":"https://api.github.com/repos/chocolatey/choco/issues/1059/events","html_url":"https://github.com/chocolatey/choco/issues/1059","id":191256546,"number":1059,"title":"choco config set does not set the \"commandExecutionTimeoutSeconds\" global variable in chocolatey.config file","user":{"login":"ajayshikhare","id":20952517,"avatar_url":"https://avatars.githubusercontent.com/u/20952517?v=3","gravatar_id":"","url":"https://api.github.com/users/ajayshikhare","html_url":"https://github.com/ajayshikhare","followers_url":"https://api.github.com/users/ajayshikhare/followers","following_url":"https://api.github.com/users/ajayshikhare/following{/other_user}","gists_url":"https://api.github.com/users/ajayshikhare/gists{/gist_id}","starred_url":"https://api.github.com/users/ajayshikhare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajayshikhare/subscriptions","organizations_url":"https://api.github.com/users/ajayshikhare/orgs","repos_url":"https://api.github.com/users/ajayshikhare/repos","events_url":"https://api.github.com/users/ajayshikhare/events{/privacy}","received_events_url":"https://api.github.com/users/ajayshikhare/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-23T12:20:33Z","updated_at":"2016-11-23T12:45:07Z","closed_at":null,"body":"C:\\Windows\\system32>choco config set commandExecutionTimeoutSeconds 14400 -dvy\r\nChocolatey v0.10.3\r\nChocolatey is running on Windows v 6.1.7601.65536\r\nAttempting to delete file \"C:/ProgramData/chocolatey/choco.exe.old\".\r\nAttempting to delete file \"C:\\ProgramData\\chocolatey\\choco.exe.old\".\r\nCommand line not shown - sensitive arguments may have been passed.\r\nRemovePendingPackagesTask is now ready and waiting for PreRunMessage.\r\nSending message 'PreRunMessage' out if there are subscribers...\r\n[Pending] Removing all pending packages that should not be considered installed...\r\nThe source '' evaluated to a 'normal' source type\r\n\r\nNOTE: Hiding sensitive configuration data! Please double and triple\r\n check to be sure no sensitive data is shown, especially if copying\r\n output to a gist for review.\r\nConfiguration: CommandName='config'|\r\nCacheLocation='C:\\Users\\shikhare_a\\AppData\\Local\\Temp\\chocolatey'|\r\nContainsLegacyPackageInstalls='True'|\r\nCommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'|\r\nSourceType='normal'|Debug='True'|Verbose='True'|Force='False'|\r\nNoop='False'|HelpRequested='False'|RegularOutput='True'|\r\nQuietOutput='False'|PromptForConfirmation='False'|AcceptLicense='True'|\r\nAllowUnofficialBuild='False'|\r\nInput='set commandExecutionTimeoutSeconds 14400'|AllVersions='False'|\r\nSkipPackageInstallProvider='False'|Prerelease='False'|ForceX86='False'|\r\nOverrideArguments='False'|NotSilent='False'|\r\nApplyPackageParametersToDependencies='False'|\r\nApplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'|\r\nAllowMultipleVersions='False'|AllowDowngrade='False'|\r\nForceDependencies='False'|Information.PlatformType='Windows'|\r\nInformation.PlatformVersion='6.1.7601.65536'|\r\nInformation.PlatformName='Windows 7'|\r\nInformation.ChocolateyVersion='0.10.3.0'|\r\nInformation.ChocolateyProductVersion='0.10.3'|\r\nInformation.FullName='choco, Version=0.10.3.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|\r\n\r\nInformation.Is64Bit='True'|Information.IsInteractive='True'|\r\nInformation.IsUserAdministrator='True'|\r\nInformation.IsProcessElevated='True'|\r\nInformation.IsLicensedVersion='False'|Information.LicenseType='Foss'|\r\nFeatures.AutoUninstaller='True'|Features.ChecksumFiles='False'|\r\nFeatures.AllowEmptyChecksums='True'|\r\nFeatures.AllowEmptyChecksumsSecure='True'|\r\nFeatures.FailOnAutoUninstaller='False'|\r\nFeatures.FailOnStandardError='False'|Features.UsePowerShellHost='True'|\r\nFeatures.LogEnvironmentValues='False'|Features.VirusCheck='False'|\r\nFeatures.FailOnInvalidOrMissingLicense='False'|\r\nFeatures.IgnoreInvalidOptionsSwitches='True'|\r\nFeatures.UsePackageExitCodes='True'|\r\nFeatures.UseFipsCompliantChecksums='False'|\r\nFeatures.ScriptsCheckLastExitCode='False'|\r\nListCommand.LocalOnly='False'|\r\nListCommand.IncludeRegistryPrograms='False'|ListCommand.PageSize='25'|\r\nListCommand.Exact='False'|ListCommand.ByIdOnly='False'|\r\nListCommand.IdStartsWith='False'|ListCommand.OrderByPopularity='False'|\r\nListCommand.ApprovedOnly='False'|\r\nListCommand.DownloadCacheAvailable='False'|\r\nListCommand.NotBroken='False'|UpgradeCommand.FailOnUnfound='False'|\r\nUpgradeCommand.FailOnNotInstalled='False'|\r\nUpgradeCommand.NotifyOnlyAvailableUpgrades='False'|\r\nNewCommand.AutomaticPackage='False'|\r\nNewCommand.UseOriginalTemplate='False'|SourceCommand.Command='unknown'|\r\nSourceCommand.Priority='0'|FeatureCommand.Command='unknown'|\r\nConfigCommand.Name='commandExecutionTimeoutSeconds'|\r\nConfigCommand.Command='set'|PinCommand.Command='unknown'|\r\n_ Chocolatey:ChocolateyConfigCommand - Normal Run Mode _\r\nAttempting to copy \"C:\\ProgramData\\chocolatey\\config\\chocolatey.config.update\"\r\n to \"C:\\ProgramData\\chocolatey\\config\\chocolatey.config\".\r\nAttempting to delete file \"C:\\ProgramData\\chocolatey\\config\\chocolatey.config.update\".\r\nUpdated commandExecutionTimeoutSeconds = 14400\r\nSending message 'PostRunMessage' out if there are subscribers...\r\nExiting with 0\r\n\r\nWe see the commandExecutionTimeoutSeconds = 14400 has been set. \r\n\r\nThe very next moment when we run choco config list  we see below.\r\n\r\nC:\\Windows\\system32>choco config list\r\nChocolatey v0.10.3\r\nSettings\r\ncacheLocation =  | Cache location if not TEMP folder.\r\ncontainsLegacyPackageInstalls = true | Install has packages installed prior to 0.9.9 series.\r\nproxy =  | Explicit proxy location.\r\nproxyUser =  | Optional proxy user.\r\nproxyPassword =  | Optional proxy password. Encrypted.\r\nwebRequestTimeoutSeconds = 30 | Default timeout for web requests. Available in 0.9.10+.\r\ntimeout = 14400 |\r\ncommandExecutionTimeoutSeconds = 2700 | Default timeout for command execution.\r\n\r\nThis never gets set in the config file. When tried changing the value in Config file, it gets overwritten whenever the next choco command gets run.\r\n\r\n\r\nchoco.summary.log around this time.\r\n2016-11-23 16:12:32,807 [INFO ] - Chocolatey v0.10.3\r\n2016-11-23 16:12:35,212 [WARN ] - Updated commandExecutionTimeoutSeconds = 14400\r\n2016-11-23 17:11:08,109 [INFO ] - ============================================================\r\n2016-11-23 17:11:08,166 [INFO ] - Chocolatey v0.10.3\r\n2016-11-23 17:11:12,554 [INFO ] - Settings\r\n2016-11-23 17:11:12,560 [INFO ] - cacheLocation =  | Cache location if not TEMP folder.\r\n2016-11-23 17:11:12,565 [INFO ] - containsLegacyPackageInstalls = true | Install has packages installed prior to 0.9.9 series.\r\n2016-11-23 17:11:12,568 [INFO ] - proxy =  | Explicit proxy location.\r\n2016-11-23 17:11:12,581 [INFO ] - proxyUser =  | Optional proxy user.\r\n2016-11-23 17:11:12,585 [INFO ] - proxyPassword =  | Optional proxy password. Encrypted.\r\n2016-11-23 17:11:12,589 [INFO ] - webRequestTimeoutSeconds = 30 | Default timeout for web requests. Available in 0.9.10+.\r\n2016-11-23 17:11:12,594 [INFO ] - timeout = 14400 | \r\n2016-11-23 17:11:12,599 [INFO ] - commandExecutionTimeoutSeconds = 2700 | Default timeout for command execution."},"comment":{"url":"https://api.github.com/repos/chocolatey/choco/issues/comments/262503717","html_url":"https://github.com/chocolatey/choco/issues/1059#issuecomment-262503717","issue_url":"https://api.github.com/repos/chocolatey/choco/issues/1059","id":262503717,"user":{"login":"ajayshikhare","id":20952517,"avatar_url":"https://avatars.githubusercontent.com/u/20952517?v=3","gravatar_id":"","url":"https://api.github.com/users/ajayshikhare","html_url":"https://github.com/ajayshikhare","followers_url":"https://api.github.com/users/ajayshikhare/followers","following_url":"https://api.github.com/users/ajayshikhare/following{/other_user}","gists_url":"https://api.github.com/users/ajayshikhare/gists{/gist_id}","starred_url":"https://api.github.com/users/ajayshikhare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajayshikhare/subscriptions","organizations_url":"https://api.github.com/users/ajayshikhare/orgs","repos_url":"https://api.github.com/users/ajayshikhare/repos","events_url":"https://api.github.com/users/ajayshikhare/events{/privacy}","received_events_url":"https://api.github.com/users/ajayshikhare/received_events","type":"User","site_admin":false},"created_at":"2016-11-23T12:45:07Z","updated_at":"2016-11-23T12:45:07Z","body":"Also\r\nwhy we have 2 keys for timeout\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<chocolatey xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">\r\n<containsLegacyPackageInstalls>false</containsLegacyPackageInstalls>\r\n<commandExecutionTimeoutSeconds>0</commandExecutionTimeoutSeconds>\r\n<config>\r\n<add key=\"cacheLocation\" value=\"\" description=\"Cache location if not TEMP folder.\" />\r\n<add key=\"containsLegacyPackageInstalls\" value=\"true\" description=\"Install has packages installed prior to 0.9.9 series.\" />\r\n<add key=\"proxy\" value=\"\" description=\"Explicit proxy location.\" />\r\n<add key=\"proxyUser\" value=\"\" description=\"Optional proxy user.\" />\r\n<add key=\"proxyPassword\" value=\"\" description=\"Optional proxy password. Encrypted.\" />\r\n<add key=\"webRequestTimeoutSeconds\" value=\"30\" description=\"Default timeout for web requests. Available in 0.9.10+.\" />\r\n<add key=\"timeout\" value=\"14400\" />\r\n<add key=\"commandExecutionTimeoutSeconds\" value=\"14400\" description=\"Default timeout for command execution.\" />\r\n</config>\r\nIf we change the top key the value reflects globally\r\nbut even if you set the value from choco config set or manually set the value in a config file, it never gets setup as needed"}}
{"actor":{"display_login":"ajayshikhare"}}