Media scan was not done yet; photos not showing up on the map

Hi,

Last week I installed Nextcloud for the first time on my Raspberry Pi 4. In general everything went well. Nextcloud is working on my local network. I noticed an option for my photos to show up on a map. That’s where I got stuck. At first I did see my photolocations on the map. After a view days playing around I decided to do a brand new, clean install. Unfortunately I cannot get the situation with photolocations on the map. There are also no Places.

I tried it with my user-account as well as my admin-account but they don’t show up. I got some messages like: “Media scan was not done yet; A background job added 0 of 8 photos. This may take awhile.” I just added a view photos originating from my handy as well and they do have geolocation-information. It has been a couple of days now.

I did of course look for a solution on the internet. I tried to force a rescan with “sudo -u www-data php occ files:scan --all”. It has been executed succesfully but nothing changes. I tried to regenerate the metadata with “sudo -u www-data php occ files:scan --generate-metadata --all”. Didn’t help either. I restarted Apache, I even rebooted several times but nothing.

Now I’m kind of stuck. It’s not the most important functions perhaps but it would be nice of course when it’s working. Especially for a first time experience. Perhaps anyone here could help me out? Any suggestion is welcome. Thanks in advance.

Raspberry Pi OS 64-bit, Nextcloud Hub 10 (31.0.7), Apache/2.4.62 (Debian), PHP 8.2.29, MySQL 10.11.11

Best regards,
Peter.

Hi,

Let’s say I’m learning on the job and I guess I found a solution by myself. Since I the messages were all about “jobs” I tried to find out how it’s working with those jobs. I read about the cron and I know this from my Linux-laptop. I didn’t find any cronjobs so I decided to add one according to the documentation (Background jobs — Nextcloud latest Administration Manual latest documentation).

So I edited the crontab like this: “sudo crontab -u www-data -e” and added the line: “*/5 * * * * php -f /var/www/html/nextcloud/cron.php”. I saved the file and waited 5 minutes. Guess what, suddenly my photos are showing up on the map.

I case it helps somebody else, I decided to share it here again. I think it’s just strange that I had to configure it like this. I would expect it to work based on my default installation but perhaps I missed something. The only difference I see is that there is “html” in my path but that is not something I have chosen manually.

At least I’m happy that it’s working now. It keeps picking up new photos as well.

Best regards,
Peter.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.