External SMB share not working

Hi

Ubuntu 24.04
Nextcloud 30.0.6

I am setting up a nextcloud v 30.0.6 server to replace our current v 25 server.

We only use it to access external storage nothing is stored on the nextcloud server.
I am having issues setting up this external storage.
When I add a smb like below


I can only connect to the folder within this subfolder, If i open the folders within this folder i get this:

The folder does exist and the user I am using has access.

What am I doing wrong?

Can you check your Nextcloud log as requested in the support template?

Hi jtr

Thank you for replying.
Requested info below, if more is needed please ask.

The Basics
Nextcloud Server version (e.g., 29.x.x):
30.0.6
Operating system and version (e.g., Ubuntu 24.04):
ubuntu 24.0
Web server and version (e.g, Apache 2.4.25):
2.4.58
Reverse proxy and version _(e.g. nginx 1.27.2):
none
PHP version (e.g, 8.3):
8.3.6
Is this the first time you’ve seen this error? (Yes / No):
New server
When did this problem seem to first start?
When setting up external storage with smb
Installation method (e.g. AIO, NCP, Bare Metal/Archive, etc.)
I think bare metal (apt install)
Are you using Cloudflare, mod_security, or similar? (Yes / No)
no
Summary of the issue you are facing:
I am setting up a nextcloud v 30.0.6 server to replace our current v 25 server.
We only use it to access external storage nothing is stored on the nextcloud server.
I am having issues setting up this external storage.
When I add a smb like below

image1650×351 7.46 KB
I can only connect to the folder within this subfolder, If i open the folders within this folder i get this:

image513×370 3.03 KB
The folder does exist and the user I am using has access.
What am I doing wrong?

Steps to replicate it (hint: details matter!):
See above
Log entries
Nextcloud
Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.
Shows no log at time for clicking folders
Web Browser
If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

Web server / Reverse Proxy
The output of your Apache/nginx/system log in /var/log/___:
Nextcloud_error.log is empty
Configuration
Nextcloud
The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):
{
“system”: {
“instanceid”: “REMOVED SENSITIVE VALUE”,
“passwordsalt”: “REMOVED SENSITIVE VALUE”,
“secret”: “REMOVED SENSITIVE VALUE”,
“trusted_domains”: [
REMOVED SENSITIVE VALUE
],
“memcache.locking”: “\OC\Memcache\Redis”,
“redis”: {
“host”: “REMOVED SENSITIVE VALUE”,
“port”: 6379,
“timeout”: 0,
“password”: “REMOVED SENSITIVE VALUE
},
“filesystem_check_changes”: 1,
“filesystem_cache_readonly”: false,
“smb.timeout”: 60,
“session_lifetime”: 3600,
“session_keepalive”: false,
“remember_login_cookie_lifetime”: 0,
“datadirectory”: “REMOVED SENSITIVE VALUE”,
“dbtype”: “mysql”,
“version”: “30.0.6.2”,
“overwrite.cli.url”: “https://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”,
“default_phone_region”: “BE”,
“ldapProviderFactory”: “OCA\User_LDAP\LDAPProviderFactory”,
“maintenance”: false,
“theme”: “”,
“loglevel”: 2,
“forbidden_filename_basenames”: [
“con”,
“prn”,
“aux”,
“nul”,
“com0”,
“com1”,
“com2”,
“com3”,
“com4”,
“com5”,
“com6”,
“com7”,
“com8”,
“com9”,
“com\u00b9”,
“com\u00b2”,
“com\u00b3”,
“lpt0”,
“lpt1”,
“lpt2”,
“lpt3”,
“lpt4”,
“lpt5”,
“lpt6”,
“lpt7”,
“lpt8”,
“lpt9”,
“lpt\u00b9”,
“lpt\u00b2”,
“lpt\u00b3”
],
“forbidden_filename_characters”: [
“<”,
“>”,
“:”,
“"”,
“|”,
“?”,
“*”,
“\”,
“/”
],
“forbidden_filename_extensions”: [
" ",
“.”,
“.filepart”,
“.part”
],
“maintenance_window_start”: 100
}
}

Apps
The output of occ app:list (if possible).

Enabled:

  • activity: 3.0.0
  • app_api: 4.0.6
  • bruteforcesettings: 3.0.0
  • circles: 30.0.0
  • cloud_federation_api: 1.13.0
  • comments: 1.20.1
  • contactsinteraction: 1.11.0
  • dashboard: 7.10.0
  • dav: 1.31.1
  • federatedfilesharing: 1.20.0
  • federation: 1.20.0
  • files: 2.2.0
  • files_downloadlimit: 3.0.0
  • files_external: 1.22.0
  • files_pdfviewer: 3.0.0
  • files_reminders: 1.3.0
  • files_sharing: 1.22.0
  • files_trashbin: 1.20.1
  • files_versions: 1.23.0
  • firstrunwizard: 3.0.0
  • geoblocker: 0.5.15
  • logreader: 3.0.0
  • lookup_server_connector: 1.18.0
  • nextcloud_announcements: 2.0.0
  • notifications: 3.0.0
  • oauth2: 1.18.1
  • officeonline: 3.0.0
  • password_policy: 2.0.0
  • photos: 3.0.2
  • privacy: 2.0.0
  • provisioning_api: 1.20.0
  • recommendations: 3.0.0
  • related_resources: 1.5.0
  • serverinfo: 2.0.0
  • settings: 1.13.0
  • support: 2.0.0
  • survey_client: 2.0.0
  • systemtags: 1.20.0
  • text: 4.1.0
  • theming: 2.6.0
  • twofactor_backupcodes: 1.19.0
  • twofactor_totp: 12.0.0-dev
  • updatenotification: 1.20.0
  • user_ldap: 1.21.0
  • user_status: 1.10.0
  • viewer: 3.0.0
  • weather_status: 1.10.0
  • webhook_listeners: 1.1.0-dev
  • workflowengine: 2.12.0

I am far from a Linux expert so if you need more more information please ask.

Upgrading to 31.0.0 resolved this for me.

I’m seeing this same issue. I’m working on migrating from an LXC managed via Proxmox to a k8s environment, so I’ve been playing with a fresh setup to get the configuration how I want it before doing the actual migration. I had the k8s version running nextcloud:27-apache + postgres 15, and was able to successfully use external storage with my SMB server with the same configuration as on my old LXC installation. Yesterday I bumped to the latest helm chart (6.6.6) and saw that it defaults to 30.0.6. I wanted to make sure I’m staying current, so I just destroyed the old k8s installation that was running 27, destroyed any persistent volumes and the old postgres instance, and started fresh again, with 30.0.6-apache and postgres 16. Now I’m seeing the behavior described above when trying to access my SMB storage. Sometimes it shows the red error circle when configuring the mount in the admin settings, but when logging out and logging back in to Nextcloud it shows green, however when actually navigating to the mounted folder, the same behavior described in this thread is observed–only the top level folders within the mount are shown, and trying to navigate into any of them shows the Not Found error. The server log shows

192.168.69.145 - - [03/Mar/2025:14:06:39 +0000] "PROPFIND /remote.php/dav/files/jordan/nextcloud-prod/Photos/ HTTP/1.1" 404 1358 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.2 Safari/605.1.15"

UPDATE: like said by Nimjor this is indeed a bug. I did a fresh install with version 30.0.1 . I won’t be updating for a while :slight_smile:

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