Copied to clipboard

Flag this post as spam?

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


  • Cyrus Hiatt 9 posts 72 karma points
    Aug 11, 2023 @ 12:40
    Cyrus Hiatt
    0

    Boot failed: Umbraco cannot run. See Umbraco's log file for more details.

    I haven't made any changes in Umbraco but am getting the following message when I try to run my local environment. Any ideas on how I can resolve this?

    [BootFailedException: Boot failed: Umbraco cannot run. See Umbraco's log file for more details.
    
    -> Umbraco.Core.Exceptions.BootFailedException: Could not check the upgrade state.
       at Umbraco.Core.RuntimeState.GetUmbracoDatabaseState(IUmbracoDatabaseFactory databaseFactory)
       at Umbraco.Core.RuntimeState.DetermineRuntimeLevel(IUmbracoDatabaseFactory databaseFactory)
       at Umbraco.Core.Runtime.CoreRuntime.DetermineRuntimeLevel(IUmbracoDatabaseFactory databaseFactory, IProfilingLogger profilingLogger)
       at Umbraco.Core.Runtime.CoreRuntime.Boot(IRegister register, DisposableTimer timer)
    
    -> System.Data.SqlServerCe.SqlCeException: The database file is larger than the configured maximum database size. This setting takes effect on the first concurrent database connection only. [ Required Max Database Size (in MB; 0 if unknown) = 257 ]
       at System.Data.SqlServerCe.SqlCeDataReader.ProcessResults(Int32 hr)
       at System.Data.SqlServerCe.SqlCeDataReader.IsEndOfRowset(Int32 hr)
       at System.Data.SqlServerCe.SqlCeDataReader.Move(DIRECTION direction)
       at System.Data.SqlServerCe.SqlCeDataReader.Read()
       at NPoco.Database.<Read>d__156`1.MoveNext()
       at NPoco.Database.<QueryImp>d__164`1.MoveNext()
       at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
       at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
       at Umbraco.Core.Persistence.SqlSyntax.SqlCeSyntaxProvider.GetColumnsInSchema(IDatabase db)
       at Umbraco.Core.Migrations.Install.DatabaseSchemaCreator.ValidateDbColumns(DatabaseSchemaResult result)
       at Umbraco.Core.Migrations.Install.DatabaseSchemaCreator.ValidateSchema(IEnumerable`1 orderedTables)
       at Umbraco.Core.Persistence.UmbracoDatabaseExtensions.ValidateSchema(IUmbracoDatabase database, ILogger logger)
       at Umbraco.Core.Persistence.UmbracoDatabaseExtensions.IsUmbracoInstalled(IUmbracoDatabase database, ILogger logger)
       at Umbraco.Core.RuntimeState.GetUmbracoDatabaseState(IUmbracoDatabaseFactory databaseFactory)]
       Umbraco.Core.Exceptions.BootFailedException.Rethrow(BootFailedException bootFailedException) +339
       System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +218
       System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +182
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +94
    
  • Huw Reddick 1757 posts 6123 karma points MVP c-trib
    Aug 11, 2023 @ 15:08
    Huw Reddick
    0

    try adding ; Max Database Size=4000 to your connection string

  • Cyrus Hiatt 9 posts 72 karma points
    Aug 14, 2023 @ 06:05
    Cyrus Hiatt
    0

    Connection string is now:

     <connectionStrings>
        <remove name="umbracoDbDSN" />
        <add name="umbracoDbDSN" connectionString="Data Source=|DataDirectory|\Umbraco.sdf;Flush Interval=1;Max Database Size=4000;" providerName="System.Data.SqlServerCe.4.0" />
      </connectionStrings>
    

    but I am still getting the same error.

  • Simon Napper 84 posts 254 karma points
    Aug 15, 2023 @ 10:20
    Simon Napper
    0

    This forum thread from a while back seems to indicate the same problem that you're having and like Huw mentioned, involves changing the Database Size, but this one seems to suggest 4096 rather than 4000?

    Might be worth a go?

    https://our.umbraco.com/forum/developers/extending-umbraco/47141-The-database-file-is-larger-than-the-configured-maximum-database-size

Please Sign in or register to post replies

Write your reply to:

Draft