Error message configuring external storage

How do I install smbclient?

OS Version:TrueNAS-SCALE- ElectricEel-24.10.2

Product:ProLiant MicroServer Gen8
Model:Intel(R) Xeon(R) CPU E3-1230 V2 @ 3.30GHz
Memory:15 GiB

Nextcloud Server version 31.0.2 Version: 1.6.14

Operating system and version Windows 11 pro v23H2

Web server and version nginx/1.27.4

PHP version PHP/8.3.19

Is this the first time you’ve seen this error? Yes

When did this problem seem to first start? After enabling External Storage Support App.

Apps → Enabled External Storage Support

Administrative settings ->External Storage :
Error display - “smbclient” is not installed. Mounting of “SMB/CIFS”, “SMB/CIFS using OC login” is not possible. Please ask your system administrator to install it.

Are you using CloudfIare, mod_security, or similar? No

Thank you

Sorry, but the internet is full of tutorials on this topic
If you still have problems afterwards, please feel free to contact us, but this is a Unix basic topic and not an NC problem

Thank you for the response. But I have scoured the web for days on this issue including Nextcloud topics but they all seem to point to Nextcloud itself. Also I can’t seem to find the command line/shell in Nextcloud. Thank you.

apt install smbclient php-smbclient

What do you mean
<path to nextcloud>/nextcloud/occ ?

OCC Web

Version 0.2.2, AGPL-licensed

DescriptionDetails

Details

  • This app cannot be installed because the following dependencies are not fulfilled:
    • Server version 30 or lower is required.
      Thanks

Yes thats clear.
Does the external storage work now?

Unfortunately not amateurkicker. Error message launching occ web:

Internal Server Error

The server was unable to complete your request.

If this happens again, please send the technical details below to the server administrator.

More details can be found in the server log.

Technical details

Remote Address: 96.xxx.xxx.xx

Request ID: kwJUNFI5vytghWYFhmJg

QueryExceptionCould not resolve OCP\ILogger! Class can not be instantiated

When setting the Nextcloud App in TrueNAS there are options for activating things like smclient:

You posted this.

And then you got this message

What is not clear now?

It’s quite clear that occ web cannot be installed on NC version 30 or higher. Since my installed NC version is 31.0.2 how am I going to get a command line/shell on my version of NC. Thanks

Sorry but you don’t fill out the Support Template completely

So I can only speculate whether you are using Docker?

Just last month after years on TrueNas Core I clean installed TrueNas Scale (OS Version:TrueNAS-SCALE- ElectricEel-24.10.2) which I believe is using docker. I followed the usual process to install Nextcloud App. But I find it does not have shell installed unlike Nextcloud on Truenas Core. Thanks

jtr, would you suggest I reinstall NC with with new settings? I attempted to install another instance of NC but could not locate configuration for smb etc to circumvent my ongoing issue. Thanks

amateurkicker
jtr

The issue is resolved:

The Nextcloud shell was there all along (my oversight)

To install SMB/CIFS in Truenas Scale → Nextcloud External Storage

In Truenas scale → Applications

Click on Nextcloud app

In the Workloads section → nextcloud – Running

Click on the first icon (Shell)

Simply run apt install smbclient at the command line (that simple)

When complete head back to Nextcloud External Storage

Click on Add Storage and now SMB/CIFS is available in the drop-down

Open the latest Nextcloud user manual and follow the instructions in section:

File sharing and managementConfiguring External Storage (GUI) → SMB/CIFS
Thanks all

“full of tutorials on this topic” show me one for TrueNAS-SCALE which is installed as a docker container.

I have been fighting this issue for months.

  • TrueNAS Scale: Dragonfish-24.04.2.5
  • App Version: 31.0.0
  • Chart Version: 2.0.23
apt install smbclient php-smbclient
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package php-smbclient is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'php-smbclient' has no installation candidate

See Entering Nextcloud Configuration Settings to use the way that is suggested by the TrueNAS app maintainers.

Simply run apt install smbclient at the command line (that simple)

Doing it this will work temporarily, but smbclient will likely be removed at the next image update with that approach.

Wouldn’t that be a bug that could be resolved with an update fix?

No, because the method for enabling smbclient is via the settings in the TrueNAS Nextcloud app. That’s why it has options for smbclient, ffmpeg, etc. The app handles adding it to the image.

Can we finally fix the enabling method to circumvent the frustrating removal with each update? Thanks

Couldn’t you just use the methods provided by the maintainers of the app?

Or, if for some reason these methods don’t fit your use case and you’d like to suggest a better method, feel free to open an issue here: https://github.com/truenas/apps/issues

1 Like