Jump to content

Recommended Posts

Posted

Hello - As the title says, I have 3 schools that wanted sims discover deployed.

one install went straight on, and 2 other sites fail when using the transfer utility ("an error has occurred. please check the log file for more information")

I have had a look about as I am unsure to which log file it is referring to (maybe "AdministrationUtility.LogFile") - there are errors in there relating to discover with about the same time the transfer failed. (please can anyone confirm?)

 

Our local authority support have tried and failed to get this working. They escalated with capita who took a db backup and failed to recreate the error.

 

I have tried reinstalling discover from scratch , running sims index patch, restarting services etc. We have basically got to a point where support / capita wont help any more.

something is obviously different on one of the servers, but I am unable to progress.

 

Discover is deployed ok but I just cant get the db syncing

 

Please can anyone throw me something?

Posted

Named pipes for example, which by default are disabled.

 

- - - Updated - - -

 

Thing is, I'd expect your Capita support to identify something that obvious. It's fairly typical that you have to relax SQL settings from the default with any SQL install.

  • Thanks 1
Posted

So if I was able to create the discover db using solus3 using the credentials that I later then used for logging into the transfer utility I can rule out sims authentication and I should be looking at SQL authentication?

 

There is also the question of running the discover services and which account I should be running them as. I am afraid this is where I come unstuck.

Thanks for your time

Posted

after some 4 months of sporadic working on this issue, my LA support have tried everything they know, had capita log on and try on one of the two sites, given capita db backups etc I have made no headway. I am told pretty much that Capita couldn't recreate my issue on their test server and so can't / won't progress.

Yet I have this working on one of my sites beautifully. It is pretty infuriating

I do agree though. Its part of the core (I think(?)) and should be supported as such

Posted

Are the application files and DB on the same physical server, or separate servers and are these virtualised? If separate servers or separate VLANs (unlikely), then firewall is a possible issue.

 

Be interesting if Capita actually did a 'like for like' test of your configuration, as their test setup may not reflect yours whatsoever.

Posted
Yes is all pretty vanilla sims server holds physical files and db The server itself is virtualised . No firewall all on one subnet. It would be pretty easy to replicate.
Posted
If it were me I'd try installing another SQL Instance (even use Express using the Capita SQL installer and settings) and attach the SIMs db from using restore from a .bak. The run the Discover installers and try to link them together. Capita can get this to work offsite so it's either your SQL instance or a Windows setting.
  • Thanks 1
Posted (edited)

Assuming you are running the Discover services as NT AUTHORITY\NETWORK SERVICE then the following may help. Run from the server either through a batch file or manually on the command line. The pause commands are there for if you run it as a batch file, you can review the results before moving on to the next command. Depending on which (if any) commands fail and what error message they fail with should help identify your problem. I have assumed your Discover database is called Discover. I would suggest stopping the 2 Discover services, archiving the 2 Discover log files associated with the services and re-starting the services (if the services are active the files are locked)

 

set SERVERNAME=MIS-Server
set SQLINSTANCE=SIMS2012
set SAPASSWORD=Wouldn't_You_Like_To_Know
set database=SIMS
set DiscoInstall=C:\Program Files (x86)\SIMS

Echo Create user in SIMS Database
 sqlcmd -S %SERVERNAME%\%SQLINSTANCE% -U sa -P %SAPASSWORD% -d %database% -Q"EXEC sp_grantlogin 'NT AUTHORITY\NETWORK SERVICE'"
pause  

Echo create the catalogue   
"%DiscoInstall%\Discover Services\Discover.CatalogLoader.Console.exe" /operation=create /AssemblyFileName="%DiscoInstall%\Discover Services\Discover.SIMS.Catalog.dll" -Server="%SERVERNAME%\%SQLINSTANCE%" -username="sa" -password="%SAPASSWORD%" -database="Discover" -verbose
pause 

