[Bug 424462] Re: apt-mirror won't delete it's lock-file on exit

2012-01-28 Thread Launchpad Bug Tracker
** Branch linked: lp:debian/apt-mirror

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/424462

Title:
  apt-mirror won't delete it's lock-file on exit

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt-mirror/+bug/424462/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 424462] Re: apt-mirror won't delete it's lock-file on exit

2012-01-28 Thread Launchpad Bug Tracker
This bug was fixed in the package apt-mirror - 0.4.8-5

---
apt-mirror (0.4.8-5) unstable; urgency=low


  * Improve lock file handling to avoid false apt-mirror is already running
messages. Thanks to Ivan Borzenkov ivan1...@list.ru
(Closes: #589167, LP: #424462)
  * Create directories after config is parsed.
Thanks to Rob Verduijn (Closes: #619353, LP: #727011)
  * Support armhf, kfreebsd-* and s390x arch. (Closes: #644630)

 -- Benjamin Drung bdr...@debian.org  Sat, 28 Jan 2012 14:27:12 +0100

** Changed in: apt-mirror (Ubuntu)
   Status: Confirmed = Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/424462

Title:
  apt-mirror won't delete it's lock-file on exit

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt-mirror/+bug/424462/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 424462] Re: apt-mirror won't delete it's lock-file on exit

2011-09-11 Thread Micah Gersten
Karmic is EOL, so marking this task won't fix.

** Changed in: apt-mirror (Ubuntu Karmic)
   Status: Confirmed = Won't Fix

** Changed in: apt-mirror (Ubuntu Karmic)
 Assignee: Brandon Holtsclaw (imbrandon) = (unassigned)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/424462

Title:
  apt-mirror won't delete it's lock-file on exit

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt-mirror/+bug/424462/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 424462] Re: apt-mirror won't delete it's lock-file on exit

2011-04-09 Thread Ivan Borzenkov
wrong work whis lock file

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=589167

look http://www.opennet.ru/base/dev/lock_file_ex.txt.html

(http://translate.google.com/translate?hl=enie=UTF-8sl=rutl=enu=http://www.opennet.ru/base/dev/lock_file_ex.txt.htmlprev=_ttwu=1)


** Bug watch added: Debian Bug tracker #589167
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=589167

** Patch added: lock.patch
   
https://bugs.launchpad.net/ubuntu/+source/apt-mirror/+bug/424462/+attachment/2005824/+files/lock.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/424462

Title:
  apt-mirror won't delete it's lock-file on exit

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 424462] Re: apt-mirror won't delete it's lock-file on exit

2010-07-28 Thread Martin Pitt
Current karmic-proposed package removed.

-- 
apt-mirror won't delete it's lock-file on exit
https://bugs.launchpad.net/bugs/424462
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 424462] Re: apt-mirror won't delete it's lock-file on exit

2010-05-19 Thread Brandon Holtsclaw
OK, I have reconfirmed this still affects 0.4.8 and am working on a
patch now.

** Changed in: apt-mirror (Ubuntu Karmic)
   Status: Fix Committed = Confirmed

** Changed in: apt-mirror (Ubuntu)
   Status: Fix Released = Confirmed

** Changed in: apt-mirror (Ubuntu)
 Assignee: (unassigned) = Brandon Holtsclaw (imbrandon)

** Changed in: apt-mirror (Ubuntu Karmic)
 Assignee: (unassigned) = Brandon Holtsclaw (imbrandon)

** Changed in: apt-mirror (Ubuntu Karmic)
   Importance: Undecided = Medium

** Changed in: apt-mirror (Ubuntu)
   Importance: Undecided = Medium

-- 
apt-mirror won't delete it's lock-file on exit
https://bugs.launchpad.net/bugs/424462
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 424462] Re: apt-mirror won't delete it's lock-file on exit

2010-05-18 Thread limaxray
I can also confirm this bug still exists in 0.4.7 on lucid, although it
is partially fixed when handling signals (albeit not really, more on
that later).

First, the lock file still remains after an ungraceful exit.  For
example - adding an invalid repository to mirror.list will cause apt-
mirror to fail and exit without deleting the lock.  The lock will then
need to be manually deleted before apt-mirror can run again.  This is a
problem when mirroring an unreliable repository since it will break
automatic mirroring if the source repo is down when apt-mirror is run.
(This should perhaps also be a separate bug since, IMHO, a single broken
repo shouldn't cause the entire mirror process to fail.  Or is this a
feature?)

Try this:
1) Add bogus repo to you mirror config (ie 'deb 
http://bogusrepository.com/ubuntu lucid main')
2) Run apt-mirror
3) Wait for apt-mirror to fail and exit
4) Run apt-mirror again
5) Note aforementioned error

Second, I can no longer kill apt-mirror with a sigint, sighup, or
sigterm - these signals are now seemingly ignored.  Upon further
inspection, It looks like it is catching the signals, deleting the lock,
but fails to actually exit.  If a sigint is given during a download
stage, it will stop downloading and continue on to the next stage like
nothing happened.  If sigint is given during the 'proceed indexes'
stage, nothing seems to happen other than the lock being deleted.

