Open Jogai opened 11 months ago
Hi there @Jogai!
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 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 :robot: :slightly_smiling_face:
Hey! Thanks for posting this issue. I tried reproducing it, but I was unable to get any errors. I used your exact command on Windows, Mac, and Linux 🙁. Can you provide additional information to help me reproduce the issue? 😄
Thanks for coming back. I tried successfully on windows, so at least I have a route to continue. I'll try to come back if I can uncover some more info. Currently I'm thinking maybe the distro has some differences that cause this, so maybe I'll compare with some other's.
I have this exact issue on linux mint 21. On windows it runs without problems.
I have the same issue on IIS 10 & dotnet 7.0.14 with Umbraco 12.3.3 but the exact same code works 12.2.0. I am using a local SQL Server Express DB.
Just FYI: you don't need to provide the connection string and everything, the following command will set that all up for you:
dotnet new -i Umbraco.Templates::12.2.0 --force && dotnet new umbraco --force -n "MyProject" --friendly-name "Test" --email "test@test.com" --password "test123456" --development-database-type SQLite && dotnet run --project "MyProject"
This forces v12.2.0 but there's newer versions available, I enjoy using this site to generate install commands: https://psw.codeshare.co.uk/?TemplateName=Umbraco.Templates&TemplateVersion=12.2.0&Packages=&UserEmail=test%40test.com&ProjectName=MyProject&CreateSolutionFile=false&SolutionName=MySolution&UseUnattendedInstall=true&DatabaseType=SQLite&UserPassword=test123456&UserFriendlyName=Test&IncludeStarterKit=false&StarterKitPackage=Umbraco.BlockGrid.Example.Website&OnelinerOutput=true
The above is the link for the command earlier but you can tweak everything in the Options (and other) tabs.
I have now tried with two fresh linux mint installations. I cannot get version 12.3.3 to run, did not try version 12.2.0. Also installed mssql. No go.
Steps to reproduce:
install latest stable Linux Mint -> install vscode -> install dotnet 7 -> c# devkit extention -> dotnet new (umb template)
This has been noticed back in September as well it seems: https://our.umbraco.com/forum/using-umbraco-and-getting-started/112612-umbraco-on-linux-is-not-running This is especially surprising since Mint is an Ubuntu flavor and it runs totally file on Ubuntu.
I can reproduce by the way,
7.0
instead of 8.0
dotnet new -i Umbraco.Templates::12.2.0 --force && dotnet new umbraco --force -n "MyProject" --friendly-name "Test" --email "test@test.com" --password "test123456" --development-database-type SQLite && dotnet run --project "MyProject"
(also tried with Umbraco 12.3.4)Happy to report that Umbraco 13.0.1 is running without problems.
@frytzl
Happy to report that Umbraco 13.0.1 is running without problems.
With dotnet 7?
I'm gettin
The current .NET SDK does not support targeting .NET 8.0. Either target .NET 7.0 or lower, or use a version of the .NET SDK that supports .NET 8.0.
with that
@bigfatbird with dotnet 8. Umbraco versions from 13 up require .NET 8
Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)
12.2.0
Bug summary
Following the setup described on this page: https://docs.umbraco.com/umbraco-cms/fundamentals/setup/install/unattended-install#cli the command I gave was
dotnet new umbraco -n Project.Web --friendly-name "jogai" --email j@g.ai --password ********** --connection-string "Data Source=|DataDirectory|/Umbraco.sqlite.db;Cache=Shared;Foreign Keys=True;Pooling=True" --connection-string-provider-name "Microsoft.Data.Sqlite" --version 12.2.0
Then, I tried to start it in Rider (on linux) but it gave me:
Specifics
I did go into the debugger at and confirmed the parameter is indeed null, because there is nog sqlinstance here: https://github.com/umbraco/Umbraco-CMS/blob/173d8dcf47fcd18584b80190db14144a363cbdd5/src/Umbraco.Cms.Persistence.SqlServer/UmbracoBuilderExtensions.cs#L48
Steps to reproduce
Execute
dotnet new umbraco -n Project.Web --friendly-name "jogai" --email j@g.ai --password ********** --connection-string "Data Source=|DataDirectory|/Umbraco.sqlite.db;Cache=Shared;Foreign Keys=True;Pooling=True" --connection-string-provider-name "Microsoft.Data.Sqlite" --version 12.2.0
On this environment:
Expected result / actual result
Desired result: no error, show something in the browser
Actual: Exception thrown.