by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Rob Reynolds
@ferventcoder
@/all contacting site admins on the community repo should now be working. It was thought a spammer was being banned and it turned out we accidentally removed the ability for the website to send emails to the admin google group.
Bruno Baldochi
@brunoyb

Hi! I'm getting errors during the automated testing phase for 2 of the packages that I help maintain recently. Any ideas what could be the issue?

https://chocolatey.org/packages/fossil/2.11
https://chocolatey.org/packages/SWI-Prolog/8.2.0.1

Looking at the logs it seems that the testing environment can't download the files from the sources...

https://gist.github.com/choco-bot/78a22709af18fb627bd8b6e11f18d753
https://gist.github.com/choco-bot/eacea3e32e4a5b823e56e18697dfff91

2 replies
Stewart Cossey
@Cossey
I'm having a bit of trouble knowing the "proper way" of creating a package for a InstallShield exe that is distributed inside a zip file from its website. I've recorded the iss files for silent install and uninstall and my thought was to use "Get-ChocolateyWebFile" to download the zip, then "Get-ChocolateyUnzip" to extract the installer exe and then run the "Install-ChocolateyPackage" to run the installer file and then script some "Remove-Item"s to remove the zip and the installer exe files. Am I on the right track here?
Sudheer Chowdary Divi
@sudheer_divi_twitter
Can you any one know how to pass allure Json files while generating pickles files
Kim J. Nordmo
@AdmiringWorm
@Cossey you're close, but use Install-ChocolateyZipPackage (this combines Get-ChocolateyWebFile and Get-ChocolateyUnzip) to extract the directory to a temporary location, then use Install-ChocolateyInstallPackage to run the installer (using Install-ChocolateyPackage is for downloading and installing files). After that you could call Remove-Item to remove the extracted archive
Stewart Cossey
@Cossey
@AdmiringWorm Thanks heaps Kim, that lead me on the right path and got it sorted. Maybe chocolatey might need a Install-ChocolatelyZipInstallPackage command in the future!
n3rd4i
@n3rd4i
Hi, I have a question about a package. I want to include a picture into package description from the package itself. Is that possible?
with markdown notation, ofc.
Rob Reynolds
@ferventcoder
@n3rd4i yes you can do that now. Just make sure you have a good url for the images
n3rd4i
@n3rd4i
Hi, @ferventcoder, with URL this works, what I tried ia to link "local" / "package-archive-own" images to be used in the website. I suspect thia does not work because the package is archived anyway right?
Joel Sallow (/u/ta11ow)
@vexx32
yeah the package is stored as a single nupkg file, so you won't be able to reference things inside of it like images etc directly
Jurjen Biewenga
@JurjenBiewenga
So suddenly today, chocolatey stopped returning packages when searching for them
Nothing in the setup or server changed...
Log also contains little to nothing of value that indicates a failure
Gary Ewan Park
@gep13
@JurjenBiewenga can you please elaborate on what the problem is? What commands are you executing? What sources are you using? Are you using your own internal repository, or are you using the Chocolatey Community Repository?
Jurjen Biewenga
@JurjenBiewenga
Doing choco list --source toolsinternal.companyname.com using our own internal server that worked fine before
Executing with --debug --verbose --trace only shows information about the command being ran and nothing of interest about the execution failure
Jurjen Biewenga
@JurjenBiewenga
And now it magically works again
Paul Broadwith
@pauby
@JurjenBiewenga That sounds very much like an internal issue - perhaps network, connectivity or the internal repository?
Jurjen Biewenga
@JurjenBiewenga
I doubt it, server worked fine, connection to server seemed fine (web portal etc worked fine)
Only thing that didn't work was chocolatey saying that no packages are found
If it can't connect I'd expect an error
Rob Reynolds
@ferventcoder
It's likely something with your internal repo, as Paul indicated. Maybe the connection worked but the internal repo was returning zero results for a little while. Based on what you are saying, a semi-educated guess leads me to believe this is the right path to explore as you changed nothing locally and poof, it magically started working again. Choco returns a warning message when it cannot connect. You did not see that, so the connection was going through. That means something on your repo was going on. What do you use for an internal repo?
@jurjenbiewenga ^^
Jurjen Biewenga
@JurjenBiewenga
Commandline seems to work if I use https://toolsinternal.companyname.com/api/v2/
However using the GetChocolatey.List API doesn't seem to work due to some weird oddity
Putting in a Thread.Sleep(1) before doing ToArray seems to fix it
Gary Ewan Park
@gep13
@JurjenBiewenga sounds like you are attempting to use Chocolatey.Lib directly, is that correct? Have you looked at how things are done in the Chocolatey GUI project?
Jurjen Biewenga
@JurjenBiewenga
Also querying a local file source doesn't work either
Yes, it's largely based of the ChocolateyGUI project
But improved, again we didn't change anything and it suddenly broke
Gary Ewan Park
@gep13
So when you say "things aren't working" are you referring to using choco.exe or your own application?
Jurjen Biewenga
@JurjenBiewenga
The chocolatey.lib api
Gary Ewan Park
@gep13
It would help to have this information
Jurjen Biewenga
@JurjenBiewenga
We've been using the api for more than a year and a half
Gary Ewan Park
@gep13
@JurjenBiewenga I personally, and I don't think anyone else here in this chat, has that information. So when you say that "things aren't working" we assume you are referring to choco.exe rather than some custom implementation. Can you see how that might cause us confusion/
Jurjen Biewenga
@JurjenBiewenga
Yes, I'm sorry. It's just a little frustrating since it appears that Chocolatey is always breaking in our scenario.
Gary Ewan Park
@gep13
Sorry to labour the point, but let’s be clear here... Is Chocolatey, I.e. choco.exe breaking here? Or is your implementation of the Chocolatey.Lib (which we haven’t seen the usage of) not working how you would expect it to?
Jurjen Biewenga
@JurjenBiewenga
Chocolatey.Lib, working on getting a copy of the "fixed" code
I'm not the one currently debugging
Right, this version seems to work consistently https://hastebin.com/nogozereka.cs
If we remove the Thread.Sleep it doesn't
It's querying a specific package by name with a version on a local file source
Jurjen Biewenga
@JurjenBiewenga
Seems like it has to do with potentially having 2 queries running at the same time
Michael Howell
@notriddle
Anybody have any idea what the error in this is?
I can't find any actual error messages, and another nearly-identical package tested successfully.
Rob Reynolds
@ferventcoder
We call that a timeout
It did not finish executing in the allotted timeframe
Michael Howell
@notriddle
Should I just try it again?