Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Container enter infinite restart loop upon start #60

Closed
aaraujo666 opened this issue May 23, 2023 · 2 comments
Closed

Container enter infinite restart loop upon start #60

aaraujo666 opened this issue May 23, 2023 · 2 comments

Comments

@aaraujo666
Copy link

When starting the container, it keeps restarting in an infinite loop (--restart always). Without the --restart always, it just exits with error code 1.

Steps to reproduce this issue

  1. docker run -d --network host -p 445:445 -v "/docker-data/samba:/data" --name samba --restart always crazymax/samba

root@cetus:/# cat /docker-data/samba/config.yml
auth:

  • user: nobody
    group: nobody
    uid: 1000
    gid: 1000
    password: nobody

global:

  • "force user = nobody"
  • "force group = nobody"

share:

  • name: centauri
    comment: centauri
    path: /nfs/centauri
    browsable: yes
    readonly: no
    guestok: yes
    veto: no
    recycle: no
  • name: magellan
    path: /nfs/magellan
    browsable: yes
    readonly: no
    guestok: yes
    veto: no
    recycle: no
  • name: orion
    path: /nfs/orion
    browsable: yes
    readonly: no
    guestok: yes
    veto: no
    recycle: no

Expected behaviour

3 shares: magellan, centauri and orion should be available

Actual behaviour

Container continuously restarts

Configuration

  • Docker version (type docker --version) : Docker version 24.0.0, build 98fdcd7

  • Docker compose version if applicable (type docker-compose --version) : n/a

  • Platform (Debian 9, Ubuntu 18.04, ...) : Debian 11

  • System info (type uname -a) : Linux cetus 5.10.0-23-amd64 Add ZeroConf Service Discovery #1 SMP Debian 5.10.179-1 (2023-05-12) x86_64 GNU/Linux

  • Include all necessary configuration files : docker-compose.yml, .env, ...

Docker info

Client: Docker Engine - Community
 Version:    24.0.0
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.10.4
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.17.3
    Path:     /usr/libexec/docker/cli-plugins/docker-compose

Server:
 Containers: 3
  Running: 2
  Paused: 0
  Stopped: 1
 Images: 5
 Server Version: 24.0.0
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 3dce8eb055cbb6872793272b4f20ed16117344f8
 runc version: v1.1.7-0-g860f061
 init version: de40ad0
 Security Options:
  apparmor
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 5.10.0-23-amd64
 Operating System: Debian GNU/Linux 11 (bullseye)
 OSType: linux
 Architecture: x86_64
 CPUs: 40
 Total Memory: 125.9GiB
 Name: cetus
 ID: 5e398c17-3056-4a9f-9d5c-97757323f500
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

Logs

Setting timezone to UTC
Initializing files and folders
Setting global configuration
Creating user nobody/nobody (1000:1000)
Add global option: force user = nobody
Add global option: force group = nobody
Creating share centauri
Creating share magellan
Creating share orion
Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
Weak crypto is allowed by GnuTLS (e.g. NTLM as a compatibility fallback)

Server role: ROLE_STANDALONE

# Global parameters
[global]
        disable netbios = Yes
        disable spoolss = Yes
        dns proxy = No
        local master = No
        map to guest = Bad User
        pam password change = Yes
        printcap name = /dev/null
        security = USER
        server role = standalone server
        server services = s3fs, rpc, wrepl, ldap, cldap, kdc, drepl, winbindd, ntp_signd, kcc, dnsupdate
        server string = Docker Samba Server
        smb1 unix extensions = No
        smb ports = 445
        usershare allow guests = Yes
        winbind scan trusted domains = Yes
        fruit:time machine = yes
        fruit:delete_empty_adfiles = yes
        fruit:wipe_intentionally_left_blank_rfork = yes
        fruit:veto_appledouble = no
        fruit:posix_rename = yes
        fruit:model = MacSamba
        fruit:metadata = stream
        idmap config * : backend = tdb
        create mask = 0664
        directory mask = 0775
        force create mode = 0664
        force directory mode = 0775
        force group = nobody
        force user = nobody
        hosts allow = 127.0.0.0/8 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16
        hosts deny = 0.0.0.0/0
        printing = bsd
        strict locking = No
        vfs objects = fruit streams_xattr
        wide links = Yes


[centauri]
        comment = centauri
        delete veto files = Yes
        guest ok = Yes
        path = /nfs/centauri
        read only = No
        veto files = /._*/.apdisk/.AppleDouble/.DS_Store/.TemporaryItems/.Trashes/desktop.ini/ehthumbs.db/Network Trash Folder/Temporary Items/Thumbs.db/
        vfs objects = recycle
        recycle:versions = yes
        recycle:keeptree = yes
        recycle:repository = .recycle


[magellan]
        delete veto files = Yes
        guest ok = Yes
        path = /nfs/magellan
        read only = No
        veto files = /._*/.apdisk/.AppleDouble/.DS_Store/.TemporaryItems/.Trashes/desktop.ini/ehthumbs.db/Network Trash Folder/Temporary Items/Thumbs.db/
        vfs objects = recycle
        recycle:versions = yes
        recycle:keeptree = yes
        recycle:repository = .recycle


[orion]
        delete veto files = Yes
        guest ok = Yes
        path = /nfs/orion
        read only = No
        veto files = /._*/.apdisk/.AppleDouble/.DS_Store/.TemporaryItems/.Trashes/desktop.ini/ehthumbs.db/Network Trash Folder/Temporary Items/Thumbs.db/
        vfs objects = recycle
        recycle:versions = yes
        recycle:keeptree = yes
        recycle:repository = .recycle
smbd version 4.18.2 started.
Copyright Andrew Tridgell and the Samba Team 1992-2023

@andynbaker
Copy link

andynbaker commented Jun 15, 2023

same here. happened out of the blue and not sure what is going on. in for the updates.

EDIT: blew away the cache and lib folders and redeployed. All working now as expected!

@Retrograde-i486
Copy link

same here. happened out of the blue and not sure what is going on. in for the updates.

EDIT: blew away the cache and lib folders and redeployed. All working now as expected!

Thanks for this, fixed mine up too

Repository owner locked and limited conversation to collaborators Oct 8, 2023
@crazy-max crazy-max converted this issue into discussion #98 Oct 8, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants