Fixing RequestTimeTooSkewed in Document Engine

Information

PSPDFKit Server has been deprecated and replaced by Document Engine. To migrate to Document Engine and unlock advanced document processing capabilities, refer to our migration guide. Learn more about these enhancements on our blog.

If you use an S3 asset storage backend and see the following error message in the server logs, it means there’s an issue with the system clock being skewed:

<Error><Code>RequestTimeTooSkewed</Code>
<Message>The difference between the request time and the current time is too large.</Message>

AWS S3 will report an error when a time included in the request isn’t close enough to the time that AWS considers to be “current,” which means that the system clock needs to be synchronized. This can be fixed via specific commands. NTP Pool is a reliable public NTP service you can use to do this.