ECHO SIMS Discover Database User Transfer  
"%DiscoInstall%\Discover Services\Discover.SqlUserManager.Console.exe" /operation=synchronisewithsims -Server="%SERVERNAME%\%SQLINSTANCE%" -username="sa" -password="%SAPASSWORD%" -simsdatabase="%database%" -Discoverdatabase="Discover" -verbose
pause 

ECHO SIMS Discover Grant Group Synchronisation Rights  
"%DiscoInstall%\Discover Services\Discover.SqlUserManager.Console.exe" /operation=GrantDataViewMonitorAccountRights -AccountName="NT AUTHORITY\NETWORK SERVICE" -Server="%SERVERNAME%\%SQLINSTANCE%" -Username="sa" -Password="%SAPASSWORD%" -SIMSdatabase="%database%" -Discoverdatabase="Discover" -verbose
pause 

ECHO SIMS Discover Grant Transfer Rights  
"%DiscoInstall%\Discover Services\Discover.SqlUserManager.Console.exe" /operation=GrantTransferAccountRights -AccountName="NT AUTHORITY\NETWORK SERVICE" -Server="%SERVERNAME%\%SQLINSTANCE%" -Username="sa" -Password="%SAPASSWORD%" -SIMSdatabase="%database%" -Discoverdatabase="Discover" -verbose
pause

Edited by Esteban_Child_of_the_Sun
  • Thanks 1
Posted

Thanks very much for this.

Something is definitely amiss:

On Create the catalogue stage:

C:\Windows\system32>Echo create tcreate the catalogueC:\Windows\system32>"C:\Program FlogLoader.Console.exe" /operation6)\SIMS\Discover Services\Discove012" -username="sa" -password="xx Create, operation started.....

Warning: Data view has no icon attribute, using default. (This line is repeated many times)

  • CatalogueLoaderConsole then Bombs

in cmd:

 

Application setting table is not present in the Database, upgrade the Discover database to a newer version or check connection information..

Exception type: EntityExceptionThe underlying provider failed on Open.Service ICatalogService.DoesExist failed invocation at 22/06/2017 13:31:40:03.

Exception type: EntityExceptionThe underlying provider failed on Open.

 

Unhandled Exception: System.ServiceModel.FaultException: The server was unable to process the request due to an internal error.

For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework SDK documentation and inspect the server trace logs.

 

