Skip to main content

Knowledge Document: utcnow() error when running backup

  • November 17, 2025
  • 0 replies
  • 1 view

coest_opentext_com
Forum|alt.badge.img

Environment

Vertica 25.x


Situation

When running the Vertica backup script vbr.py you see a warning


/opt/vertica/bin/vbr:6690: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. 
Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
return datetime.datetime.utcnow().strftime('%Y%m%d_%H%M%S')

 

This is an informational message only and does not impact the backup itself.

Find resolution on support portal