linuxserver / docker-nextcloud

GNU General Public License v3.0
705 stars 128 forks source link

[BUG] SMB in external storage doesn't work since the last update #303

Closed stefore closed 1 year ago

stefore commented 1 year ago

Is there an existing issue for this?

Current Behavior

Since the 26.0.0-ls235 update, external storage does'nt work with SMB share :

Undefined array key 1 at /config/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeFileInfo.php#46

It worked fine before.

Expected Behavior

No response

Steps To Reproduce

Try to mount a smb share in administration panel

Environment

- OS:Debian 10 buster

CPU architecture

x86-64

Docker creation

nextcloud:
    image: lscr.io/linuxserver/nextcloud
    container_name: nextcloud
    env_file: ./0env_files/nextcloud.env
    volumes:
      - ./nextcloud/config:/config
      - ./nextcloud/data:/data
    restart: unless-stopped
    depends_on:
      - mariadb

Container logs

Undefined array key 1 at /config/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeFileInfo.php#46
github-actions[bot] commented 1 year ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

ados1989 commented 1 year ago

Hello I have the same Problem. everything was fine but then I make the Update. Please help us.

github-actions[bot] commented 1 year ago

A human has marked this issue as invalid, this likely happened because the issue template was not used in the creation of the issue.

ados1989 commented 1 year ago

do you need more information ?

TBhatti90 commented 1 year ago

Wanted to report I'm having the same issue. Someone mentioned on the nextcloud forums about downgrading libsmbclient, however, that may not necessarily fix it. Can you guys test that? Workaround

mixedracebaby commented 1 year ago

All my smb connections died too

j0nnymoe commented 1 year ago

For now, please roll back the image tag until we get a chance to investigate.

joem569 commented 1 year ago

I pulled my hair out for a little while until I came here to check the bug lists. I'm having the same issue. I rolled my image back to the previous version and it's working again. Will monitor to check the status!

stefore commented 1 year ago

the nextcloud:26.0.0-ls234 is the latest version with the SMB connections alive

joem569 commented 1 year ago

26.0.0-ls234

Not that it needed to be confirmed, but I confirm this to be working currently!

aptalca commented 1 year ago

Changes between tags 234 and 235: https://github.com/linuxserver/docker-nextcloud/commit/85c15c72335b54f4415e82d5caec0104c1ecb64b

4rrior commented 1 year ago

Can confirm it too. I'm using as OS Unraid with Dockerimage from linuxserver: https://github.com/linuxserver/docker-nextcloud/pkgs/container/nextcloud Current Version is: ls236 Shares worked with older versions.

I doesn't use Nextcloud for long time. So I removed the dockerimages of Nextcloud and Posgresql 15, include removing of all the stored data folders, to make a fresh clean new installation. Because I wanted to checkout, if some changes from updates break the installed external device app. But this was not the case, even then the Bug exists.

Svenum commented 1 year ago

Same here. Maybe related to: https://github.com/nextcloud/server/issues/36773

nemchik commented 1 year ago

From https://github.com/nextcloud/server/issues/36773#issuecomment-1495411432

Notice:

From https://github.com/linuxserver/docker-nextcloud/issues/303#issuecomment-1496038290

Changes between tags 234 and 235: https://github.com/linuxserver/docker-nextcloud/commit/85c15c72335b54f4415e82d5caec0104c1ecb64b

Our build pipeline upgraded libsmbclient from 4.16.8-r1 (unaffected) to 4.16.10-r0 (problematic).

This could be fixed a number of ways:

  1. The regression in libsmbclient could be fixed (and our build pipeline would release a new -ls# tagged version
  2. Nextcloud could work around the regression in some way in a future release (and our build pipeline would release a new version of the image tagged for the updated version of Nextcloud, but this would still require following the update procedure in our readme)
  3. We could make efforts to roll back libsmbclient to a working version

I would prefer to avoid option 3 but if the issue is not resolved somewhat soon we might go that route until option 1 or 2 are confirmed to have happened.

Edit: Best current advice would be to pin lscr.io/linuxserver/nextcloud:26.0.0-ls234 (edited to correct tag)

stanthewizzard commented 1 year ago

reverse to lscr.io/linuxserver/nextcloud:26.0.0-ls235 I still can't connect

Edit: 230 is ok for me

maximushugus commented 1 year ago

For me 235 didnt work, I have to reverse to 234. I also have another bug : apps on nextcloud (as onlyoffice, texte etc) can only open files in smb shares if the share is added as system (root) share. Here I can specify wich user can access what share but adding the share directly from user's interface make this bug

Git-ChrisSc commented 9 months ago

I have the same Problem on a fresh-installed Nextcloud:

libsmbclient 2:4.17.7+dfsg-1ubuntu2.3

Nextcloud 28.0.1

LXC Container under Proxmox Running Ubuntu 23.04 Linux 5.15.116-1-pve x86_64

nginx/1.22.0 php 8.1.12

j0nnymoe commented 9 months ago

@Git-ChrisSc open a new issue.