Search This Blog

Tuesday, February 23, 2016

Skype for business FrontEnd and NetApps fileshare - error 32008

Log Name:      Lync Server
Source:        LS Storage Service
Date:          23/02/2016 10:33:34
Event ID:      32008
Task Category: (4006)
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      xxx
Description:
Unexpected exception.

Message=Error: Path \\yyy.domain.com\SFBSHARE\1-WebServices-12\StorageService failed to be read for flushed data. Error details: System.IO.IOException: Invalid Signature.

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileSystemEnumerableIterator`1.CommonInit()
   at System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost)
   at System.IO.Directory.GetFiles(String path, String searchPattern, SearchOption searchOption)
   at Microsoft.Rtc.Internal.Storage.Sql.LyssDal.CheckFilePathForFlushedFiles(StoreContext ctx, String parentFilePath, Boolean checkArchived, Boolean& errorOccurred, Int32& numDataFilesToReport)

Exception: Invalid Signature.

Stack Trace:    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileSystemEnumerableIterator`1.CommonInit()
   at System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost)
   at System.IO.Directory.GetFiles(String path, String searchPattern, SearchOption searchOption)
   at Microsoft.Rtc.Internal.Storage.Sql.LyssDal.CheckFilePathForFlushedFiles(StoreContext ctx, String parentFilePath, Boolean checkArchived, Boolean& errorOccurred, Int32& numDataFilesToReport)
Cause: Unexpected exception.
Resolution:
If problem persists, notify your organization's support team with the event detail.


Strangely enough this error appears only on one frontend out of three.  As if other frontends are configured differently.

The only idea for the moment is to reboot server.

There are some resources in internet pointing to SMB issue with secure negotiations:
http://www.thomasmaurer.ch/2013/03/windows-8-or-windows-server-2012-cannot-access-netapp-smbcifs-share/
https://support.microsoft.com/en-us/kb/2686098

From this frontend we can do netbios dir
dir \\yyy\SfBShare  but FQDN
dir \\yyy.domain.com\SfBShare gives
"Invalid Signature."

net use gives

"System error 2148073478 has occurred."


Indeed reboot solved the issue.

Tuesday, February 16, 2016

Skype for Business Error 56407 Failed to execute a stored procedure on the back-end.

The error like this

Log Name:      Lync Server
Source:        LS Data Collection
Event ID:      56407
Task Category: (2271)
Level:         Error

Description:
Failed to execute a stored procedure on the back-end.

Component: QoE Adaptor
Stored Procedure: QoeInsertSessionReport2

Error: System.Data.SqlClient.SqlException (0x80131904): Trying to pass a table-valued parameter with 109 column(s) where the corresponding user-defined table type requires 101 column(s).

Is usually means you have not upodated the monitoring database after a cumulative update.

It can be fixed by running powershell like this:

Install-CsDatabase -DatabaseType Monitoring -SqlServerFqdn sql.domain.local -SqlInstanceName SFB2015

Wednesday, February 10, 2016

O365 voicemail fails for Lync SBA users

Getting O365 Voicemail call errors for Lync SBA hosted users:

Test-CsExUMConnectivity -UserSipAddress xxx  -TargetFqdn yyy -UserCredential $credentials -Verbose

Target Fqdn   : yyy
Result        : Failure
Latency       : 00:00:01.6121528
Error Message : 480, Temporarily Unavailable

Diagnosis     : ErrorCode=15030,Source=yyy,Reason=Fail
                ed to route to Exchange Server,appname=ExumRouting,dialplan=Hos
                ted__exap.um.outlook.com__zzz.onmicrosoft.com,pstnrero
                utingenabled=false
                Microsoft.Rtc.Signaling.DiagnosticHeader


At the same time onPremise UM voicemail is ok, as well if we move user to another pool it works.
The issue is related to egde who did not recognise newly deployed SBA:


 event ID 14402:
Multiple incoming connections on internal edge from non-internal servers.

In the past 305 minutes the server received 30 incoming connections on internal edge from non-internal servers. The last one was from host xxx.
Cause: This can happen if an internal server is not present in the list of internal servers on the Access Edge Server.
Resolution:
If the server is a valid one, you need to add it to the list of internal servers on the Access Edge Server. If the server is invalid, you may be under an attack from that server. 


