Reinstall Umbraco 13 instance
# help-with-umbraco
c
I have an Umbraco 13 instance and would now like to reinstall it (i.e. set up a new database). I have deleted the SQLite database and the “ConnectionStrings” section from all appsettings.json files. When I now run Umbraco, I only get “Boot Failed”. And in the log file: System.InvalidOperationException: The factory has not been configured with a proper connection string.\n at Umbraco.Cms.Infrastructure.Persistence.UmbracoDatabaseFactory.Initialize()\n at System.Threading.LazyInitializer.EnsureInitializedCore[T](T& target, Boolean& initialized, Object& syncLock What else do I have to do to recreate the database/reinstall the instance?
h
Try clearing your cookies for the site
c
does nothing (not even another browser). Anyway, I get the error message on the server side. I think Umbraco thinks it is still installed. Somewhere I once read that not only the ConnectionString had to be removed, but also something else. Unfortunately I can't remember what it was (and whether it was up to date).
h
Usually it is just the connection string and a cookie that needs removing
c
Hm, interesting
d
I usually have more consistent results when I enable unattended installs and upgrades. I think you should try completely removing the connectionstrings section from your config. You likely still have the provider configured, which makes umbraco think that a database has already been set up.
e
AFAIK the install directory/logic is removed after installation. If the install directory doesn’t exist anymore the instance assumes it’s configured.
k
Deleting DB and connection string section works on Umbraco cloud projects. I don't think it works on a normal installation, at least I've had issues with it before.
m
Combination of unattended install and only removing the database, should work (leave the connection string, or alter it from sqllite to a production db instance if that's a requirement).. Unattended install should then log 4 failed attempts to connect before then initialising a new empty DB.
86 Views