Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Paul Seal 478 posts 2608 karma points MVP 4x c-trib
    Oct 21, 2021 @ 14:33
    Paul Seal
    1

    Unable to deploy v9 site to linux web app on Azure

    Hi, we are trying to deploy our v9 umbraco 9 site to a linux web app on Azure and we are getting an error.

    Has anyone else had this error, know how to solve it? Also have you managed to successfully publish to an azure linux web app with an Umbraco 9 site.

    Here are the logs:

       _____                               
       /  _  \ __________ _________   ____  
      /  /_\  \___   /  |  \_  __ \_/ __ \ 
     /    |    \/    /|  |  /|  | \/\  ___/ 
     \____|__  /_____ \____/ |__|    \___  >
             \/      \/                  \/ 
     A P P   S E R V I C E   O N   L I N U X
    
     Documentation: http://aka.ms/webapp-linux
     Dotnet quickstart: https://aka.ms/dotnet-qs
     ASP .NETCore Version: 5.0.6
     Note: Any data outside '/home' is not persisted
     Running oryx create-script -appPath /home/site/wwwroot -output /opt/startup/startup.sh -defaultAppFilePath /defaulthome/hostingstart/hostingstart.dll     -bindPort 8080 -userStartupCommand '' 
     Cound not find build manifest file at '/home/site/wwwroot/oryx-manifest.toml'
     Could not find operation ID in manifest. Generating an operation id...
     Build Operation ID: 23c256d6-85e0-4867-85f8-6e753b4a86c2
    
     Agent extension 
     Before if loop >> DotNet Runtime Writing output script to '/opt/startup/startup.sh'
     Trying to find the startup DLL name...
     Found the startup D name: MyProject.dll
     Running the command: dotnet "MyProject.dll"
     Process terminated. Failed to load app-local ICU: libicudata.so.68.2
        at System.Environment.FailFast(System.String)
        at System.Globalization.GlobalizationMode.LoadLibrary(System.String, Boolean)
        at System.Globalization.GlobalizationMode.LoadAppLocalIcuCore(System.ReadOnlySpan`1<Char>, System.ReadOnlySpan`1<Char>)
        at System.Globalization.GlobalizationMode.LoadAppLocalIcu(System.String)
        at System.Globalization.GlobalizationMode.GetGlobalizationInvariantMode()
        at System.Globalization.GlobalizationMode..cctor()
        at System.Globalization.CultureData.CreateCultureWithInvariantData()
        at System.Globalization.CultureData.get_Invariant()
        at System.Globalization.CultureInfo..cctor()
        at System.Globalization.CultureInfo.get_CachedCulturesByName()
        at System.Globalization.CultureInfo.GetCultureInfo(System.String)
        at System.Reflection.RuntimeAssembly.GetLocale()
        at System.Reflection.RuntimeAssembly.GetName(Boolean)
        at System.Reflection.Assembly.GetName()
        at Microsoft.AspNetCore.Hosting.WebHostBuilderExtensions.UseStartup(Microsoft.AspNetCore.Hosting.IWebHostBuilder, System.Type)
        at Microsoft.AspNetCore.Hosting.WebHostBuilderExtensions.UseStartup[[System.__Canon, System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](Microsoft.AspNetCore.Hosting.IWebHostBuilder)
        at MyProject.Program+<>c.<CreateHostBuilder>b__1_1(Microsoft.AspNetCore.Hosting.IWebHostBuilder)
        at Microsoft.Extensions.Hosting.GenericHostBuilderExtensions+<>c__DisplayClass0_0.<ConfigureWebHostDefaults>b__0(Microsoft.AspNetCore.Hosting.IWebHostBuilder)
        at Microsoft.Extensions.Hosting.GenericHostWebHostBuilderExtensions.ConfigureWebHost(Microsoft.Extensions.Hosting.IHostBuilder, System.Action`1<Microsoft.AspNetCore.Hosting.IWebHostBuilder>, System.Action`1<Microsoft.Extensions.Hosting.WebHostBuilderOptions>)
        at Microsoft.Extensions.Hosting.GenericHostWebHostBuilderExtensions.ConfigureWebHost(Microsoft.Extensions.Hosting.IHostBuilder, System.Action`1<Microsoft.AspNetCore.Hosting.IWebHostBuilder>)
        at Microsoft.Extensions.Hosting.GenericHostBuilderExtensions.ConfigureWebHostDefaults(Microsoft.Extensions.Hosting.IHostBuilder, System.Action`1<Microsoft.AspNetCore.Hosting.IWebHostBuilder>)
        at MyProject.Program.CreateHostBuilder(System.String[])
        at MyProject.Program.Main(System.String[])
     /opt/startup/startup.sh: line 12:    27 Aborted                 (core dumped) dotnet "MyProject.dll"
    
  • Rody 77 posts 265 karma points
    Oct 26, 2021 @ 07:11
    Rody
    1

    We have exactly the same issue. Did you manage to get it running Paul?

  • David Walker 6 posts 77 karma points
    Oct 26, 2021 @ 08:19
    David Walker
    0

    Not specifically this issue - but was looking for documentation to simply deploy to any Linux machine. Anyone seen that in the V9 docs yet?

  • Rody 77 posts 265 karma points
    Oct 26, 2021 @ 08:29
    Rody
    101

    I finally managed to find out what the problem was. We started out with an earlier version of the Umbraco Project setup file. Which did not include the specific Condition for the ICU packages to only load on Windows environments:

    https://github.com/umbraco/Umbraco-CMS/blob/79fdb9a876a822f8662679711f5f801f3159ff42/build/templates/UmbracoProject/UmbracoProject.csproj

    So we ended up updating our csproj file for the 2 ICU dependencies with a OS condition.

    <ItemGroup Condition="'$(OS)' == 'Windows_NT'">
      <PackageReference Include="Microsoft.ICU.ICU4C.Runtime" Version="68.2.0.9" />
      <RuntimeHostConfigurationOption Include="System.Globalization.AppLocalIcu" Value="68.2" />
    </ItemGroup>
    
  • Paul Seal 478 posts 2608 karma points MVP 4x c-trib
    Oct 26, 2021 @ 08:43
    Paul Seal
    0

    Yes the ICU setting solved it for me too

  • milkman matty 26 posts 108 karma points
    Oct 29, 2021 @ 06:46
    milkman matty
    0

    I'm getting the exact same issue but the above solution did not fix it for me.

    For clarity, this is brand new umbraco 9 project. I literally added nothing custom. Steps I took:

    1. Create new project via the "Umbraco Project (Umbraco HQ)" project template.
    2. Change the csproj like above solution suggests.
    3. Publish and deploy (to Ubuntu 20.04).
    4. dotnet MyDll.dll and get above error.

    Wondering if maybe the project template is also missing other csproj stuff. I'll try replacing the entire thing with the github one, can't be any worse than it currently is lol.

Please Sign in or register to post replies

Write your reply to:

Draft