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

Fiddler4 failure - #89

Closed
lostInSpaceSomewhere opened this issue Jan 24, 2018 · 6 comments
Closed

Fiddler4 failure - #89

lostInSpaceSomewhere opened this issue Jan 24, 2018 · 6 comments

Comments

@lostInSpaceSomewhere
Copy link

lostInSpaceSomewhere commented Jan 24, 2018

goes through building a vm and then at the end it fails:
` virtualbox-iso: Failures
virtualbox-iso: - fiddler4 - fiddler4 not installed. The package was not found with the source(s) listed.
virtualbox-iso: If you specified a particular version and are receiving this message, it is possible that the packa
ge name exists but the version does not.
virtualbox-iso: Version: ""
virtualbox-iso: Source(s): "https://chocolatey.org/api/v2/"
==> virtualbox-iso: Deregistering and deleting VM...
==> virtualbox-iso: Deleting output directory...
Build 'virtualbox-iso' errored: Script exited with non-zero exit status: 1

==> Some builds didn't complete successfully and had errors:
--> virtualbox-iso: Script exited with non-zero exit status: 1

==> Builds finished but no artifacts were created.

packer completed with return code: 1
Packer failed. Build failed. Exiting..`

@obilodeau
Copy link
Member

tl;dr: remove fiddler4 from your ~/.config/malboxes/config.js

Long answer: Telerik asked Chocolatey to stop distributing Fiddler. See the featured comment here and a complain on their ideas website.

I will remove fiddler4 from the default chocolatey packages.

p.s.: I tried pressuring the company: https://twitter.com/obilodeau/status/956279722530562053 😉

@obilodeau
Copy link
Member

Fixed in master but you will still need to update your config for the fix to be propagated in your environment.

@lostInSpaceSomewhere
Copy link
Author

yep realized that after the fact. I was able to remove from the profile.
for installed applications (windows), i added a path to the desired app to be included (in this case fiddler) but the build script immediately failed from the malboxes.py.
I saw a piece about switching windows paths from \ to /. shoudl i implement c:\path\to\folder as c:/path/to/folder?

@obilodeau
Copy link
Member

What's the output of the failure? How exactly are you trying to include fiddler? Using tools_path or something else?

@lostInSpaceSomewhere
Copy link
Author

i placed the following line in my file:

"fiddler4_path": "C:\path\to\location\of\Fiddler",

Error:
PS > malboxes build win10_64_analyst Generating configuration files... Traceback (most recent call last): File "C:\Python36\Scripts\malboxes-script.py", line 11, in <module> load_entry_point('malboxes==0.3.1.dev0', 'console_scripts', 'malboxes')() File "c:\python36\lib\site-packages\malboxes\__init__.py", line 21, in main main() File "c:\python36\lib\site-packages\malboxes\malboxes.py", line 603, in main args.func(parser, args) File "c:\python36\lib\site-packages\malboxes\malboxes.py", line 390, in build config, packer_tmpl = prepare_config(args.template) File "c:\python36\lib\site-packages\malboxes\malboxes.py", line 193, in prepare_config config = load_config(config_file, template) File "c:\python36\lib\site-packages\malboxes\malboxes.py", line 216, in load_config config = json.loads(jsmin(config_file.read())) File "c:\python36\lib\json\__init__.py", line 354, in loads return _default_decoder.decode(s) File "c:\python36\lib\json\decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "c:\python36\lib\json\decoder.py", line 355, in raw_decode obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Invalid \escape: line 1 column 460 (char 459)

as soon as i comment out that line im good to go.

@obilodeau
Copy link
Member

Two things here:

  1. json is picky about trailing commas. If you place that line at the end of the file it won't work because of the trailing comma. That's why there is this thing here.

  2. fiddler4_path is not a valid attribute for malboxes. Even if you can get past the JSON decode error it will not do anything. If you really need to install fiddler and can't afford to do it manually afterwards then building a custom profile and that uses a powershell inline script would be the way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants