Problems with SMB shares

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 32.0.1
  • Operating system and version (e.g., Ubuntu 24.04):
    • Debian 12.10.0
  • Web server and version (e.g, Apache 2.4.25):
    • Apache/2.4.65
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • Haproxy 2.9
  • PHP version (e.g, 8.3):
    • 8.2.29
  • Is this the first time you’ve seen this error? (Yes / No):
    • No
  • When did this problem seem to first start?
    • After Install (always there)
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • Bare Metal
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

When adding an External Storage from the webui, it asks for my admin password, wich I type, but it returns as wrong password. It is the right password, it works in other categories.

(I wanna add that this problem is not present on the TrueNas version of NC, but due to network reasons I wanna use a hosted version)

Steps to replicate it (hint: details matter!):

  1. Login to WebGui as an admin

  2. Go to Administration settings > External Storage

  3. Add an SMB/CIFS Storage, fill the infos.

  4. Click the save icon

  5. Enter password

  6. It says wrong password even if the password is right

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.

{
  "reqId": "KH4zHGNistKsFBhS4MJQ",
  "level": 0,
  "time": "2025-11-05T12:52:14+00:00",
  "remoteAddr": "192.168.0.205",
  "user": "Ynos",
  "app": "files_external",
  "method": "GET",
  "url": "/index.php/apps/logreader/api/log?offset=0&query=",
  "message": "The loading of lazy AppConfig values have been triggered by app \"files_external\"",
  "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:140.0) Gecko/20100101 Firefox/140.0",
  "version": "32.0.1.2",
  "exception": {
    "Exception": "RuntimeException",
    "Message": "The loading of lazy AppConfig values have been triggered by app \"files_external\"",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/www/nextcloud/lib/private/AppConfig.php",
        "line": 492,
        "function": "loadConfig",
        "class": "OC\\AppConfig",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppConfig.php",
        "line": 427,
        "function": "getTypedValue",
        "class": "OC\\AppConfig",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/files_external/lib/Service/BackendService.php",
        "line": 65,
        "function": "getValueBool",
        "class": "OC\\AppConfig",
        "type": "->"
      },
      {
        "function": "__construct",
        "class": "OCA\\Files_External\\Service\\BackendService",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php",
        "line": 72,
        "function": "newInstanceArgs",
        "class": "ReflectionClass",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php",
        "line": 122,
        "function": "buildClass",
        "class": "OC\\AppFramework\\Utility\\SimpleContainer",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php",
        "line": 140,
        "function": "resolve",
        "class": "OC\\AppFramework\\Utility\\SimpleContainer",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php",
        "line": 352,
        "function": "query",
        "class": "OC\\AppFramework\\Utility\\SimpleContainer",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php",
        "line": 324,
        "function": "queryNoFallback",
        "class": "OC\\AppFramework\\DependencyInjection\\DIContainer",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php",
        "line": 90,
        "function": "query",
        "class": "OC\\AppFramework\\DependencyInjection\\DIContainer",
        "type": "->"
      },
      {
        "function": "OC\\AppFramework\\Utility\\{closure}",
        "class": "OC\\AppFramework\\Utility\\SimpleContainer",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php",
        "line": 77,
        "function": "array_map"
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php",
        "line": 72,
        "function": "buildClassConstructorParameters",
        "class": "OC\\AppFramework\\Utility\\SimpleContainer",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php",
        "line": 122,
        "function": "buildClass",
        "class": "OC\\AppFramework\\Utility\\SimpleContainer",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php",
        "line": 140,
        "function": "resolve",
        "class": "OC\\AppFramework\\Utility\\SimpleContainer",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php",
        "line": 352,
        "function": "query",
        "class": "OC\\AppFramework\\Utility\\SimpleContainer",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php",
        "line": 324,
        "function": "queryNoFallback",
        "class": "OC\\AppFramework\\DependencyInjection\\DIContainer",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php",
        "line": 90,
        "function": "query",
        "class": "OC\\AppFramework\\DependencyInjection\\DIContainer",
        "type": "->"
      },
      {
        "function": "OC\\AppFramework\\Utility\\{closure}",
        "class": "OC\\AppFramework\\Utility\\SimpleContainer",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php",
        "line": 77,
        "function": "array_map"
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php",
        "line": 72,
        "function": "buildClassConstructorParameters",
        "class": "OC\\AppFramework\\Utility\\SimpleContainer",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php",
        "line": 122,
        "function": "buildClass",
        "class": "OC\\AppFramework\\Utility\\SimpleContainer",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php",
        "line": 140,
        "function": "resolve",
        "class": "OC\\AppFramework\\Utility\\SimpleContainer",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php",
        "line": 352,
        "function": "query",
        "class": "OC\\AppFramework\\Utility\\SimpleContainer",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php",
        "line": 324,
        "function": "queryNoFallback",
        "class": "OC\\AppFramework\\DependencyInjection\\DIContainer",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php",
        "line": 45,
        "function": "query",
        "class": "OC\\AppFramework\\DependencyInjection\\DIContainer",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Bootstrap/FunctionInjector.php",
        "line": 32,
        "function": "get",
        "class": "OC\\AppFramework\\Utility\\SimpleContainer",
        "type": "->"
      },
      {
        "function": "OC\\AppFramework\\Bootstrap\\{closure}",
        "class": "OC\\AppFramework\\Bootstrap\\FunctionInjector",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Bootstrap/FunctionInjector.php",
        "line": 28,
        "function": "array_map"
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Bootstrap/BootContext.php",
        "line": 32,
        "function": "injectFn",
        "class": "OC\\AppFramework\\Bootstrap\\FunctionInjector",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/files_external/lib/AppInfo/Application.php",
        "line": 79,
        "function": "injectFn",
        "class": "OC\\AppFramework\\Bootstrap\\BootContext",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php",
        "line": 170,
        "function": "boot",
        "class": "OCA\\Files_External\\AppInfo\\Application",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/App/AppManager.php",
        "line": 481,
        "function": "bootApp",
        "class": "OC\\AppFramework\\Bootstrap\\Coordinator",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/App/AppManager.php",
        "line": 273,
        "function": "loadApp",
        "class": "OC\\App\\AppManager",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/base.php",
        "line": 1021,
        "function": "loadApps",
        "class": "OC\\App\\AppManager",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/index.php",
        "line": 25,
        "function": "handleRequest",
        "class": "OC",
        "type": "::"
      }
    ],
    "File": "/var/www/nextcloud/lib/private/AppConfig.php",
    "Line": 1326,
    "message": "The loading of lazy AppConfig values have been triggered by app \"files_external\"",
    "exception": [],
    "CustomMessage": "The loading of lazy AppConfig values have been triggered by app \"files_external\""
  },
  "id": "690b487eeef86"
}

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.

