-
Notifications
You must be signed in to change notification settings - Fork 905
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
Choco output says "See logs for details" but doesn't indicate where those logs are located #1413
Comments
That message is captured at that location, but it shows up at the end summary right next to the location of the Chocolatey log file in the summary: choco/src/chocolatey/infrastructure.app/services/ChocolateyPackageService.cs Lines 821 to 830 in 0906be8
|
These could be helpful! |
I'm having the same problem, but then during automated validation. The chocolatey package installs fine when run from file and when running the MSI. But automated validation reports:
After that it reports:
I've tried adding dotnet4.7 as dependency (which is correct), but didn't help. I think the contents of Or even better that you could instruct the ps1 to output what log files itself created and that these would get inserted too. For now, I will have to change our MSIs to log directly to a mother ship their problems. |
@monty241 1603 - generic error (many times it is a pending restart). |
@ferventcoder I am aware of the very generic nature of 1603, but how can I get it automated tested / resolved when not sure? |
@monty241 well one way would be to install what you think is the dependency, reboot, then install the software/package. Other than that, it would be just trial and error (unless the MSI logs mention something else, which I doubt) |
@AdmiringWorm The installation on internal test devices across a range of Windows platforms (server and desktop editions) run fine (no 1603, silent mode). Only the automated tests when you upload a package are giving me a headache in terms of debugging what the issue is. Now I would have to add an comment based upon this:
But that introduces extra work for the moderators. I prefer to be only once the famous pain during initial problem solving, instead of hindering the moderators with every new version. |
Exemption from testing is a once thing. |
Ah great, that saves time for the moderators. I will have them skip now the tests. Maybe some day the chocolatey.log can be added to the gist :-) Suggestion to change the following text: `If the verifier is incompatible with the package, please log in and leave a review comment if the package needs to bypass testing (e.g. package installs specific drivers). to
|
@SeanKilleen is there a reason that you closed this issue? |
this is still hapening |
Just reopened this since this has not yet been implemented. |
c.f. #187 also about the same request, and has people say it is still happening. Perhaps it has been done in some parts of the codebase and not others. |
Please implement this feature, I'm not able to see where is the mentioned log file (when a package upgrade fails). |
In my case git failed to install with this message. Couldn't find the log, so I killed the process after download and tried to run without "silent". Learned that it was an opened bash that the installer required to be closed. Anyway, it's really hard to debug these installation errors without proper error message :( |
Is there a way to make choco print the log to stdout? |
choco shows this also installing (On a Microsoft Surface which I now realize is not supported... but choco did install all the prereq.) |
@theking2 can you be clearer on what you mean by 'this'? |
shows a path to the log file only after excuting it twice. First time it only suggest to show the log without pointing out where this log is |
Can you provide a screenshot of both the first and second run? |
I'm posting this issue mostly as grounds for a PR that I can contribute to adjust it.
I searched around but couldn't find any issues that currently exist for this.
Reproduction Steps
choco upgrade
on a package that fails (my current example is RDCMan, which is failing for me with error1603
-- irrelevant here though.Expected behavior: See the location of the log files
Actual Behavior: Only see the generic "see log for details" message.
Example of Error Encountered
Error while running 'C:\ProgramData\chocolatey\lib\rdcman\tools\chocolateyInstall.ps1'. See log for details.
Source of Message
choco/src/chocolatey/infrastructure.app/services/PowershellService.cs
Line 316 in 0906be8
Fix Steps (I think)
This is what I'll be planning for my PR:
The text was updated successfully, but these errors were encountered: