Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.0.5 version doesn't work on Linux OS #52

Open
DmytroKryvoruchenko opened this issue Dec 13, 2024 · 4 comments
Open

1.0.5 version doesn't work on Linux OS #52

DmytroKryvoruchenko opened this issue Dec 13, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@DmytroKryvoruchenko
Copy link

Which Umbraco.Community.Sustainability version are you using?

1.0.5

Which Umbraco version are you using? For example: 10.8.0 - don't just write v10

13.3.2

Bug summary

If I run Umbraco locally on Windows machine everything works fine, but when I run it on Azure (Linux container) I see that Umbraco can't start. In logs I see this issue:

2024-12-12T14:03:06.588709125Z Failed to install browsers
2024-12-12T14:03:06.588764928Z Error: EINVAL: invalid argument, mkdir '/home/site/wwwroot/\ms-playwright'
2024-12-12T14:03:06.664750747Z Unhandled exception. System.Exception: Playwright exited with code 1
2024-12-12T14:03:06.664796949Z at Umbraco.Community.Sustainability.SustainabilityComposer.Compose(IUmbracoBuilder builder)
2024-12-12T14:03:06.664803750Z at Umbraco.Cms.Core.Composing.ComposerGraph.Compose()
2024-12-12T14:03:06.664809050Z at Umbraco.Cms.Core.DependencyInjection.UmbracoBuilderExtensions.AddComposers(IUmbracoBuilder builder)

Could you fix that?

Steps to reproduce

  1. Install 1.0.5 package
  2. Try to run Umbraco on Linux

Expected result / actual result

Expected result: Umbraco runs without issues
Actual result: issue on startup

@DmytroKryvoruchenko DmytroKryvoruchenko added the bug Something isn't working label Dec 13, 2024
@rickbutterfield
Copy link
Contributor

Hey @DmytroKryvoruchenko! I've just started pushing v1.0.6 which has a hotfix in for this, should resolve your issue!

@DmytroKryvoruchenko
Copy link
Author

Thank you @rickbutterfield, I will try it and let you know how it works.

@DmytroKryvoruchenko
Copy link
Author

@rickbutterfield yes, now we can run it Azure web app on Linux, but some playwright dependencies are missing.

When I run sustainability in Umbraco I see following error:
{
"ExceptionMessage": "
╔══════════════════════════════════════════════════════╗
║ Host system is missing dependencies to run browsers. ║
║ Please install them with the following command: ║
║ ║
║ pwsh bin/Debug/netX/playwright.ps1 install-deps ║
║ ║
║ Alternatively, use apt: ║
║ apt-get install libatk1.0-0\ ║
║ libatk-bridge2.0-0\ ║
║ libcups2\ ║
║ libdrm2\ ║
║ libatspi2.0-0\ ║
║ libxcomposite1\ ║
║ libxdamage1\ ║
║ libxfixes3\ ║
║ libxrandr2\ ║
║ libgbm1\ ║
║ libxkbcommon0\ ║
║ libasound2 ║
║ ║
║ <3 Playwright Team ║
╚══════════════════════════════════════════════════════╝",
"ExceptionType": null,
"StackTrace": null
}

Can you help me fix that?

@DmytroKryvoruchenko
Copy link
Author

DmytroKryvoruchenko commented Jan 3, 2025

UPD: I see that: Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) returns empty string.
ms-playwright is created in root folder and browsers are installed on Azure web app on linux.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants