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

Include the log file path when saying to See the log for details #187

Closed
christianrondeau opened this issue Mar 20, 2015 · 10 comments
Closed

Comments

@christianrondeau
Copy link
Contributor

After executing actions in chocolatey, there is a message that says See the log for details. - but where is that log file?

I suggest including the path in that message to make it easier:

See the log for details (C:\ProgramData\chocolatey\logs)

For more information: https://groups.google.com/forum/#!topic/chocolatey/UVncL7PxXRg

(Moved from chocolatey-archive/chocolatey#695)

@ferventcoder ferventcoder modified the milestone: 0.9.9.3 Mar 20, 2015
@ferventcoder ferventcoder modified the milestones: 0.9.9.3, 0.9.9.5 Mar 30, 2015
ferventcoder added a commit that referenced this issue Apr 14, 2015
When including the message "See the log for details", be sure to
include the path to the log file.
@ferventcoder ferventcoder self-assigned this Apr 17, 2015
@ferventcoder
Copy link
Member

Thanks for reporting this! Should be fixed in 0.9.9.5

ferventcoder added a commit that referenced this issue Apr 20, 2015
* stable: (22 commits)
  (GH-121) Making Uninstall-ChocolateyZipPackage more robust when
deleting files that were copied during installation of the Zip package
  (doc) update changelog/nuspec
  (GH-238) ApiKey source matching intuitive
  (maint) formatting
  (GH-240) Set CredentialProvider for NuGet
  (GH-240) ChocolateyNugetCredentialProvider
  (GH-240) Add default sources to machine sources
  (maint) Only warn subcommand list if not empty
  (GH-171) Use RedirectedHttpClient
  (GH-240) pass credentials at runtime
  (GH-240)(config) Add machine sources
  (doc) how to quote values
  (GH-230) Export all functions and aliases imported
  (GH-230) Fix Issues with Generate/Remove BinFile
  (GH-185) Remove console prompt default choices
  (GH-186) Uninstall - no prompt for one version
  (GH-182) Ask before printing ps1 scripts
  (GH-187) Show log file path in messages.
  (maint) formatting
  (GH-169) Do not resolve disabled sources
  ...

Conflicts:
	src/chocolatey/infrastructure.app/commands/ChocolateySourceCommand.cs
	src/chocolatey/infrastructure.app/runners/GenericRunner.cs
@dotnetCarpenter
Copy link

@ferventcoder I just tried to upgrade VisualStudioCode unsuccessfully. But I can't see where the log is located?

You have VisualStudioCode v0.1.0.0 installed. Version 0.3.0.0 is available based on your source(s).

DotNet4.5.1 v4.5.1.20140606
 Microsoft .Net 4.5.1 Framework is already installed on your machine.
 The upgrade of dotnet4.5.1 was successful.

VisualStudioCode v0.3.0.0
 Downloading VisualStudioCode 32 bit
   from 'https://az764295.vo.msecnd.net/public/0.3.0/VSCodeSetup.exe'
 Installing VisualStudioCode...
 [ERROR] Running C:\Users\dotnet\AppData\Local\Temp\chocolatey\VisualStudioCode\VisualStudioCodeInstall.exe with -s  was not successful. Exit code was

 '998' Error Message:
 .
 At C:\ProgramData\chocolatey\helpers\functions\Start-ChocolateyProcessAsAdmin.ps1:92 char:5
 +     throw $errorMessage
 +     ~~~~~~~~~~~~~~~~~~~
     + CategoryInfo          : OperationStopped: ([ERROR] Running...or Message:
 .:String) [], RuntimeException
     + FullyQualifiedErrorId : [ERROR] Running C:\Users\dotnet\AppData\Local\Temp\chocolatey\VisualStudioCode\VisualStudioCodeInstall.exe with -s  was

     not successful. Exit code was '998' Error Message:
 .
The upgrade of visualstudiocode was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\VisualStudioCode\Tools\ChocolateyInstall.ps1'.
 See log for details.

I did however found it in C:\ProgramData\chocolatey\logs but I think it would be a lot easier if See log for details. is change to See log for details. C:\ProgramData\chocolatey\logs

@ferventcoder
Copy link
Member

@dotnetCarpenter It does. Note the version of choco that you are on versus what this issue says it was fixed with.

@dotnetCarpenter
Copy link

@ferventcoder You're right! I somehow missed it at the bottom.

@piotr-cz
Copy link

it doesn't show for me (choco version 0.9.9.11):

The upgrade of ffmpeg was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\ffmpeg\tools\chocolateyInstall.ps1'.
 See log for details.
 Unsuccessful operation for ffmpeg.
  Do you want to rollback to previous version (package files only)?

@ferventcoder
Copy link
Member

@piotr-cz I believe you need to finish out the install/uninstall and then you will see it.

@ferventcoder
Copy link
Member

It's written out at the end of the install.

@kbauer
Copy link

kbauer commented Mar 7, 2019

It seems to remain inconsistent (chocolatey v0.10.11). When trying to upgrade gnuplot, I got:

   WARNING: User (you) cancelled the installation.
   ERROR: Running ["C:\Users\klaus\AppData\Local\Temp\chocolatey\gnuplot\5.0.5\gp505-win64- mingw.exe" /VERYSILENT /SUPPRESSMSGBOXES /MERGETASKS="modifypath" ] was not successful. Exit code was '5'. Exit code indicates the following: User (you) cancelled the installation..
   The upgrade of gnuplot was NOT successful.
   Error while running 'C:\ProgramData\chocolatey\lib\gnuplot\tools\chocolateyInstall.ps1'.
--> See log for details.
   
   Chocolatey upgraded 1/2 packages. 1 packages failed.
OK> See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

   Failures
    - gnuplot (exited 5) - Error while running 'C:\ProgramData\chocolatey\lib\gnuplot\tools\chocolateyInstall.ps1'.
--> See log for details.

@NicTanghe
Copy link

still happening

@ghost
Copy link

ghost commented Jun 17, 2019

This problem still exists in 2019 with Chocately 10.15 when Chocately is invoked from another program.

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

7 participants