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

Errors on console updating package #353

Closed
pascalberger opened this issue Dec 19, 2016 · 15 comments
Closed

Errors on console updating package #353

pascalberger opened this issue Dec 19, 2016 · 15 comments
Labels
Bug Issues where something has happened which was not expected or intended
Milestone

Comments

@pascalberger
Copy link
Contributor

I tried updating the NodeJs package using ChocolateyGUI Version v0.14.0-unstable0144. While update was successful cn the console several errors are shown:

2016-12-19 14:03:14.172 +01:00 [Error] Error when setting configuration for 'chocolatey.licensed.infrastructure.app.builders.ConfigurationBuilder':
 Exception has been thrown by the target of an invocation.

Full log

@RichiCoder1
Copy link
Contributor

That's bizarre....the install was indeed fine, but for some reason chocolatey was failing to serialize some odd property. And since you were able to install, it likely wasn't a full on permissions eror. Somehow you have permission to install, but not to write C:\ProgramData\chocolatey\config\chocolatey.config.update. /cc @ferventcoder any ideas?

@pascalberger
Copy link
Contributor Author

Just starting ChocolateyGUI also leads to some errors:

2016-12-19 14:16:47.733 +01:00 [Information] Starting WAMP Client on port 24606.
2016-12-19 14:16:48.515 +01:00 [Information] Server started at ws://127.0.0.1:24606/ws
2016-12-19 14:16:50.616 +01:00 [Error] Error when setting configuration for 'chocolatey.licensed.infrastructure.app.builders.ConfigurationBuilder':
 Exception has been thrown by the target of an invocation.
2016-12-19 14:16:50.624 +01:00 [Error] Error serializing type chocolatey.infrastructure.app.configuration.ConfigFileSettings:
 Access to the path 'C:\ProgramData\chocolatey\config\chocolatey.config.update' is denied.
2016-12-19 14:16:50.693 +01:00 [Error] Error when setting environment for 'chocolatey.licensed.infrastructure.app.configuration.EnvironmentSettings':
 Exception has been thrown by the target of an invocation.
2016-12-19 14:16:51.327 +01:00 [Error] Error when setting configuration for 'chocolatey.licensed.infrastructure.app.builders.ConfigurationBuilder':
 Exception has been thrown by the target of an invocation.
2016-12-19 14:16:51.328 +01:00 [Error] Error serializing type chocolatey.infrastructure.app.configuration.ConfigFileSettings:
 Access to the path 'C:\ProgramData\chocolatey\config\chocolatey.config.update' is denied. 

Might it be an issue using the professional version (Chocolatey v0.10.3 Professional)?

@RichiCoder1 RichiCoder1 added :Chocolatey Bug Issues where something has happened which was not expected or intended labels Dec 19, 2016
@RichiCoder1 RichiCoder1 added this to the 0.15.0 milestone Dec 19, 2016
@RichiCoder1
Copy link
Contributor

That's what I'm thinking.

@RichiCoder1
Copy link
Contributor

Just realized I never cc'd @ferventcoder on this, as I believe this is an issue with premature serialization attempts.

@EndaTreanor3001
Copy link

EndaTreanor3001 commented Jun 16, 2017

I'm having this problem with a trial version of chocolatey. Just wondering has this been fixed? is it a chocolatey problem or is it my setup?
image

@RichiCoder1
Copy link
Contributor

Hmm. I'm not honestly sure. /cc @ferventcoder

@ferventcoder
Copy link
Member

Hi @cSharpRookie @RichiCoder1 !

With Boxstarter, it needs to just get the latest version of the chocolatey.lib and those issues should dissolve. When you mention it to @mwrock, just ask if it is using chocolatey.lib 0.10.7 yet.

@ferventcoder
Copy link
Member

@RichiCoder1 For this to work properly, we need to get #371 done.

@ferventcoder
Copy link
Member

In a way, this sort of duplicates #371. The work being done there makes chocolatey.lib work correctly.

@ferventcoder
Copy link
Member

@cSharpRookie it's a problem with Boxstarter.

@gep13
Copy link
Member

gep13 commented Sep 27, 2017

@pascalberger fairly sure that this has been addressed with the recent round of refactoring. Can you take the latest package on the MyGet feed for a spin, and report back if you still have issues?

Going to close this for now, please re-open if still a problem.

@gep13 gep13 closed this as completed Sep 27, 2017
@pascalberger
Copy link
Contributor Author

I just tried with 0351 and still get the error if I click on a source in the left pane.

@gep13 I don't seem to have permissions to reopen the issue

@gep13 gep13 reopened this Sep 28, 2017
@gep13
Copy link
Member

gep13 commented Sep 28, 2017

@pascalberger can you confirm that you first uninstalled any existing installation of ChocolateyGUI before installing the latest? There is an issue where you can actually end up with two copies of Chocolatey GUI.

@pascalberger
Copy link
Contributor Author

pascalberger commented Sep 28, 2017

@gep13 You were right. Uninstalling both versions and reinstalling fixed the issue

@gep13
Copy link
Member

gep13 commented Sep 28, 2017

Woot! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Issues where something has happened which was not expected or intended
Projects
None yet
Development

No branches or pull requests

5 participants