Skip to content
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

It's do full disk scan after install mongodb, that's annoy #154

Closed
lygstate opened this issue Mar 9, 2015 · 22 comments
Closed

It's do full disk scan after install mongodb, that's annoy #154

lygstate opened this issue Mar 9, 2015 · 22 comments

Comments

@lygstate
Copy link

lygstate commented Mar 9, 2015

C:\Windows\system32>cinst mongodb
!!ATTENTION!!
The next version of Chocolatey (v0.9.9) will require -y to perform
behaviors that change state without prompting for confirmation. Start
using it now in your automated scripts.

For details on the all new Chocolatey, visit http://bit.ly/new_choco
Chocolatey (v0.9.8.33) is installing 'mongodb' and dependencies. By installing you accept the license for 'mongodb' and each dependency you are instal
ling.

mongodb v2.4.7.1
Extracting C:\Users\LUOYON~1\AppData\Local\Temp\chocolatey\MongoDB\MongoDBInstall.zip to C:...
Get-ChildItem : Access to the path 'C:\Windows\CSC' is denied.
At C:\ProgramData\chocolatey\chocolateyinstall\helpers\functions\Write-FileUpdateLog.ps1:11 char:23

  • $originalContents = Get-ChildItem -Recurse $locationToMonitor | Select-Object ...
  •                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : PermissionDenied: (C:\Windows\CSC:String) [Get-ChildItem], UnauthorizedAccessException
    • FullyQualifiedErrorId : DirUnauthorizedAccessError,Microsoft.PowerShell.Commands.GetChildItemCommand

Get-ChildItem : Access to the path 'C:\Windows\System32\LogFiles\WMI\RtBackup' is denied.
At C:\ProgramData\chocolatey\chocolateyinstall\helpers\functions\Write-FileUpdateLog.ps1:11 char:23

  • $originalContents = Get-ChildItem -Recurse $locationToMonitor | Select-Object ...
  •                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : PermissionDenied: (C:\Windows\Syst...es\WMI\RtBackup:String) [Get-ChildItem], UnauthorizedAccessException
    • FullyQualifiedErrorId : DirUnauthorizedAccessError,Microsoft.PowerShell.Commands.GetChildItemCommand

Get-ChildItem : Access to the path 'C:\Windows\CSC' is denied.
At C:\ProgramData\chocolatey\chocolateyinstall\helpers\functions\Write-FileUpdateLog.ps1:15 char:18

  • $newContents = Get-ChildItem -Recurse $locationToMonitor | Select-Object LastW ...
  •              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : PermissionDenied: (C:\Windows\CSC:String) [Get-ChildItem], UnauthorizedAccessException
    • FullyQualifiedErrorId : DirUnauthorizedAccessError,Microsoft.PowerShell.Commands.GetChildItemCommand

Get-ChildItem : Access to the path 'C:\Windows\System32\LogFiles\WMI\RtBackup' is denied.
At C:\ProgramData\chocolatey\chocolateyinstall\helpers\functions\Write-FileUpdateLog.ps1:15 char:18

  • $newContents = Get-ChildItem -Recurse $locationToMonitor | Select-Object LastW ...
  •              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : PermissionDenied: (C:\Windows\Syst...es\WMI\RtBackup:String) [Get-ChildItem], UnauthorizedAccessException
    • FullyQualifiedErrorId : DirUnauthorizedAccessError,Microsoft.PowerShell.Commands.GetChildItemCommand
@lygstate
Copy link
Author

lygstate commented Mar 9, 2015

Get-ChildItem : The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the director
y name must be less than 248 characters.
At C:\ProgramData\chocolatey\chocolateyinstall\helpers\functions\Write-FileUpdateLog.ps1:12 char:23

  • $originalContents = Get-ChildItem -Recurse $locationToMonitor | Select-Object ...
  •                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ReadError: (C:\CI-Cor\kexin...modules\bl\test:String) [Get-ChildItem], PathTooLongException
    • FullyQualifiedErrorId : DirIOError,Microsoft.PowerShell.Commands.GetChildItemCommand

1 similar comment
@lygstate
Copy link
Author

lygstate commented Mar 9, 2015

