Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Samba libpopt.so.0 errors #442

Open
addohm opened this issue Jul 22, 2023 · 1 comment
Open

Samba libpopt.so.0 errors #442

addohm opened this issue Jul 22, 2023 · 1 comment

Comments

@addohm
Copy link

addohm commented Jul 22, 2023

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
Copy link
Author

addohm commented Jul 24, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant