[BUG] Bash command depoly Error on: "🏗️ Building Mona web app for deployment to..."
LuizOVianna opened this issue · 5 comments
Describe the bug
Trying to deploy mona using de Bash Command ./basic-deploy.sh
To Reproduce
Steps to reproduce the behavior:
-
Open Cloud Shell on Azure Portal
-
Run this sequence of commands
git clone https://github.com/microsoft/mona-saas
cd ./mona-saas/Mona.SaaS/Mona.SaaS.Setup
chmod +x ./basic-deploy.sh -
Run this command:
./basic-deploy.sh -r "eastus" -n "ycareqamona" -d "Azure Marketplace Saas Application Connection - YCare (QA)" -g "ycareqamona" -s "032e2561-xxxx-yyyy-8aef-dde43deec485" -
Got this error:
....
....
Building Mona web app for deployment to [mona-web-ycaremonaqa]...
System.IO.IOException: Structure needs cleaning : '/home/luiz/.dotnet'
at System.IO.FileSystem.CreateDirectory(String fullPath)
at System.IO.Directory.CreateDirectory(String path)
at Microsoft.Extensions.EnvironmentAbstractions.DirectoryWrapper.CreateDirectory(String path)
at Microsoft.DotNet.Configurer.FileSystemExtensions.<>c__DisplayClass0_0.b__0()
at Microsoft.DotNet.Cli.Utils.FileAccessRetrier.RetryOnIOException(Action action)
at Microsoft.DotNet.Configurer.FileSystemExtensions.CreateIfNotExists(IFileSystem fileSystem, String filePath)
at Microsoft.DotNet.Configurer.FileSentinel.Create()
at Microsoft.DotNet.Configurer.DotnetFirstTimeUseConfigurer.Configure()
at Microsoft.DotNet.Cli.Program.ConfigureDotNetForFirstTimeUse(IFirstTimeUseNoticeSentinel firstTimeUseNoticeSentinel, IAspNetCertificateSentinel aspNetCertificateSentinel, IFileSentinel toolPathSentinel, Boolean isDotnetBeingInvokedFromNativeInstaller, DotnetFirstRunConfiguration dotnetFirstRunConfiguration, IEnvironmentProvider environmentProvider, Dictionary`2 performanceMeasurements)
at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, TimeSpan startupTime, ITelemetry telemetryClient)
at Microsoft.DotNet.Cli.Program.Main(String[] args)
./basic-deploy.sh: line 503: cd: ./topublish: No such file or directory
Expected behavior
The deployment should be completed with no errors.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: Win10
- Browser: chrome
- Version 111.0.5563.111
Additional context
This is a brand new subscription (Microsoft Sponsorship).
I keep doing tests on it. Tried to deploy like this about 5 or 6 with the same error result.
Now I tried with another user that has no special characters on its name and the deploy completed as expected.
Could be just a coincidence, but maybe it is what You should investigate. My user name is "Luiz Otávio" and on that screenshot it shows "Luiz Ot\u00e1vio"....
Found another difference between the two users. I have a "Workplace company AD Account" and a "Microsoft Account" with the same alias.
Now, besides I´m logged wit my company account, when I try to log into the Mona app just deployed it gives me this message:
"Mona cannot be accessed using a guest or personal account. Please sign out and use a Workplace or School account."
Maybe another hint....
Hi @LuizOVianna, Thanks for bringing this to our attention. We unfortunately are not able to repro this at this time. The error message is quite unclear, and looking at the error exception it says "System.IO.IOException: Structure needs cleaning". This error might indicate to us that there is something wrong with the cloudshell environment. Could you try restarting your cloudshell and let us know if you are still experiencing the issue?
I tryied a couple of times, and the only solution was to use another user to accomplish that.
In a couple of weeks should create another mona environment, I will try that and come back here.
Hi, @LuizOVianna. We have tried to reproduce this issue a few times with no luck. If you see the issue again, please reach out and let us know. Thank you for helping to improve Mona.