maps icon indicating copy to clipboard operation
maps copied to clipboard

[Bug]: Photos don't display on map

Open ChibyX opened this issue 1 year ago • 2 comments

⚠️ This issue respects the following points: ⚠️

Bug description

I added some my photos to Photos folder for testing purposes. But none of them doesn't display on my map. Even after I added .index.map to my folder with photos and started ./occ maps:scan-photos multiple times. All my photos have GPS tag and it displays in Memories app, so problem is on Maps side.

Steps to reproduce

  1. Install Maps from Nextcloud interface
  2. Load geotagged photos to selected folder (note: I moved it from user's root to Pictures folder with default Photos app)
  3. Photos aren't on map

Expected behavior

Photos should appear on map

Installation method

Official Docker image

Operating system

Debian/Ubuntu

PHP engine version

Other

Web server

Apache (supported)

Database engine version

MariaDB

Is this bug present after an update or on a fresh install of the server?

Fresh Nextcloud Server install

Is this bug present after an update or on a fresh install of the app?

Fresh Nextcloud Maps install (never installed before)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

  • [X] Default user-backend (database)
  • [ ] LDAP/ Active Directory
  • [ ] SSO - SAML
  • [ ] Other

Configuration report

{
    "system": {
        "htaccess.RewriteBase": "\/",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "apps_paths": [
            {
                "path": "\/var\/www\/html\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/html\/custom_apps",
                "url": "\/custom_apps",
                "writable": true
            }
        ],
        "upgrade.disable-web": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "raft-server.local:8080",
            "192.168.1.102:8080"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "29.0.4.1",
        "overwrite.cli.url": "http:\/\/raft-server.local:8080",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "memories.exiftool": "\/var\/www\/html\/custom_apps\/memories\/bin-ext\/exiftool-amd64-glibc",
        "memories.vod.path": "\/var\/www\/html\/custom_apps\/memories\/bin-ext\/go-vod-amd64"
    }
}

List of activated Apps

Enabled:
  - activity: 2.21.1
  - calendar: 4.7.14
  - circles: 29.0.0-dev
  - cloud_federation_api: 1.12.0
  - comments: 1.19.0
  - contacts: 6.0.0
  - contactsinteraction: 1.10.0
  - dashboard: 7.9.0
  - dav: 1.30.1
  - epubviewer: 1.6.3
  - federatedfilesharing: 1.19.0
  - federation: 1.19.0
  - files: 2.1.0
  - files_downloadlimit: 2.0.0
  - files_pdfviewer: 2.10.0
  - files_reminders: 1.2.0
  - files_sharing: 1.21.0
  - files_trashbin: 1.19.0
  - files_versions: 1.22.0
  - firstrunwizard: 2.18.0
  - logreader: 2.14.0
  - lookup_server_connector: 1.17.0
  - mail: 3.7.6
  - maps: 1.4.0
  - memories: 7.3.1
  - music: 2.0.0
  - nextcloud_announcements: 1.18.0
  - notes: 4.10.1
  - notifications: 2.17.0
  - oauth2: 1.17.0
  - password_policy: 1.19.0
  - photos: 2.5.0
  - previewgenerator: 5.6.0
  - privacy: 1.13.0
  - provisioning_api: 1.19.0
  - recommendations: 2.1.0
  - related_resources: 1.4.0
  - richdocuments: 8.4.4
  - richdocumentscode: 24.4.502
  - serverinfo: 1.19.0
  - settings: 1.12.0
  - sharebymail: 1.19.0
  - spreed: 19.0.7
  - support: 1.12.0
  - survey_client: 1.17.0
  - systemtags: 1.19.0
  - tables: 0.7.5
  - tasks: 0.16.0
  - text: 3.10.1
  - theming: 2.4.0
  - twofactor_backupcodes: 1.18.0
  - updatenotification: 1.19.1
  - user_status: 1.9.0
  - viewer: 2.3.0
  - weather_status: 1.9.0
  - workflowengine: 2.11.0
Disabled:
  - admin_audit: 1.19.0
  - bruteforcesettings: 2.9.0
  - encryption: 2.17.0
  - files_external: 1.21.0
  - suspicious_login: 7.0.0
  - twofactor_totp: 11.0.0-dev
  - user_ldap: 1.20.0

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

No response

Browser Console

No response

Additional info

PHP 8.2.21

ChibyX avatar Aug 06 '24 15:08 ChibyX

Maybe press 'current location' button on the right corner?

sbr9150 avatar Sep 25 '24 00:09 sbr9150

They do take a long time to appear, by default I managed to force mine to appear more quickly eventually with the workflow of:

php -f occ maps:scan-photos --now

(The above command runs out of memory for me by default so I have to add -d memory_limit=4G)

then using the "Clear photo cache" option in the UI when the above has finished and then hard-fresh the page. The Photos will have a spinner and after "a while" it'll stop and the photos will appear in clusters on the map.

mintsoft avatar Sep 28 '24 08:09 mintsoft

php -d memory_limit=4G -f occ maps:scan-photos --now, "Clear photo cache" and "hard-fresh the page" (Ctrl+F5) doesn't help for me. the map is only showing 27 of 27,820 pics (with gps). SQL-database table oc_maps_photos is showing all pics. truncate oc_maps_photos and start again doesn't help. I found the log entry "message": "Invalid defaultDaemonConfig data provided to provideInitialState by settings"

Sputnikchen avatar Nov 10 '24 13:11 Sputnikchen

When will this simple issue be fixed?

Beer17HWAM avatar Dec 16 '24 17:12 Beer17HWAM

Sorry everyone for my stupidity 🥴. The only thing I was need to fix that is enabling cron for background jobs. Yes, I did it only now because it was my single user instance and AJAX worked well for other tasks.

ChibyX avatar Dec 16 '24 18:12 ChibyX