Code Monkey home page Code Monkey logo

Comments (8)

jnlycklama avatar jnlycklama commented on June 6, 2024

Are you updating an existing service? If so, what schema version was previously referenced?
Or are you creating a new service?

from dicom-server.

ashutosh1211 avatar ashutosh1211 commented on June 6, 2024

I am running it as a new service, no database exists, so when I run the project it creates db but in further steps it fails.

from dicom-server.

jnlycklama avatar jnlycklama commented on June 6, 2024

How are you deploying your service? Are you using the ARM template provided?

Can you also check the schema version table on your SQL DB to see what it says there? What versions are listed? Did they fail or succeed to register?

from dicom-server.

ashutosh1211 avatar ashutosh1211 commented on June 6, 2024

Im currently running it locally in dev environment.

tables are not getting created on initial run, only database is created.

some lines from logs.

warn: Microsoft.Health.SqlServer.Features.Schema.SchemaInitializer[0]
      Could not find stored procedure - dbo.SelectCurrentSchemaVersion
info: Microsoft.Health.SqlServer.Features.Schema.SchemaInitializer[0]
      Initial check of schema version is NULL
...
...
...
info: Microsoft.Health.Dicom.Core.Features.Partition.PartitionCache[0]
      Cache miss. Initializing the row.
info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105]
      Executed action Microsoft.Health.Dicom.Api.Controllers.QueryController.QueryForStudyAsync (Microsoft.Health.Dicom.Api) in 931.399ms
warn: Microsoft.Health.Dicom.Api.Features.Exceptions.ExceptionHandlingMiddleware[0]
      Service exception.
      Microsoft.Health.Dicom.Core.Exceptions.DataStoreNotReadyException: Current SQL schema version could not be resolved.
         at Microsoft.Health.Dicom.SqlServer.Features.Schema.VersionedCache`1.ResolveAsync(CancellationToken cancellationToken) in 

from dicom-server.

ashutosh1211 avatar ashutosh1211 commented on June 6, 2024

may be default stored procedures are not getting created from shared health package and Initial check of schema version is NULL error is coming.

from dicom-server.

jnlycklama avatar jnlycklama commented on June 6, 2024

Have you been through these instructions if you are running the service locally? https://github.com/microsoft/dicom-server/blob/main/docs/development/setup.md

from dicom-server.

ashutosh1211 avatar ashutosh1211 commented on June 6, 2024

Have you been through these instructions if you are running the service locally? https://github.com/microsoft/dicom-server/blob/main/docs/development/setup.md

Yes, I'm following the guidelines.

from dicom-server.

ashutosh1211 avatar ashutosh1211 commented on June 6, 2024

I have resolved the issue by following steps in SqlServer readme.md file. We can close this issue.

from dicom-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.