Try this:
1) Run apt-mirror (with valid config)
2) Press ctrl+c immediately
3) Note index download completes in record time, and apt-mirror proceeds to 
process indexes
4) While apt-mirror continues, in another terminal, run 'ls 
/var/spool/apt-mirror/var/apt-mirror.lock'
5) Note no such file error as apt-mirror continues to run in other terminal
6) While apt-mirror continues to process indexes, press ctrl-c again
7) Note apt-mirror continues to process indexes

So yes, the bug still exists in 0.4.7 but with an additional regression.

-- 
apt-mirror won't delete it's lock-file on exit
https://bugs.launchpad.net/bugs/424462
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 424462] Re: apt-mirror won't delete it's lock-file on exit

2010-05-10 Thread chrone
i can confirm this bug is still exist in lucid lynx. just happened today
and found this thread in ubuntuforums.org. manually deleting the apt-
mirror.lock in /var/spool/apt-mirror-/var fixed this bug.

-- 
apt-mirror won't delete it's lock-file on exit
https://bugs.launchpad.net/bugs/424462
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs



[Bug 424462] Re: apt-mirror won't delete it's lock-file on exit

2010-05-10 Thread Benjamin Drung
@chrone: version 0.4.6-0ubuntu4 and later in lucid shouldn't have this
bug. Can you reproduce this problem?

-- 
apt-mirror won't delete it's lock-file on exit
https://bugs.launchpad.net/bugs/424462
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 424462] Re: apt-mirror won't delete it's lock-file on exit

2010-05-06 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/karmic-proposed/apt-mirror

-- 
apt-mirror won't delete it's lock-file on exit
https://bugs.launchpad.net/bugs/424462
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 424462] Re: apt-mirror won't delete it's lock-file on exit

2010-05-03 Thread Martin Pitt
Accepted apt-mirror into karmic-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: apt-mirror (Ubuntu Karmic)
   Status: New = Fix Committed

** Tags added: verification-needed

-- 
apt-mirror won't delete it's lock-file on exit
https://bugs.launchpad.net/bugs/424462
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 424462] Re: apt-mirror won't delete it's lock-file on exit

2010-04-27 Thread MarianoAbsatz
any chance that 0.4.6-0-ubuntu4 appears on karmic? (or karmic-updates or 
karmic-backports?)
Current 0.4.6-0ubuntu3 karmic package still has this bug.

-- 
apt-mirror won't delete it's lock-file on exit
https://bugs.launchpad.net/bugs/424462
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 424462] Re: apt-mirror won't delete it's lock-file on exit

2010-04-27 Thread Benjamin Drung
** Also affects: apt-mirror (Ubuntu Karmic)
   Importance: Undecided
   Status: New

-- 
apt-mirror won't delete it's lock-file on exit
https://bugs.launchpad.net/bugs/424462
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 424462] Re: apt-mirror won't delete it's lock-file on exit

2010-04-27 Thread Benjamin Drung
Your wish will be granted. I uploaded the attached patch to karmic-
proposed. You can test it from there once it is approved.

** Patch added: apt-mirror_0.4.6-0ubuntu3.1.patch
   http://launchpadlibrarian.net/45754741/apt-mirror_0.4.6-0ubuntu3.1.patch

-- 
apt-mirror won't delete it's lock-file on exit
https://bugs.launchpad.net/bugs/424462
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 424462] Re: apt-mirror won't delete it's lock-file on exit

2010-04-15 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/apt-mirror

-- 
apt-mirror won't delete it's lock-file on exit
https://bugs.launchpad.net/bugs/424462
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 424462] Re: apt-mirror won't delete it's lock-file on exit

2010-04-15 Thread Launchpad Bug Tracker
This bug was fixed in the package apt-mirror - 0.4.6-0ubuntu4

---
apt-mirror (0.4.6-0ubuntu4) lucid; urgency=low

  * Add 03-clean-lock-file.patch to delete the lock file on every exit
(LP: #424462).
  * Update default config to mention lucid (LP: #551605).
 -- Benjamin Drung bdr...@ubuntu.com   Thu, 15 Apr 2010 23:20:51 +0200

** Changed in: apt-mirror (Ubuntu)
   Status: Confirmed = Fix Released

-- 
apt-mirror won't delete it's lock-file on exit
https://bugs.launchpad.net/bugs/424462
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 424462] Re: apt-mirror won't delete it's lock-file on exit

2010-03-30 Thread Carl Strickler
The problem is that apt-mirror is not handling SIGINT, SIGHUP, or
SIGTERM correctly thereby leaving a stale lock file around and does not
actually check for a running process before reporting that one is
already running.  It should trap these and clean up before exiting or at
the very least report something such as apt-mirror is dead, but
lockfile /path/to/lockfile/apt-mirror.lock exists: exiting instead of
just reporting that the process is already running.

You will not see this behavior if the process completes normally.

-- 
apt-mirror won't delete it's lock-file on exit
https://bugs.launchpad.net/bugs/424462
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 424462] Re: apt-mirror won't delete it's lock-file on exit

