Storage is not initialized

Forum Home Forums Development and Integration Storage is not initialized

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #12555
    9527
    Participant

    Local debug project scadaweb project, start prompt Storage is not initialized.
    I have compiled the project in order by referring to the HowToBuild.txt file, and it has compiled successfully.

    • This topic was modified 2 years, 4 months ago by 9527.
    #12562
    Mikhail
    Moderator

    Please provide screenshots and logs.

    #12566
    9527
    Participant
    Scada.ScadaException
      HResult=0x80131500
      Message=Storage is not initialized.
      Source=ScadaCommon
      StackTrace:
       In Scada.Storages.StorageWrapper.get_Storage()
       In Scada.Web.Code.WebContext.get_Storage() In E:\98v\gitlab-98vtech\scada-v6\ScadaWeb\ScadaWeb\ScadaWeb\Code\WebContext.cs: Row 127 
       In Scada.Web.Startup.<ConfigureServices>b__8_4(KeyManagementOptions options) In E:\98v\gitlab-98vtech\scada-v6\ScadaWeb\ScadaWeb\ScadaWeb\Startup.cs: Row 129 
       In Microsoft.Extensions.Options.ConfigureNamedOptions`1.Configure(String name, TOptions options)
       In Microsoft.Extensions.Options.OptionsFactory`1.Create(String name)
       In Microsoft.Extensions.Options.UnnamedOptionsManager`1.get_Value()
       In Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager..ctor(IOptions`1 keyManagementOptions, IActivator activator, ILoggerFactory loggerFactory, IDefaultKeyStorageDirectories keyStorageDirectories)
       In Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager..ctor(IOptions`1 keyManagementOptions, IActivator activator, ILoggerFactory loggerFactory)
       In System.RuntimeMethodHandle.InvokeMethod(Object target, Span`1& arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
       In System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       In Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
       In Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
       In Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
       In Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
       In Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
       In Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
       In Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
       In Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
       In Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
       In Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
       In Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
       In Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
       In Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitIEnumerable(IEnumerableCallSite enumerableCallSite, RuntimeResolverContext context)
       In Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
       In Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
       In Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
       In Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
       In Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(Type serviceType)
       In System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory)
       In Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
       In Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
       In Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider)
       In Microsoft.Extensions.Hosting.Internal.Host.<StartAsync>d__12.MoveNext()
    
    • This reply was modified 2 years, 4 months ago by Mikhail.
    #12567
    9527
    Participant

    Put ScadaInstanceConfig.xml into the outer folder and recompile it.
    https://ibb.co/KsYxZ9T

    The xml configuration file is changed to FileStorage, the dat file cannot be generated locally. Changed to postgres, database also initialized table. scadaweb also can’t connect.
    https://ibb.co/dGCz7wY

    • This reply was modified 2 years, 4 months ago by Mikhail.
    #12576
    Mikhail
    Moderator

    May be the storage DLL was not found. The details are written in ScadaWeb.log
    If you change the source code by yourself, use the VS debugger to check how the code works.

    #12613
    9527
    Participant

    After referencing the storage dll, scadaweb can be started. other comm, server, agent, etc. are found and need to reference the driver and other dll files to be started successfully.

    #12614
    9527
    Participant

    But the dat file in the BaseDAT folder, I did not find how to initialize it, can only copy it from the installation package?

    #12616
    Mikhail
    Moderator

    If the archive folder exists, the files are created automatically.

    #12939
    mgmouk
    Participant

    I am currently working on the SCADAWeb project and I am encountering the same problem “Storage is not initialized” when running the application in local debug mode. I followed the instructions in the HowToBuild.txt file to compile the project.

    I have seen that this topic has already been discussed on the forum and I have tried the suggested solutions, but unfortunately, they have not solved my problem.

    If anyone has already encountered this problem and found a solution that has not been previously mentioned, could you please share how you resolved it?

    Thank you in advance for your help.

    #12945
    Mikhail
    Moderator

    To debug the software, attach the debugger to the correctly installed instance.
    https://ibb.co/DLJ4ppq

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.