简体   繁体   English

EMFILE:打开的文件太多

[英]EMFILE: Too many files open

I'm trying to set up an api on azure's web app service using bottle + anaconda packages.我正在尝试使用 Bottle + anaconda 包在 azure 的 Web 应用程序服务上设置 api。

I can't simply use a copy of the site-packages folder because numpy is involved.我不能简单地使用 site-packages 文件夹的副本,因为涉及 numpy。 Instead, in addition to the site-packages folder I must also give numpy access to the mkl binaries.相反,除了 site-packages 文件夹之外,我还必须授予对 mkl 二进制文件的 numpy 访问权限。 So I copy the Anaconda\\envs\\{ENV_NAME}\\Library\\bin folder into the app and add it to %PATH%.因此,我将Anaconda\\envs\\{ENV_NAME}\\Library\\bin文件夹复制到应用程序中并将其添加到 %PATH%。 That folder has less than 200 files in it, so I'm surprised seeing the following error during the deployment:该文件夹中的文件少于 200 个,所以我很惊讶在部署过程中看到以下错误:

 2020-10-29T04:34:21.3218237Z ##[error]Error: EMFILE: too many open files, open 'D:\a\_temp\temp_web_package_058969368946595324\site-packages\statsmodels\tsa\arima\datasets\__init__.py'

Everything builds and runs as long as I don't include the bin folder to %PATH%只要我不将 bin 文件夹包含在 %PATH% 中,一切都会构建和运行

No, I'm not close to my file size limit on the azure web app service.不,我没有接近 azure Web 应用服务的文件大小限制。 Has anyone run into this before?有没有人遇到过这个?

This error happens because of the XDT Transform.发生此错误的原因是 XDT 转换。

During an XDT Transform, all contents of the original package are transformed and then zipped up.在 XDT 转换期间,原始包的所有内容都会被转换,然后被压缩。 This error is thrown if the deployment is significantly large.如果部署非常大,则会引发此错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM