OS/2, eCS & ArcaOS - Technical > Networking
Updated Samba Client
Paul Smedley:
Thanks KO, I'm going to rebuild with the attached...
Edit: I did - 'net rpc user' triggered a hang and the last bits in log.smbd were:
--- Code: ---[2024/08/12 18:36:09.211000, 10, pid=29073, effective(109, 514), real(0, 0)] ../../source3/rpc_client/local_np.c:175(np_sock_connect_connected)
np_sock_connect_connected: async_connect_recv returned Can't assign requested address
[2024/08/12 18:36:09.211000, 10, pid=29073, effective(109, 514), real(0, 0)] ../../source3/rpc_client/local_np.c:699(local_np_connect_connected)
local_np_connect_connected: np_sock_connect failed: Can't assign requested address
--- End code ---
As I recall, I got something simialr previously - address was \\socket\\xxxx which no surprise can't be assigned...
Anyone, a job for later in the week...
KO Myung-Hun:
Any reason to omit socket dir part such as lp_ncalrpc_dir() and socket_dir?
And in
--- Code: ---diff --git a/source3/rpc_client/local_np.c b/source3/rpc_client/local_np.c
index 791ded99a..e8f97f127 100644
--- a/source3/rpc_client/local_np.c
+++ b/source3/rpc_client/local_np.c
@@ -555,8 +555,13 @@ struct tevent_req *local_np_connect_send(
return tevent_req_post(req, ev);
}
+#ifndef __OS2__
+ state->socketpath = talloc_asprintf(
+ state, "\\socket\\np\\%s", lower_case_pipename);
+#else
state->socketpath = talloc_asprintf(
state, "%s/np/%s", socket_dir, lower_case_pipename);
+#endif
if (tevent_req_nomem(state->socketpath, req)) {
return tevent_req_post(req, ev);
}
--- End code ---
I think, #ifndef is a typo. It should be #ifdef, right ?
Paul Smedley:
Hi KO!
I omitted the directory as part of the socket name as I couldn't remember the rules around socket names - but figured something like \\socket\\c:\mptn\etc\samba\np\xxxx may not be allowed..
Yes you are right - that was a typo. That now lets me trigger a hang as soon as I attempt 'net rpc user -S 192.168.1.135' from a linux box (where 192.168.1.135 is the IP of the ArcaOS box).
The error is still:
--- Code: ---[2024/08/13 18:47:25.882000, 10, pid=4720, effective(109, 514), real(0, 0)] ../../source3/rpc_client/local_np.c:175(np_sock_connect_connected)
np_sock_connect_connected: async_connect_recv returned Can't assign requested address
[2024/08/13 18:47:25.882000, 10, pid=4720, effective(109, 514), real(0, 0)] ../../source3/rpc_client/local_np.c:699(local_np_connect_connected)
local_np_connect_connected: np_sock_connect failed: Can't assign requested address
--- End code ---
Interestingly, log.samba-dceprcd ends with:
--- Code: ---[2024/08/13 18:47:26.181000, 10, pid=4722, effective(0, 0), real(0, 0)] ../../source3/rpc_server/rpc_host.c:2435(rpc_host_send)
rpc_host_send: server_setup for U:/dev/samba-os2-4.19.x/bin/rpcd_classic.exe index 0
[2024/08/13 18:47:26.368000, 10, pid=4722, effective(0, 0), real(0, 0)] ../../source3/rpc_server/rpc_host.c:2435(rpc_host_send)
rpc_host_send: server_setup for U:/dev/samba-os2-4.19.x/bin/rpcd_epmapper.exe index 1
[2024/08/13 18:47:26.548000, 10, pid=4722, effective(0, 0), real(0, 0)] ../../source3/rpc_server/rpc_host.c:2435(rpc_host_send)
rpc_host_send: server_setup for U:/dev/samba-os2-4.19.x/bin/rpcd_fsrvp.exe index 2
[2024/08/13 18:47:26.736000, 10, pid=4722, effective(0, 0), real(0, 0)] ../../source3/rpc_server/rpc_host.c:2435(rpc_host_send)
rpc_host_send: server_setup for U:/dev/samba-os2-4.19.x/bin/rpcd_lsad.exe index 3
[2024/08/13 18:47:27.370000, 10, pid=4722, effective(0, 0), real(0, 0)] ../../source3/rpc_server/rpc_host.c:2435(rpc_host_send)
rpc_host_send: server_setup for U:/dev/samba-os2-4.19.x/bin/rpcd_mdssvc.exe index 4
[2024/08/13 18:47:27.730000, 10, pid=4722, effective(0, 0), real(0, 0)] ../../source3/rpc_server/rpc_host.c:2435(rpc_host_send)
rpc_host_send: server_setup for U:/dev/samba-os2-4.19.x/bin/rpcd_spoolss.exe index 5
[2024/08/13 18:47:27.902000, 10, pid=4722, effective(0, 0), real(0, 0)] ../../source3/rpc_server/rpc_host.c:2435(rpc_host_send)
rpc_host_send: server_setup for U:/dev/samba-os2-4.19.x/bin/rpcd_winreg.exe index 6
[2024/08/13 18:47:28.058000, 10, pid=4722, effective(0, 0), real(0, 0)] ../../source3/rpc_server/rpc_host.c:1784(rpc_host_sigchld)
rpc_host_sigchld: pid=4726, wstatus=0
[2024/08/13 18:47:28.058000, 1, pid=4722, effective(0, 0), real(0, 0)] ../../source3/rpc_server/rpc_host.c:1752(rpc_worker_exited)
rpc_worker_exited: No worker with PID 4726
[2024/08/13 18:47:28.058000, 10, pid=4722, effective(0, 0), real(0, 0)] ../../source3/rpc_server/rpc_host.c:1784(rpc_host_sigchld)
rpc_host_sigchld: pid=4724, wstatus=0
[2024/08/13 18:47:28.058000, 1, pid=4722, effective(0, 0), real(0, 0)] ../../source3/rpc_server/rpc_host.c:1752(rpc_worker_exited)
rpc_worker_exited: No worker with PID 4724
[2024/08/13 18:47:28.058000, 10, pid=4722, effective(0, 0), real(0, 0)] ../../source3/rpc_server/rpc_host.c:1784(rpc_host_sigchld)
rpc_host_sigchld: pid=4723, wstatus=0
[2024/08/13 18:47:28.058000, 1, pid=4722, effective(0, 0), real(0, 0)] ../../source3/rpc_server/rpc_host.c:1752(rpc_worker_exited)
rpc_worker_exited: No worker with PID 4723
[2024/08/13 18:47:28.355000, 10, pid=4722, effective(0, 0), real(0, 0)] ../../source3/rpc_server/rpc_host.c:1784(rpc_host_sigchld)
rpc_host_sigchld: pid=4730, wstatus=0
[2024/08/13 18:47:28.355000, 1, pid=4722, effective(0, 0), real(0, 0)] ../../source3/rpc_server/rpc_host.c:1752(rpc_worker_exited)
rpc_worker_exited: No worker with PID 4730
[2024/08/13 18:47:28.654000, 10, pid=4722, effective(0, 0), real(0, 0)] ../../source3/rpc_server/rpc_host.c:1784(rpc_host_sigchld)
rpc_host_sigchld: pid=4728, wstatus=0
[2024/08/13 18:47:28.654000, 1, pid=4722, effective(0, 0), real(0, 0)] ../../source3/rpc_server/rpc_host.c:1752(rpc_worker_exited)
rpc_worker_exited: No worker with PID 4728
[2024/08/13 18:47:28.663000, 10, pid=4722, effective(0, 0), real(0, 0)] ../../source3/rpc_server/rpc_host.c:1784(rpc_host_sigchld)
rpc_host_sigchld: pid=4733, wstatus=0
[2024/08/13 18:47:28.663000, 1, pid=4722, effective(0, 0), real(0, 0)] ../../source3/rpc_server/rpc_host.c:1752(rpc_worker_exited)
rpc_worker_exited: No worker with PID 4733
[2024/08/13 18:47:28.683000, 10, pid=4722, effective(0, 0), real(0, 0)] ../../source3/rpc_server/rpc_host.c:1784(rpc_host_sigchld)
rpc_host_sigchld: pid=4735, wstatus=0
[2024/08/13 18:47:28.683000, 1, pid=4722, effective(0, 0), real(0, 0)] ../../source3/rpc_server/rpc_host.c:1752(rpc_worker_exited)
rpc_worker_exited: No worker with PID 4735
--- End code ---
That could be due to pipe() in lieu of socketpair()... will go hunting...
Edit: attached patch eliminates the errors in log.samba-dcerpcd but still get the log.smbd errors.
Paul Smedley:
Will update Post 1 shortly...
samba 4.19.8 (Build with GCC 9.x, which seems to resolve some hangs at exit) - https://smedley.id.au/tmp/samba-4.19.8-os2-20240816.zip
Client DLL - https://smedley.id.au/tmp/smbcl419-4.19.8-20240816.zip
issues with 'net rpc user' persist.
David McKenna:
Thanks Paul!
The client works well with your version 4.19.7 built with gcc 9.
I have troubles with the server though (installed using the SSCC app). Once again, winbindd.exe hangs the machine solid and need to do a hard reset. I renamed winbindd.exe so it wouldn't run and now the server runs. I can browse and use files from Windows, but as soon as I try to use OS/2 (with the new client) I get a 'access denied' message and the server locks solid, and needs a hard reset. Going back to 4.19.7 everything works again.
Regards,
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version