SMB Client not installed

HarryBee

Cadet
Joined
Jul 5, 2020
Messages
6
I'm trying to install smbclient to mount a couple of smb shares. Software details are at the bottom.
screenshot (1).png

Code:
The FTP support in PHP is not enabled or installed. Mounting of "FTP" is not possible. Please ask your system administrator to install it.

"smbclient" is not installed. Mounting of "SMB / CIFS", "SMB / CIFS using OC login" is not possible. Please ask your system administrator to install it.


When I run pkg install php72-pecl-smbclient I get:

Code:
root@Nextcloud:/ # pkg install php72-pecl-smbclient
Updating iocage-plugins repository catalogue...
iocage-plugins repository is up to date.
All repositories are up to date.
Checking integrity... done (1 conflicting)
  - php72-7.2.31 conflicts with php74-7.4.7 on /usr/local/bin/php
Checking integrity... done (0 conflicting)
The following 74 package(s) will be affected (of 0 checked):

Installed packages to be REMOVED:
        nextcloud-php74: 19.0.0_1
        php74: 7.4.7
        php74-bcmath: 7.4.7
        php74-bz2: 7.4.7
        php74-ctype: 7.4.7
        php74-curl: 7.4.7
        php74-dom: 7.4.7
        php74-exif: 7.4.7
        php74-fileinfo: 7.4.7
        php74-filter: 7.4.7
        php74-gd: 7.4.7
        php74-gmp: 7.4.7
        php74-iconv: 7.4.7
        php74-intl: 7.4.7
        php74-json: 7.4.7
        php74-ldap: 7.4.7
        php74-mbstring: 7.4.7
        php74-opcache: 7.4.7
        php74-openssl: 7.4.7
        php74-pdo: 7.4.7
        php74-pdo_mysql: 7.4.7
        php74-pecl-APCu: 5.1.18
        php74-posix: 7.4.7
        php74-session: 7.4.7
        php74-simplexml: 7.4.7
        php74-xml: 7.4.7
        php74-xmlreader: 7.4.7
        php74-xmlwriter: 7.4.7
        php74-xsl: 7.4.7
        php74-zip: 7.4.7
        php74-zlib: 7.4.7

New packages to be INSTALLED:
        avahi-app: 0.7_3
        dbus: 1.12.18
        dbus-glib: 0.110
        gamin: 0.1.10_10
        gdbm: 1.18.1_1
        glib: 2.56.3_8,1
        gnome_subr: 1.0
        gnutls: 3.6.14
        gobject-introspection: 1.56.1,1
        jansson: 2.13.1
        libICE: 1.0.10,1
        libSM: 1.2.3,1
        libX11: 1.6.9_1,1
        libXau: 1.0.9
        libXdmcp: 1.1.3
        libarchive: 3.4.3,1
        libdaemon: 0.14_1
        libffi: 3.2.1_3
        libidn2: 2.3.0_1
        libinotify: 20180201_2
        libpthread-stubs: 0.4
        libsunacl: 1.0.1
        libtasn1: 4.16.0
        libunistring: 0.9.10_1
        libxcb: 1.13.1
        lmdb: 0.9.24_2,1
        lzo2: 2.10_1
        nettle: 3.6
        p11-kit: 0.23.20
        php72: 7.2.31
        php72-pecl-smbclient: 1.0.0_1
        popt: 1.18
        py37-iso8601: 0.1.12
        py37-setuptools: 44.0.0
        python37: 3.7.7_1
        readline: 8.0.4
        samba410: 4.10.15
        talloc: 2.3.0
        tdb: 1.4.2,1
        tevent: 0.10.1
        tpm-emulator: 0.7.4_2
        trousers: 0.3.14_2
        xorgproto: 2020.1

Number of packages to be removed: 31
Number of packages to be installed: 43

The operation will free 7 MiB.

Proceed with this action? [y/N]: n


If I say yes, it removes a load of packages and Nextcloud stops working and if I say no, nothing installs. I'm running FreeNAS-11.3-U3.2 and Nextcloud plugin in a 11.3-RELEASE jail. Thanks.
 

Fredda

Guru
Joined
Jul 9, 2019
Messages
608
Nothing strange here. When you install a part of the php72 installation it will deinstall php74.
Why are you trying to install the php72 version of smbclient?
If I do a search in my 11.3 jail:
Code:
pkg search smbclient
php72-pecl-smbclient-1.0.0_1   Smbclient wrapper extension
php73-pecl-smbclient-1.0.0_1   Smbclient wrapper extension
php74-pecl-smbclient-1.0.0_1   Smbclient wrapper extension

Please note, you are trying to install packages in plugin-jail. Your changes will probably be gone, when the plugin itself gets updated.
 

HarryBee

Cadet
Joined
Jul 5, 2020
Messages
6
Oh thanks. I was just being stupid. It works now. Great! :smile:. So how do I make my changes stay when the jail gets updated?
 

Fredda

Guru
Joined
Jul 9, 2019
Messages
608
You can't. That is the nature of a plugin. The normal usecase of a plugin is to work as is and not to be customized by installing additional packages.
There might be even plugins, where installation of additional packages is not even possible.
Simply write down what you changed and do it again after the plugin was updated. As long it is just one additional package it shoul not be a problem.
If you change a lot it might be worth using a normal jail, you could use Danb's script for that.
Or you try a feature request to have that package included in the next version of the plugin.
 
Last edited:

HarryBee

Cadet
Joined
Jul 5, 2020
Messages
6
Can’t I just update nextcloud through its web interface and not update the plugin in freenas?
 

Fredda

Guru
Joined
Jul 9, 2019
Messages
608
That might work, but also this update will gone, after the plugin is updated.
Of course after the plugin update you'll hopefully be also on the latest version.

Feel free to try it. Make sure to do a snapshot of the plugin, so you can roll back, if it does not work anymore after the update.
 

HarryBee

Cadet
Joined
Jul 5, 2020
Messages
6
Hi, I will do that. Thanks very much for the help. Do you know about setting up ssl guacamole on ubuntu (not on FreeNAS) because I'm really having some trouble with it?
 

HarryBee

Cadet
Joined
Jul 5, 2020
Messages
6
What I really need help with is the errors and reverse proxy setup in apache. Do you about that? Thanks for all of your help.
 

gusar190

Cadet
Joined
Nov 20, 2022
Messages
2
Nothing strange here. When you install a part of the php72 installation it will deinstall php74.
Why are you trying to install the php72 version of smbclient?
If I do a search in my 11.3 jail:
Code:
pkg search smbclient
php72-pecl-smbclient-1.0.0_1   Smbclient wrapper extension
php73-pecl-smbclient-1.0.0_1   Smbclient wrapper extension
php74-pecl-smbclient-1.0.0_1   Smbclient wrapper extension

Please note, you are trying to install packages in plugin-jail. Your changes will probably be gone, when the plugin itself gets updated.
Hi! I have the same problem, and after some attemps it seems that I'm stucked. Can you help me please? I think the solution is pretty obvious, but I am newbie in linux world so it's hard for me to understand.
 
Top