POST
	
scheme
	http
host
	192.168.0.208
filename
	/index.php/apps/files_external/globalstorages
Address
	192.168.0.208:80
Status
422
Unprocessable Entity
VersionHTTP/1.1
Transferred851 B (45 B size)
Referrer Policyno-referrer
Request PriorityHighest
DNS ResolutionSystem

	
Cache-Control
	no-cache, no-store, must-revalidate
Connection
	Keep-Alive
Content-Length
	45
Content-Security-Policy
	default-src 'none';base-uri 'none';manifest-src 'self';frame-ancestors 'none'
Content-Type
	application/json; charset=utf-8
Date
	Wed, 05 Nov 2025 12:53:48 GMT
Feature-Policy
	autoplay 'none';camera 'none';fullscreen 'none';geolocation 'none';microphone 'none';payment 'none'
Keep-Alive
	timeout=5, max=100
Referrer-Policy
	no-referrer
Server
	Apache/2.4.65 (Debian)
Set-Cookie
	ocxw5ym4x11k=m1pa880pgle9ir3ptq7nbtcpf6; path=/; HttpOnly; SameSite=Lax
X-Content-Type-Options
	nosniff
X-Frame-Options
	SAMEORIGIN
X-Permitted-Cross-Domain-Policies
	none
X-Request-Id
	sXIn3GgE8nNfxq7cjJn2
X-Robots-Tag
	noindex, nofollow
X-User-Id
	Ynos
	
