samba not starting from systemctl: timeoutHow to convert this custom upstart job to systemd?smbd (samba daemon) does not listen on ports 139/445Why does my systemd service shut down immediately after running?Systemd doesn't restart monit after killSamba not starting after upgrade to 16.04.3Samba not starting after upgrade to 16.04, mostly a systemd questionOpenVPN riddling syslog with errors, but otherwise seems to work flawlesslyBoot time takes more than 5 minutes after moving partitions in Ubuntu 18.04samba connection timeout18.04 How to install new kernel with samba service failing error code 1?
School performs periodic password audits. Is my password compromised?
ESPP--any reason not to go all in?
How to write a chaotic neutral protagonist and prevent my readers from thinking they are evil?
Should I file my taxes? No income, unemployed, but paid 2k in student loan interest
Does the US political system, in principle, allow for a no-party system?
I am the light that shines in the dark
How to install "rounded" brake pads
Can I negotiate a patent idea for a raise, under French law?
Trigger on Custom Object Share
Why do phishing e-mails use faked e-mail addresses instead of the real one?
Sort array by month and year
How to recover against Snake as a heavyweight character?
Does an unused member variable take up memory?
Unfamiliar notation in Diabelli's "Duet in D" for piano
Why does this boat have a landing pad? (SpaceX's GO Searcher) Any plans for propulsive capsule landings?
What is the oldest European royal house?
Help! My Character is too much for her story!
Do I need a return ticket to Canada if I'm a Japanese National?
Can Witch Sight see through Mirror Image?
Short story about cities being connected by a conveyor belt
How to make sure I'm assertive enough in contact with subordinates?
Too soon for a plot twist?
What is Tony Stark injecting into himself in Iron Man 3?
How would an energy-based "projectile" blow up a spaceship?
samba not starting from systemctl: timeout
How to convert this custom upstart job to systemd?smbd (samba daemon) does not listen on ports 139/445Why does my systemd service shut down immediately after running?Systemd doesn't restart monit after killSamba not starting after upgrade to 16.04.3Samba not starting after upgrade to 16.04, mostly a systemd questionOpenVPN riddling syslog with errors, but otherwise seems to work flawlesslyBoot time takes more than 5 minutes after moving partitions in Ubuntu 18.04samba connection timeout18.04 How to install new kernel with samba service failing error code 1?
I attempting to set up a samba server on an ubuntu server (18.04). I needed to compile from sources since I need special support for Mac OS and time machine is which is available only in versions 4.8 or above.
I tried installing 4.9.2 and followed the instructions here with the exception that I needed to disable LDAP and AD support for configure. The build and install went fine so I copied the systemctl files into place and tried to start everything.
super@fulton:~/samba/samba-samba-4.9.2$ sudo systemctl start nmb,smb,winbind.service
Job for nmb.service failed because a timeout was exceeded.
See "systemctl status nmb.service" and "journalctl -xe" for details.
Job for winbind.service failed because a timeout was exceeded.
See "systemctl status winbind.service" and "journalctl -xe" for details.
Job for smb.service failed because a timeout was exceeded.
See "systemctl status smb.service" and "journalctl -xe" for details.
status gives:
● smb.service - Samba SMB Daemon
Loaded: loaded (/lib/systemd/system/smb.service; enabled; vendor preset: enabled)
Active: failed (Result: timeout) since Thu 2019-01-31 14:46:34 NZDT; 13min ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Process: 12343 ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS (code=killed, signal=TERM)
Main PID: 12343 (code=killed, signal=TERM)
Jan 31 14:45:04 fulton.geek.nz systemd[1]: Starting Samba SMB Daemon...
Jan 31 14:46:34 fulton.geek.nz systemd[1]: smb.service: Start operation timed out. Terminating.
Jan 31 14:46:34 fulton.geek.nz systemd[1]: smb.service: Failed with result 'timeout'.
Jan 31 14:46:34 fulton.geek.nz systemd[1]: Failed to start Samba SMB Daemon.
But /var/log/samba/log.smbd suggests that the services started.
[2019/01/31 14:45:04.465362, 0] ../lib/util/become_daemon.c:138(daemon_ready)
daemon_ready: STATUS=daemon 'smbd' finished starting up and ready to serve connections
so it looks as if there is something wrong with the systemd script and it is killing off the process when it does not get some expected response.
Any ideas what to look for?
update: I was successfully able to start smbd from the command line and attach to shared which suggest that there is an issue with the systemd script. I note that smbd is invoked with the --foreground is this correct? I guess systemd intends to background the process itself so it can manage it?
here is the config:
[Unit]
Description=Samba SMB Daemon
Documentation=man:smbd(8) man:samba(7) man:smb.conf(5)
Wants=network-online.target
After=network.target network-online.target nmb.service winbind.service
[Service]
Type=notify
NotifyAccess=all
PIDFile=/var/run/samba/smbd.pid
LimitNOFILE=16384
EnvironmentFile=-/etc/sysconfig/samba
ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS
ExecReload=/bin/kill -HUP $MAINPID
LimitCORE=infinity
[Install]
WantedBy=multi-user.target
samba systemd
add a comment |
I attempting to set up a samba server on an ubuntu server (18.04). I needed to compile from sources since I need special support for Mac OS and time machine is which is available only in versions 4.8 or above.
I tried installing 4.9.2 and followed the instructions here with the exception that I needed to disable LDAP and AD support for configure. The build and install went fine so I copied the systemctl files into place and tried to start everything.
super@fulton:~/samba/samba-samba-4.9.2$ sudo systemctl start nmb,smb,winbind.service
Job for nmb.service failed because a timeout was exceeded.
See "systemctl status nmb.service" and "journalctl -xe" for details.
Job for winbind.service failed because a timeout was exceeded.
See "systemctl status winbind.service" and "journalctl -xe" for details.
Job for smb.service failed because a timeout was exceeded.
See "systemctl status smb.service" and "journalctl -xe" for details.
status gives:
● smb.service - Samba SMB Daemon
Loaded: loaded (/lib/systemd/system/smb.service; enabled; vendor preset: enabled)
Active: failed (Result: timeout) since Thu 2019-01-31 14:46:34 NZDT; 13min ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Process: 12343 ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS (code=killed, signal=TERM)
Main PID: 12343 (code=killed, signal=TERM)
Jan 31 14:45:04 fulton.geek.nz systemd[1]: Starting Samba SMB Daemon...
Jan 31 14:46:34 fulton.geek.nz systemd[1]: smb.service: Start operation timed out. Terminating.
Jan 31 14:46:34 fulton.geek.nz systemd[1]: smb.service: Failed with result 'timeout'.
Jan 31 14:46:34 fulton.geek.nz systemd[1]: Failed to start Samba SMB Daemon.
But /var/log/samba/log.smbd suggests that the services started.
[2019/01/31 14:45:04.465362, 0] ../lib/util/become_daemon.c:138(daemon_ready)
daemon_ready: STATUS=daemon 'smbd' finished starting up and ready to serve connections
so it looks as if there is something wrong with the systemd script and it is killing off the process when it does not get some expected response.
Any ideas what to look for?
update: I was successfully able to start smbd from the command line and attach to shared which suggest that there is an issue with the systemd script. I note that smbd is invoked with the --foreground is this correct? I guess systemd intends to background the process itself so it can manage it?
here is the config:
[Unit]
Description=Samba SMB Daemon
Documentation=man:smbd(8) man:samba(7) man:smb.conf(5)
Wants=network-online.target
After=network.target network-online.target nmb.service winbind.service
[Service]
Type=notify
NotifyAccess=all
PIDFile=/var/run/samba/smbd.pid
LimitNOFILE=16384
EnvironmentFile=-/etc/sysconfig/samba
ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS
ExecReload=/bin/kill -HUP $MAINPID
LimitCORE=infinity
[Install]
WantedBy=multi-user.target
samba systemd
add a comment |
I attempting to set up a samba server on an ubuntu server (18.04). I needed to compile from sources since I need special support for Mac OS and time machine is which is available only in versions 4.8 or above.
I tried installing 4.9.2 and followed the instructions here with the exception that I needed to disable LDAP and AD support for configure. The build and install went fine so I copied the systemctl files into place and tried to start everything.
super@fulton:~/samba/samba-samba-4.9.2$ sudo systemctl start nmb,smb,winbind.service
Job for nmb.service failed because a timeout was exceeded.
See "systemctl status nmb.service" and "journalctl -xe" for details.
Job for winbind.service failed because a timeout was exceeded.
See "systemctl status winbind.service" and "journalctl -xe" for details.
Job for smb.service failed because a timeout was exceeded.
See "systemctl status smb.service" and "journalctl -xe" for details.
status gives:
● smb.service - Samba SMB Daemon
Loaded: loaded (/lib/systemd/system/smb.service; enabled; vendor preset: enabled)
Active: failed (Result: timeout) since Thu 2019-01-31 14:46:34 NZDT; 13min ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Process: 12343 ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS (code=killed, signal=TERM)
Main PID: 12343 (code=killed, signal=TERM)
Jan 31 14:45:04 fulton.geek.nz systemd[1]: Starting Samba SMB Daemon...
Jan 31 14:46:34 fulton.geek.nz systemd[1]: smb.service: Start operation timed out. Terminating.
Jan 31 14:46:34 fulton.geek.nz systemd[1]: smb.service: Failed with result 'timeout'.
Jan 31 14:46:34 fulton.geek.nz systemd[1]: Failed to start Samba SMB Daemon.
But /var/log/samba/log.smbd suggests that the services started.
[2019/01/31 14:45:04.465362, 0] ../lib/util/become_daemon.c:138(daemon_ready)
daemon_ready: STATUS=daemon 'smbd' finished starting up and ready to serve connections
so it looks as if there is something wrong with the systemd script and it is killing off the process when it does not get some expected response.
Any ideas what to look for?
update: I was successfully able to start smbd from the command line and attach to shared which suggest that there is an issue with the systemd script. I note that smbd is invoked with the --foreground is this correct? I guess systemd intends to background the process itself so it can manage it?
here is the config:
[Unit]
Description=Samba SMB Daemon
Documentation=man:smbd(8) man:samba(7) man:smb.conf(5)
Wants=network-online.target
After=network.target network-online.target nmb.service winbind.service
[Service]
Type=notify
NotifyAccess=all
PIDFile=/var/run/samba/smbd.pid
LimitNOFILE=16384
EnvironmentFile=-/etc/sysconfig/samba
ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS
ExecReload=/bin/kill -HUP $MAINPID
LimitCORE=infinity
[Install]
WantedBy=multi-user.target
samba systemd
I attempting to set up a samba server on an ubuntu server (18.04). I needed to compile from sources since I need special support for Mac OS and time machine is which is available only in versions 4.8 or above.
I tried installing 4.9.2 and followed the instructions here with the exception that I needed to disable LDAP and AD support for configure. The build and install went fine so I copied the systemctl files into place and tried to start everything.
super@fulton:~/samba/samba-samba-4.9.2$ sudo systemctl start nmb,smb,winbind.service
Job for nmb.service failed because a timeout was exceeded.
See "systemctl status nmb.service" and "journalctl -xe" for details.
Job for winbind.service failed because a timeout was exceeded.
See "systemctl status winbind.service" and "journalctl -xe" for details.
Job for smb.service failed because a timeout was exceeded.
See "systemctl status smb.service" and "journalctl -xe" for details.
status gives:
● smb.service - Samba SMB Daemon
Loaded: loaded (/lib/systemd/system/smb.service; enabled; vendor preset: enabled)
Active: failed (Result: timeout) since Thu 2019-01-31 14:46:34 NZDT; 13min ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Process: 12343 ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS (code=killed, signal=TERM)
Main PID: 12343 (code=killed, signal=TERM)
Jan 31 14:45:04 fulton.geek.nz systemd[1]: Starting Samba SMB Daemon...
Jan 31 14:46:34 fulton.geek.nz systemd[1]: smb.service: Start operation timed out. Terminating.
Jan 31 14:46:34 fulton.geek.nz systemd[1]: smb.service: Failed with result 'timeout'.
Jan 31 14:46:34 fulton.geek.nz systemd[1]: Failed to start Samba SMB Daemon.
But /var/log/samba/log.smbd suggests that the services started.
[2019/01/31 14:45:04.465362, 0] ../lib/util/become_daemon.c:138(daemon_ready)
daemon_ready: STATUS=daemon 'smbd' finished starting up and ready to serve connections
so it looks as if there is something wrong with the systemd script and it is killing off the process when it does not get some expected response.
Any ideas what to look for?
update: I was successfully able to start smbd from the command line and attach to shared which suggest that there is an issue with the systemd script. I note that smbd is invoked with the --foreground is this correct? I guess systemd intends to background the process itself so it can manage it?
here is the config:
[Unit]
Description=Samba SMB Daemon
Documentation=man:smbd(8) man:samba(7) man:smb.conf(5)
Wants=network-online.target
After=network.target network-online.target nmb.service winbind.service
[Service]
Type=notify
NotifyAccess=all
PIDFile=/var/run/samba/smbd.pid
LimitNOFILE=16384
EnvironmentFile=-/etc/sysconfig/samba
ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS
ExecReload=/bin/kill -HUP $MAINPID
LimitCORE=infinity
[Install]
WantedBy=multi-user.target
samba systemd
samba systemd
edited Feb 2 at 21:15
Russell Fulton
asked Jan 31 at 3:15
Russell FultonRussell Fulton
1065
1065
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
I ran into this when trying to get different types of machines running the latest version of Samba for time machine use as well.
One solution is to change the Type=notify to Type=simple. There is something about the new versions of Samba not playing nice with the way systemd handles process communication.
-Type=notify
+Type=simple
Then run systemctl daemon-reload and try to start er up again.
New contributor
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1114272%2fsamba-not-starting-from-systemctl-timeout%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I ran into this when trying to get different types of machines running the latest version of Samba for time machine use as well.
One solution is to change the Type=notify to Type=simple. There is something about the new versions of Samba not playing nice with the way systemd handles process communication.
-Type=notify
+Type=simple
Then run systemctl daemon-reload and try to start er up again.
New contributor
add a comment |
I ran into this when trying to get different types of machines running the latest version of Samba for time machine use as well.
One solution is to change the Type=notify to Type=simple. There is something about the new versions of Samba not playing nice with the way systemd handles process communication.
-Type=notify
+Type=simple
Then run systemctl daemon-reload and try to start er up again.
New contributor
add a comment |
I ran into this when trying to get different types of machines running the latest version of Samba for time machine use as well.
One solution is to change the Type=notify to Type=simple. There is something about the new versions of Samba not playing nice with the way systemd handles process communication.
-Type=notify
+Type=simple
Then run systemctl daemon-reload and try to start er up again.
New contributor
I ran into this when trying to get different types of machines running the latest version of Samba for time machine use as well.
One solution is to change the Type=notify to Type=simple. There is something about the new versions of Samba not playing nice with the way systemd handles process communication.
-Type=notify
+Type=simple
Then run systemctl daemon-reload and try to start er up again.
New contributor
New contributor
answered 9 hours ago
Anthony VitoAnthony Vito
1
1
New contributor
New contributor
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1114272%2fsamba-not-starting-from-systemctl-timeout%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown