Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • bh 408 posts 1395 karma points
    Nov 03, 2023 @ 13:37
    bh
    0

    Clean install of 12.2 and/or 12.3 Won't Launch without Error

    I've tried multiple clean installs of 12.2 and 12.3, and every time it throws an error here in Startup.cs

    app.UseUmbraco()
        .WithMiddleware(u =>
        {
            u.UseBackOffice();
            u.UseWebsite();
        })
        .WithEndpoints(u =>
        {
            u.UseInstallerEndpoints();
            u.UseBackOfficeEndpoints();
            u.UseWebsiteEndpoints();
        });
    

    The error says:

    System.IO.DirectoryNotFoundException: 'C:\REDACTED\myappname\myappname\wwwroot\media'

    That folder is in fact missing. So I tried adding the folder manually. Then I get a boot failed error. That tells me to check the logs.

    In the logs I see this error:

    Configured database is reporting as not being available. ... unable to open database file

    UPDATE: I tried to reinstall the template dotnet new install Umbraco.Templates and tried a clean install again. Same results.

  • Huw Reddick 1737 posts 6098 karma points MVP c-trib
    Nov 03, 2023 @ 15:32
    Huw Reddick
    0

    very strange, I just installed the latest 12.3.0 templates and fired up a new 12.3 website in VS, no issues at all.

  • bh 408 posts 1395 karma points
    Nov 03, 2023 @ 15:41
    bh
    0

    @HuwReddick that's very interesting. I've tried installing from CLI and by using Visual Studio. I've tried v 12.2 and 12.3. I've tried specifying a connection string and not. There's another Our.Umbraco thread from user @John saying he's seeing similar errors as me under a slightly different scenario. Here's his post: https://our.umbraco.com/forum/using-umbraco-and-getting-started/112963-errors-in-addumbraco-and-useumbraco-after-setting-up-azure-blob-storage

  • Huw Reddick 1737 posts 6098 karma points MVP c-trib
    Nov 03, 2023 @ 16:04
    Huw Reddick
    0

    Hi bh,

    yes I saw @John post as well which is why I tried a clean install, my previous 12.3 version was upgraded.

    After initial install, does the Umbraco project build?

    Does the error as soon as you try to run it?

    DO you get the initial setup page?

  • bh 408 posts 1395 karma points
    Nov 03, 2023 @ 16:47
    bh
    0

    @HuwReddick

    Q: After initial install, does the Umbraco project build? A: Yes

    Q: Does the error as soon as you try to run it? A: Yes

    Q: DO you get the initial setup page? A: No

  • bh 408 posts 1395 karma points
    Nov 03, 2023 @ 18:53
    bh
    0

    I uninstalled Umbraco.Templates and reinstalled Umbraco.Templates to v 12.2.0, I also tried changing the version number in the Umbraco Project Config to 12.1.0 Same errors every time.

  • fb 2 posts 92 karma points
    Nov 04, 2023 @ 18:00
    fb
    100

    Hello. What if you select 'None' in the 'Development database type' select list in the 'Additional information' panel ?

  • bh 408 posts 1395 karma points
    Nov 06, 2023 @ 13:21
    bh
    0

    @fb well I'll be danged. That worked. Many thanks @fb!

Please Sign in or register to post replies

Write your reply to:

Draft