question

DanieleSomma-4777 avatar image
0 Votes"
DanieleSomma-4777 asked ryanchill rolled back

Deploy by Composer fail for missing space

Hi,
my BoT project was built using Bot Framework Composer, also used to deploy it.
In the last days, when I try to deploy updates to my bot, the process fails with this exception message: "There is not enough space on the disk."
The full error is this:

 500 - "{\"Message\":\"An error has occurred.\",\"ExceptionMessage\":\"There is not enough space on the disk.\\r\\n\",\"ExceptionType\":\"System.IO.IOException\",\"StackTrace\":\" at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)\\r\\n at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)\\r\\n at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)\\r\\n at System.IO.Abstractions.FileWrapper.Create(String path)\\r\\n at Kudu.Core.Infrastructure.FileSystemHelpers.CreateFile(String path) in C:\\\\Kudu Files\\\\Private\\\\src\\\\master\\\\Kudu.Core\\\\Infrastructure\\\\FileSystemHelpers.cs:line 27\\r\\n at Kudu.Services.ByteRanges.HttpRequestMessageExtensions.<CopyToAsync>d__1.MoveNext() in C:\\\\Kudu Files\\\\Private\\\\src\\\\master\\\\Kudu.Services\\\\ByteRanges\\\\HttpRequestMessageExtensions.cs:line 50\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\\r\\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)\\r\\n at Kudu.Services.Deployment.PushDeploymentController.<PushDeployAsync>d__15.MoveNext() in C:\\\\Kudu Files\\\\Private\\\\src\\\\master\\\\Kudu.Services\\\\Deployment\\\\PushDeploymentController.cs:line 423\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\\r\\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n at Kudu.Services.Deployment.PushDeploymentController.<ZipPushDeploy>d__9.MoveNext() in C:\\\\Kudu Files\\\\Private\\\\src\\\\master\\\\Kudu.Services\\\\Deployment\\\\PushDeploymentController.cs:line 98\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\\r\\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n at System.Threading.Tasks.TaskHelpersExtensions.<CastToObject>d__3`1.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\\r\\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\\r\\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\\r\\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\\r\\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\\r\\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\\r\\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\\r\\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\\r\\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()\"}"

My last changes consist only into updated my BoT project, after I update the Bot Framework Composer, passing to version 1.2.0.

Looking the app services, seems there are no problems with the space, also because my project occupy very few space in this moment.
Wich could be the issue?

Thanks in advanced for any help

azure-webappsazure-bot-serviceazure-webapps-development
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@DanieleSomma-4777 The error message seems to be from the app service/plan with insufficient space. Does a restart on the app service from Azure portal help to re-deploy the project?

0 Votes 0 ·

@romungi-MSFT thanks for your reply. I have done the following steps:
1. restart the App Service
2. redeploy the app => works
3. redeploy again the app => fails
4. changed the service plan from free to the next level
5. redeploy the app => works
6. redeploy the app => fails

I checked inside "Quota", press link "File system usage" and checked the value, I have 1% occupied.
I don't understand which is the real problem and if there is a way to clean the "under the hood" of the AppService.

Thanks in advance for any help.

0 Votes 0 ·

1 Answer

ryanchill avatar image
0 Votes"
ryanchill answered ryanchill rolled back

Hi @DanieleSomma-4777 Did you by chance use the following guide https://docs.microsoft.com/en-us/composer/how-to-publish-bot to publish your bot? Although you've checked your Quota and File system usage, check the usage on your app service directly by opening a console/ssh and running ls -la against D:\home\data\sitepackages as well as traversing D:\local directory. Compare this to what your System Info is reporting for your Kudu environment.

It could be that one of the dependencies your bot is using consuming a fair amount of space as it gets deployed. If there aren't any dependencies that can be optimized, you may try moving up to S1, you indicated you moved from Free to next level which would be Basic, to increase the amount of space available to D:\local.

Regards,
Ryan

· 5
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi, @ryanchill thanks for your reply.
Yes, I used that guide the first time when I created the project and resources. I published for months using the Composer.
This are the results of the execution of your suggested command:
44232-azure01.jpg

44241-azure02.jpg


My Bot at the moment is very simple, few dialogs, one connection with a QnA and LUIS, nothing else. I haven't dependencies.

About the size, to test, I switched from F1 to D1 and switch back. I had and I have the issue with both.
Any suggestion?

Regards
Daniele

0 Votes 0 ·
azure01.jpg (20.5 KiB)
azure02.jpg (57.2 KiB)

Hi @DanieleSomma-4777, what results do you get for ls -la under D:\home\data\sitepackages directory? Furthermore, do you still get the same result if you scale up to an S1 (standard) plan?

Regards,
Ryan

0 Votes 0 ·

Hi @ryanchill , I haven't the folder sitepackages, as you can see in the first image of the previous post. Under data folder I have only three folders:
1. aspnet
2. kudusync
3. monaco

I tried switching to B1 plan with 10Gb of storage. After the switch, I have done five deploys with success and now the application deployed is updated, with the last changes done. A secondary defect with the primary problem is the application is not up to date, also when the deployment finishes with success. Looking at quotas for file system storage after the upgrade, I have this situation:
44286-azure03.jpg

I can't maintain B1 plan and I switched back to F1. After the switch, I have done one deploy with success, the second fails with the same issue. Looking at quotas for file system storage after the downgrade, I have this situation:
44305-azure04.jpg



Any ideas?

Regards
Daniele

0 Votes 0 ·
azure03.jpg (74.4 KiB)
azure04.jpg (77.2 KiB)
Show more comments