2010-02-14 Thread triki
I had the same issue, my lock file was not in /var/lock/apt-mirror, the 
apt-mirror was missing from /var/lock all together.
I found my lock file in /var/spool/apt-mirror/var/apt-mirror.lock. Once I 
removed the lock file apt-mirror was able to start once again.

-- 
apt-mirror won't delete it's lock-file on exit
https://bugs.launchpad.net/bugs/424462
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 424462] Re: apt-mirror won't delete it's lock-file on exit

2010-02-10 Thread jevangelo
if you wait ~30 seconds after it is finished, the clean.sh script info
appears, and the lock file goes away.

-- 
apt-mirror won't delete it's lock-file on exit
https://bugs.launchpad.net/bugs/424462
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 424462] Re: apt-mirror won't delete it's lock-file on exit

2010-01-09 Thread Steve Lilley
A friend of mine solved my problem. I had changed the location of my
/var path in my mirror script and it was in the new directory. I found
the offending file and deleted it and now it works

-- 
apt-mirror won't delete it's lock-file on exit
https://bugs.launchpad.net/bugs/424462
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 424462] Re: apt-mirror won't delete it's lock-file on exit

2010-01-08 Thread Steve Lilley
I tried the uninstall and reinstall using synapitc but I get the same
error. Any suggestions about what I might do to change this. Remembering
there isn't any file at /var/spool/apt-mirror/var/apt-mirror.lock

-- 
apt-mirror won't delete it's lock-file on exit
https://bugs.launchpad.net/bugs/424462
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 424462] Re: apt-mirror won't delete it's lock-file on exit

2010-01-07 Thread Steve Lilley
I have just had this same bug occur for me I had successfully mirrored
the security and updates repositories and tried to do the repositories
of backports and Karmic proposed. I stopped it during its process and
changed one item. And tried to rerun sudo apt-mirror but it gave me an
error apt-mirror is already running, exiting at /usr/bin/apt-mirror
line 187. I went to the directory you mentioned /var/spool/apt-
mirror/var/apt-mirror.lock to delete apt-mirror.lock but it wasn't
there. Got any suggestions as what I must do to fix this problem and get
apt-mirror to work again. Worst option is uninstall mirror and reinstall
and see if it rectifies the problem

-- 
apt-mirror won't delete it's lock-file on exit
https://bugs.launchpad.net/bugs/424462
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 424462] Re: apt-mirror won't delete it's lock-file on exit

2009-10-19 Thread Tony Yarusso
Note - I only experienced this when aborting the process with Ctrl-C or
similar.  If apt-mirror exited gracefully by *finishing* it's download
the lock was properly removed.

-- 
apt-mirror won't delete it's lock-file on exit
https://bugs.launchpad.net/bugs/424462
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 424462] Re: apt-mirror won't delete it's lock-file on exit

2009-10-17 Thread Tony Mugan
Confirmed exactly as detailed above with latest patches to Karmic
(20091018)

-- 
apt-mirror won't delete it's lock-file on exit
https://bugs.launchpad.net/bugs/424462
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 424462] Re: apt-mirror won't delete it's lock-file on exit

2009-10-17 Thread Tony Mugan
My comment above is not entirely accurate.
Once I manually deleted the file apt-mirror.lock (I do not have it the default 
location of /var/spool/apt-mirror/var/apt-mirror.lock), then apt-mirror 
continued to work.  

However, the stray lock file would have caused the issue above to continue 
under the current version.
Perhaps, a command line parameter e.g.  --reset-lock could be added which the 
locking error would inform the user about?

-- 
apt-mirror won't delete it's lock-file on exit
https://bugs.launchpad.net/bugs/424462
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 424462] Re: apt-mirror won't delete it's lock-file on exit

2009-10-13 Thread Fernando
Eu também tive esse problema. Somente apagando manualmente o Lock o apt-mirror 
volta a funcionar.
BORGES.

-- 
apt-mirror won't delete it's lock-file on exit
https://bugs.launchpad.net/bugs/424462
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 424462] Re: apt-mirror won't delete it's lock-file on exit

2009-10-13 Thread Fernando
** Tags added: apt-mirror karmic

** Tags added: 187 already line running

-- 
apt-mirror won't delete it's lock-file on exit
https://bugs.launchpad.net/bugs/424462
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 424462] Re: apt-mirror won't delete it's lock-file on exit

2009-10-13 Thread Tony Yarusso
Confirmed exactly as described on Karmic beta.  (Manually deleting the
lockfile is necessary to run it again.)

** Changed in: apt-mirror (Ubuntu)
   Status: New = Confirmed

-- 
apt-mirror won't delete it's lock-file on exit
https://bugs.launchpad.net/bugs/424462
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs