Is 'active (exited) Since <date> 2 minutes ago' a correct st

New to Debian (Or Linux in general)? Ask your questions here!

Is 'active (exited) Since <date> 2 minutes ago' a correct st

Postby Steven1965 » 2019-10-01 11:32

I am new to linux/debian, and I just set up openmediavault distro.

It's a debian distro with FTP server, web server, SAMBA server....

It's in my old PC, I can ping it from windows PC, I can ping windows PC from that.

I can access it trough HTTP (port 80), the web panel.

I can also connect to it by SFTP, upload and download files.

I have created a Share folder, enabled SMB.

But.... I can't connect to network drive from Windows (Windows 10) directly, I can't map it, it is not visible in Network at all...

Workgroup is the same in settings.

I can't even access it by typing IP/share name directly in Windows explorer.

I started suspecting that it might be a Samba issue, because Windows 10 firewall is off.

I typed systemctl status smbd to check the samba status and got that:
Code: Select all
smbd.service - LSB: start SMB/CIFS deamon (smbd)
Loaded: loaded (/etc/init.d/smbd)
Active: active (exited) since Sun 2019-09-29 11:43:21 EDT: 2min 48s ag
o Process: 80B ExecStart=/etc/init.d/smbd start (code=exited,status=0/SUCCESS)

So, is this a correct status for Samba?

Is something wrong with my Samba? Or why can't I connect to it?
What "active (exited)" means?
Steven1965
 
Posts: 3
Joined: 2019-10-01 11:30

Re: Is 'active (exited) Since <date> 2 minutes ago' a correc

Postby Head_on_a_Stick » 2019-10-01 17:04

Steven1965 wrote:I just set up openmediavault distro

Are you lost?

https://forum.openmediavault.org/
Don't break DebianHow to report bugs

SharpBang GNU/Linux — a pre-configured Openbox/Tint2 desktop running on Debian stable
User avatar
Head_on_a_Stick
 
Posts: 10613
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Is 'active (exited) Since <date> 2 minutes ago' a correc

Postby trinidad » 2019-10-01 18:37

Its funny to me how most users assume problems with samba are always on the linux end of the connections. Read through the link below for several common things that can cause your Windows 10 machine to not see your linux shares, all caused by MS update and upgrade paths. Then go find the right forum as suggested.

https://www.dbts-analytics.com/w10ll4ntwk6.html

TC
You can't believe your eyes if your imagination is out of focus.
trinidad
 
Posts: 76
Joined: 2016-08-04 14:58

Re: Is 'active (exited) Since <date> 2 minutes ago' a correc

Postby Steven1965 » 2019-10-02 07:51

Head_on_a_Stick wrote:
Steven1965 wrote:I just set up openmediavault distro

Are you lost?

https://forum.openmediavault.org/


tried, no reply there

trinidad wrote:Its funny to me how most users assume problems with samba are always on the linux end of the connections. Read through the link below for several common things that can cause your Windows 10 machine to not see your linux shares, all caused by MS update and upgrade paths. Then go find the right forum as suggested.

https://www.dbts-analytics.com/w10ll4ntwk6.html

TC


tried partially, also I am already able to connect by SMB to the QNAP, but I will recheck exacly the site you provided



Also, guys, what "active (exited) Since <date> 2 minutes ago" means? Doesn't it mean that the samba service has exited on startup and is no longer running?
Steven1965
 
Posts: 3
Joined: 2019-10-01 11:30

Re: Is 'active (exited) Since <date> 2 minutes ago' a correc

Postby Head_on_a_Stick » 2019-10-02 17:12

Steven1965 wrote:what "active (exited) Since <date> 2 minutes ago" means? Doesn't it mean that the samba service has exited on startup and is no longer running?

It indicates the unit file does not have RemainOnExit set. Use pgrep or systemd-cgls to see if it's running now.

This will give more information:
Code: Select all
journalctl -u smbd
Don't break DebianHow to report bugs

SharpBang GNU/Linux — a pre-configured Openbox/Tint2 desktop running on Debian stable
User avatar
Head_on_a_Stick
 
Posts: 10613
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Is 'active (exited) Since <date> 2 minutes ago' a correc

Postby Steven1965 » 2019-10-02 19:28

First of all, I would like to note that SMB is enabled in openmediavault web panel and there is one share folder created.

Ok, so I checked again today after powering up the server:
journalctl -u smbd
Code: Select all
root@openmediavault:~# journalctl -u smbd
-- Logs begin at Wed 2019-10-02 15:52:33 EDT, end at Wed 2019-10-02 16:00:06 EDT. --
Oct 02 15:52:57 openmediavault systemd[1]: Starting LSB: start Samba SMB/CIFS daemon (smbd)...
Oct 02 15:52:58 openmediavault smbd[811]: Starting SMB/CIFS daemon: smbd.
Oct 02 15:52:58 openmediavault systemd[1]: Started LSB: start Samba SMB/CIFS daemon (smbd).
Oct 02 15:57:48 openmediavault systemd[1]: Reloading LSB: start Samba SMB/CIFS daemon (smbd).
Oct 02 15:57:48 openmediavault smbd[1117]: Reloading /etc/samba/smb.conf: smbd.
Oct 02 15:57:48 openmediavault systemd[1]: Reloaded LSB: start Samba SMB/CIFS daemon (smbd).
root@openmediavault:~#

systemctl status smbd
Code: Select all
root@openmediavault:~# systemctl status smbd
● smbd.service - LSB: start Samba SMB/CIFS daemon (smbd)
   Loaded: loaded (/etc/init.d/smbd)
   Active: active (exited) since Wed 2019-10-02 15:52:58 EDT; 9min ago
  Process: 1117 ExecReload=/etc/init.d/smbd reload (code=exited, status=0/SUCCESS)
  Process: 811 ExecStart=/etc/init.d/smbd start (code=exited, status=0/SUCCESS)

Oct 02 15:52:57 openmediavault systemd[1]: Starting LSB: start Samba SMB/CIFS daemon (smbd)...
Oct 02 15:52:58 openmediavault smbd[811]: Starting SMB/CIFS daemon: smbd.
Oct 02 15:52:58 openmediavault systemd[1]: Started LSB: start Samba SMB/CIFS daemon (smbd).
Oct 02 15:57:48 openmediavault systemd[1]: Reloading LSB: start Samba SMB/CIFS daemon (smbd).
Oct 02 15:57:48 openmediavault smbd[1117]: Reloading /etc/samba/smb.conf: smbd.
Oct 02 15:57:48 openmediavault systemd[1]: Reloaded LSB: start Samba SMB/CIFS daemon (smbd).


pgrep
Code: Select all

root@openmediavault:~# pgrep smbd
root@openmediavault:~# pgrep smb
root@openmediavault:~# pgrep ssh
630
965
root@openmediavault:~#



also, when I try to restart samba:
Code: Select all
root@openmediavault:~# /etc/init.d/smbd restart
[ ok ] Restarting smbd (via systemctl): smbd.service.
root@openmediavault:~# systemctl status smbd
● smbd.service - LSB: start Samba SMB/CIFS daemon (smbd)
   Loaded: loaded (/etc/init.d/smbd)
   Active: active (exited) since Wed 2019-10-02 16:06:59 EDT; 20s ago
  Process: 1212 ExecStop=/etc/init.d/smbd stop (code=exited, status=0/SUCCESS)
  Process: 1117 ExecReload=/etc/init.d/smbd reload (code=exited, status=0/SUCCESS)
  Process: 1218 ExecStart=/etc/init.d/smbd start (code=exited, status=0/SUCCESS)

Oct 02 16:06:59 openmediavault smbd[1218]: Starting SMB/CIFS daemon: smbd.
Oct 02 16:06:59 openmediavault systemd[1]: Started LSB: start Samba SMB/CIFS daemon (smbd).
root@openmediavault:~#

I typed "restart" command, waited a while, and typed "systemctl" command, and it looks like it's exiting just after start.


I'm not quite sure what to do, is there anyone using samba who can check the "systemctl status smbd" command result on working samba system?
Steven1965
 
Posts: 3
Joined: 2019-10-01 11:30


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable