maps icon indicating copy to clipboard operation
maps copied to clipboard

Photos are not displayed on the map

Open Andy-1970 opened this issue 3 years ago β€’ 9 comments

Hello I know this problem is boomerang through various forums. The problem is probably the differences in the PHP version. There is really no solution to this? I have 57K photos. The Maps application also sees that much, but does not display any. I have the following error in my logs. Sometimes a STR To INT conversion error occurred. Required parameter $end follows optional parameter $categoryList at /var/www/html/custom_apps/maps/lib/Controller/FavoritesController.php#216

Nextcloud HUB II 23.0.0 PHP 8.0.13

Andy-1970 avatar Feb 04 '22 08:02 Andy-1970

Hi @Andy-1970, maps is not PHP 8 ready, yet. Unfortunately, dependency requirements are not set correctly in the app-manifest, thus it doesn't deactivate, if PHP8 is found during an upgrade/ install. ++umgfoin.

umgfoin avatar Feb 04 '22 10:02 umgfoin

I'm using NC v22.2.5 docker version and also do not see photos displayed in the map. And I would expect the images is build with the correct php version.

hajo62 avatar Mar 03 '22 23:03 hajo62

Could you check if v0.2.0-1-nightly solves the Issue. It can be installed by occ app:install maps --allow-unstable or updated occ app:update maps --allow-unstable

tacruc avatar Jun 16 '22 10:06 tacruc

Tried v0.2.1 with NC v24.0.3 as well as NC v24.0.4.

Still not a single image on the map. The wheel turns a while, CPU load goes up to 50% and more and stays above 50% for a minute or more even when the small wheel has stop to turn...

hajo62 avatar Sep 05 '22 08:09 hajo62

Same here. Photos are not visible on Nextcloud running on docker (official docker-compose.yml). Same photos are visible on native installed Nextcloud-instance.

artemanufrij avatar Sep 09 '22 12:09 artemanufrij

I guess something like exiftool is not available on the docker image.

artemanufrij avatar Sep 09 '22 12:09 artemanufrij

It works for me (except for photos in group folders) and I'm using the docker image ( v0.2.1 with NC v24.0.4.)

Superharz avatar Sep 09 '22 13:09 Superharz

Hhm, maybe number of photos? -> I serve around 35 k images

System used to serve the container? -> I run on a Pi4 with 8GB and a 1TB ssd

Checked PHP Version in the container: PHP 8.0.23

hajo62 avatar Sep 09 '22 13:09 hajo62

I have a similar issue here. Hower, I use PHP8.1 on Ubuntu 20.04 LTS.

For me, I do not even get a number count on "my photos" in the maps app. However, my contacts are correctly shown on the map.

Is there any eta when this will be fixed for the versions of PHP 8.0 and 8.1 which are officially supported by Nextcloud?

Same thing here. After I convert my db from mariadb to postgresql14, no photo shows up (Before it works but took 30s to load 60k+ photos on map). I used apache:stable docker image. I tried to reinstall the maps plugin, and drop all the oc_maps_* tables in db and also cleaned oc_migration table. After I reinstalled the maps and run the scan command, I could find all 60k+ photos in the oc_maps_photos db again. But no photo is displayed on the map, neither count of photos. I could see db and apache used a lot of CPU for around 20s but nothing was out in the end. No error in the log file. What can I do next?

nextcloud:24.0.5 (apache:stable) maps:0.2.1 php: 8.0.23 pgsql: PostgreSQL 14.5 (Debian 14.5-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit

bilibilistack avatar Sep 26 '22 05:09 bilibilistack

Update: I converted db back to mariadb using db:convert-type mysql and the photos appear on the map successfully! I think there should be some bug with pgsql.

bilibilistack avatar Sep 26 '22 09:09 bilibilistack

I run mariadb Ver 15.1 Distrib 10.7.3-MariaDB, for debian-linux-gnu (aarch64) using readline 5.2 and don't see images on the map.

@bilibilistack: Which version of mariadb are you running? I assume on docker? And why have you moved from mariadb to PostgreSQL?

hajo62 avatar Sep 26 '22 09:09 hajo62

Yes. docker pull mariadb. I am on 10.9.2 (latest should be 10.9.3) I saw a post suggesting migrating to psgsql with faster speed, that's why I want to move to psgsql. I tried psgsql, it's generally faster than mariadb, especially on the gallery page and search tool bar. Also it feels like the settings page loading speed is faster. It could be anecdotal but u can have a try.

bilibilistack avatar Sep 27 '22 07:09 bilibilistack

I also have this issue with media stored on an external hdd and mounted via a docker volume:

  • Raspberry Pi 4 8gb
  • NC 25.0.1
  • MariaDB: 10.9.4 (I have never used psgsql before)
  • PHP: 8.1.12

@artemanufrij it may well be an issue with my cron jobs, Nextcloud reports them working correctly internally (they are called via the crontab from the host system), but I am affected by Issue 34283, which prevents any attempt to run scan-app-data (which in turn might be causing the photos added via maps:scan-photos to not get added).

Praetorian1410 avatar Dec 05 '22 22:12 Praetorian1410

Check if your cron job works correctly.

artemanufrij avatar Dec 06 '22 14:12 artemanufrij

It installs subsequent versions, but since I reported it never worked. I don't want to believe that anyone's photos are displayed on maps.

Docker latest image. NX Hub 3 25.0.0.2 PHP 8.1.13 Linux 5.10.0-0.bpo.9-amd64 x86_64 Intel(R) Core(TM) i5-7400 CPU

Andy-1970 avatar Dec 16 '22 10:12 Andy-1970

@Andy-1970 can you double check, if your cron job is running, please.

artemanufrij avatar Dec 16 '22 17:12 artemanufrij

@Andy-1970 here is my line crontab on my host machine.

*/5 *  *  *  * root docker exec -u www-data -t nextcloud-app-1 php -f /var/www/html/cron.php

artemanufrij avatar Dec 16 '22 17:12 artemanufrij

I checked this at the beginning. Cron is running.

Andy-1970 avatar Dec 19 '22 07:12 Andy-1970

@Andy-1970 could you provide some photos which you expect to be shown? You can also just email them of you don't want to share them publicly.

tacruc avatar Mar 03 '23 23:03 tacruc

Of course, I can send you some examples. In the library I have photos from various cameras, where there was no GeoTag, I added them manually in geosetter. Currently testing the memories app. Everything displays correctly there.

Andy-1970 avatar Mar 06 '23 14:03 Andy-1970

@Andy-1970 can you mail me or send me a message somewhere, then I will send you a link, where you can upload photos.

And would it be fine for you, if I publish a (1x1 pixel) downscaled version of the provided Photos in this repository? (The 1 pixel would still include all metadata.)

tacruc avatar Mar 09 '23 07:03 tacruc

I used to have this issue before but I'm not experiencing this issue anymore on version 1.0.0 with Nextcloud 25.0.3 and MySQL as database. Did anyone else notice a change?

QazCetelic avatar Mar 24 '23 12:03 QazCetelic

On 24 March 2023 12:47:42 UTC, "ΰ² _ΰ² " @.***> wrote:

I used to have this issue before but I'm not experiencing this issue anymore on version 1.0.0 with Nextcloud 25.0.3 and MySQL as database. Did anyone else notice a change?

I had a similar issue with a Postgresql database and images came back after upgrading to Nextcloud 25.0.5 and the latest stable version of nextcloud/maps, still with Postgresql.

I don’t remember the last version I had the issue with though.

arkhi avatar Mar 24 '23 13:03 arkhi

@QazCetelic @arkhi Thanks for the Feedback

tacruc avatar Mar 24 '23 14:03 tacruc