Get-ChildItem : The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the director
y name must be less than 248 characters.
At C:\ProgramData\chocolatey\chocolateyinstall\helpers\functions\Write-FileUpdateLog.ps1:12 char:23

  • $originalContents = Get-ChildItem -Recurse $locationToMonitor | Select-Object ...
  •                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ReadError: (C:\CI-Cor\kexin...modules\bl\test:String) [Get-ChildItem], PathTooLongException
    • FullyQualifiedErrorId : DirIOError,Microsoft.PowerShell.Commands.GetChildItemCommand

@ferventcoder
Copy link
Member

Hello - I see you are using 0.9.8.33 - This repository represents the rewrite of 0.9.9+. Perhaps you should upgrade and try again

@lygstate
Copy link
Author

lygstate commented Mar 9, 2015

..... What do you mean? I am using the newest stable version!

@ferventcoder
Copy link
Member

What do you mean? I am using the newest stable version!

Not according to your logs:

Chocolatey (v0.9.8.33) is installing 'mongodb' and dependencies. By installing you accept the license for 'mongodb' and each dependency you are installing.

Right now the website installs the last POSH version (0.9.8.33) - from there you need to call cup chocolatey to upgrade to the latest client.

@lygstate
Copy link
Author

lygstate commented Mar 9, 2015

choco/src/chocolatey.resources/helpers/functions/Write-FileUpdateLog.ps1

@ferventcoder
Copy link
Member

This is done so automation tools have a chance to play catch up, there are quite a few changes.

@lygstate
Copy link
Author

lygstate commented Mar 9, 2015

The code doesn't changed, so the problem will appear again!

@lygstate
Copy link
Author

lygstate commented Mar 9, 2015

Please re-open this issue.

@lygstate
Copy link
Author

lygstate commented Mar 9, 2015

C:\Users\luoyonggang>cup chocolatey
Chocolatey detected you are not running from an elevated command shell
(cmd/powershell). You may experience errors - many functions/packages
require admin rights. Only advanced users should run choco w/out an
elevated shell (and very advanced users as non-admin). When you open
the command shell, you should ensure "Run as Administrator".
!!ATTENTION!!
The next version of Chocolatey (v0.9.9) will require -y to perform
behaviors that change state without prompting for confirmation. Start
using it now in your automated scripts.

For details on the all new Chocolatey, visit http://bit.ly/new_choco
Nothing to update.

@ferventcoder
Copy link
Member

The code doesn't changed, so the problem will appear again

So - 2 things.

  1. You logged an issue about 0.9.8.33 on the new repository. Not as important.
  2. You are logging an issue about a package install. The package should be using Get-BinRoot. It's a gray area sure, but it's actually an issue with the mongo db package itself.

@ferventcoder
Copy link
Member

Nothing to update.

Perhaps try choco install chocolatey

https://chocolatey.org/packages/chocolatey/0.9.9.2 - guarantee that there is one.

@ferventcoder
Copy link
Member

https://github.com/chocolatey/choco/blob/master/README.md#submitting-issues - when you are not certain if you should log an issue, we have a gitter chat room that you can come in and ask.

@ferventcoder ferventcoder reopened this Mar 9, 2015
@ferventcoder
Copy link
Member

Let's do this. Let's log a proper issue, reference this and close it.

@lygstate
Copy link
Author

lygstate commented Mar 9, 2015

You didn't even read the error report

Get-ChildItem : The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the director
This function doesn't support for path more than 260 chars!

@lygstate
Copy link
Author

lygstate commented Mar 9, 2015

The issue is the function Write-FileUpdateLog is not robust,

  1. for very long path, is can not hanlded.
  2. and second for very large directory, it's very time costing, but this issue may not need to be resolved, this is the issue Unzip should not do a full disk scan #155 need to be handled.

@ferventcoder
Copy link
Member

So are you adding multiple issues?

@ferventcoder
Copy link
Member

We should log each of them separately as each could be prioritized and worked on separately.

@lygstate
Copy link
Author

lygstate commented Mar 9, 2015

It's caused these two problems when I trying to
choco install -y mongodb

@lygstate
Copy link
Author

lygstate commented Mar 9, 2015

OK, I'll modify this issue to resolve the long path issue.

@ferventcoder
Copy link
Member

Honestly I've never been a fan of that function - but it will become more important once we move to automatically tracking where things are installed to and removing them on uninstall. But it will be implemented a different way. :)

@ferventcoder
Copy link
Member

Let's create a new issue for that and reference this.

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

No branches or pull requests

2 participants