Posted on 12-09-2019 06:13 AM
I've noticed lately that ASM is not syncing with JSS intermittently, it will come up with the error:
Sync failed. Awaiting next sync.
I've already placed public token in ASM and have uploaded the ASM token to JSS. No changes have been made to our firewall or filtering system.
We are on version 10.17.1
Is there anything I'm overlooking?
Solved! Go to Solution.
Posted on 12-09-2019 02:50 PM
Posted on 12-09-2019 04:28 PM
Can confirm that @bentoms fix worked. Added -Djdk.tls.client.protocols="TLSv1,TLSv1.1,TLSv1.2" to the Java Options in the Tomcat Properties, restarted the JSS, and ASM sync'd right away. Thanks!
Posted on 12-09-2019 07:01 AM
We are on JP 10.15.1 and we are seeing the same thing.
Posted on 12-09-2019 09:49 AM
same here and we were on 10.8 then upgraded to 10.13 and still having the issue
Posted on 12-09-2019 09:49 AM
Had to replace our DEP token today for that same issue. Nothing on our end changed. Once we redid the DEP token it died again. I keep wondering why this would just fail randomly. We are on 10.16.1
Gabe Shackney
Princeton Public Schools
Posted on 12-09-2019 09:52 AM
We're seeing this as well in our Stage lane (Jamf Pro 10.17.1) and our Production lane (Jamf Pro 10.16.1).
Case #: JAMF-0841146
AppleCare Case No.: 100971412807
Posted on 12-09-2019 09:56 AM
Apple seems to keep having issues either provisioning new nodes for ABM or in a maintenance script, as certain ABM nodes lose the ability to accept TLS1.3 from time to time.
Posted on 12-09-2019 10:00 AM
Id see this pop up the odd time, but after waiting 15-20 mins and rechecking all seems to be ok.
Posted on 12-09-2019 10:11 AM
Yes, I am running into this today as well. Seems like an issue with Apple side.
Posted on 12-09-2019 10:13 AM
We've seen this a couple times in the past month. Only really matters if you're moving stuff from prestage to prestage and want to reprovision right away. Annoying.
Posted on 12-09-2019 12:59 PM
Ive seen it since 10.14.0 forward on and off. Especially after the legacy vpp/dep portals have gone away. Check back in on it an hour or so later and it seems to be fine.
Posted on 12-09-2019 02:12 PM
Echoing that we've seen it in 10.15.1 ans 10.17.0, thanks for sharing the ticket numbers @dan-snelson.
Posted on 12-09-2019 02:50 PM
Sounds a lot like: https://macmule.com/2019/10/01/more-dep-sync-errors/
Posted on 12-09-2019 04:28 PM
Can confirm that @bentoms fix worked. Added -Djdk.tls.client.protocols="TLSv1,TLSv1.1,TLSv1.2" to the Java Options in the Tomcat Properties, restarted the JSS, and ASM sync'd right away. Thanks!
Posted on 12-09-2019 04:48 PM
I modified the JAVA_OPTS in my setenv.sh file on my jss master node to this and it resolved the issue:
export JAVA_OPTS="$JAVA_OPTS -Xmx8192M -Xms256M -Djava.awt.headless=true -Djdk.tls.client.protocols="TLSv1,TLSv1.1,TLSv1.2""
Posted on 12-09-2019 05:31 PM
Just had this on an instance and Ben's fix worked for me as well.
A little concerned about enabling TLS 1.0 and 1.1....
Posted on 12-09-2019 09:54 PM
no issues until today, modified my JAVA_OPTS as mentioned above, working now. RHEL 7 with RHEL OpenJDK 11.0.3
Posted on 12-10-2019 01:38 AM
I also added the line -Djdk.tls.client.protocols="TLSv1,TLSv1.1,TLSv1.2" which resolved the issue. Thanks!
Posted on 12-10-2019 05:25 AM
That fix worked for us, thanks! I still can't enroll iPads via DEP but thats another issue.
Posted on 12-10-2019 01:18 PM
We have been getting the sync errors on and off for a couple of months, but they would always resolve themselves after a few sync attempts. Today was the longest run where the syncs had consistently failed for over a day.
Modified the setenv.sh on my Ubuntu master as mentioned above and all errors went away immediately after restarting the servers.
Posted on 12-10-2019 01:36 PM
This fixed ours as well. I only need to add TLSv1.2 and everything seems fine.
Posted on 12-10-2019 11:57 PM
@m.donovan ditto, just re-applied the fix with only TLSv1.2 and sync is still good. That made my Security brain much happier.
Posted on 12-11-2019 01:06 AM
Tested successfully with -Djdk.tls.client.protocols="TLSv1.2" on Jamf Pro 10.17.1. Thanks a lot for the tips
Posted on 12-11-2019 01:12 AM
if you are editing the setenv.sh file manually, it's required that the addition is added thus: export JAVA_OPTS="$JAVA_OPTS -Xmx4096M -Xms512M -Djava.awt.headless=true -Djdk.tls.client.protocols=TLSv1.1,TLSv1.2"
otherwise, Tomcat will not startup.
as soon as I added it, bingo! We're back communicating again...
Posted on 12-11-2019 06:38 AM
Followed the above added -Djdk.tls.client.protocols="TLSv1,TLSv1.1,TLSv1.2" and its just started syncing for me again, i also managed to update token whilst i was at it (although we had till July 20. Thanks.
Posted on 12-11-2019 06:46 AM
any assistance as to where to add that to a macOS instance
Posted on 12-11-2019 07:39 AM
I applied the above solution by HVIKE. After I restarted our JSS I came to the wonferful screen of Unable to connect to the Database...
I have followed this KB to solve this. https://www.jamf.com/jamf-nation/articles/135/title
All was correct and it did not solve the issue.
Only after I removed the line "-Djdk.tls.client.protocols="TLSv1,TLSv1.1,TLSv1.2" and rebooted our whole JSS environment it started working again.
Please be carefull by performing the provided solution as it did our JSS environment not good.
If people have a other solutions on how to perform this, I would be glad to hear it.
Because our DEP does not sync at the moment en we need to enroll our Devices manual.
We use Server 2016 for our JSS, and the version is 10.17
Posted on 12-11-2019 07:44 AM
@amityaccounts if you mean you're jss is on a mac os server setup, look in the Tomcat directory.
You may have some luck within terminal finding it, try using the following command
sudo mdfind -name setenv.sh
if that doesnt work, try
sudo find / -name setenv.sh
it will bring that file up located in the backups as well, but ultimately you will find the direct path if you don't know where to look.
Posted on 12-11-2019 07:44 AM
+1 only needed to add TLSv1.2 to the Java Options in the Tomcat Properties, restarted and everything seems fine.
Thank you!
Posted on 12-11-2019 09:08 AM
@Hugonaut thanks for the info, but neither command brings up any results
Posted on 12-11-2019 12:28 PM
Any luck with this issue for those of us with JAMF residing on a MAC server? I've tried several variations of this fix and now can't start my Tomcat at all... :-(
Posted on 12-11-2019 12:38 PM
Is this the com.jamfsoftware.tomcat.plist?
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Disabled</key>
<false/>
<key>Label</key>
<string>com.jamfsoftware.tomcat</string>
<key>OnDemand</key>
<false/>
<key>ProgramArguments</key>
<array>
<string>/Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home/bin/java</string>
<string>-Xms256m</string>
<string>-Xmx49152m</string>
<string>-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager</string>
<string>-Djava.util.logging.config.file=/Library/JSS/Tomcat/conf/logging.properties</string>
<string>-Djava.awt.headless=true</string>
<string>-classpath</string>
<string>/Library/JSS/Tomcat/bin/bootstrap.jar:/Library/JSS/Tomcat/bin/tomcat-juli.jar</string>
<string>-Dcatalina.base=/Library/JSS/Tomcat</string>
<string>-Dcatalina.home=/Library/JSS/Tomcat</string>
<string>-Djava.io.tmpdir=/Library/JSS/Tomcat/temp</string>
<string>org.apache.catalina.startup.Bootstrap</string>
<string>start</string>
</array>
<key>ServiceIPC</key>
<false/>
<key>UserName</key>
<string>_appserver</string>
</dict>
</plist>
Gabe Shackney
Princeton Public School
Posted on 12-11-2019 12:44 PM
on macOS try your jss/tomcat/bin folder for the setenv.sh file. That is where I found it on Ubuntu. on Ubuntu, you want to make sure to add the -Djdk.tls.client.protocols="TLSv1.1,TLSv1.2" to the JAVA_OPTS. I was able to upload my new token at that point but DEP is still not syncing. I'm running Jamf Pro 10.16.1
Posted on 12-11-2019 12:48 PM
Editing the above plist worked for me using this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Disabled</key>
<false/>
<key>Label</key>
<string>com.jamfsoftware.tomcat</string>
<key>OnDemand</key>
<false/>
<key>ProgramArguments</key>
<array>
<string>/Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home/bin/java</string>
<string>-Xms256m</string>
<string>-Xmx49152m</string>
<string>-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager</string>
<string>-Djava.util.logging.config.file=/Library/JSS/Tomcat/conf/logging.properties</string>
<string>-Djava.awt.headless=true</string>
<string>-Djdk.tls.client.protocols="TLSv1,TLSv1.1,TLSv1.2"</string>
<string>-classpath</string>
<string>/Library/JSS/Tomcat/bin/bootstrap.jar:/Library/JSS/Tomcat/bin/tomcat-juli.jar</string>
<string>-Dcatalina.base=/Library/JSS/Tomcat</string>
<string>-Dcatalina.home=/Library/JSS/Tomcat</string>
<string>-Djava.io.tmpdir=/Library/JSS/Tomcat/temp</string>
<string>org.apache.catalina.startup.Bootstrap</string>
<string>start</string>
</array>
<key>ServiceIPC</key>
<false/>
<key>UserName</key>
<string>_appserver</string>
</dict>
</plist>
Basically putting the TLS line after the headless line (make sure you dont leave a space) and it came back and synced right away
Gabe Shackney
Princeton Public Schools
Posted on 12-11-2019 01:39 PM
not that this helps : https://www.apple.com/support/systemstatus/ since i checked earlier and nothing was up, now ASM shows resolved issue from only 3:05 to 3:30 - super cheeky, somethings up.
Posted on 12-11-2019 11:06 PM
We had the same problem: Sync Problems since 3 days.
We tried everything described above (we use RHEL 7 and JDK 11.0.5) but nothing helped.
Only after we renewed the Server token file (which was due in 22 days) the syncing works again.
Posted on 12-12-2019 05:21 AM
@gshackney THANK YOU!!! That worked perfectly. I had to recreate our plist, somehow it got a bit garbled [located /Library/LaunchDaemons/com.jamfsoftware.tomcat.plist], after that, a reboot of the server, and a refresh of the key and token between JAMF and Apple, everything is back to normal.
Thank you all in assisting in patching this issue!!
Posted on 12-12-2019 07:26 AM
@m.donovan Thanks!
I have added the TLS 1.2. only as well as my previous post was a disaster.
After a while the JSS was reachable again and the sync was pretty instant.
I recommend to do this if you are on Windows Server and has this issue as well.
Posted on 12-12-2019 07:40 AM
Posted on 12-12-2019 08:18 AM
+another1 for @hfike - adding export JAVA_OPTS="$JAVA_OPTS -Xmx1024M -Djava.awt.headless=true -Djdk.tls.client.protocols="TLSv1.2"" to /usr/local/jss/tomcat/bin/setenv.sh on all JSS's and restarting tomcat fixed it for us too (we trimmed out the TLS 1 and 1.1 bits as they don't appear to be needed?)
Posted on 12-12-2019 08:51 AM
Confirmed - this worked for me in Windows too. Syncing is back up.