Own Cloud on Ubuntu 20 and SMB Access

Hello @all,

we have update our ubuntu server from ubuntu 16 to ubuntu 20 lts. Same time we are updatet own cloud to version 10.7.0.4.

After ugrade i cannot use my smb shares. My external Storage Windows Network Drives App shows me the failure:
The library libsmbclient is not available
I have reinstalled on my ubuntu server libsmbclient and smbclient. After uprade my ubuntu server i see the failure:

php -m | grep -i smbc

PHP Warning: PHP Startup: smbclient: Unable to initialize module
Module compiled with module API=20200930
PHP compiled with module API=20190902
These options need to match

I think, that is my problem, but i dont now what i can do.
All other functions works fine.

Server configuration

Operating system:
Ubuntu 20 LTS

Web server:
Apache

Database:

PHP version:
7.4.3

ownCloud version: (see ownCloud admin page)
10.7.0.4

Updated from an older ownCloud or fresh install:

Where did you install ownCloud from:
UPDATE installed from GUI



**The content of config/config.php:**

Log in to the web-UI with an administrator account and click on
‘admin’ -> ‘Generate Config Report’ -> ‘Download ownCloud config report’
This report includes the config.php settings, the list of activated apps
and other details in a well sanitized form.

or

If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your ownCloud installation folder

PHP Warning: PHP Startup: smbclient: Unable to initialize module
Module compiled with module API=20200930
PHP compiled with module API=20190902
These options need to match
in Unknown on line 0
{
“system”: {
“instanceid”: “xxx”,
“passwordsalt”: “REMOVED SENSITIVE VALUE”,
“secret”: “REMOVED SENSITIVE VALUE”,
“trusted_domains”: [
“192.168.9.48”,
“filedepot.xxx”,
],
“datadirectory”: “/var/www/html/bw-h/filedepot.xxx/data”,
“overwrite.cli.url”: “http://192.168.9.48/xxx/filedepot.xxx”,
“dbtype”: “mysql”,
“version”: “10.7.0.4”,
“dbname”: “xxx_filedepot”,
“dbhost”: “localhost”,
“dbtableprefix”: “oc_”,
“mysql.utf8mb4”: true,
“dbuser”: “REMOVED SENSITIVE VALUE”,
“dbpassword”: “REMOVED SENSITIVE VALUE”,
“logtimezone”: “UTC”,
“installed”: true,
“theme”: “xxx”,
“loglevel”: 2,
“maintenance”: false,
“memcache.local”: “\OC\Memcache\Redis”,
“redis”: {
“host”: “localhost”,
“port”: 6379
},
“memcache.locking”: “\OC\Memcache\Redis”,
“mail_smtpmode”: “smtp”,
“mail_smtphost”: “REMOVED SENSITIVE VALUE”,
“mail_from_address”: “REMOVED SENSITIVE VALUE”,
“mail_domain”: “REMOVED SENSITIVE VALUE”
}
}

List of activated apps:

If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your ownCloud installation folder.

PHP Warning: PHP Startup: smbclient: Unable to initialize module
Module compiled with module API=20200930
PHP compiled with module API=20190902
These options need to match
in Unknown on line 0
Enabled:

  • activity:
    • Version: 2.6.0
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/activity
  • comments:
    • Version: 0.3.0
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/comments
  • configreport:
    • Version: 0.2.0
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/configreport
  • dav:
    • Version: 0.6.0
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/dav
  • federatedfilesharing:
    • Version: 0.5.0
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/federatedfilesharing
  • federation:
    • Version: 0.1.0
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/federation
  • files:
    • Version: 1.5.2
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/files
  • files_external:
    • Version: 0.7.1
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/files_external
  • files_external_ftp:
    • Version: 0.2.1
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/files_external_ftp
  • files_mediaviewer:
    • Version: 1.0.4
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/files_mediaviewer
  • files_pdfviewer:
    • Version: 0.12.1
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/files_pdfviewer
  • files_sharing:
    • Version: 0.14.0
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/files_sharing
  • files_texteditor:
    • Version: 2.3.0
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/files_texteditor
  • files_trashbin:
    • Version: 0.9.1
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/files_trashbin
  • files_versions:
    • Version: 1.3.0
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/files_versions
  • firstrunwizard:
    • Version: 1.2.0
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/firstrunwizard
  • gallery:
    • Version: 16.1.1
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/gallery
  • market:
    • Version: 0.6.0
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/market
  • notifications:
    • Version: 0.5.2
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/notifications
  • provisioning_api:
    • Version: 0.5.0
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/provisioning_api
  • systemtags:
    • Version: 0.3.0
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/systemtags
  • templateeditor:
    • Version: 0.4.0
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/templateeditor
  • updatenotification:
    • Version: 0.2.1
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/updatenotification
      Disabled:
  • admin_audit:
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/admin_audit
  • announcementcenter:
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/announcementcenter
  • customgroups:
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/customgroups
  • encryption:
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/encryption
  • enterprise_key:
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/enterprise_key
  • external:
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/external
  • files_antivirus:
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/files_antivirus
  • files_classifier:
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/files_classifier
  • files_external_dropbox:
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/files_external_dropbox
  • files_ldap_home:
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/files_ldap_home
  • files_lifecycle:
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/files_lifecycle
  • files_videoplayer:
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/files_videoplayer
  • firewall:
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/firewall
  • graphapi:
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/graphapi
  • guests:
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/guests
  • metrics:
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/metrics
  • oauth2:
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/oauth2
  • openidconnect:
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/openidconnect
  • password_policy:
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/password_policy
  • ransomware_protection:
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/ransomware_protection
  • sharepoint:
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/sharepoint
  • systemtags_management:
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/systemtags_management
  • theme-enterprise:
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/theme-enterprise
  • user_external:
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/user_external
  • user_ldap:
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/user_ldap
  • user_shibboleth:
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/user_shibboleth
  • windows_network_drive:
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/windows_network_drive
  • wopi:
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/wopi
  • workflow:
    • Path: /var/www/html/XXX/filedepot.XXX.de/apps/workflow

Are you using external storage, if yes which one: local/smb/sftp/…
i will use smb, but it doesnt work

Are you using encryption: yes/no
no

Thank you for help…
Regards
Stefan

Hi,

you can follow our official documentation and install the smb client via ondrej repo.

https://doc.owncloud.com/server/10.7/admin_manual/installation/quick_guides/ubuntu_20_04.html#install-the-recommended-packages

1 Like

Have you restarted the php-fpm ???

Some times it is not enough if you just restart the apache after a php-module installation.

Best regards,
Erwin Palma

1 Like

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