Accept
	application/json, text/plain, */*
Accept-Encoding
	gzip, deflate
Accept-Language
	en-US,en;q=0.5
Authorization
	Basic WW5vczpib25uaWVvbGQxMjM=
Connection
	keep-alive
Content-Length
	472
Content-Type
	application/json
Cookie
	ocxw5ym4x11k=m1pa880pgle9ir3ptq7nbtcpf6; oc_sessionPassphrase=xzPqxTOf4q1O4KAt7DV%2BJ%2FYfvkP9Emp9KFO4ZFcf8HW%2B%2B98tJssXFOnYjVU1PDlv6SB4uxXHiDGewYvahhvglBDGTHMPTgZd2Q6Pvjx1URkApphzTZykgidUGMue6Wvj; nc_sameSiteCookielax=true; nc_sameSiteCookiestrict=true; nc_username=Ynos; nc_token=k6SfS3gMS9zwkKPLNKQH6Vpf1DZKnPM7; nc_session_id=m1pa880pgle9ir3ptq7nbtcpf6
Host
	192.168.0.208
Idempotency-Key
	"10947362443535643115"
Origin
	http://192.168.0.208
Priority
	u=0
requesttoken
	SyhldycBJNBQNeyKgeX9dHW+Le5SY6UlN+DZcArsZLs=:YE8BHmhsTrogAbXj99ObJz7nfpg/IfZzYZeWJl3fIvI=
Sec-GPC
	1
User-Agent
	Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:140.0) Gecko/20100101 Firefox/140.0
X-Requested-With
	XMLHttpRequest, XMLHttpRequest

Web server / Reverse Proxy

The output of your Apache/nginx/system log in /var/log/____:

Not using reverse proxy yet

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!):

sudo -u www-data php occ config:list system
{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "192.168.0.X"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "32.0.1.2",
        "overwrite.cli.url": "http:\/\/192.168.0.X",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "system": {
            "password_confirmation_required": false
        },
        "maintenance": false,
        "loglevel": "0"
    }
}

Apps

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

sudo -u www-data php occ app:list
Enabled:

  • app_api: 32.0.0
  • bruteforcesettings: 5.0.0-dev.0
  • circles: 32.0.0
  • cloud_federation_api: 1.16.0
  • comments: 1.22.0
  • contactsinteraction: 1.13.1
  • dav: 1.34.2
  • federatedfilesharing: 1.22.0
  • federation: 1.22.0
  • files: 2.4.0
  • files_downloadlimit: 5.0.0-dev.0
  • files_external: 1.24.0
  • files_pdfviewer: 5.0.0-dev.0
  • files_reminders: 1.5.0
  • files_sharing: 1.24.0
  • files_trashbin: 1.22.0
  • files_versions: 1.25.0
  • firstrunwizard: 5.0.0-dev.0
  • logreader: 5.0.0-dev.0
  • lookup_server_connector: 1.20.0
  • nextcloud_announcements: 4.0.0-dev.0
  • notes: 4.12.3
  • notifications: 5.0.0-dev.0
  • oauth2: 1.20.0
  • password_policy: 4.0.0-dev.0
  • privacy: 4.0.0-dev.0
  • profile: 1.1.0
  • provisioning_api: 1.22.0
  • recommendations: 5.0.0-dev.0
  • related_resources: 3.0.0-dev.0
  • richdocuments: 9.0.1
  • richdocumentscode: 25.4.504
  • serverinfo: 4.0.0-dev.0
  • settings: 1.15.1
  • sharebymail: 1.22.0
  • support: 4.0.0-dev.0
  • survey_client: 4.0.0-dev.0
  • systemtags: 1.22.0
  • text: 6.0.1
  • theming: 2.7.0
  • twofactor_backupcodes: 1.21.0
  • updatenotification: 1.22.0
  • user_status: 1.12.0
  • viewer: 5.0.0-dev.0
  • weather_status: 1.12.0
  • webhook_listeners: 1.3.0
  • workflowengine: 2.14.0
    Disabled:
  • activity: 5.0.0-dev.0 (installed 5.0.0-dev.0)
  • admin_audit: 1.22.0
  • dashboard: 7.12.0 (installed 7.12.0)
  • encryption: 2.20.0
  • photos: 5.0.0-dev.1 (installed 5.0.0-dev.1)
  • suspicious_login: 10.0.0-dev.0
  • twofactor_nextcloud_notification: 6.0.0-dev.0
  • twofactor_totp: 14.0.0
  • user_ldap: 1.23.0

Tips for increasing the likelihood of a response

  • Use the preformatted text formatting option in the editor for all log entries and configuration output.
  • If screenshots are useful, feel free to include them.
    • If possible, also include key error output in text form so it can be searched for.
  • Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.

I hit the problem short time ago and tracked down to a bug

my solution was to revert to 30.0.10 last version before the problem was introduced. Once I created the external storage it was possible to update to last version.

a workaround could be to add external storage using occ, I think it works in all versions

# configure SMB shares
occ files_external:create "name of the share" smb password::sessioncredentials -c host=smbserver.internal -c share=smbRootPath -c domain=ADDomain

I’m using session credencials from LDAP login in this case - adjust for your system is needed

I see, would the process only be to extract the old version in /car/www/nextcloud

Then access it after restarting apache2, recreate the shares

Replace the /var/www/nextcloud by a nextcloud 32 and restart again ?

Following this logic, i guess i can also put the nextcloud files in the html folder so it is easier with certificates ?

Thanks for tour time !

downgrading an installation is not supported. in my case it was a new install so started over from scratch. thank docker it’s just matter of minutes to rewind another installation.

look at official server docs to learn everything you need.

I figured the hard way :confused: after downgrading no problem, I did it two times cause the version you provided did not fixed my issue, i went further back.
I updated 2 majors versions in one go wich corrupted everything :sweat_smile:
I am slowly restarting, at the moment, i mounted the shares and updated to 31, now i need to update to 32, hopefully it will work.

1 Like

So i did everything, from v30, mounted the shares, updated to 31, it was working. Updated to 32, all went good, working as well but with minor errors from the app api, tried to repair it but nothing worked. Now my shares are broken on the nextcloud server, I am giving up on the debian based version cause it seems to be far too broken since the v30. Going back to the truenas version cause it seems usable, gonna work around for the certs.