guidol 271 Posted November 7, 2020 Share Posted November 7, 2020 Today I updated some SBCs - 2x NanoPi Neo2 with 512MB Ram (debian buster) - 1x NanoPi Neo2 with 1GB Ram (ubuntu focal) - 1x BanaPI M2 Berry (debian buster) to kernel 5.10.0-rc2 DEV which are running a samba-server which is installed via "apt install samba" and not via the armbian-config SOFTYS. They are do run since serveral kernel-version - also with 5.9.1 But after the update my NanoPi Neo2 with 1GB Ram cant be connected from Linux or Windows 10 to his samba-server. It looks like samba freezed: mount -t cifs -o vers=3.0,user=guido,password=this_isnt_mypwd,domain=guido,dir_mode=0777,file_mode=0777 //192.168.6.24/data /smbtest mount error(11): Resource temporarily unavailable I checked the config and even reinstalled samba on the NanoPi Neo2 1GB Ram but CANT connect to the data-share Because the last change was the kernel I did go back to 5.9.1 via armbian-config on this NanoPi Neo2 1GB Ram and the samba-server is now working again. Another difference between the NanoPi Neo2 is that the 512MB-version do run debian buster and the 1GB-version do run ubuntu focal. So I dont know directly if it is the board-version whcih has the problem or if the ubuntu focal version has a problem with the kernel 5.10.0-rc2 Also here all samba-servers running (debian buster with 5.10.0-rc2 and ubuntu focal with 5.9.1): System diagnosis information NanoPi Neo2 512MB http://ix.io/2Dlw NanoPi Neo2 1GB Ram http://ix.io/2Dlx BPi M2 Berry http://ix.io/2Dlv 0 Quote Link to post Share on other sites
5kft 93 Posted November 8, 2020 Share Posted November 8, 2020 Hi @guidol, I'm actually seeing similar issues with Debian (!). The default Debian Buster v4.9.5 Samba server works fine with kernel v5.9.5, but for me with kernel v5.10-rc2 it consistently crashes with "INTERNAL ERROR" faults when a client would access it. Samba has had issues like this in the past where a particular version would start crashing on newer kernels, so I installed the latest version of Samba (v4.13.2) and it works fine with kernel v5.10 - no crashes, and everything works well. It looks like there have been a number of changes made for Samba in the new kernel (e.g., see https://wiki.samba.org/index.php/LinuxCIFSKernel#Changes_by_release), so perhaps the older server versions provided by the distributions are simply too old and incompatible for the new v5.10 kernel. Here are some quick screen captures showing Samba working on my NEO2; I first make a directory "testing", and then copy some files to it, and then I map and access the NEO2 share via Windows: I copied a number of files across the share as well and it worked fine. I don't use Ubuntu, so I'm not sure what version of Samba is provided with Focal, but perhaps you're encountering the same issue? You might try installing a newer Samba version and see how it works for you. Note that I did this all as a test and simply built Samba v4.13.2 from source on the NEO2 (I used https://download.samba.org/pub/samba/samba-latest.tar.gz to download the source). I hope this helps! 0 Quote Link to post Share on other sites
guidol 271 Posted November 8, 2020 Author Share Posted November 8, 2020 5 hours ago, 5kft said: Hi @guidol, I'm actually seeing similar issues with Debian (!). The default Debian Buster v4.9.5 Samba server works fine with kernel v5.9.5, but for me with kernel v5.10-rc2 it consistently crashes with "INTERNAL ERROR" faults when a client would access it. Samba has had issues like this in the past where a particular version would start crashing on newer kernels, so I installed the latest version of Samba (v4.13.2) and it works fine with kernel v5.10 - no crashes, and everything works well. Note that I did this all as a test and simply built Samba v4.13.2 from source on the NEO2 (I used https://download.samba.org/pub/samba/samba-latest.tar.gz to download the source). I hope this helps! @5kft I will take the Samba-version which armbian does deliver me for Ubuntu Focal: 2:4.11.6+dfsg-0ubuntu1.6 and for debian buster: 2:4.9.5+dfsg-5+deb10u1 its interesting - for me - that the newer version 4.11.6 does crash with kernel 5.10.0-rc2 on ubuntu focal but the older 4.9.5 has no problems using kernel 5.10.0-rc2 under debain buster... Thanks for the informations/links - so I would stay with kernel 5.9.1 on ubuntu focal for now 0 Quote Link to post Share on other sites
xwiggen 6 Posted November 8, 2020 Share Posted November 8, 2020 I had connectivity issues on 5.4 earlier which resolved by mounting with vers=2.1, you might try that 0 Quote Link to post Share on other sites
5kft 93 Posted November 8, 2020 Share Posted November 8, 2020 9 hours ago, guidol said: its interesting - for me - that the newer version 4.11.6 does crash with kernel 5.10.0-rc2 on ubuntu focal but the older 4.9.5 has no problems using kernel 5.10.0-rc2 under debain buster... Glad it is working for you, but very curious indeed! Edit: I tried on another NEO2, and indeed 4.9.5 works fine . Perhaps my first test was odd because I just upgraded the kernel on a much older platform rootfs. But I can confirm the platform-provided v4.9.5 is working under v5.10-rc2 on my "cleaner" NEO2. I'm also glad to see that the latest v4.13.2 also works! 0 Quote Link to post Share on other sites
guidol 271 Posted November 8, 2020 Author Share Posted November 8, 2020 1 hour ago, 5kft said: But I can confirm the platform-provided v4.9.5 is working under v5.10-rc2 on my "cleaner" NEO2. I'm also glad to see that the latest v4.13.2 also works! is your "cleaner" NEO2 under ubuntu or debian? 0 Quote Link to post Share on other sites
5kft 93 Posted November 8, 2020 Share Posted November 8, 2020 1 hour ago, guidol said: is your "cleaner" NEO2 under ubuntu or debian? I actually tried both - Debian works fine (as you noted), but Focal crashes just like I was seeing yesterday: Spoiler [2020/11/08 18:27:40.947991, 0] ../../lib/util/fault.c:79(fault_report) =============================================================== [2020/11/08 18:27:40.948421, 0] ../../lib/util/fault.c:80(fault_report) INTERNAL ERROR: Signal 11 in pid 3682 (4.11.6-Ubuntu) If you are running a recent Samba version, and if you think this problem is not yet fixed in the latest versions, please consider reporting this bug, see https://wiki.samba.org/index.php/Bug_Reporting [2020/11/08 18:27:40.948559, 0] ../../lib/util/fault.c:86(fault_report) =============================================================== [2020/11/08 18:27:40.948649, 0] ../../source3/lib/util.c:823(smb_panic_s3) PANIC (pid 3682): internal error [2020/11/08 18:27:40.956215, 0] ../../lib/util/fault.c:264(log_stack_trace) BACKTRACE: 38 stack frames: #0 /lib/aarch64-linux-gnu/libsamba-util.so.0(log_stack_trace+0x38) [0xffffb10427b8] #1 /lib/aarch64-linux-gnu/libsmbconf.so.0(smb_panic_s3+0x20) [0xffffb0fe4be8] #2 /lib/aarch64-linux-gnu/libsamba-util.so.0(smb_panic+0x34) [0xffffb10428d4] #3 /lib/aarch64-linux-gnu/libsamba-util.so.0(+0x10b54) [0xffffb1042b54] #4 linux-vdso.so.1(__kernel_rt_sigreturn+0) [0xffffb14617bc] #5 /lib/aarch64-linux-gnu/libpthread.so.0(+0xc26c) [0xffffb073026c] #6 /lib/aarch64-linux-gnu/libtdb.so.1(+0xf76c) [0xffffafb5b76c] #7 /lib/aarch64-linux-gnu/libtdb.so.1(+0x723c) [0xffffafb5323c] #8 /lib/aarch64-linux-gnu/libtdb.so.1(+0x79bc) [0xffffafb539bc] #9 /lib/aarch64-linux-gnu/libtdb.so.1(+0x9434) [0xffffafb55434] #10 /lib/aarch64-linux-gnu/libtdb.so.1(+0x54e0) [0xffffafb514e0] #11 /lib/aarch64-linux-gnu/libtdb.so.1(tdb_storev+0x88) [0xffffafb51a80] #12 /usr/lib/aarch64-linux-gnu/samba/libdbwrap.so.0(+0x62cc) [0xffffb04202cc] #13 /usr/lib/aarch64-linux-gnu/samba/libdbwrap.so.0(dbwrap_record_storev+0x10) [0xffffb041d300] #14 /usr/lib/aarch64-linux-gnu/samba/libdbwrap.so.0(dbwrap_record_store+0x18) [0xffffb041d320] #15 /usr/lib/aarch64-linux-gnu/samba/libsmbd-base.so.0(+0x16dfcc) [0xffffb1225fcc] #16 /usr/lib/aarch64-linux-gnu/samba/libsmbd-base.so.0(+0x16e968) [0xffffb1226968] #17 /usr/lib/aarch64-linux-gnu/samba/libsmbd-base.so.0(smb2srv_tcon_create+0x68) [0xffffb1227a18] #18 /usr/lib/aarch64-linux-gnu/samba/libsmbd-base.so.0(smbd_smb2_request_process_tcon+0x40c) [0xffffb120fb94] #19 /usr/lib/aarch64-linux-gnu/samba/libsmbd-base.so.0(smbd_smb2_request_dispatch+0xc80) [0xffffb1209f50] #20 /usr/lib/aarch64-linux-gnu/samba/libsmbd-base.so.0(+0x152a70) [0xffffb120aa70] #21 /lib/aarch64-linux-gnu/libtevent.so.0(tevent_common_invoke_fd_handler+0x88) [0xffffb075c390] #22 /lib/aarch64-linux-gnu/libtevent.so.0(+0xc668) [0xffffb0762668] #23 /lib/aarch64-linux-gnu/libtevent.so.0(+0xa72c) [0xffffb076072c] #24 /lib/aarch64-linux-gnu/libtevent.so.0(_tevent_loop_once+0x94) [0xffffb075ba4c] #25 /lib/aarch64-linux-gnu/libtevent.so.0(tevent_common_loop_wait+0x20) [0xffffb075bcc8] #26 /lib/aarch64-linux-gnu/libtevent.so.0(+0xa6a4) [0xffffb07606a4] #27 /usr/lib/aarch64-linux-gnu/samba/libsmbd-base.so.0(smbd_process+0x6d4) [0xffffb11fa94c] #28 /usr/sbin/smbd(+0xb51c) [0xaaaaabc4b51c] #29 /lib/aarch64-linux-gnu/libtevent.so.0(tevent_common_invoke_fd_handler+0x88) [0xffffb075c390] #30 /lib/aarch64-linux-gnu/libtevent.so.0(+0xc668) [0xffffb0762668] #31 /lib/aarch64-linux-gnu/libtevent.so.0(+0xa72c) [0xffffb076072c] #32 /lib/aarch64-linux-gnu/libtevent.so.0(_tevent_loop_once+0x94) [0xffffb075ba4c] #33 /lib/aarch64-linux-gnu/libtevent.so.0(tevent_common_loop_wait+0x20) [0xffffb075bcc8] #34 /lib/aarch64-linux-gnu/libtevent.so.0(+0xa6a4) [0xffffb07606a4] #35 /usr/sbin/smbd(main+0x1970) [0xaaaaabc482f0] #36 /lib/aarch64-linux-gnu/libc.so.6(__libc_start_main+0xe8) [0xffffb05d7090] #37 /usr/sbin/smbd(+0x85ec) [0xaaaaabc485ec] [2020/11/08 18:27:40.957516, 0] ../../source3/lib/util.c:836(smb_panic_s3) smb_panic(): calling panic action [/usr/share/samba/panic-action 3682] [2020/11/08 18:27:40.967186, 0] ../../source3/lib/util.c:843(smb_panic_s3) smb_panic(): action returned status 0 [2020/11/08 18:27:40.967539, 0] ../../source3/lib/dumpcore.c:315(dump_core) dumping core in /var/log/samba/cores/smbd 1 Quote Link to post Share on other sites
guidol 271 Posted December 16, 2020 Author Share Posted December 16, 2020 On 11/8/2020 at 9:32 PM, 5kft said: I actually tried both - Debian works fine (as you noted), but Focal crashes Heureka Today I compiled kernel 5.10.0 (no rc) for the NanoPi Neo2 and now it works agan with my Neo2 and Ubuntu focal where it did work before only with debian buster but also with 5.10.0 rc2 - rc7 The sambsa-server from focal also work with the final 5.10.0 without problems System diagnosis information has been uploaded to http://ix.io/2IjU 1 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.