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

Metricbeats 5.4.0 import_dashboards Error importing URL/file: Failed to unzip the archive #4244

Closed
naeem-ahmed opened this issue May 7, 2017 · 2 comments · Fixed by #4246

Comments

@naeem-ahmed
Copy link

Hi. Getting this error when trying to import dashboards on MacBook Darwin Kernel Version 16.5.0

Create temporary directory /var/folders/6b/nmt5qwls3h98jzk3629gbt540000gn/T/tmp755021367
Downloading https://artifacts.elastic.co/downloads/beats/beats-dashboards/beats-dashboards-5.4.0.zip
Unzip archive /var/folders/6b/nmt5qwls3h98jzk3629gbt540000gn/T/tmp755021367
Error importing URL/file: Failed to unzip the archive: /var/folders/6b/nmt5qwls3h98jzk3629gbt540000gn/T/tmp755021367/beats-dashboards-5.4.0.zip
Exiting

Thanks

@tsg
Copy link
Contributor

tsg commented May 8, 2017

@naeem-ahmed Thanks for the report, this is indeed a bug. You can work around it by setting ulimit -n 2048 before running the import_dashboard program.

tsg pushed a commit to tsg/beats that referenced this issue May 8, 2017
The unzip routine was deferring close functions in a loop, so it kept
each file open. This adds a closure so the files are closed immediately.

Fixes elastic#4244.

This also improves the error handling to always report the original error.
ruflin pushed a commit that referenced this issue May 8, 2017
The unzip routine was deferring close functions in a loop, so it kept
each file open. This adds a closure so the files are closed immediately.

Fixes #4244.

This also improves the error handling to always report the original error.
tsg added a commit to tsg/beats that referenced this issue May 8, 2017
The unzip routine was deferring close functions in a loop, so it kept
each file open. This adds a closure so the files are closed immediately.

Fixes elastic#4244.

This also improves the error handling to always report the original error.
(cherry picked from commit 8c5949f)
ruflin pushed a commit that referenced this issue May 8, 2017
The unzip routine was deferring close functions in a loop, so it kept
each file open. This adds a closure so the files are closed immediately.

Fixes #4244.

This also improves the error handling to always report the original error.
(cherry picked from commit 8c5949f)
@naeem-ahmed
Copy link
Author

That works, thanks.

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

Successfully merging a pull request may close this issue.

2 participants