Package: mini-buildd
Version: 1.0.0~beta.2
Severity: important

Hi,

My eventually did have a problem: the FTP interface failed to load after
the upgrade. The error I got is the cryptic:

  Thread 'mini_buildd.daemon.run' error: Uploader matching query does not exist.

The fix I applied:

diff --git a/mini_buildd/models/repository.py b/mini_buildd/models/repository.py
index 5eb7d26..40c122d 100644
--- a/mini_buildd/models/repository.py
+++ b/mini_buildd/models/repository.py
@@ -477,7 +477,12 @@ Example:
         gpg = mini_buildd.gnupg.TmpGnuPG()
         # Add keys from django users
         for u in django.contrib.auth.models.User.objects.filter(is_active=True)
-            p = u.get_profile()
+            try:
+                p = u.get_profile()
+           #except mini_buildd.models.gnupg.DoesNotExist: // FIXME: gives an er
+            except Exception:
+               LOG.info("No key for user {u}. Skipping.".format(u=u))
+               continue
             if p.mbd_is_active():
                 for r in p.may_upload_to.all():
                     if r.identity == self.identity:
-- System Information:
Debian Release: wheezy/sid
  APT prefers testing-updates
  APT policy: (500, 'testing-updates'), (500, 'testing')
Architecture: i386 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages mini-buildd depends on:
ii  adduser                   3.113+nmu3
ii  debconf [debconf-2.0]     1.5.46
ii  debootstrap               1.0.42
ii  devscripts                2.12.5
ii  dpkg-dev                  1.16.9
ii  gnupg                     1.4.12-6
ii  libjs-jquery              1.7.2+dfsg-1
ii  libjs-sphinxdoc           1.1.3+dfsg-4
ii  lintian                   2.5.10.2
ii  mini-buildd-common        1.0.0~beta.2
ii  python                    2.7.3~rc2-1
ii  python-cherrypy3          3.2.2-2
ii  python-daemon             1.5.5-1
ii  python-django             1.4.2-1
ii  python-django-extensions  0.6+git201107051902-1
ii  python-mini-buildd        1.0.0~beta.2
ii  python-pyftpdlib          0.7.0-1
ii  reprepro                  4.12.4-1
ii  sbuild                    0.63.2-1
ii  schroot                   1.6.3-1
ii  sudo                      1.8.5p2-1

Versions of packages mini-buildd recommends:
ii  python-apt  0.8.4

Versions of packages mini-buildd suggests:
ii  lvm2  2.02.95-4

-- Configuration Files:
/etc/default/mini-buildd changed [not included]

-- debconf information excluded

-- 
Tzafrir Cohen         | tzaf...@jabber.org | VIM is
http://tzafrir.org.il |                    | a Mutt's
tzaf...@cohens.org.il |                    |  best
tzaf...@debian.org    |                    | friend

-- 
Tzafrir Cohen         | tzaf...@jabber.org | VIM is
http://tzafrir.org.il |                    | a Mutt's
tzaf...@cohens.org.il |                    |  best
tzaf...@debian.org    |                    | friend


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to