Problem Statement
The Issue
Your Google Calendar integration isn't working. This could be:
- Can't connect your Google account
- OAuth connection fails
- Events not syncing
- Sync stopped working
- Webhook errors
- Permission denied errors
Common Scenarios
Scenario 1: Connection Issues
- Clicking "Connect Google Calendar" doesn't work
- OAuth redirect fails
- Getting "OAuth not configured" error
- Connection process hangs or times out
Scenario 2: Sync Problems
- Events not appearing in Piraja CRM
- Changes in Google Calendar not reflected
- Changes in Piraja CRM not syncing to Google
- Sync was working but stopped
Scenario 3: Permission Errors
- "Access denied" errors
- "Permission required" messages
- Can't create or edit events
- Can't access calendar
Quick Diagnosis Checklist
Step 1: Check Calendar Module
The Google Calendar integration requires the Calendar module to be enabled:
- Go to Business Settings → Modules
- Verify Calendar module is enabled
- If not enabled, enable it first
- Then try connecting Google Calendar again
Step 2: Check OAuth Connection
- Go to Modules → Google Calendar Configuration
- Check if you see "Connected" or "Not Connected"
- If "Not Connected", try connecting again
- If connection fails, see OAuth troubleshooting below
Step 3: Check Sync Status
- Go to Modules → Google Calendar Configuration
- Look for "Last Sync" information
- Check if sync is enabled
- Verify sync direction (two-way, one-way, etc.)
Step 4: Check Selected Calendars
- Go to Modules → Google Calendar Configuration
- Verify which calendars are selected for sync
- Ensure the calendars you want are selected
- Check if calendars are accessible
OAuth Connection Issues
Problem: Can't Connect Google Account
Symptoms:
- Clicking "Connect Google Calendar" doesn't redirect
- OAuth page shows error
- Getting "OAuth not configured" message
- Connection process hangs
Solution 1: Verify Calendar Module is Enabled
The Google Calendar integration requires the Calendar module:
- Go to Business Settings → Modules
- Find Calendar module
- Ensure it's enabled
- If disabled, enable it
- Try connecting Google Calendar again
Solution 2: Check OAuth Configuration
If you see "OAuth not configured" error:
This means the integration isn't set up on the server side. Contact your business administrator or support.
For Business Administrators:
- Verify Google OAuth credentials are configured
- Check environment variables are set
- Contact support if credentials are missing
Solution 3: Clear Browser Cache and Cookies
If OAuth redirect isn't working:
- Clear browser cache
- Clear cookies for Google and your app
- Try in an incognito/private window
- Try a different browser
- Try connecting again
Solution 4: Check Redirect URI
If OAuth redirect fails:
- Verify you're using the correct URL
- Check that redirect URI matches configuration
- Ensure you're not behind a proxy that blocks redirects
- Try from a different network
Solution 5: Re-authenticate
If connection was working but stopped:
- Go to Modules → Google Calendar Configuration
- Click "Disconnect"
- Wait a few seconds
- Click "Connect Google Calendar" again
- Complete OAuth flow
Solution 6: Check Google Account Permissions
If Google shows permission errors:
- Go to Google Account Permissions
- Find Piraja CRM in the list
- Remove it if present
- Try connecting again
- Grant all requested permissions
Sync Problems
Problem: Events Not Syncing
Symptoms:
- Events created in Google Calendar don't appear in Piraja CRM
- Events created in Piraja CRM don't appear in Google Calendar
- Changes in one system don't reflect in the other
- Sync was working but stopped
Solution 1: Check Sync is Enabled
- Go to Modules → Google Calendar Configuration
- Verify "Sync Enabled" is toggled ON
- If OFF, toggle it ON
- Wait a few minutes for sync to run
Solution 2: Check Selected Calendars
If events from specific calendars aren't syncing:
- Go to Modules → Google Calendar Configuration
- Check which calendars are selected
- Ensure the calendars you want are selected
- Deselect and reselect calendars if needed
- Save changes
Solution 3: Manual Sync
To force an immediate sync:
- Go to Modules → Google Calendar Configuration
- Look for "Sync Now" or "Manual Sync" button
- Click it to trigger immediate sync
- Wait a few seconds
- Check if events appear
Solution 4: Check Sync Frequency
If sync is too slow:
- Go to Modules → Google Calendar Configuration
- Check sync frequency setting
- Increase frequency if needed (minimum is usually 15 minutes)
- Save changes
Solution 5: Check Sync Direction
If sync only works one way:
- Go to Modules → Google Calendar Configuration
- Check sync direction setting
- Ensure it's set to "Two-Way" if you want bidirectional sync
- Save changes
Solution 6: Reconnect Integration
If sync completely stopped:
- Go to Modules → Google Calendar Configuration
- Click "Disconnect"
- Wait a few seconds
- Click "Connect Google Calendar" again
- Re-select calendars
- Enable sync
- Wait for initial sync to complete
Webhook Configuration
Problem: Real-Time Updates Not Working
Symptoms:
- Changes take a long time to sync
- Real-time updates not working
- Webhook errors in logs
Understanding Webhooks
Webhooks allow Google Calendar to notify Piraja CRM immediately when events change, enabling real-time synchronization.
Solution 1: Verify Webhook is Set Up
Webhooks are automatically configured when you connect:
- Check if integration shows "Connected"
- If connected, webhooks should be active
- If not working, try reconnecting
Solution 2: Check Webhook Endpoint
If webhook errors appear:
- Verify webhook endpoint is accessible
- Check HTTPS is configured correctly
- Ensure firewall isn't blocking webhook requests
- Contact support if webhook endpoint is down
Solution 3: Re-register Webhook
If webhooks stopped working:
- Disconnect Google Calendar integration
- Wait a few minutes
- Reconnect Google Calendar
- Webhooks will be re-registered automatically
Solution 4: Check Webhook Logs
For Business Administrators:
- Check server logs for webhook errors
- Look for "webhook" or "google-calendar" in logs
- Verify webhook requests are being received
- Check for authentication errors
Permission Errors
Problem: Access Denied or Permission Errors
Symptoms:
- "Access denied" errors
- "Permission required" messages
- Can't create events
- Can't edit events
- Can't access calendar
Solution 1: Re-authenticate with Correct Permissions
If permissions were denied or revoked:
- Go to Modules → Google Calendar Configuration
- Click "Disconnect"
- Wait a few seconds
- Click "Connect Google Calendar" again
- Important: Grant all requested permissions
- Don't skip any permission requests
Solution 2: Check Google Account Permissions
If Google shows permission errors:
- Go to Google Account Permissions
- Find Piraja CRM in the list
- Check if permissions are granted
- If not, remove and reconnect
- Grant all permissions when reconnecting
Solution 3: Verify Calendar Access
If you can't access specific calendars:
- Check if you have access to the calendar in Google Calendar
- Verify calendar sharing settings in Google
- Ensure calendar is not private or restricted
- Try selecting a different calendar
Solution 4: Check Business Admin Settings
If you're not a business admin:
- Contact your business administrator
- Ask them to verify integration settings
- Ensure integration is enabled for your business
- Check if there are any restrictions
Common Causes
Why Integration Issues Happen
1. Calendar Module Not Enabled
- Google Calendar requires Calendar module
- Solution: Enable Calendar module first
2. OAuth Configuration Missing
- Server-side OAuth not configured
- Solution: Contact business admin or support
3. Token Expired
- OAuth token expired and not refreshed
- Solution: Reconnect integration
4. Permissions Revoked
- User revoked permissions in Google
- Solution: Reconnect and grant permissions
5. Sync Disabled
- Sync was manually disabled
- Solution: Enable sync in configuration
6. Wrong Calendars Selected
- Calendars not selected for sync
- Solution: Select correct calendars
7. Network Issues
- Firewall blocking webhook requests
- Solution: Check network configuration
8. Google API Limits
- Hit Google API rate limits
- Solution: Wait and try again later
9. Browser Cache
- Old cached data causing issues
- Solution: Clear cache and refresh
10. Multiple Integrations
- Conflicting integrations
- Solution: Check for duplicate connections
Prevention Tips
How to Avoid Integration Issues
1. Keep Integration Connected
- Don't disconnect unless necessary
- Reconnect if connection is lost
- Check connection status regularly
2. Grant All Permissions
- Always grant all requested permissions
- Don't skip permission requests
- Review permissions periodically
3. Monitor Sync Status
- Check sync status regularly
- Monitor for sync errors
- Address issues promptly
4. Select Correct Calendars
- Only select calendars you need
- Verify calendar access
- Update selections as needed
5. Keep Calendar Module Enabled
- Don't disable Calendar module
- Check dependencies before disabling
- Re-enable if accidentally disabled
6. Regular Testing
- Test sync periodically
- Create test events to verify sync
- Check both directions of sync
7. Stay Updated
- Keep app updated
- Check for integration updates
- Review release notes
Still Not Working?
When to Contact Support
If you've tried all solutions and the integration still isn't working:
1. Gather Information Before contacting support:
- Integration status (Connected/Not Connected)
- Error messages (exact text)
- When the issue started
- Steps you've already tried
- Screenshots of errors
2. Contact Support
- Email: support@piraja.com (or your support email)
- In-App: Use the help icon (?) in the interface
- Knowledge Base: Search for related articles
3. What Support Will Need
- Your account email
- Business name
- Integration type (Google Calendar)
- Error messages
- Steps you've tried
- Screenshots (if possible)
Related Articles
Additional Resources
- Calendar Module Guide: Complete guide to calendar features
- Integration Help: General integration troubleshooting
- Google Calendar API: Official Google Calendar API documentation