Cron job runs but Google Calendar events don’t sync on VestaCP
Posted: Thu Feb 26, 2026 1:53 am
Hi,
I set up a small script on my VestaCP server for sync google calendars events to a local .ics file for a client site. The cron job runs every 15 minutes and Vesta shows it as completed, no errors in the panel. I expected the events to update automatically but the calendar stays stuck on old data. What’s odd is that it worked fine when I triggered the script manually via SSH. The only change was moving it under the Vesta cron with the same user. Server is on AlmaLinux with a fresh install, nothing fancy. I’m not an expert with cron environments so maybe I missed something obvious. Has anyone seen Google API or the way Vesta handle the script for sync google calendars behave differently under cron?
I set up a small script on my VestaCP server for sync google calendars events to a local .ics file for a client site. The cron job runs every 15 minutes and Vesta shows it as completed, no errors in the panel. I expected the events to update automatically but the calendar stays stuck on old data. What’s odd is that it worked fine when I triggered the script manually via SSH. The only change was moving it under the Vesta cron with the same user. Server is on AlmaLinux with a fresh install, nothing fancy. I’m not an expert with cron environments so maybe I missed something obvious. Has anyone seen Google API or the way Vesta handle the script for sync google calendars behave differently under cron?