Git Product home page Git Product logo

Comments (10)

iwconfig avatar iwconfig commented on July 18, 2024 1

Huh! I see...

It could be but I don't think so.

  • Rasberry pi OS Lite
  • I only use docker for all my stuff

I don't think any other service would interfere, but maybe syncthing does? It is containerized as well.

I'll have a look.

from samba.

iwconfig avatar iwconfig commented on July 18, 2024 1

Alright, I think I solved it, at least partly so.

I found this bit of information:

Note: If you are already running Samba/Avahi on your Docker host (or you're wanting to run this on your NAS), you should be aware that using --net=host will cause a conflict with the Samba/Avahi install. Raspberry Pi users: be aware that there is already an mDNS responder running on the stock Raspberry Pi OS image that will conflict with the mDNS responder in the container.

I guess this is the main culprit. I solved it by following the instructions provided:

  • Changing the following in /etc/avahi/avahi-daemon.conf (host) to:
    • enable-reflector=yes
    • cache-entries-max=0

Didn't bother with hostname.

The errors in the log did not go away but I did manage to log in to the samba server from my iMac, but not my Linux computer for some reason. IIRC I managed to log in via my Android phone as well but only manually by IP and not FQDN.

An alternative solution is also mentioned, where you use the macvlan driver in Docker. I did not have any success with that solution though. Not sure why.

I'm going to leave this though, because I became aware that Time Machine in OS X 10.11 El Capitan unfortunately does not handle Samba. I wish I'd known that from the beginning :) So now I use your Netatalk image instead.

Anyway that seems to have solved it for me. And maybe it does for somebody else too, thanks to mbentley/docker-timemachine!

from samba.

MarvAmBass avatar MarvAmBass commented on July 18, 2024 1

ohhh interessting, so there is a mtls service running on raspberry os.

if on the outside there is an avahi running, you could mount the avahi config into the container, so the container puts it's service into the folder and it should be announced by the host - and the container doesn't start avahi - so there should be no conflict.

from samba.

MarvAmBass avatar MarvAmBass commented on July 18, 2024

thanks I'll take a look :)

from samba.

iwconfig avatar iwconfig commented on July 18, 2024

Great! Thank you! :)

Oh and also I tried rebuilding the image, but that made no difference either.

from samba.

MarvAmBass avatar MarvAmBass commented on July 18, 2024

okay I've just started the latest image, it works without a problem on my side. logs are kinda messed up like:

samba_1  |   tdb(/var/lib/samba/registry.tdb): tdb_open_ex: could not open file /var/lib/samba/registry.tdb: No such file or directory

but I'm able to connect and browser and everything works as expected.

the container on your side is up and running, you use network_mode: host, this means there can be problems if your host system has services which are using the same ports - avahi for example. or maybe a locally installed samba service.

what's you host OS, do you use docker or any other system?

from samba.

MarvAmBass avatar MarvAmBass commented on July 18, 2024

the thing is, you don't seem to be the only one with wierd issues - it seems that some people can't use this container at all, while I and most people just start the compose file and it works

I also testet on raspberry pi 4 and a fresh ubuntu install and didn't have a problem

super super strange, I hope we find and solve this kind of issue! :)

from samba.

MarvAmBass avatar MarvAmBass commented on July 18, 2024

yeah might be the case - or you shutdown most of the containers and just try samba as "standalone"

if possible you might be able to start samba on another server/computer and check if connection works there
sometimes firewall might also be an issue

from samba.

iwconfig avatar iwconfig commented on July 18, 2024

Alright, I've now stopped all other docker containers. The only one running is samba-samba-1.

CONTAINER ID   IMAGE                            COMMAND                  CREATED         STATUS                   PORTS     NAMES
f0b5904f8956   ghcr.io/servercontainers/samba   "/container/scripts/…"   5 minutes ago   Up 4 minutes (healthy)             samba-samba-1

I also restarted everything:

  • My RPI4 (samba server)
  • My main computer
  • My Synology NAS (other samba server)
  • My router

Now StorageServer shows up but I still get connection timeout immediately. My Synology is still off (in case that would interfere somehow). Samba server on my Synology works.

I started up another computer and StorageServer does not show up there, and connecting manually to smb://rpi.local results in connection timeout (though not immediately).

On my Android phone, StorageServer does not show up either.

smb://rpi.local, smb://rpi.local:445 or smb://rpi.local:139 makes no difference.

I don't have any other service running on the host outside of docker.

from samba.

iwconfig avatar iwconfig commented on July 18, 2024

Here's what's currently running on my RPI:

The output of top -b -n 1
top - 15:58:21 up 4 min,  1 user,  load average: 0.02, 0.11, 0.06
Tasks: 142 total,   1 running, 141 sleeping,   0 stopped,   0 zombie
%Cpu(s):  2.6 us,  2.6 sy,  0.0 ni, 94.7 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
MiB Mem :   7812.3 total,   7320.9 free,    130.6 used,    360.8 buff/cache
MiB Swap:    100.0 total,    100.0 free,      0.0 used.   7572.0 avail Mem 

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
   1216 iwconfig     20   0    9716   3112   2704 R   5.9   0.0   0:00.04 top
      1 root      20   0  165224  10052   7360 S   0.0   0.1   0:02.06 systemd
      2 root      20   0       0      0      0 S   0.0   0.0   0:00.01 kthreadd
      3 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 rcu_gp
      4 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 rcu_par_gp
      5 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 slub_flushwq
      6 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 netns
      7 root      20   0       0      0      0 I   0.0   0.0   0:00.00 kworker/0:0-mm_percpu_wq
      8 root       0 -20       0      0      0 I   0.0   0.0   0:00.61 kworker/0:0H-mmc_complete
      9 root      20   0       0      0      0 I   0.0   0.0   0:01.12 kworker/u8:0-events_unbound
     10 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 mm_percpu_wq
     11 root      20   0       0      0      0 I   0.0   0.0   0:00.00 rcu_tasks_kthread
     12 root      20   0       0      0      0 I   0.0   0.0   0:00.00 rcu_tasks_rude_kthread
     13 root      20   0       0      0      0 I   0.0   0.0   0:00.00 rcu_tasks_trace_kthread
     14 root      20   0       0      0      0 S   0.0   0.0   0:00.02 ksoftirqd/0
     15 root      20   0       0      0      0 I   0.0   0.0   0:00.11 rcu_preempt
     16 root      rt   0       0      0      0 S   0.0   0.0   0:00.00 migration/0
     17 root      20   0       0      0      0 S   0.0   0.0   0:00.00 cpuhp/0
     18 root      20   0       0      0      0 S   0.0   0.0   0:00.00 cpuhp/1
     19 root      rt   0       0      0      0 S   0.0   0.0   0:00.00 migration/1
     20 root      20   0       0      0      0 S   0.0   0.0   0:00.01 ksoftirqd/1
     21 root      20   0       0      0      0 I   0.0   0.0   0:00.03 kworker/1:0-events_power_efficient
     22 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 kworker/1:0H-events_highpri
     23 root      20   0       0      0      0 S   0.0   0.0   0:00.00 cpuhp/2
     24 root      rt   0       0      0      0 S   0.0   0.0   0:00.00 migration/2
     25 root      20   0       0      0      0 S   0.0   0.0   0:00.01 ksoftirqd/2
     26 root      20   0       0      0      0 I   0.0   0.0   0:00.08 kworker/2:0-events
     27 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 kworker/2:0H-kblockd
     28 root      20   0       0      0      0 S   0.0   0.0   0:00.00 cpuhp/3
     29 root      rt   0       0      0      0 S   0.0   0.0   0:00.00 migration/3
     30 root      20   0       0      0      0 S   0.0   0.0   0:00.01 ksoftirqd/3
     31 root      20   0       0      0      0 I   0.0   0.0   0:00.00 kworker/3:0-events
     32 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 kworker/3:0H-kblockd
     33 root      20   0       0      0      0 S   0.0   0.0   0:00.00 kdevtmpfs
     34 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 inet_frag_wq
     35 root      20   0       0      0      0 I   0.0   0.0   0:00.00 kworker/0:1-events
     36 root      20   0       0      0      0 S   0.0   0.0   0:00.00 kauditd
     37 root      20   0       0      0      0 I   0.0   0.0   0:00.24 kworker/0:2-events
     38 root      20   0       0      0      0 S   0.0   0.0   0:00.00 khungtaskd
     39 root      20   0       0      0      0 I   0.0   0.0   0:00.28 kworker/u8:1-events_unbound
     40 root      20   0       0      0      0 S   0.0   0.0   0:00.00 oom_reaper
     41 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 writeback
     42 root      20   0       0      0      0 S   0.0   0.0   0:00.01 kcompactd0
     43 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 kintegrityd
     44 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 kblockd
     45 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 blkcg_punt_bio
     46 root     -51   0       0      0      0 S   0.0   0.0   0:00.00 watchdogd
     47 root      20   0       0      0      0 I   0.0   0.0   0:00.00 kworker/u8:2-writeback
     48 root      20   0       0      0      0 I   0.0   0.0   0:00.00 kworker/1:1-events_power_efficient
     49 root       0 -20       0      0      0 I   0.0   0.0   0:00.23 kworker/1:1H-kblockd
     50 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 rpciod
     51 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 xprtiod
     52 root      20   0       0      0      0 I   0.0   0.0   0:00.00 kworker/u8:3
     53 root      20   0       0      0      0 I   0.0   0.0   0:00.15 kworker/2:1-events
     54 root      20   0       0      0      0 I   0.0   0.0   0:00.02 kworker/3:1-events
     55 root      20   0       0      0      0 S   0.0   0.0   0:00.00 kswapd0
     56 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 nfsiod
     57 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 kthrotld
     60 root      20   0       0      0      0 I   0.0   0.0   0:00.00 kworker/1:2-cgroup_destroy
     62 root      20   0       0      0      0 I   0.0   0.0   0:00.05 kworker/0:3-events
     63 root      20   0       0      0      0 S   0.0   0.0   0:00.00 hwrng
     64 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 iscsi_conn_clea
     65 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 nvme-wq
     66 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 nvme-reset-wq
     67 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 nvme-delete-wq
     69 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 DWC Notificatio
     70 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 uas
     71 root       1 -19       0      0      0 S   0.0   0.0   0:00.00 vchiq-slot/0
     72 root       1 -19       0      0      0 S   0.0   0.0   0:00.00 vchiq-recy/0
     73 root       0 -20       0      0      0 S   0.0   0.0   0:00.00 vchiq-sync/0
     74 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 zswap-shrink
     75 root       0 -20       0      0      0 I   0.0   0.0   0:00.52 kworker/u9:0-brcmf_wq/mmc1:0001:1
     96 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 sdhci
     97 root     -51   0       0      0      0 S   0.0   0.0   0:00.00 irq/36-mmc0
     98 root      20   0       0      0      0 I   0.0   0.0   0:00.00 kworker/2:2
     99 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 mmc_complete
    100 root       0 -20       0      0      0 I   0.0   0.0   0:00.29 kworker/2:1H-kblockd
    101 root       0 -20       0      0      0 I   0.0   0.0   0:00.02 kworker/0:1H-kblockd
    102 root      20   0       0      0      0 S   0.0   0.0   0:00.02 jbd2/mmcblk0p2-8
    103 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 ext4-rsv-conver
    104 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 kworker/2:2H
    105 root       0 -20       0      0      0 I   0.0   0.0   0:00.22 kworker/3:1H-kblockd
    106 root      20   0       0      0      0 I   0.0   0.0   0:00.00 kworker/0:4-mm_percpu_wq
    107 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 kworker/1:2H
    108 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 mld
    109 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 ipv6_addrconf
    111 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 kworker/3:2H
    125 root       0 -20       0      0      0 I   0.0   0.0   0:00.01 kworker/0:2H-mmc_complete
    141 root      20   0   49112  17124  16192 S   0.0   0.2   0:00.68 systemd-journal
    154 root      20   0       0      0      0 I   0.0   0.0   0:00.00 kworker/2:3-cgroup_destroy
    161 root      20   0       0      0      0 I   0.0   0.0   0:00.00 kworker/3:2-cgroup_destroy
    174 root      20   0   21648   6156   3772 S   0.0   0.1   0:01.07 systemd-udevd
    202 root      20   0       0      0      0 S   0.0   0.0   0:00.00 vchiq-keep/0
    207 root      10 -10       0      0      0 S   0.0   0.0   0:00.00 SMIO
    244 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 cfg80211
    245 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 mmal-vchiq
    252 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 mmal-vchiq
    254 root     -51   0       0      0      0 S   0.0   0.0   0:00.00 irq/37-feb10000.codec
    255 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 mmal-vchiq
    259 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 mmal-vchiq
    261 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 mmal-vchiq
    262 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 mmal-vchiq
    264 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 mmal-vchiq
    267 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 brcmf_wq/mmc1:0
    272 root      20   0       0      0      0 S   0.0   0.0   0:00.04 brcmf_wdog/mmc1:0001:1
    297 root       0 -20       0      0      0 I   0.0   0.0   0:00.01 kworker/u9:1-hci0
    298 root      20   0       0      0      0 I   0.0   0.0   0:00.01 kworker/1:3-events_power_efficient
    320 root      20   0       0      0      0 I   0.0   0.0   0:00.00 kworker/3:3-cgroup_destroy
    331 systemd+  20   0   88108   6264   5532 S   0.0   0.1   0:00.31 systemd-timesyn
    366 avahi     20   0    7076   2796   2484 S   0.0   0.0   0:00.12 avahi-daemon
    367 root      20   0    6696   2356   2160 S   0.0   0.0   0:00.01 cron
    368 message+  20   0    8148   3912   3364 S   0.0   0.0   0:00.21 dbus-daemon
    376 root      20   0  233960   6224   5532 S   0.0   0.1   0:00.08 polkitd
    382 root      20   0  220884   3288   2824 S   0.0   0.0   0:00.09 rsyslogd
    385 avahi     20   0    6892    312      0 S   0.0   0.0   0:00.00 avahi-daemon
    394 root      20   0   14384   6480   5672 S   0.0   0.1   0:00.26 systemd-logind
    395 nobody    20   0    5484   2496   2276 S   0.0   0.0   0:00.01 thd
    396 root      20   0   13580   4760   4140 S   0.0   0.1   0:00.03 wpa_supplicant
    444 root      20   0   92292     96      0 S   0.0   0.0   0:00.07 rngd
    460 root      20   0       0      0      0 I   0.0   0.0   0:00.00 kworker/3:4-cgroup_destroy
    478 root      20   0 1417616  41032  26384 S   0.0   0.5   0:00.58 containerd
    483 root      20   0       0      0      0 I   0.0   0.0   0:00.00 kworker/3:5
    485 root      20   0  244192   9912   8368 S   0.0   0.1   0:00.13 ModemManager
    496 root      20   0   13984   3712   2780 S   0.0   0.0   0:00.01 wpa_supplicant
    508 root      20   0   13652   6948   6000 S   0.0   0.1   0:00.03 sshd
    536 root      20   0    2124    136      0 S   0.0   0.0   0:00.00 hciattach
    538 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 kworker/u9:2
    550 root      20   0   23864   9228   8072 S   0.0   0.1   0:00.05 bluetoothd
    618 root      20   0    3052   1748   1324 S   0.0   0.0   0:00.00 dhcpcd
    619 root      20   0 1516652  68256  42248 S   0.0   0.9   0:01.60 dockerd
    622 root      20   0    5476   1316   1212 S   0.0   0.0   0:00.01 agetty
    658 iwconfig     20   0   16040   8136   6848 S   0.0   0.1   0:00.25 systemd
    666 iwconfig     20   0  169000   4612   1676 S   0.0   0.1   0:00.00 (sd-pam)
    860 root      20   0  720180   9412   7360 S   0.0   0.1   0:00.24 containerd-shim
    882 root      20   0     852    568    528 S   0.0   0.0   0:00.05 runsvdir
    902 root      20   0     832      4      0 S   0.0   0.0   0:00.00 runsv
    903 root      20   0   44572  17688  15368 S   0.0   0.2   0:00.22 smbd
    923 root      20   0   43296   5176   2864 S   0.0   0.1   0:00.00 smbd-notifyd
    924 root      20   0   43288   4756   2444 S   0.0   0.1   0:00.00 cleanupd
    932 root      20   0   16000   7852   6660 S   0.0   0.1   0:00.02 sshd
    938 iwconfig     20   0   16272   4744   3512 S   0.0   0.1   0:00.35 sshd
    939 iwconfig     20   0    8088   4924   3176 S   0.0   0.1   0:00.13 bash

from samba.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.