Copied to clipboard

Flag this post as spam?

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


  • Dan 65 posts 209 karma points
    Jun 10, 2024 @ 14:13
    Dan
    0

    Umbraco v8 local database

    I have tried to get the umbraco database local but I'm getting following error.

    enter image description here

    if im using a online version of the same database it works just fine.

  • Huw Reddick 1932 posts 6722 karma points MVP 2x c-trib
    Jun 10, 2024 @ 17:27
    Huw Reddick
    0

    Is there any info in the umbraco logs?

  • Dan 65 posts 209 karma points
    Jun 11, 2024 @ 06:52
    Dan
    0

    I found these in the log

    System.Exception: Cannot connect to the database.
       at Umbraco.Core.Persistence.UmbracoDatabaseFactory.Initialize() in D:\\a\\1\\s\\src\\Umbraco.Core\\Persistence\\UmbracoDatabaseFactory.cs:line 228
       at System.Threading.LazyInitializer.EnsureInitializedCore[T](T& target, Boolean& initialized, Object& syncLock, Func`1 valueFactory)
       at Umbraco.Core.Persistence.UmbracoDatabaseFactory.EnsureInitialized() in D:\\a\\1\\s\\src\\Umbraco.Core\\Persistence\\UmbracoDatabaseFactory.cs:line 210
       at Umbraco.Core.Runtime.SqlMainDomLock.<AcquireLockAsync>d__13.MoveNext() in D:\\a\\1\\s\\src\\Umbraco.Core\\Runtime\\SqlMainDomLock.cs:line 58
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Umbraco.Core.Runtime.MainDom.Acquire() in D:\\a\\1\\s\\src\\Umbraco.Core\\Runtime\\MainDom.cs:line 143
    
    
    Umbraco.Core.Exceptions.BootFailedException: Boot failed. ---> System.TimeoutException: Cannot acquire MainDom
       at Umbraco.Core.Runtime.MainDom.Acquire() in D:\\a\\1\\s\\src\\Umbraco.Core\\Runtime\\MainDom.cs:line 172
       at System.Threading.LazyInitializer.EnsureInitializedCore[T](T& target, Boolean& initialized, Object& syncLock, Func`1 valueFactory)
       at Umbraco.Core.Runtime.MainDom.get_IsMainDom() in D:\\a\\1\\s\\src\\Umbraco.Core\\Runtime\\MainDom.cs:line 211
       at Umbraco.Core.Runtime.CoreRuntime.AcquireMainDom(IMainDom mainDom) in D:\\a\\1\\s\\src\\Umbraco.Core\\Runtime\\CoreRuntime.cs:line 471
       at Umbraco.Core.Runtime.CoreRuntime.Boot(IRegister register, DisposableTimer timer) in D:\\a\\1\\s\\src\\Umbraco.Core\\Runtime\\CoreRuntime.cs:line 183
       --- End of inner exception stack trace ---
    
  • Dan 65 posts 209 karma points
    Jun 11, 2024 @ 11:16
    Dan
    100

    it looks like I figured it out changing the connectionstring from MultipleActiveResultSets=False; to MultipleActiveResultSets=True; made it work.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies