Uniprint: Pharos Updater Service is not starting or starts then stops immediately.
  • 10 Apr 2024
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

Uniprint: Pharos Updater Service is not starting or starts then stops immediately.

  • Dark
    Light
  • PDF

Article summary

Symptom:


Pharos Uniprint Updater Service will not start.

Environment:


Uniprint 9.0 R2 and greater

Error:

The Windows Application Event log shows the below exception.
Service cannot be started.
System.InvalidOperationException: Something went wrong when trying to satisfy one of the dependencies during composition, make sure that you've registered all new dependencies in the container and inspect the inner exception for more details.

---> Nancy.TinyIoc.TinyIoCResolutionException: Unable to resolve type: Nancy.NancyEngine
---> Nancy.TinyIoc.TinyIoCResolutionException: Unable to resolve type: Nancy.Routing.DefaultRequestDispatcher
---> Nancy.TinyIoc.TinyIoCResolutionException: Unable to resolve type: Nancy.Routing.DefaultRouteResolver ---> Nancy.TinyIoc.TinyIoCResolutionException: Unable to resolve type: Nancy.Routing.RouteCache
---> Nancy.TinyIoc.TinyIoCResolutionException: Unable to resolve type: PharosSystems.Updater.Server.Repositories.V2ServerPackageRepositoryModule
---> System.NullReferenceException: Object reference not set to an instance of an object.
at NuGet.CollectionExtensions.AddRange[T](ICollection`1 collection, IEnumerable`1 items)
 at NuGet.Server.Infrastructure.ServerPackageSt...


Resolution:

One of the 3 options will assist in resolving the problem, please start with Option #1. Failing that Options #2 & #3 can be taken but it should be resolved at step #3. 

Option #1:

  1. Close the Pharos Administrator and stop the Pharos Updater Service.

  2. Rename the ""C:\ProgramData\PharosSystems\UpdaterService" to ""C:\ProgramData\PharosSystems\UpdaterService-OLD".

  3. Start the Updater Service, it should recreate its entire folder structure.

Option #2:

  1. Close the Pharos Administrator and stop the Pharos Updater Service.

  2. Rename the folder "C:\ProgramData\PharosSystems\UpdaterService\cache-v2.0" to "cache-v2.0-Old".

  3. Start the Pharos Updater Service.

  4. Wait a few minutes and the folder in step 2 above will be re-created.

Possible Option #3:

  1. Close the Pharos Administrator and stop the Pharos Updater Service.

  2. Open an Administrative command prompt and change directory to the one below.

    "C:\Program Files (x86)\Pharos\UpdaterService\"

  3. Run the executable with the --uninstall switch (PharosSystems.Updater.Service.exe --uninstall)

  4. Run the executable with the --install switch (PharosSystems.Updater.Service.exe --install)

  5. Then try to start the Updater service.

Note: If it still fails it may be necessary to repeat step 1 and 2 then remove the C:\ProgramData\PharosSystems\UpdaterService folder before going on to step 3.


Was this article helpful?


Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.