Snapshot isn't saving to Google Drive. Error.

Thank you for your help!

I am receiving the following error when sending my Snapshots to Google Drive.

I believe it's an error with my directory. I have Google authorized, the right APIs enabled, the correct information added from Google to the Snapshot plugin and vice-versa.

Does my Google Drive folder have to live in the root (main) of Google Drive? Or can it live within another folder?

I have tried doing this in every way possible:

I tried changing the Directory ID in the settings page but was unable to do so. It keeps defaulting to my original input. For a workaround, I added a second Directory ID. That didn't work. I added the correct directory at the bottom of the Add Snapshot page. That still didn't work. I completely deleted the Destination and redid it with the correct directory. I have attached screenshots and the latest log.

Please advise.

- Vijay Amarshi

  • Vinod Dalvi

    Hi Vijay,

    Welcome to the WPMU Dev community and thank you for your question.

    Could you please tell me what error you are getting so that i can troubleshoot it?

    I think the Google Drive folder have to live in the root (main) of Google Drive.

    When setting up your destination at Google Drive, you may want to double-check under APIs & Auth > Consent Screen that Email Address & Product Name are filled in, otherwise you may get an error.

    Can you please make sure that in your Google Developer Console, both Drive API and Drive SDK enable?, the main reason for this issue is Google Drive Reject the request from your site.

    Kind Regards,
    Vinod Dalvi

  • Vijay

    1. Both of the API's are enabled. (screenshot attached)
    2. However, do any additional settings from the Drive SDK Settings page need to be configured? I noticed that they have some required fields? (screenshots attached)
    3. Information on Consent Screen is filled out. (screenshot attached.
    4. snapshots folder is in my root folder. I noticed that the sample that was given for the Directory ID doesn't include a dash after the first 2 letters, but my Directory ID does. Should I remove this?

  • Vaughan

    Hi @vijay,

    No.

    That message is server-related and means that your host has disabled curl. In order to eliminate this error message you need to do ONE of the following things:

    - Remove the curl_exec string from the disable_functions line in your php.ini file.

    - Ask your hosting provider to remove the string above if you don't have an access to the php.ini file.

    - Change to a hosting provider which allows the running of the curl_exec function. :slight_smile:

    Hope this helps

  • Vijay

    For some reason, this log file is showing up as a denied extension.

    Trying it one more time. If you can't view the entire log, I have pasted it below.

    2014-08-08 23:02:53: backupZipFolder[]
    2014-08-08 23:02:53: rename: backupZipFile[/var/www/vhosts/pcyne.com/httpdocs/wp-content/uploads/snapshots/_backup/1407538932/snapshot-backup.zip] backupZipFileFinal[/var/www/vhosts/pcyne.com/httpdocs/wp-content/uploads/snapshots/snapshot-1407538932-140808-230212-083e81cc.zip]
    2014-08-08 23:02:53: finish: snapshot-1407538932-140808-230212-083e81cc.zip
    2014-08-08 23:04:17: Sending Archive: snapshot-1407538932-140808-230212-083e81cc.zip 22.49M
    2014-08-08 23:04:17: Destination: google-drive: pcyne drive
    2014-08-08 23:04:17: Connecting to Google Drive
    2014-08-08 23:04:17: Sending file to directory: 0BwvQWtO57IWWDFpQ01DcDVsNWs
    2014-08-08 23:04:17: ERROR: Error: Could not send file
    exception 'Google_Exception' with message 'Failed to start the resumable upload' in /var/www/vhosts/pcyne.com/httpdocs/wp-content/plugins/snapshot/lib/destinations/google-drive/Google/Http/MediaFileUpload.php:291

    Stack trace:

    #0 /var/www/vhosts/pcyne.com/httpdocs/wp-content/plugins/snapshot/lib/destinations/google-drive/Google/Http/MediaFileUpload.php(139): Google_Http_MediaFileUpload->getResumeUri()

    #1 /var/www/vhosts/pcyne.com/httpdocs/wp-content/plugins/snapshot/lib/destinations/google-drive/index.php(325): Google_Http_MediaFileUpload->nextChunk('PK????????O??E{...')

    #2 /var/www/vhosts/pcyne.com/httpdocs/wp-content/plugins/snapshot/lib/destinations/google-drive/index.php(270): SnapshotDestinationGoogleDrive->send_file('/var/www/vhosts...')

    #3 /var/www/vhosts/pcyne.com/httpdocs/wp-content/plugins/snapshot/snapshot.php(6532): SnapshotDestinationGoogleDrive->sendfile_to_remote(Array, '/var/www/vhosts...')

    #4 /var/www/vhosts/pcyne.com/httpdocs/wp-content/plugins/snapshot/snapshot.php(6418): WPMUDEVSnapshot->process_item_send_archive(Array, Array, Object(SnapshotLocker))

    #5 /var/www/vhosts/pcyne.com/httpdocs/wp-content/plugins/snapshot/snapshot.php(6726): WPMUDEVSnapshot->process_item_remote_files(1407538932)

    #6 [internal function]: WPMUDEVSnapshot->snapshot_remote_file_cron_proc()

    #7 /var/www/vhosts/pcyne.com/httpdocs/wp-includes/plugin.php(546): call_user_func_array(Array, Array)

    #8 /var/www/vhosts/pcyne.com/httpdocs/wp-cron.php(100): do_action_ref_array('snapshot_remote...', Array)

    #9 {main}
    :Failed to start the resumable upload
    2014-08-08 23:10:07: Sending Archive: snapshot-1407538932-140808-230212-083e81cc.zip 22.49M
    2014-08-08 23:10:07: Destination: google-drive: pcyne drive
    2014-08-08 23:10:07: Connecting to Google Drive
    2014-08-08 23:10:07: Sending file to directory: 0BwvQWtO57IWWDFpQ01DcDVsNWs
    2014-08-08 23:10:07: ERROR: Error: Could not send file
    exception 'Google_Exception' with message 'Failed to start the resumable upload' in /var/www/vhosts/pcyne.com/httpdocs/wp-content/plugins/snapshot/lib/destinations/google-drive/Google/Http/MediaFileUpload.php:291

    Stack trace:

    #0 /var/www/vhosts/pcyne.com/httpdocs/wp-content/plugins/snapshot/lib/destinations/google-drive/Google/Http/MediaFileUpload.php(139): Google_Http_MediaFileUpload->getResumeUri()

    #1 /var/www/vhosts/pcyne.com/httpdocs/wp-content/plugins/snapshot/lib/destinations/google-drive/index.php(325): Google_Http_MediaFileUpload->nextChunk('PK????????O??E{...')

    #2 /var/www/vhosts/pcyne.com/httpdocs/wp-content/plugins/snapshot/lib/destinations/google-drive/index.php(270): SnapshotDestinationGoogleDrive->send_file('/var/www/vhosts...')

    #3 /var/www/vhosts/pcyne.com/httpdocs/wp-content/plugins/snapshot/snapshot.php(6532): SnapshotDestinationGoogleDrive->sendfile_to_remote(Array, '/var/www/vhosts...')

    #4 /var/www/vhosts/pcyne.com/httpdocs/wp-content/plugins/snapshot/snapshot.php(6418): WPMUDEVSnapshot->process_item_send_archive(Array, Array, Object(SnapshotLocker))

    #5 /var/www/vhosts/pcyne.com/httpdocs/wp-content/plugins/snapshot/snapshot.php(6726): WPMUDEVSnapshot->process_item_remote_files(1407538932)

    #6 [internal function]: WPMUDEVSnapshot->snapshot_remote_file_cron_proc()

    #7 /var/www/vhosts/pcyne.com/httpdocs/wp-includes/plugin.php(546): call_user_func_array(Array, Array)

    #8 /var/www/vhosts/pcyne.com/httpdocs/wp-cron.php(100): do_action_ref_array('snapshot_remote...', Array)

    #9 {main}
    :Failed to start the resumable upload
    2014-08-08 23:15:08: Sending Archive: snapshot-1407538932-140808-230212-083e81cc.zip 22.49M
    2014-08-08 23:15:08: Destination: google-drive: pcyne drive
    2014-08-08 23:15:08: Connecting to Google Drive
    2014-08-08 23:15:08: Sending file to directory: 0BwvQWtO57IWWDFpQ01DcDVsNWs
    2014-08-08 23:15:08: ERROR: Error: Could not send file
    exception 'Google_Exception' with message 'Failed to start the resumable upload' in /var/www/vhosts/pcyne.com/httpdocs/wp-content/plugins/snapshot/lib/destinations/google-drive/Google/Http/MediaFileUpload.php:291

    Stack trace:

    #0 /var/www/vhosts/pcyne.com/httpdocs/wp-content/plugins/snapshot/lib/destinations/google-drive/Google/Http/MediaFileUpload.php(139): Google_Http_MediaFileUpload->getResumeUri()

    #1 /var/www/vhosts/pcyne.com/httpdocs/wp-content/plugins/snapshot/lib/destinations/google-drive/index.php(325): Google_Http_MediaFileUpload->nextChunk('PK????????O??E{...')

    #2 /var/www/vhosts/pcyne.com/httpdocs/wp-content/plugins/snapshot/lib/destinations/google-drive/index.php(270): SnapshotDestinationGoogleDrive->send_file('/var/www/vhosts...')

    #3 /var/www/vhosts/pcyne.com/httpdocs/wp-content/plugins/snapshot/snapshot.php(6532): SnapshotDestinationGoogleDrive->sendfile_to_remote(Array, '/var/www/vhosts...')

    #4 /var/www/vhosts/pcyne.com/httpdocs/wp-content/plugins/snapshot/snapshot.php(6418): WPMUDEVSnapshot->process_item_send_archive(Array, Array, Object(SnapshotLocker))

    #5 /var/www/vhosts/pcyne.com/httpdocs/wp-content/plugins/snapshot/snapshot.php(6726): WPMUDEVSnapshot->process_item_remote_files(1407538932)

    #6 [internal function]: WPMUDEVSnapshot->snapshot_remote_file_cron_proc()

    #7 /var/www/vhosts/pcyne.com/httpdocs/wp-includes/plugin.php(546): call_user_func_array(Array, Array)

    #8 /var/www/vhosts/pcyne.com/httpdocs/wp-cron.php(100): do_action_ref_array('snapshot_remote...', Array)

    #9 {main}
    :Failed to start the resumable upload
    2014-08-08 23:19:56: Sending Archive: snapshot-1407538932-140808-230212-083e81cc.zip 22.49M
    2014-08-08 23:19:56: Destination: google-drive: pcyne drive
    2014-08-08 23:19:56: Connecting to Google Drive
    2014-08-08 23:19:56: Sending file to directory: 0BwvQWtO57IWWDFpQ01DcDVsNWs
    2014-08-08 23:19:56: ERROR: Error: Could not send file
    exception 'Google_Exception' with message 'Failed to start the resumable upload' in /var/www/vhosts/pcyne.com/httpdocs/wp-content/plugins/snapshot/lib/destinations/google-drive/Google/Http/MediaFileUpload.php:291

    Stack trace:

    #0 /var/www/vhosts/pcyne.com/httpdocs/wp-content/plugins/snapshot/lib/destinations/google-drive/Google/Http/MediaFileUpload.php(139): Google_Http_MediaFileUpload->getResumeUri()

    #1 /var/www/vhosts/pcyne.com/httpdocs/wp-content/plugins/snapshot/lib/destinations/google-drive/index.php(325): Google_Http_MediaFileUpload->nextChunk('PK????????O??E{...')

    #2 /var/www/vhosts/pcyne.com/httpdocs/wp-content/plugins/snapshot/lib/destinations/google-drive/index.php(270): SnapshotDestinationGoogleDrive->send_file('/var/www/vhosts...')

    #3 /var/www/vhosts/pcyne.com/httpdocs/wp-content/plugins/snapshot/snapshot.php(6532): SnapshotDestinationGoogleDrive->sendfile_to_remote(Array, '/var/www/vhosts...')

    #4 /var/www/vhosts/pcyne.com/httpdocs/wp-content/plugins/snapshot/snapshot.php(6418): WPMUDEVSnapshot->process_item_send_archive(Array, Array, Object(SnapshotLocker))

    #5 /var/www/vhosts/pcyne.com/httpdocs/wp-content/plugins/snapshot/snapshot.php(6726): WPMUDEVSnapshot->process_item_remote_files(1407538932)

    #6 [internal function]: WPMUDEVSnapshot->snapshot_remote_file_cron_proc()

    #7 /var/www/vhosts/pcyne.com/httpdocs/wp-includes/plugin.php(546): call_user_func_array(Array, Array)

    #8 /var/www/vhosts/pcyne.com/httpdocs/wp-cron.php(100): do_action_ref_array('snapshot_remote...', Array)

    #9 {main}
    :Failed to start the resumable upload

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.