Server stack trace: at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter) at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc) at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation) at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at Discover.DataEngine.ServiceLibrary.Services.ICatalogService.DoesExist(Guid sessionId, Guid id) at Discover.CatalogLoader.Console.Create.Execute(Object context) at Discover.CommandLine.SIMSCommandLine.ExecuteOperation(Type operationType,Dictionary`2 arguments, Object context) at Discover.CommandLine.SIMSCommandLine.ProcessCommandLine(Assembly supportAssembly, String commandLine, Object context) at Discover.CatalogLoader.Console.Program.Main(String[] args)C:\Windows\system32>pausePress any key to continue . . .C:\Windows\system32>ECHO SIMS Discover Database User Transfer SIMS Discover Database User TransferC:\Windows\system32>"C:\Program Files (x86)\SIMS\Discover Services\Discover.SqlUserManager.Console.exe" /operation=synchronisewithsims -Server="xxxxx\SIMS2012" -username="sa" -password="xxxxx" -simsdatabase="SIMS" -Discoverdatabase="Discover" -verbose

SynchroniseWithSims, operation started.....Unhandled Exception: System.Data.SqlClient.SqlException: Cannot open database "Discover" requested by the login. The login failed.Login failed for user 'xxx\Administrator'. at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, BooleanredirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling)

<< LOADS OF SQL ERRORS TRUNCATED >>

 

<>"C:\Program Files (x86)\SIMS\Discover Services\Discover.SqlUserManager.Console.exe" /operation=GrantDataViewMonitorAccountRights -AccountName="NT AUTHORITY\NETWORK SERVICE" -Server="xxxxx\SIMS2012" -Username="sa"-Password="xxxxx" -SIMSdatabase="SIMS" -Discoverdatabase="Discover" -verbose GrantDataViewMonitorAccountRights, operation started.....An error occurred during right granting. Exception details follow:User does not have permission to perform this action. GrantDataViewMonitorAccountRights, operation finished.....

 

After this, Discover.SqlUserManager bombs and I get

 

Unhandled Exception: System.Data.SqlClient.SqlExcepiscover" requested by the login. The login failed....

<< LOADS OF SQL ERRORS TRUNCATED >>

 

Then more

 

GrantDataViewMonitorAccountRights, operation started.....An error occurred during right granting. Exception details foUser does not have permission to perform this action. GrantDataViewMonitorAccountRights, operation finished.....

 

Sorry for the messy post I am not sure how to present this nicely.

Suffice to say there is authentication issue - but is this how it begins?

Posted

The first line is a clue - I presume you have tried updating the Discover DB? Could it be that x version of the SIMS DB doesn't play nice with x version of the Discover DB?

 

Would be good to confirm versions on the working setup.

Posted
Hi Michael, Both Sims & Discover are on the Spring 2017 version if that is what you mean? I found someone here who had fixed their discover woes by doing this, and checked.
Posted

Within SQL what accounts do the services run on?

 

SQL Server = LocalSystem ?

SQL Server Agent = NT Authority/NetworkService ?

SQL Server Browser = NT Authority/LocalService ?

 

Untitled.png

Posted

looking at the errors, it looks like there is a mismatch between the version of the catalog (the files in the Discover Services folder), the version of the Discover Database (and/or config files) or the version of SIMS. For reference, the error "Warning: Data view has no icon attribute, using default." is one you will see at all sites. It is referring to parts of Discover that aren't visible to the end user and thus have never been assigned an icon (where as graphs, groups and menu headers all have icons)

 

I would suggest starting again, while it is possible to track down the particular error(s) it is usually quicker to wipe it all out and re-install (then if you had been using it, restore the backup).

1. Unistall the Discover services (and not always needed but you could uninstall the client as well) from Control Panel

2. Delete the Discover Database from SQL Management Studio with the option to drop logins selected.

3. Delete C:\Program Files (x86)\SIMS\Discover* (or wherever the folders were installed to)

4. Delete the folder C:\ProgramData\Discover

5. Get the installation version of Discover that matches your current version of SIMS

6. Run the typical installation and make sure 'NT AUTHORITY\NETWORK SERVICE' is sues to run the services (you can use other account but that gets more complicated, and for now I'd recommend keeping it simple to prove it works)

7. Open the admin utility and run a transfer for the current year only. (I would give it a 40% chance of succeeding, if it fails run the script above and find the next set of error messages)

  • Thanks 1
Posted

thanks both for your replies. @esteban I have tried doing this 3 times or so on both the sites with the supervision of our LA support, including a reboot after service uninstall.

Will try again.

@Michael service accounts as per screenshot

screenshot.2.jpg

Posted (edited)

1.0.42.1

through solus 3

 

not sure of client version - I have just ripped it all off the server. waiting for the go-ahead for a reboot for good measure before attempting a reinstall

Edited by 3enjammin
Posted

Discover client version 7.174.5.0

Discover Database Version 7.174.5.0

Discover Catalogue Version 7.174.5.0

Data Transfer Service Version 7.174.5.0

Group Synchronistation Service Version 7.174.5.0

SIMS Database Version 3.62.669

 

SIMS client version 7.174 build 37

Posted (edited)

Still the same as it ever was.

Going to try it all again using local admin rather than domain admin.

 

Incidentally Capita apparently told my support that SQL Service pack 3 could be at fault. - I couldn't get a reasoning behind this although once I get desperate enough I shall probably try ripping that out ...

Edited by 3enjammin
more info

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...