nextcloud / nextcloud/integration_google

Error during google drive integration import

Open
#349 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
142
Forks
40
PR merge metrics
No merged PRs in 30d

Description

Which version of integration_google are you using?

4.3.0

Which version of Nextcloud are you using?

32.0.5

Which browser are you using? In case you are using the phone App, specify the Android or iOS version and device please.

brave / firefox / chrome...

Describe the Bug

I’m new to Nextcloud, and try to migrate my entire Google workspace (about 10Gb, no more)

Nextcloud 32.0.5 personal self-hosted instance,
using docker Nextcloud official image, with redis cache,
behind the nginx proxy manager
Using Google Migration tool 4.3.0

The cron repeatedly show this error:

[PHP] Avertissement: Undefined variable $rootSharedWithMeImportFolder
at /var/www/html/custom_apps/integration_google/lib/Service/GoogleDriveAPIService.php#345
de ? par admin à 2 mars 2026, 22:51:34

it seems to be the lastest version is [4.3.0] - 2025-10-29 according to changelog.md (main branch)

But GoogleDriveAPIService.php#345 does not seems relevant, not sure if I should check about that ?

How can I disable some “rootSharedWithMeImportFolder” so that import finaly successfully ends up?

Moreover, it seems like I’ve not enough memory to achieve the drive migration, as I also have this error:
[core] Avertissement: Request used more than 300 MB of RAM: 370.9 MB
de ? par admin à 2 mars 2026, 23:53:40

The cron every 10 minutes try again and I have plenty of these 2 errors.
(i previously posted at nextcloud forum )

Expected Behavior

The cron task should download the Google workspace once the cron started...

To Reproduce

Not sure if this is related to some other Google workspace that are shared with me...

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with lib/Service/GoogleDriveAPIService.php around line 345 and the cron path that imports Google Workspace data. Compare the behavior with changelog.md for version 4.3.0, then reproduce using the reported shared-with-me scenario and memory warning. Done means the cron import completes without the undefined-variable or repeated memory warnings.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, php
Domain
backend, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.