Healthchecks issue

Open
#69 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
docker

Research direction

Start with the provided Docker Compose configuration and reproduce the unhealthy status while checking how the container's healthcheck handles authenticated SMB access. Read the related crazy-max/docker-samba issue #141 for the smbclient error context. Done means a working authenticated Samba share reports healthy in Portainer without masking genuine failures.

Written by the indexing model from the issue text.

Description

Portainer is showing me the samba container is in an "unhealthy" state. Not sure how to fix that issue.
Although the shares are all working fine without any issues, the healthchecks need to be changed somehow.

Screenshot:
Image

Docker compose file:

services:
  samba:
    image: dockurr/samba
    # image: dperson/samba
    container_name: samba
    env_file: .samba.env
    ports:
      - 445:445
    volumes:
      - /samba/share/:/storage
      - /some/folder/conf/smb.conf:/etc/samba/smb.conf
    restart: always

samba.env file:

NAME=SHARE_1
USER=user1
PASS=mypassword
UID=1000
GID=1000

smb.conf file:

[global]
	server string = SHARE_1 - 192.168.1.100
	netbios name = SHARE_1

 	printing = bsd
 	printcap name = /dev/null
 	load printers = no
 	disable spoolss = yes

	server smb encrypt = required
	server signing = mandatory

	client min protocol = SMB3
	client max protocol = SMB3
	client smb encrypt = required
	client signing = required

	hosts allow = 192.168.1.0/24

[SHARE_1]
	path = /storage
	read only = no

	valid users = user1

	inherit acls = yes
	inherit owner = yes

users.conf file:

#username:UID:groupname:GID:password:homedir
user1:1000:SHARE_1:1000:mypassword

Any idea how to change the healthchecks?

Probably related to:

"The healthcheck fails for me because smbclient also exists with a non zero error when "NT_STATUS_ACCESS_DENIED" is returned (e.g. no anonymous access)."

https://github.com/crazy-max/docker-samba/issues/141

Dominant language
Shell
Stars
840
Forks
64
PR merge metrics
No merged PRs in 30d

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dockur/samba

All issues in dockur/samba

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.