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

Issue running under IIS - Umbraco 13 / Net 8.0 #7

Open
binraider opened this issue Apr 9, 2024 · 2 comments
Open

Issue running under IIS - Umbraco 13 / Net 8.0 #7

binraider opened this issue Apr 9, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@binraider
Copy link

Which Umbraco.Community.Sustainability version are you using?

1.0.0-alpha.2

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

13.2.0

Bug summary

When running in Debug mode there is no problem, but once i deployed to a local folder on windows 10 (22H2) in IIS (which i do with all my .Net core websites) the website refuses run.

The error message is like so:

Application '/LM/W3SVC/100/ROOT' with physical root 'C:\ClientData\Clients\Umbraco-Testers\Umbraco13A6\Published\' hit unexpected managed exception, exception code = '0xe0434352'. First 30KB characters of captured stdout and stderr logs:
Failed to install browsers
Error: EPERM: operation not permitted, mkdir 'C:\WINDOWS\system32\config\systemprofile\AppData\Local\ms-playwright'
Unhandled exception. System.Exception: Playwright exited with code 1
   at Umbraco.Community.Sustainability.SustainabilityComposer.Compose(IUmbracoBuilder builder)
   at Umbraco.Cms.Core.Composing.ComposerGraph.Compose()
   at Umbraco.Cms.Core.DependencyInjection.UmbracoBuilderExtensions.AddComposers(IUmbracoBuilder builder)
   at Program.<Main>$(String[] args) in C:\ClientData\Clients\Umbraco-Testers\Umbraco13A6\Umbraco13A6\Program.cs:line 3
   at Program.<Main>(String[] args)

I created the reportedly errant folder, C:\Windows\System32\config\systemprofile\AppData\Local\ms-playwright but it still complained.

Steps to reproduce

Install fresh copy of Umbraco 13.2
Install the Umbraco.Community.Sustainability package
Publish to a folder which is set up in IIS to be a website
Navigate to said site

Expected result / actual result

The expected result is that the site should start.

image

@binraider binraider added the bug Something isn't working label Apr 9, 2024
@rickbutterfield
Copy link
Contributor

Hey @binraider! v1.0.2 has just been released with a fix for this particular issue, please can you give it a try and report back?

@JohanReitsma83
Copy link

This issue still remains with the following packages:

Error: EPERM: operation not permitted, lstat 'd:'
at Object.realpathSync (node:fs:2668:25)
at toRealPath (node:internal/modules/helpers:55:13)
at Module._findPath (node:internal/modules/cjs/loader:697:22)
at resolveMainPath (node:internal/modules/run_main:26:23)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:24)
at node:internal/main/run_main_module:28:49 {
errno: -4048,
code: 'EPERM',
syscall: 'lstat',
path: 'd:\'
}

Node.js v20.11.0
Unhandled exception. System.Exception: Playwright exited with code 1
at Umbraco.Community.Sustainability.SustainabilityComposer.Compose(IUmbracoBuilder builder)
at Umbraco.Cms.Core.Composing.ComposerGraph.Compose()
at Umbraco.Cms.Core.DependencyInjection.UmbracoBuilderExtensions.AddComposers(IUmbracoBuilder builder)
at Program.

$(String[] args) in D:\DevOps\agent_work\4390\s\Demo.Website\Program.cs:line 19
at Program.(String[] args)

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

3 participants