Hi,
- Absolutely, here is what I can see in the three logs:
DistMgr.log: Contains the exact same SQL errors I was seeing in the console when looking at SMS_DISTRIBUTION_MANAGER. Here is one such example:
GetDPUsableDrives - ["Display=\<servername>\"]MSWNET:["SMS_SITE=<sitecode>]"]\<servername>\ $$<SMS_DISTRIBUTION_MANAGER><07-28-2021 15:23:30.823+240><thread=73168 (0x11DD0)>
Finished GetDPUsableDrives - ["Display=\<servername>\"]MSWNET:["SMS_SITE=<sitecode>"]\<servername>\ $$<SMS_DISTRIBUTION_MANAGER><07-28-2021 15:23:30.829+240><thread=73168 (0x11DD0)>
SetContentLibLocationInReg - ["Display=\<servername>\"]MSWNET:["SMS_SITE=<sitecode>"]\<servername>\ $$<SMS_DISTRIBUTION_MANAGER><07-28-2021 15:23:30.829+240><thread=73168 (0x11DD0)>
Finished SetContentLibLocationInReg - ["Display=\<servername>\"]MSWNET:["SMS_SITE=<sitecode>"]\<servername>\ $$<SMS_DISTRIBUTION_MANAGER><07-28-2021 15:23:30.902+240><thread=73168 (0x11DD0)>
****[23000][2627][Microsoft][SQL Server Native Client 11.0][SQL Server]Violation of PRIMARY KEY constraint 'PkgStatus_G_PK'. Cannot insert duplicate key in object 'dbo.PkgStatus_G'. The duplicate key value is (<bigint from db>). : tr_PkgStatus_ins $$<SMS_DISTRIBUTION_MANAGER><07-28-2021 15:23:30.915+240><thread=73168 (0x11DD0)>****
STATMSG: ID=2326 SEV=E LEV=M SOURCE="SMS Server" COMP="SMS_DISTRIBUTION_MANAGER" SYS=<servername> SITE=<sitecode> PID=2828 TID=73168 GMTDATE=Wed Jul 28 19:23:30.921 2021 ISTR0="<packageid>" ISTR1="15" ISTR2="5" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=2 LE=0X0 AID0=400 AVAL0="<packageid>" AID1=404 AVAL1="["Display=\<servername>\"]MSWNET:["SMS_SITE=<sitecode>"]\<servername>\" $$<SMS_DISTRIBUTION_MANAGER><07-28-2021 15:23:30.921+240><thread=73168 (0x11DD0)>
~Cannot save the initial package status to the data source. $$<SMS_DISTRIBUTION_MANAGER><07-28-2021 15:23:30.925+240><thread=73168 (0x11DD0)>
Error occurred. Performing error cleanup prior to returning. $$<SMS_DISTRIBUTION_MANAGER><07-28-2021 15:23:30.926+240><thread=73168 (0x11DD0)>
PkgXferMgr.log: This one is very clean, I went through it all over the last 3 days and did not find traces of errors.
SMSDPProv.log: Went around a few of our distribution points and also cannot find traces of anything suspect in this log.
We also have a few secondary sites. When examining sender.log and despool.log, the only other trace of an error I have been able to find is this one from despool.log.
Old package storedUNC path is . SMS_DESPOOLER 7/29/2021 1:57:09 PM 8704 (0x2200)
This package[<packageid>]'s information hasn't arrived yet for this version [3]. Retry later ... SMS_DESPOOLER 7/29/2021 1:57:09 PM 8704 (0x2200)
Created retry instruction for job 00006F96 SMS_DESPOOLER 7/29/2021 1:57:09 PM 8704 (0x2200)
- I did look over the notes associated with the hotfix and nothing jumped to me as potentially being related to this issue. I'll see if I can give it a shot but I'll need a little bit of time.
I think I may have been able to come up with a workaround for the time being. I looked over the table PKGStatus_G and the primary key (PKID) is a bigint and an identity field. Unsurprisingly, the bigint that is returned in the log as being in violation of the primary key constraint increments by 1 on every attempt at distribution. When I queried the table and looked at the range of IDs stored in PKID, I could see that the range of IDs SCCM/SQL was currently attempting to use ended about 50 of so values later. So I created myself a dummy package and well, scripted a few "Update Distribution Points" tasks. When the "currently used ID" finally moved beyond the range of what could be found in PKID, I stopped getting the errors and distribution resumed. Am I dealing with a SQL issue more than an SCCM one?
Thank you!
Sebastien