umbraco login is showing instead of setup installa...
# help-with-umbraco
b
Hi , i need help. I cloned my work project from azure dev/ops. when i ran the project it takes me to login(usync window smth like that) instead of SETUP installation wizaard , i configured a blank db which i created in my ssms, idk wht its asking me to log in , someone help i configured connectionstring in my appsetting.json
o
Hi @Bishal Tim, Do you have appsettings transforms? If so, I would check if there is a connection string in the
appsettings.Development.json
file. Unlike in .NET Framework, where the
web.config
transforms where based on the build configuration, the .NET Core
appsettings.json
transforms are based on the
ASPNETCORE_ENVIRONMENT
environment variable. The value Visual Studio uses can be set in your project's
\Properties\launchSettings.json
file, although personally, I would highly recommend using Visual Studio's User Secrets to manage your local connection strings. If that isn't the case, then I would check to see if Unattended Install has been setup in your appsettings.json. (this is a feature which automatically installs Umbraco to the configured db and adds the configured admin account)
b
Hi @Owain Jones first, i created a new database in the ssms, i didnt implement any security ,(no login and pass) just a database, then i configured in the appsettings.json. then i ran the project and its asking for login and pass instead of asking me for installation. i have connection string in my appsettings.json: ohh the blankdb which i created earlier now is filled with tables, what do i do? how do i stop the unattended install? thanks a lot..
o
@Bishal Tim Unattended install is setup in the appsettings.json under
Umbraco:CMS:Unattended
. Here's the documentation for it: https://docs.umbraco.com/umbraco-cms/reference/configuration/unattendedsettings If it's there in your app settings, then you can remove it or comment it out to stop it from happening 🙂
b
this is my appsettings.json , there is no unattended install setup , but still my newly create blank db is filled automatically without me having to install in the browser , its straight taking me to login: { "$schema": "appsettings-schema.json", "Serilog": { "MinimumLevel": { "Default": "Information", "Override": { "Microsoft": "Warning", "Microsoft.Hosting.Lifetime": "Information", "System": "Warning" } } }, "Umbraco": { "CMS": { "Global": { "Id": "9120ea99-b1e1-4163-b00e-0beceaffd0c2", "SanitizeTinyMce": true }, "Content": { "AllowEditInvariantFromNonDefault": true, "ContentVersionCleanupPolicy": { "EnableCleanup": true } }, "ModelsBuilder": { "ModelsMode": "SourceCodeAuto", "ModelsNamespace": "MagazineV2.ContentModels", "ModelsDirectory": "~/ContentModels", "FlagOutOfDateModels": true } } }, "ConnectionStrings": { "umbracoDbDSN": "Server=BISHALTIM\\SQLEXPRESS;Database=greencool;Integrated Security=True;", "umbracoDbDSN_ProviderName": "System.Data.SqlClient" } }
but i dont know the login email and pass when i go to ssms and open umbracouser its empty null
o
Yea that's really strange, I've just done a clean install of v12.1.2, ran it against an empty database, and it took me to the install screen and didn't create any tables in the db. (see screenshot) What version of Umbraco are you running? Also, did you check to see if you have a
appsettings.Development.json
file? As any settings in there will likely be used when running with Visual Studio (the default
launchSettings.json
file sets
ASPNETCORE_ENVIRONMENT
to Development)
b
i asked for a db from my colleague and configured, i could'nt do anything , Thanks for the help man 🙂