Solution: reboot edge who will re-read server internal list from topology.

Thursday, February 4, 2016

Lync 2013 does not support vMotion or LiveMigration

https://www.microsoft.com/en-us/download/details.aspx?id=41936

Sonus SBA issue Oauth certificate is missing

Log Name:      Lync Server
Source:        LS Replica Replicator Agent Service
Date:          2/4/2016 5:29:26 AM
Event ID:      3041
Task Category: (3003)
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      sba.domain.com
Description:
The replication of certificates from the central management store to the local machine failed due to a problem with encryption key management. Microsoft Lync Server 2013, Replica Replicator Agent will continuously attempt to retry the replication. While this condition persists, the certificates on the local machine will not be updated.
Exception: Microsoft.Incubation.Crypto.GroupKeys.KeyException: Not able to read from the key object. ---> System.Runtime.InteropServices.COMException: The specified directory service attribute or value does not exist.
   at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
   at System.DirectoryServices.DirectoryEntry.Bind()
   at System.DirectoryServices.DirectoryEntry.get_AdsObject()
   at System.DirectoryServices.DirectorySearcher.FindAll(Boolean findMoreThanOne)
   at System.DirectoryServices.DirectorySearcher.FindOne()
   at Microsoft.Incubation.Crypto.GroupKeys.ADRepository.ReadKey(Guid keyId)
   --- End of inner exception stack trace ---
   at Microsoft.Incubation.Crypto.GroupKeys.ADRepository.ReadKey(Guid keyId)
   at Microsoft.Incubation.Crypto.GroupKeys.DKMBase.ReadKey(Guid guid)
   at Microsoft.Incubation.Crypto.GroupKeys.DKMBase.Unprotect(MemoryStream cipherText, Boolean pinnedOutput)
   at Microsoft.Rtc.Management.Internal.KeyManagement.GroupKeyWrapper.DecodeToArray(String cipherText)
   at Microsoft.Rtc.Management.Deployment.Core.Certificate.ReplicateCMSCertificates(IScopeAnchor scope)
   at Microsoft.Rtc.Internal.Tools.Bootstrapper.Bootstrapper.ReplicateCMSCertificates().
Cause: The encryption key database has been corrupted or local machine cannot access it.
Resolution:
Ensure that forest configuration is up to date. Run Enable-CSAdForest and/or Enable-CSComputer Power Shell commands to validate forest and local machine configuration.


The solution in my case was to set rights to SBA compouter account - RTCComponentUniversalServices, RTCHSUniversalServices, RTCSBAUniversalServices.

It is needed to access AD contaner fof Lync certificates -   domain.local/Program Data/Microsoft/Distributed KeyMan/LyncCertificates.  - Open with ADSI edit and check it's security.


Once it is done, wait until AD replicates everywhere. Then in SBA run enable-cscomputer and reboot.

Wednesday, February 3, 2016

Sonus SBA Lync 2013 FrontEnd service does not start

Some issue while deploying SBA on Sonus 

Log Name:      Lync Server
Source:        LS AppDomain Host Process
Date:          2/3/2016 7:36:24 PM
Event ID:      50006
Task Category: (1029)
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      SBA.domain.com
Description:
An exception caused the process to stop.

Exception Details. System.ApplicationException: Failed to start Fabric Pool Manager.
   at Microsoft.Rtc.AppDomainHost.Launcher.Initialize(String[] args)
   at Microsoft.Rtc.AppDomainHost.Launcher.Main(String[] args)
Cause: Check the eventlog description.
Resolution:
Examine prior event log entries to find and resolve the problem. If the problem persists contact product support.


to solve the issue, log to SBA in RDP, uninstall windowsfabric using Control Panel, do not reboot and install windowsfabric.msi - take it from Lync 2013 server source DVD.

Monday, February 1, 2016

Once more about Lync (Skype for Business) RGS forwarding to PSTN

You need to assign Dialplan and voicepolicy to RGS workflow to let forward to PSTN.

Grant-CSDialPlan –Identity sip:workflow@domain.com -PolicyName "USA_DIAL_PLAN"

Grant-CSVoicePolicy –Identity sip:workflow@domain.com -PolicyName "US-International"