Skip to content

Cron Job for Nextcloud stops functioning when enabling maps #291

@4onUser

Description

@4onUser

The recent addition of using an automated background job for scanning things for map locations seems to be the source of my cron job for Nextcloud failing to function any longer. Once Maps is disabled, the cron job resumes functionality, enabled it breaks again. This is on a Synology system so I'm not sure whether this is a system issue or a programming issue. I'm also reticent to believe that automating a system wide scan for this is an appropriate action rather than being able to choose what gets scanned and mapped thus I'm not pleased with this addition for multiple reasons.

These error messages occur to help troubleshooting:
[PHP] Error: Undefined property: OCA\Maps\BackgroundJob\UpdatePhotoByFileJob::$root at /volume1/web/nextcloud/apps/maps/lib/BackgroundJob/UpdatePhotoByFileJob.php#43

[cron] Error: Error: Call to a member function getUserFolder() on null at <>

  1. /volume1/web/nextcloud/lib/public/BackgroundJob/Job.php line 77
    OCA\Maps\BackgroundJob\UpdatePhotoByFileJob->run({fileId: 617147,userId: ""})
  2. /volume1/web/nextcloud/lib/public/BackgroundJob/QueuedJob.php line 46
    OCP\BackgroundJob\Job->execute(OC\BackgroundJob\JobList {}, OC\Log {})
  3. /volume1/web/nextcloud/cron.php line 124
    OCP\BackgroundJob\QueuedJob->execute(OC\BackgroundJob\JobList {}, OC\Log {})
    at 2020-02-10T16:30:01+00:00

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions