Issue with Photos Plugin and Samba Mount in NextCloud

Hello NextCloud community,

I recently started using NextCloud and encountered an issue. The photos plugin is not displaying images from a mounted Samba disk, although I can view them without any problems in the “Files” section.

I would appreciate any help or suggestions on how to resolve this issue.

Thank you!

Hi,
I have the same problem. The version 30.0.4 did not have this problem. I coud use external storage as source for Photos. But in 30.0.5 they changed GUI in selecting source for Photos. There is no external drive shown. I even tried to select Folder in external drive as Favorites but the Favorites did not show in Photo selection of source. Any idea how to fix it?
Thank you

1 Like

Hi, thank you for helping. But this is not samba isnt it?

1 Like

1 Like
2 Likes

The Samba disk mounted in the user’s folder.

what do you mean? is there any workaround?

Thank you

No, unfortunately I still haven’t found a solution.

Essentially every setting in the UI can be modified via occ.

This is useful whenever you have a problem with the UI (or just want to use the command-line to set or do something in Nextcloud such as if scripted a deployment).

In general you just need to determine whether a setting is:

  • system level
    • if so, use occ config:list system (for the most part)
  • app level system-wide
    • if so, use occ config:list <app>
  • user/account level
    • if so, use occ user:setting <account> <app>

So in this case, since this is an account level setting, we’ll need to use occ user:setting.

Viewing the current settings:

occ user:setting ACCOUNTNAME photos

Let’s say we want to modify this particular setting for the account ncuser:

www-data@ad627ff03e60:~/html$ ./occ user:setting ncuser photos
  - photos:
    - photosSourceFolders: ["/extLocalTmp"]
  - settings:
    - display_name: ncuser

The above shows the current settings for this account when using the photos app.

Now let’s look at how to change a setting.

Changing current settings

Most occ commands have help explanations of their options and occ user:settings is no different:

www-data@ad627ff03e60:~/html$ ./occ user:setting ncuser photos --help
Description:
  Read and modify user settings

Usage:
  user:setting [options] [--] <uid> [<app> [<key> [<value>]]]

Arguments:
  uid                                Account ID used to login
  app                                Restrict the settings to a given app [default: ""]
  key                                Setting key to set, get or delete [default: ""]
  value                              The new value of the setting

Let’s change the source folders for the Photos app (the topic of this thread) by adding the account’s /MyPhotos folder to the list:

www-data@ad627ff03e60:~/html$ ./occ user:setting ncuser photos photosSourceFolders '["/extLocalTmp", "/MyPhotos"]'
www-data@ad627ff03e60:~/html$ ./occ user:setting ncuser photos
  - photos:
    - photosSourceFolders: ["/extLocalTmp", "/MyPhotos"]
  - settings:
    - display_name: ncuser
www-data@ad627ff03e60:~/html$ 

Go visit the Photos app.

Done.

References:

2 Likes

Thank you, your advice helped me and the disk connected. However, the following issue occurred: the photos in the photo app are displayed as gray squares and cannot be clicked on

Without knowing more about your environment I couldn’t say.

Do you have any 404 or 5xx errors in your browser inspector Network tab when you load that page? Or perhaps some errors in your console? Check your nextcloud.log as well.

What image format?

1 Like