Copied to clipboard

Flag this post as spam?

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


  • duanleou90 14 posts 65 karma points
    Jan 14, 2023 @ 11:50
    duanleou90
    0

    Umbraco 11 Not Worked On Azure App Service For Linux

    Hi Everyone,

    As I understand, Umbraco 11 is basically a .NET 7 application. It means it is able to run on Linux.

    So I decided to deploy Umbraco 11 to Azure App Service For Linux.

    But it not worked. I got an error message like below from log stream

    2023-01-14T11:14:45.024580830Z Unhandled exception. System.TypeInitializationException: The type initializer for 'System.Runtime.Caching.MemoryMonitor' threw an exception.

    2023-01-14T11:14:45.024636530Z ---> System.DllNotFoundException: Unable to load shared library 'kernel32.dll' or one of its dependencies.

    I also got the same issue with Umbraco 10.3.2.

    Anyone here know if Umbraco 11 or Umbraco 10 can work on Azure App Service For Linux ?

  • Conor Howe 36 posts 137 karma points
    Jan 21, 2023 @ 22:56
    Conor Howe
    100

    When you are building / publishing your app are you targeting Linux?

    For example: dotnet build --runtime linux-x64

  • duanleou90 14 posts 65 karma points
    Jan 30, 2023 @ 11:02
    duanleou90
    0

    Thanks Conor,

    Yes that is the root cause.

    To make the umbraco 10 or 11 run on Linux, we need to set --runtime linux-x64 when we publish the project

  • Conor Howe 36 posts 137 karma points
    Jan 30, 2023 @ 11:28
    Conor Howe
    0

    Brilliant! Glad it's working for you now 😀

  • Alex Lindgren 159 posts 356 karma points
    Jul 06, 2023 @ 19:22
    Alex Lindgren
    0

    It's been a few years and versions since I've used Umbraco. I'm curious why the documentation -- particularly https://docs.umbraco.com/umbraco-cms/v/11.latest/fundamentals/setup/requirements -- does not suggest Linux except for local development.

  • Marshall Penn 79 posts 260 karma points
    Feb 06, 2024 @ 09:14
    Marshall Penn
    0

    We have been running Umbraco 10 on Linux AWS fargate containers for a year or so and it works fine. Just starting to upgrade some Azure Umbraco projects (to 13) and putting them on Linux web apps using the Ubuntu 22.04 build pipeline. We are running our Dev version of the new sites on a B1, which I think is the lowest spec you can get in Linux web apps, and while not super snappy they are more than adequate for our work load.

Please Sign in or register to post replies

Write your reply to:

Draft