Not able to build Chocolatey Error

Andrew S.'s Avatar

Andrew S.

14 Jul, 2015 04:02 PM

We're currently not able to build due to this error:

Cannot find file at '../chocolateyInstall/chocolatey.cmd' (C:\ProgramData\chocolatey\chocolateyInstall\chocolatey.cmd). This usually indicates a missing or moved file

Any ideas?

  1. Support Staff 1 Posted by Feodor Fitsner on 14 Jul, 2015 04:31 PM

    Feodor Fitsner's Avatar

    Hi Andrew,

    Chocolatey 9.9.8 has been deployed to build worker images: http://www.appveyor.com/updates/2015/07/13

    Seems like there is no more chocolatey.cmd, but there is "C:\ProgramData\chocolatey\bin\chocolatey.exe". Though I'd better stick with standard choco install <something> approach as Chocolatey location/files can change in the future.

  2. 2 Posted by Andrew S. on 14 Jul, 2015 04:51 PM

    Andrew S.'s Avatar

    None of our scripts are referencing chocolatey.cmd directly. It looks like issue occurs when we call:

    choco install octopustools
    Cannot find file at '../chocolateyInstall/chocolatey.cmd' (C:\ProgramData\chocolatey\chocolateyInstall\chocolatey.cmd). This usually indicates a missing or moved file.

  3. Support Staff 3 Posted by Feodor Fitsner on 14 Jul, 2015 04:58 PM

    Feodor Fitsner's Avatar

    That's strange. Just tested the command - it worked fine for me: https://ci.appveyor.com/project/FeodorFitsner/simple-console/build/...

    Do you install Chocolatey in your builds?

  4. 4 Posted by Andrew S. on 14 Jul, 2015 08:20 PM

    Andrew S.'s Avatar

    I think I figured it out. We cached these folder locations:

    C:\ProgramData\chocolatey\bin
    C:\ProgramData\chocolatey\lib

    These were setup awhile ago to make the build process faster, and seems we had forgotten about them.

    Thanks for your help.

  5. Support Staff 5 Posted by Feodor Fitsner on 14 Jul, 2015 08:46 PM

    Feodor Fitsner's Avatar

    Cool, thanks for the update!

  6. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:57 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac