[Bug]: New uploaded photos not shown on map until photo cache is cleared
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 598
- Forks
- 113
- PR merge metrics
- No merged PRs in 30d
Description
⚠️ This issue respects the following points: ⚠️
- This is a bug, not a question or a configuration/webserver/proxy issue.
- This issue is not already reported on Github (I've searched it).
- Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- Maps app is up to date. See Maintenance and Release Schedule for supported versions.
- I agree to follow Nextcloud's Code of Conduct.
Bug description
If I upload a new photo I see shortly the toast, that on photo was added by a background job, but the new photo does not show up on the map even after 30 minutes.
If I clear the photo cache, the photo shows up on the map shortly after that.
Steps to reproduce
- upload photo
- wait 30 minutes
- photo not shown on map
- clear photo cache
- wait one minute
- photo shows up on map
Expected behavior
New uploaded photo show up on map directly (at least within the next cron run) without manuell photo cache clear.
Installation method
Web installer on a VPS or web space
Operating system
Debian/Ubuntu
PHP engine version
Other
Web server
Nginx
Database engine version
MariaDB
Is this bug present after an update or on a fresh install of the server?
Updated to a major version (ex. 22.2.3 to 23.0.1)
Is this bug present after an update or on a fresh install of the app?
Updated from a minor version
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
- Default user-backend (database)
- LDAP/ Active Directory
- SSO - SAML
- Other
Configuration report
{
"system": {
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"***REMOVED SENSITIVE VALUE***"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "27.0.0.8",
"overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"memcache.local": "\\OC\\Memcache\\APCu",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_smtpmode": "smtp",
"mail_sendmailmode": "smtp",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "25",
"default_phone_region": "DE",
"maintenance": false,
"theme": "",
"loglevel": 2,
"app_install_overwrite": [
"maps"
],
"updater.secret": "***REMOVED SENSITIVE VALUE***"
}
}
List of activated Apps
Enabled:
- cloud_federation_api: 1.10.0
- dav: 1.27.0
- federatedfilesharing: 1.17.0
- files: 1.22.0
- files_rightclick: 1.6.0
- files_sharing: 1.19.0
- files_trashbin: 1.17.0
- files_versions: 1.20.0
- lookup_server_connector: 1.15.0
- maps: 1.1.0
- metadata: 0.19.0
- oauth2: 1.15.0
- password_policy: 1.17.0
- privacy: 1.11.0
- provisioning_api: 1.17.0
- settings: 1.9.0
- theming: 2.2.0
- theming_customcss: 1.14.0
- twofactor_backupcodes: 1.16.0
- unroundedcorners: 1.0.9
- updatenotification: 1.17.0
- viewer: 2.1.0
- workflowengine: 2.9.0
Disabled:
- activity: 2.19.0 (installed 2.17.0)
- admin_audit: 1.17.0
- bruteforcesettings: 2.7.0
- circles: 27.0.0 (installed 25.0.0)
- comments: 1.17.0 (installed 1.15.0)
- contactsinteraction: 1.8.0 (installed 1.6.0)
- dashboard: 7.7.0 (installed 7.5.0)
- encryption: 2.15.0
- federation: 1.17.0 (installed 1.15.0)
- files_external: 1.19.0
- files_pdfviewer: 2.8.0 (installed 2.6.0)
- firstrunwizard: 2.16.0 (installed 2.14.0)
- logreader: 2.12.0 (installed 2.10.0)
- nextcloud_announcements: 1.16.0 (installed 1.14.0)
- notifications: 2.15.0 (installed 2.13.1)
- photos: 2.3.0 (installed 2.0.1)
- recommendations: 1.6.0 (installed 1.4.0)
- related_resources: 1.2.0 (installed 1.0.3)
- serverinfo: 1.17.0 (installed 1.15.0)
- sharebymail: 1.17.0 (installed 1.15.0)
- support: 1.10.0 (installed 1.8.0)
- survey_client: 1.15.0 (installed 1.13.0)
- suspicious_login: 5.0.0
- systemtags: 1.17.0 (installed 1.15.0)
- text: 3.8.0 (installed 3.6.0)
- twofactor_totp: 9.0.0
- user_ldap: 1.17.0
- user_status: 1.7.0 (installed 1.5.0)
- weather_status: 1.7.0 (installed 1.5.0)
Nextcloud Signing status
No response
Nextcloud Logs
No response
Browser Console
No response
Additional info
Debian Bookworm, PHP 8.2, NC 27, Maps 1.1.0
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the upload, cron-wait, and photo-cache-clearing sequence described in the issue. Trace the Maps background job that handles newly uploaded photos and compare it with the cache-clearing path; the work is done when new photos appear on the map after the next cron run without manual cache clearing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 32/100