- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我尝试压缩控制台应用程序并将其作为 WebJob 上传到 Azure,就像我对其他应用程序所做的那样,但上传失败。没有给出任何解释。
然后我尝试将其上传到那里。我把它放进去
/site/wwwroot/App_Data/jobs/triggered/FeedbackNotifications
其中“FeedbackNotifications”是我的 WebJob 的名称。我从 this site 采取了路径.
上传完成,我可以看到 Azure 门户中列出的 WebJob。但是,当我单击“运行一次”时,它失败了。日志文件包含以下内容:
[05/20/2015 15:26:22 > e5f596: SYS INFO] Status changed to Initializing
[05/20/2015 15:26:23 > e5f596: SYS INFO] Status changed to Failed
[05/20/2015 15:26:23 > e5f596: SYS ERR ] Failed to copy job files: System.IO.IOException: There is not enough space on the disk.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost) at System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite) at System.IO.Abstractions.FileWrapper.Copy(String sourceFileName, String destFileName, Boolean overwrite) at Kudu.Core.Infrastructure.FileSystemHelpers.CopyDirectoryRecursive(String sourceDirPath, String destinationDirPath, Boolean overwrite) at Kudu.Core.Jobs.BaseJobRunner.b__0() at Kudu.Core.Infrastructure.OperationManager.<>c__DisplayClass1.b__0() at Kudu.Core.Infrastructure.OperationManager.Attempt[T](Func`1 action, Int32 retries, Int32 delayBeforeRetry, Func`2 shouldRetry) at Kudu.Core.Infrastructure.OperationManager.Attempt(Action action, Int32 retries, Int32 delayBeforeRetry) at Kudu.Core.Jobs.BaseJobRunner.CacheJobBinaries(JobBase job, IJobLogger logger) [05/20/2015 15:26:23 > e5f596: SYS INFO] Status changed to Failed [05/20/2015 15:26:23 > e5f596: SYS ERR ] WebJob run failed due to: System.InvalidOperationException: Missing working directory at Kudu.Core.Jobs.BaseJobRunner.InitializeJobInstance(JobBase job, IJobLogger logger) at Kudu.Core.Jobs.TriggeredJobRunner.<>c__DisplayClass2.b__0(Object _)
包含所有内容的目录总大小为 115MB。
我还读过this page这表明长文件名可能是导致错误的原因,但我没有超过 69 个字符的文件名。
更新:我注意到,当我尝试以前有效的其他 WebJob 时,它会引发相同的错误。
最佳答案
首次调用 WebJob 时(或更新其二进制文件时),它首先被复制到 %TEMP%
目录并从那里运行。
免费 (sku) azure 网站的 Temp 目录(实际上位于 d:\local
)中的磁盘空间有限,为 500MB。看来您已达到目标,因此 WebJob 无法启动。
要验证您是否可以转到 scm 站点的调试控制台 (https://{sitename}.scm.azurewebsites.net/DebugConsole) 并查询 d:\local
上的可用空间( pushd d:\local
或单击地球按钮)。
关于Azure Web 作业 : There is not enough space on the disk,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30354377/
我是一名优秀的程序员,十分优秀!