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

Doesn't start to serve project #18107

Open
sjustesen opened this issue Jan 24, 2025 · 6 comments
Open

Doesn't start to serve project #18107

sjustesen opened this issue Jan 24, 2025 · 6 comments
Labels

Comments

@sjustesen
Copy link

sjustesen commented Jan 24, 2025

Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)

15.2-rc (Linux) x86-64

Bug summary

I'm having trouble running Umbraco 15.x on Linux

After issuing "dotnet build" - the build runs and succeeds with no error.
Moving on to run the "dotnet run", dotnet runs the package restore process again and completes it. Afterwards it just stalls with a blinking cursor and no output - at the point where it would normally start serving the project.

Issuing dotnet run -v diag doesn't show any errors.

I've seen this behaviour before when moving projects from x86-64 to ARM64,
however this is the first time I've seen it on going from v14->v15.2-rc on x86-64.

(also tried a full restore by deleting obj and bin folders)

Specifics

No response

Steps to reproduce

Build configuration: Ubuntu 24.10, Umbraco 15.2-rc, .NET SDK 9.0.102

Command line:
$ dotnet run -v diag -r linux-x64
$ dotnet clean
$ dotnet run (also runs the build step).

Expected result / actual result

Kestrel starts serving files

Copy link

Hi there @sjustesen!

Firstly, a big thank you for raising this issue. Every piece of feedback we receive helps us to make Umbraco better.

We really appreciate your patience while we wait for our team to have a look at this but we wanted to let you know that we see this and share with you the plan for what comes next.

  • We'll assess whether this issue relates to something that has already been fixed in a later version of the release that it has been raised for.
  • If it's a bug, is it related to a release that we are actively supporting or is it related to a release that's in the end-of-life or security-only phase?
  • We'll replicate the issue to ensure that the problem is as described.
  • We'll decide whether the behavior is an issue or if the behavior is intended.

We wish we could work with everyone directly and assess your issue immediately but we're in the fortunate position of having lots of contributions to work with and only a few humans who are able to do it. We are making progress though and in the meantime, we will keep you in the loop and let you know when we have any questions.

Thanks, from your friendly Umbraco GitHub bot 🤖 🙂

@nul800sebastiaan
Copy link
Member

Does curl https://localhost:5000 give you a result? I feel like you've taken a dotnet published version of Umbraco and are trying to run it? Although that wouldn't directly work, you'd need to dotnet MyProject.dll (replacing MyProject with your actual csproj name).

On my test VM it runs great:

Image

Commands before this:

Install dotnet

sudo apt-get update && sudo apt-get install -y dotnet-sdk-9.0

Install Umbraco (used PSW to create the install script)

dotnet new install Umbraco.Templates::15.0.0-rc2 --force && dotnet new umbraco --force -n "MyProject" --friendly-name "Test" --email "[email protected]" --password "test123456" --development-database-type SQLite && dotnet run --project "MyProject"

@nul800sebastiaan
Copy link
Member

Do note this is rc2 I'm running, I did fix a problem which I think wasn't fixed in the original RC: #17903

@sjustesen
Copy link
Author

Hi Sebastiaan,
Thank you for looking into this :D

If I create a totally new project on v15-rc1 it works just fine.

The project I upgraded from v14 continues to stall on boot. I merged the settings from the old csproj. Originally when I updated and set Umbraco.CMS to 15.1 - it did complain about the issue #17903, which you are refering to. When I updated to rc1, the error went away but the bootup keeps stalling.

Doing a curl https://localhost:5000 yields no result
I always do the dotnet run <projectname>.csproj as dotnet will complain about having multiple solution files in that directory, it has done so since Umbraco 9.x although there is only one .csproj LOL

Will try the rc2 :) The annoying part is that there's no error output at all, so it's hard to debug.

@nul800sebastiaan
Copy link
Member

Don't really have much to help debug I'm afraid! I am assuming something goes wrong with the upgrade maybe? The fact that you did see the error from #17903 doesn't surprise me, the error comes from very early on in the process. So I am assuming with the RC you get further into the process and then something .. dies.

I tried some other commands but it looks the same to me, I tried dotnet run -- --output detailed and dotnet run --logger "console;verbosity=detailed" but I don't see extra output:

Image

Do you have unattended upgrades enabled? Maybe you can turn them off and see if the upgrade installer gives you a more meaningful error.

@nul800sebastiaan
Copy link
Member

it has done so since Umbraco 9.x although there is only one .csproj LOL

Weird one too by the way, I don't get this. But you might have a .sln and a .csproj in the same directory, that would probably lead to this warning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants