Thank you very much
I have Ubuntu 12.04 LTE machine and had the same problem.
according to this post I manage to fix it
and this is what I done: ( in the file /etc/init/smbd.conf )
start on (local-filesystems and started cups and net-device-up)
stop on runlevel [!2345]
p.s.
1) The order
I can confirm, this is still a problem on Precise. Please reopen this
bug at least for precise. I could help with testing a fixed package.
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
This is again a problem on Precise. I have to delay the startup of Samba
until CUPS is started, otherwise it won't find the shared printer.
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
Marking the Lucid task as New and removing the verification-needed tag;
this has been superseded by a security update and needs uploading again,
merged with the security update.
** Changed in: cups (Ubuntu Lucid)
Status: Fix Committed = New
** Tags removed: verification-needed
--
You
As nobody tested the lucid-proposed cups package in a year, let's just
bury this.
** Changed in: cups (Ubuntu Lucid)
Status: New = Won't Fix
** Changed in: cups (Ubuntu Lucid)
Milestone: ubuntu-10.04.3 = None
--
You received this bug notification because you are a member of Ubuntu
Right, so the 750 second reload bit may only work in some
configurations. I'd like to get as much information about peoples'
configurations to ascertain why this works for some, and not others.
If we move the start condition for samba to 'stopped rc', that will
possibly break other peoples'
Excerpts from Lucio M Nicolosi's message of Fri Sep 02 18:25:19 UTC 2011:
@ Clint,
A long time ago I also reported this bug for Maverick 64. Others
reported for Natty an now Oneiric. Tired of waiting for a solution,
successfully applied the patch explained at #18 to both my Mav and Natty
Clint,
In the new bug report, please consider that contrary to the stated at #30
(Martin Pitt) :
For lucid, ... samba reloads the printers every 750 seconds anyway, so it's
just a matter of waiting...
At least for some hardware configurations it doesn't happen for Maverick, Natty
and Oneiric
I confirm this in Ubuntu Server 11.04.
It's very strange that this bug exists for so long.
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/494141
Title:
CUPS starts after SAMBA;
Kiril and/or berry, can you open a new bug report? This has been marked
as Fix Released since Ubuntu 10.10, so if the SIGHUP after startup
solution isn't working, then we have a regression.
Just run 'ubuntu-bug cups' and it will collect information from your
systems. Make sure to come back to
@ Clint,
A long time ago I also reported this bug for Maverick 64. Others
reported for Natty an now Oneiric. Tired of waiting for a solution,
successfully applied the patch explained at #18 to both my Mav and Natty
installs. Wouldn't be easier to acknowledge that this bug isn't fixed
at all than
Very frustrating until I saw this post. Confrimed for me in 11.04. My machine
had had very high uptimes so I did not notice until my UPS went recently and I
would loose printers on reboots.
I was blindly hacking my smb.conf until this post.
rc.local with /sbin/reload smbd is my workaround
--
Yes, the bug is still in 11.04
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/494141
Title:
CUPS starts after SAMBA; printers are not available (convert cups to
upstart)
To manage
On a 11.04 Natty Narwhal box I want to use as a :
- DHCP server
- NAS
- Printer Server
where all clients are Xp Pro based, I run into this samba starts before cups
issue and I read all the previous comments.
I also gave a quick look to Upstart pages.
I did this stupid thing in
This problem still exists in 11.04 Natty Narwhal.
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/494141
Title:
CUPS starts after SAMBA; printers are not available (convert cups to
re #44,45,46
Apologies in advance if I've mis-understood the interactions here.
Can you please post the preferred workaround?
I have this exact issue in a fully-patched lucid (10.04.2) deployment
that has already chewed up hours of my time over the past week. It
started with VMware ws7 not
derekshow, have you tried adding '/sbin/reload smbd' at the end of
/etc/rc.local ?
That does not restart the Samba smbd processes, but does force them to
reload their configuration - including asking CUPS for a list of
printers.
--
You received this bug notification because you are a member of
yes. I just did this in the interval between my last post and now. I
was hoping for something with a little error-checking (rc.local always
returns 0)
for others, here's the actual contents of /etc/rc.local
** Attachment added: contents of /etc/rc.local as a local fix
derekshaw, you do not need to *restart* smbd, only *reload* it.
And it is best to give the full path to the program in case the shell
you are using has not automatically added /sbin to your $PATH variable.
--
You received this bug notification because you are a member of Ubuntu
Server Team,
Excerpts from derekshaw's message of Fri Apr 15 14:18:17 UTC 2011:
re #44,45,46
Apologies in advance if I've mis-understood the interactions here.
Can you please post the preferred workaround?
I have this exact issue in a fully-patched lucid (10.04.2) deployment
that has already chewed
Re: #52
It seems I was wrong again. It looks like the printers were loaded when I saved
the smb.conf file, which of course restarts the service. Left alone, Samba, in
my Maverick AMD64, will not periodically reload the printers and I still don't
know why.
--
You received this bug notification
Re #48
Clint, every time I have to restart Maverick 64 (hopefully seldon) I
subsequently run sudo service smbd restart (too lazy and ignorant to
put it on a script) because printers will not load in Samba. Can't
remember if I had too do it on Lucid. Will try to leave the system alone
for a few
System is on now for one hour (3600 secs) after a restart and no signal
of a Samba reload as stated at #30. smbclient -L [..] correctly shows
all shares but the printers. Either the same bug exists in Maverick 64
or a similar bug affects at least my system. Anything I could do besides
sudo service
Although the default smb.conf parameter printing equals to cups
(printing = cups) unless the parameter printcap name is set (printcap
name = cups) the printers do not load in the periodical samba reload
process referred at #30, thus requiring a manual sudo service smbd
restart.
Since I try to
Accepted cups into lucid-proposed, the package will build now and be
available in a few hours. Please test and give feedback here. See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to
enable and use -proposed. Thank you in advance!
** Changed in: cups (Ubuntu Lucid)
** Branch linked: lp:ubuntu/lucid-proposed/cups
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/494141
Title:
CUPS starts after SAMBA; printers are not available (convert cups to
Another even simpler thing to do would be to just add a 'service smbd
reload' to the start action of the init script.
** Changed in: cups (Ubuntu Lucid)
Status: Won't Fix = Triaged
** Changed in: cups (Ubuntu Lucid)
Assignee: (unassigned) = Clint Byrum (clint-fewbar)
** Changed in:
Ok I uploaded a package to lucid-proposed that reloads samba after
start. I tested it with both cups and samba installed, and with samba
never installed, removed and purged.
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in
re: #45
This bug was reported on 2009-12-08.
At last some common sense at work. Hope it is also uploaded for
Maverick.
Thanks, Clint Byrum.
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
Excerpts from Lucio M Nicolosi's message of Mon Apr 04 19:36:42 UTC 2011:
re: #45
This bug was reported on 2009-12-08.
At last some common sense at work. Hope it is also uploaded for
Maverick.
Lucio, maverick should not be affected because the cups upstart job
reloads samba in its
There's a way to do this in lucid without modifying samba at all.
# cups-sysv
start on starting smbd
stop on stopped smbd
pre-start script
invoke-rc.d cups start || :
end script
post-stop script
invoke-rc.d cups stop || :
end script
#EOF
This will ensure that cups is started before smbd.
Hi,
Thank you on comment #18 for the answer, but when trying to understand
what was best to do, I tried that instead:
start on (local-filesystems and started cups)
and :
- it IS working
- this is best understandable
What comes smbd should wait for something else than cups to solve *this*
** Attachment added: cupsd.conf
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/494141/+attachment/1764561/+files/cupsd.conf
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.
Sorry for the two posts, I couldn't work out how to attach more than one
file to a comment! cupsd.conf and smb.conf as requested. IP addresses
and domain names have been changed as per RFC1166 and RFC2606
respectively to protect privacy.
** Attachment added: smb.conf
Ian, thank you for your files. For me the configurations look correct.
Can perhaps look a Samba expert into them?
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.
https://bugs.launchpad.net/bugs/494141
Title:
CUPS
Can everyone with problems please also post /etc/cups/cupsd.conf and
/etc/samba/smb.conf? Please attach the files one after the other, do not
compress them.
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.
Patch #18 does not work for me on 10.04
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.
https://bugs.launchpad.net/bugs/494141
Title:
CUPS starts after SAMBA; printers are not available (convert cups to upstart)
--
I've been running Ubuntu LTS Versions since 6.06 and doing the upgrades.
I'm currently at 10.04 and I've got this exact same problem.
I've tried adding in the fix listed in Comments #18 and #25 (the same
fix), but that doesn't work at all - meaning Samba does not load at all
and running smbtree
as of today on my 10.10 bug is still present (appling patch from #18
works)
--
CUPS starts after SAMBA; printers are not available (convert cups to upstart)
https://bugs.launchpad.net/bugs/494141
You received this bug notification because you are a member of Ubuntu
Server Team, which is
Anyone who has still problems on Maverick, please attach your
/etc/init/cups.conf file.
--
CUPS starts after SAMBA; printers are not available (convert cups to upstart)
https://bugs.launchpad.net/bugs/494141
You received this bug notification because you are a member of Ubuntu
Server Team, which
I can confirm this bug on 10.04 LTS fully updated as of today.
I must say that it is really a snafu to have a server without any
printers available via samba to clients when it boots.
And there was no reload every 750secs as stated somewhere above. The
server boots, printers are available
Running AMD64 Maverick Beta 2010, 7 Oct. with all updates. This bug is
still present. At least in this recent Maverick clean install (where I
didn't apply the patch referred at #18) there's no samba reloading the
printers every 750 seconds as stated at #30. Are there any Cups/Samba
updates still
cups (1.4.4-5) unstable; urgency=low
[ Martin Pitt ]
* ubuntu-upstart.dpatch: Drop the dependency on starting smbd, it causes
samba to hang on package upgrades or manual restarts. There doesn't seem
to be a good way to express this dependency right now. (LP: #639768)
Instead, send
For lucid, Jelmer says that samba reloads the printers every 750 seconds
anyway, so it's just a matter of waiting. Changing the cups init script
to an upstart job is not an appropriate SRU.
--
CUPS starts after SAMBA; printers are not available (convert cups to upstart)
2010/9/17 Martin Pitt martin.p...@ubuntu.com:
cups (1.4.4-5) unstable; urgency=low
[ Martin Pitt ]
* ubuntu-upstart.dpatch: Drop the dependency on starting smbd, it causes
samba to hang on package upgrades or manual restarts. There doesn't seem
to be a good way to express this
pitti has upstartified CUPS now for the Maverick package. CUPS by itself
works nicely with upstart, also on a system boot CUPS and Samba get
started in the correct order. There is still fine tuning needed so that
Samba does not hang when manually starting and stopping the CUPS and
Samba services.
Potential issues with the proposed patch:
- this is a workaround in the smbd job, not a correct fix, which will need to
be reverted later.
- in the (rare) event that a user has stopped smbd manually and then changes
runlevels, current upstart will give a weird hang waiting for a second
The problem can very easily be solved for Maverick and Lucid LTS (SRU)
by applying the solution presented in comment #18. This is especially
the best method now as we are past Feature Freeze and so a switchover of
CUPS to native Upstart is only possible for Natty. Especially important
is also the
Mam(O)n's solution (#18) of modifying the 'start' line in
/etc/init/smbd.conf to say
start on (local-filesystems and stopped rc)
worked for me, no other changes necessary. Thank you!
--
CUPS starts after SAMBA; printers are not available (convert cups to upstart)
Does this problem still open?
--
CUPS starts after SAMBA; printers are not available (convert cups to upstart)
https://bugs.launchpad.net/bugs/494141
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.
--
Ubuntu-server-bugs
We have the same problem in our business environment at the place I work
at. I think this is an upstart problem as how can samba connect to an
existing cups server when it hasn't started yet. Samba needs to depend
on cups.
--
CUPS starts after SAMBA; printers are not available (convert cups to
This bug affects a server I maintain as well. No one can print to a
shared printer following a reboot. I have added the workaround to
reload samba in rc.local, but would like to see someone assigned to this
bug. Can we please have the importance upgraded?
--
CUPS starts after SAMBA; printers
** Summary changed:
- CUPS starts after SAMBA; printers are not available
+ CUPS starts after SAMBA; printers are not available (convert cups to upstart)
--
CUPS starts after SAMBA; printers are not available (convert cups to upstart)
https://bugs.launchpad.net/bugs/494141
You received this bug
This bug also affects me
It would be easily solved if CUPS has converted to upstart.
Please get interested into solving
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/520497
--
CUPS starts after SAMBA; printers are not available
https://bugs.launchpad.net/bugs/494141
You received this bug
When I try to connect to smb printer Windows says: Error 66
if I restart smbd service, shared printer start to share.
Can You tell us a fix?
--
CUPS starts after SAMBA; printers are not available
https://bugs.launchpad.net/bugs/494141
You received this bug notification because you are a member
Tada! You rock. That fix is perfect, ship it.
--
CUPS starts after SAMBA; printers are not available
https://bugs.launchpad.net/bugs/494141
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.
--
Ubuntu-server-bugs mailing
Another solution, the pure upstart way. Modify the one line in
/etc/init/smb.conf as follows:
start on (local-filesystems and stopped rc)
The bootchart confirms that now is smbd starts after cups.
** Patch added: Solution as diff
http://launchpadlibrarian.net/50822127/smb.conf.diff
--
CUPS
** Tags added: patch
--
CUPS starts after SAMBA; printers are not available
https://bugs.launchpad.net/bugs/494141
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.
--
Ubuntu-server-bugs mailing list
This issue is still present in Lucid.
Another way to work around it is to modify the /etc/init/smd.conf upstart job
with a kind of ugly hack that makes Samba wait for cups (see attached file).
** Attachment added: smbd.conf
http://launchpadlibrarian.net/49951509/smbd.conf
--
CUPS starts
Have to agree. The bug is here on my server too and it's very annoying!
** Changed in: upstart (Ubuntu Lucid)
Status: Invalid = Confirmed
--
CUPS starts after SAMBA; printers are not available
https://bugs.launchpad.net/bugs/494141
You received this bug notification because you are a
PryGuy: please don't mess with the bug status, it's as it should be -
there is an open task on CUPS
** Changed in: upstart (Ubuntu Lucid)
Status: Confirmed = Invalid
--
CUPS starts after SAMBA; printers are not available
https://bugs.launchpad.net/bugs/494141
You received this bug
I'm all sorry, this was a mistake. I'm really surprised an ordinary user
can change it. Sorry again.
--
CUPS starts after SAMBA; printers are not available
https://bugs.launchpad.net/bugs/494141
You received this bug notification because you are a member of Ubuntu
Server Team, which is
2010/5/20 PryGuy p...@inbox.ru:
I'm all sorry, this was a mistake. I'm really surprised an ordinary user
can change it. Sorry again.
(OT)
Hehehe, actually Launchpad works better than others BTS because gives
more freedom to users. If you did a mistake, don't worry but be more
careful next time
Not it must not.
If you want to depend on a service using Upstart, you MUST convert your
init script to an Upstart job.
** Changed in: upstart (Ubuntu)
Status: New = Invalid
** Changed in: upstart (Ubuntu Lucid)
Status: New = Invalid
** Changed in: cups (Ubuntu)
Status:
re-opening CUPS task, the bug here is that CUPS is still using an init
script when it should be converted to an Upstart job
--
CUPS starts after SAMBA; printers are not available
https://bugs.launchpad.net/bugs/494141
You received this bug notification because you are a member of Ubuntu
Server
This is a problem of upstart. upstart must also handle dependencies
between services correctly if some services are natively started by
upstart and others by legacy init scripts.
** Also affects: cups (Ubuntu Lucid)
Importance: Undecided
Status: New
** Also affects: samba (Ubuntu
Hi,
I have the same problem too. I solved it by adding
sleep 60
restart smbd
to /etc/rc.local.
I think the problem is samba starting before cups :-(
System: Ubuntu 10.04
--
CUPS starts after SAMBA; printers are not available
https://bugs.launchpad.net/bugs/494141
You received this bug
I see this problem in Kubuntu Karmic as well. I've worked around it by
adding /etc/init.d/samba reload to /etc/rc.local, since I'm not sure
if there's a valid reason to start Samba way before CUPS. Probably
adding a check at the end of the CUPS startup script to see if smbd is
running, and if
** Also affects: samba (Ubuntu)
Importance: Undecided
Status: New
--
CUPS starts after SAMBA; printers are not available
https://bugs.launchpad.net/bugs/494141
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.
--
2 problems here:
- cups is still an old sysvinit script;
- samba is an upstart job but doesn't have any dependencies on cups.
Moreover I think it's the samba upstart job that should assert start
after cups, and not cups to worry about starting before samba. So for
sure this actually a deficiency
Not really a samba bug, its a cups bug.
chuck
** Changed in: samba (Ubuntu)
Status: New = Invalid
--
CUPS starts after SAMBA; printers are not available
https://bugs.launchpad.net/bugs/494141
You received this bug notification because you are a member of Ubuntu
Server Team, which is
Just to be clear, what is exactly the cups bug (other than not being an
upstart job yet)? I don't know if upstart already have stanzas like
start before/after (because it's clear that samba is not really
dependent on cups, but if present cups should be started before samba),
but it seems more easy
Or maybe is a problem in cups not promptly giving a dynamic list of
printers available runtime? Sorry, but there were no explanation and I
was curious about this. :)
--
CUPS starts after SAMBA; printers are not available
https://bugs.launchpad.net/bugs/494141
You received this bug notification
The problem is the following:
When I boot up my computer and CUPS starts after Samba, I cannot get the
list of my shared printer. I need CUPS to start first and then Samba.
Is it a CUPS bug or a Samba bug??? I have no clue. It is a bug.
As I stated, I found a workaround (sudo mv
74 matches
Mail list logo