Git Product home page Git Product logo

Comments (6)

adi98g avatar adi98g commented on July 18, 2024 1

Done! Tks a lot for your support ! was just stupid typo!
A\

from samba.

MarvAmBass avatar MarvAmBass commented on July 18, 2024

can you fix the docker-compose part, so I can try on my machine

from samba.

adi98g avatar adi98g commented on July 18, 2024

Except the passw string, everything is exactly as I have in my docker-compose.yml . I have removed "build: ." line . Now I have container started but no ports mapped. I added then :

ports:
- "137:137/udp" # required to advertise shares (NMBD)
- "138:138/udp" # required to advertise shares (NMBD)
- "139:139/tcp" # default smb port
- "445:445/tcp" # default smb port

and when try to buid I'm getting :
yaml: line 36: did not find expected '-' indicator

Thanks for quick stepping in!

from samba.

MarvAmBass avatar MarvAmBass commented on July 18, 2024

I'd suggest removing: hostname: SMB-srv7 with network_mode: host you already bind everything to your docker host, which already has a hostname
also exposing ports is not nessary

I'd also recommend doing this:

  SAMBA_VOLUME_CONFIG_syncro: "[2shareHome64]; path=/shares/64G; valid users = synchro; guest ok = no; read only = no; browseable = yes"
  
volumes:
  
  # avoid loops when mounting folders to /shares (I'd recommend explicit mapping for each share)
  - /2share-64G:/shares/64G

other than that I could not imagine what the problem might be. what's your host? normal linux pc?

from samba.

MarvAmBass avatar MarvAmBass commented on July 18, 2024

ahh yeah as the error message said, it didn;t find the docker file, since you didn't clone the whole repo.
which is fine, since it can be pulled from the servers.

I guess it;s working now

and exporting ports is optional with network_mode host

from samba.

adi98g avatar adi98g commented on July 18, 2024

Well, the longest time spent for the simplest issue; It is a bullseye on raspberry. Now the container is up(healthy) I can see the mapped drive from inside:
/ # ls -trals /shares/64G/
total 260
0 -rwxr-xr-x 1 root root 0 Nov 6 12:23 this is flash64G.txt
128 drwxr-xr-x 2 root root 131072 Nov 6 17:32 System Volume Information
0 -rwxr-xr-x 1 root root 0 Nov 9 20:10 lll.txt
0 -rwxr-xr-x 1 root root 0 Nov 9 20:16 bb.txt
128 drwxr-xr-x 3 root root 131072 Nov 9 20:16 .
4 drwxr-xr-x 3 root root 4096 Nov 10 09:03 ..
/ # ls -trald /shares/64G/
drwxr-xr-x 3 root root 131072 Nov 9 20:16 /shares/64G/

and from host:
admin@srv-rsp7:/SAMBA-srv/dockerfiles $ ls -trald /2share-64G/
drwxr-xr-x 3 root root 131072 Nov 9 22:16 /2share-64G/
admin@srv-rsp7:
/SAMBA-srv/dockerfiles $ ls -trals /2share-64G/
total 260
0 -rwxr-xr-x 1 root root 0 Nov 6 14:23 'this is flash64G.txt'
128 drwxr-xr-x 2 root root 131072 Nov 6 19:32 'System Volume Information'
4 drwxr-xr-x 21 root root 4096 Nov 9 21:50 ..
0 -rwxr-xr-x 1 root root 0 Nov 9 22:10 lll.txt
0 -rwxr-xr-x 1 root root 0 Nov 9 22:16 bb.txt
128 drwxr-xr-x 3 root root 131072 Nov 9 22:16 .

but when try to map shared drive on windows , is "Attempting to connect " long time and the clever troubleshooter says :
your computre appears to be correctly configured but the device detected or resource is not responding
image

Firewall on PC disabled
SAMBA log says that connections are allowd:
Could not open tdb: No such file or directory
[2022/11/10 09:03:56.769403, 3] ../../source3/auth/token_util.c:688(finalize_local_nt_token)
Failed to fetch domain sid for WORKGROUP
[2022/11/10 09:03:56.772933, 3] ../../librpc/rpc/dcesrv_core.c:2600(dcerpc_register_ep_server)
DCERPC endpoint server 'winreg' registered
[2022/11/10 09:03:56.773005, 3] ../../librpc/rpc/dcesrv_core.c:2600(dcerpc_register_ep_server)
DCERPC endpoint server 'srvsvc' registered
[2022/11/10 09:03:56.773084, 3] ../../librpc/rpc/dcesrv_core.c:2600(dcerpc_register_ep_server)
DCERPC endpoint server 'lsarpc' registered
[2022/11/10 09:03:56.773144, 3] ../../librpc/rpc/dcesrv_core.c:2600(dcerpc_register_ep_server)
DCERPC endpoint server 'samr' registered
[2022/11/10 09:03:56.773223, 3] ../../librpc/rpc/dcesrv_core.c:2600(dcerpc_register_ep_server)
DCERPC endpoint server 'netdfs' registered
[2022/11/10 09:03:56.773259, 3] ../../librpc/rpc/dcesrv_core.c:2600(dcerpc_register_ep_server)
DCERPC endpoint server 'dssetup' registered
[2022/11/10 09:03:56.773289, 3] ../../librpc/rpc/dcesrv_core.c:2600(dcerpc_register_ep_server)
DCERPC endpoint server 'wkssvc' registered
[2022/11/10 09:03:56.773321, 3] ../../librpc/rpc/dcesrv_core.c:2600(dcerpc_register_ep_server)
DCERPC endpoint server 'spoolss' registered
[2022/11/10 09:03:56.773349, 3] ../../librpc/rpc/dcesrv_core.c:2600(dcerpc_register_ep_server)
DCERPC endpoint server 'svcctl' registered
[2022/11/10 09:03:56.773377, 3] ../../librpc/rpc/dcesrv_core.c:2600(dcerpc_register_ep_server)
DCERPC endpoint server 'ntsvcs' registered
[2022/11/10 09:03:56.773405, 3] ../../librpc/rpc/dcesrv_core.c:2600(dcerpc_register_ep_server)
DCERPC endpoint server 'eventlog' registered
[2022/11/10 09:03:56.773439, 3] ../../librpc/rpc/dcesrv_core.c:2600(dcerpc_register_ep_server)
DCERPC endpoint server 'initshutdown' registered
[2022/11/10 09:03:56.773468, 3] ../../source3/rpc_server/rpc_modules.c:64(register_rpc_module)
register_rpc_module: Successfully added RPC module 'mdssvc'
[2022/11/10 09:03:56.773565, 3] ../../librpc/rpc/dcesrv_core.c:2600(dcerpc_register_ep_server)
DCERPC endpoint server 'mdssvc' registered
[2022/11/10 09:03:56.774287, 3] ../../source3/rpc_server/svcctl/srv_svcctl_reg.c:565(svcctl_init_winreg)
Initialise the svcctl registry keys if needed.
[2022/11/10 09:03:56.814045, 3] ../../source3/rpc_server/eventlog/srv_eventlog_reg.c:59(eventlog_init_winreg)
Initialise the eventlog registry keys if needed.
[2022/11/10 09:03:56.819701, 3] ../../source3/printing/queue_process.c:359(start_background_queue)
start_background_queue: Starting background LPQ thread
[2022/11/10 09:03:56.925385, 1] ../../source3/printing/printer_list.c:255(printer_list_get_last_refresh)
Failed to fetch record!
[2022/11/10 09:03:56.925445, 2] ../../source3/smbd/server.c:1364(smbd_parent_loop)
waiting for connections
[2022/11/10 09:05:55.630098, 2] ../../source3/lib/tallocmsg.c:84(register_msg_pool_usage)
Registered MSG_REQ_POOL_USAGE
[2022/11/10 09:05:55.632509, 3] ../../lib/util/access.c:316(allow_access)
Allowed connection from 192.168.2.59 (192.168.2.59)

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.