dperson / samba

Samba docker container
GNU Affero General Public License v3.0
1.5k stars 509 forks source link

Samba libpopt.so.0 errors #442

Open addohm opened 1 year ago

addohm commented 1 year ago

I've recently had to commission a new NAS and am running into an issue with the following error:

Error loading shared library libpopt.so.0: Exec format error (needed by /usr/sbin/smbd)
Error loading shared library libpopt.so.0: Exec format error (needed by /usr/lib/samba/libpopt-samba3-samba4.so)

The logs are inundated with with this and only this. The only things I can find anywhere near this error are a decade old or gentoo specific. The only thing I can think of is that its running debian 12. I didn't have this issue on a previously commissioned server running ubuntu server running jammy jellyfish.

uname -a Linux levenas 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.37-1 (2023-07-03) x86_64 GNU/Linux

lsb_release

Distributor ID: Debian
Description:    Debian GNU/Linux 12 (bookworm)
Release:        12
Codename:       bookworm

cat /etc/os-release

PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

docker compose file

version: '3.3'

services:
  samba:
    container_name: samba
    image: dperson/samba:latest
    environment:
      PUID: '1000'
      PGID: '1000'
      USERID: '1000'
      GROUPID: '1000'
      PERMISSIONS: 'true'
      USER: '${USER};${PASS}'
      TZ: 'America/New_York'
    networks:
      - default
    ports:
      - "139:139/tcp"
      - "445:445/tcp"
    read_only: false
    tmpfs:
      - /tmp
    restart: unless-stopped
    stdin_open: true
    tty: true
    volumes:
      - ./data:/share:z
    command: '-s "fileshare;/share;yes;no;yes;${USER}" -u "${USER};${PASS}"'
    hostname: samba
addohm commented 1 year ago

Here's a response from the samba devs.

this is not a Samba bug but a problem of your compiled binaries. Also 4.12.x is quite old and no longer supported, but this is not the problem. You might want to consult one of the comapnies offerering commercial samba support, see the samba.org web site for support options.

On 22.07.23 05:41, Adam Leven wrote:

This is a newly created docker container using docker compose. The server just crashes and restrarts constantly with: Error loading shared library libpopt.so.0: Exec format error (needed by /usr/bin/smbclient) Error loading shared library libpopt.so.0: Exec format error (needed by /usr/lib/samba/libpopt-samba3-cmdline-samba4.so) Error loading shared library libpopt.so.0: Exec format error (needed by /usr/lib/samba/libpopt-samba3-samba4.so) Error relocating /usr/lib/samba/libpopt-samba3-cmdline-samba4.so: poptGetInvocationName: symbol not found Error relocating /usr/lib/samba/libpopt-samba3-samba4.so: poptGetInvocationName: symbol not found Error relocating /usr/bin/smbclient: poptSetOtherOptionHelp: symbol not found Error relocating /usr/bin/smbclient: poptFreeContext: symbol not found Error relocating /usr/bin/smbclient: poptGetArg: symbol not found Error relocating /usr/bin/smbclient: poptPrintUsage: symbol not found Error relocating /usr/bin/smbclient: poptPeekArg: symbol not found Error relocating /usr/bin/smbclient: poptGetOptArg: symbol not found Error relocating /usr/bin/smbclient: poptGetContext: symbol not found Error relocating /usr/bin/smbclient: poptGetNextOpt: symbol not found Error relocating /usr/bin/smbclient: poptHelpOptions: symbol not found

===============================================================

INTERNAL ERROR: Signal 11 in pid 413 (4.12.2)

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

===============================================================

PANIC (pid 413): internal error

unable to produce a stack trace on this platform

dumping core in /var/log/samba/cores/smbd

===============================================================

INTERNAL ERROR: Signal 11 in pid 414 (4.12.2)

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

===============================================================

PANIC (pid 414): internal error

unable to produce a stack trace on this platform

dumping core in /var/log/samba/cores/smbd

===============================================================

INTERNAL ERROR: Signal 11 in pid 415 (4.12.2)

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

===============================================================

PANIC (pid 415): internal error

unable to produce a stack trace on this platform

dumping core in /var/log/samba/cores/smbd

So if that's the case, there's probably some sys req that needs to be disclosed before using this docker container.