- 10 Apr 2024
- 1 Minute to read
- Print
- DarkLight
- PDF
Uniprint: Pharos Updater Service is not starting or starts then stops immediately.
- Updated on 10 Apr 2024
- 1 Minute to read
- Print
- DarkLight
- PDF
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:
Close the Pharos Administrator and stop the Pharos Updater Service.
Rename the ""C:\ProgramData\PharosSystems\UpdaterService" to ""C:\ProgramData\PharosSystems\UpdaterService-OLD".
Start the Updater Service, it should recreate its entire folder structure.
Option #2:
Close the Pharos Administrator and stop the Pharos Updater Service.
Rename the folder "C:\ProgramData\PharosSystems\UpdaterService\cache-v2.0" to "cache-v2.0-Old".
Start the Pharos Updater Service.
Wait a few minutes and the folder in step 2 above will be re-created.
Possible Option #3:
Close the Pharos Administrator and stop the Pharos Updater Service.
Open an Administrative command prompt and change directory to the one below.
"C:\Program Files (x86)\Pharos\UpdaterService\"
Run the executable with the --uninstall switch (PharosSystems.Updater.Service.exe --uninstall)
Run the executable with the --install switch (PharosSystems.Updater.Service.exe --install)
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.