** Description changed:

  Binary package hint: pnopaste
  
  /etc/cron.d/pnopaste doesn't have read access to conf/debiandb.pm while
  running as 'nobody'.
  
- impact: This bug prevent entries from expiring in the database. It also
- cause annoying emails every 30 minutes to be sent to nobody since the
- cron scripts is outputting errors.
- 
- how the bug has been addressed: The user the cron job run as has been
- changed from 'nobody' to 'www-data' (which 'conf/debiandb.pm' has read
- access)
- 
- patch is attached.
- 
- TEST CASE: sudo -u nobody /usr/share/pnopaste/bin/expired_delete.pl
- Using www-data is fine : sudo -u www-data 
/usr/share/pnopaste/bin/expired_delete.pl
- 
- I don't think there's any chances of regression by this patch.
+ 3. Procedure, point '2'
+ 1. Impact: This bug prevent entries from expiring in the database. It also 
cause annoying emails every 30 minutes to be sent to nobody since the cron 
scripts is outputting errors.
+ 2. The has been fixed in Oneiric by the same way. 
http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/oneiric/pnopaste/oneiric/revision/7#debian/pnopaste.cron.d
 . 1 package affected.
+ 3. Patch fixing this is attached
+ 4. TEST CASE: sudo -u nobody /usr/share/pnopaste/bin/expired_delete.pl (The 
commande works when using the user 'www-data').
+ 5. The regression potential is considered low because only the user to run 
the cron job as has been changed.
  
  
  Can't locate conf/debiandb.pm in @INC (@INC contains: /etc/perl 
/usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 
/usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 
/usr/local/lib/site_perl . /usr/share/pnopaste/bin/../) at 
/usr/share/pnopaste/bin/..//conf/SQL_Access.pm line 5.
  BEGIN failed--compilation aborted at 
/usr/share/pnopaste/bin/..//conf/SQL_Access.pm line 5.
  Compilation failed in require at /usr/share/pnopaste/bin/..//lib/Database.pm 
line 15.
  BEGIN failed--compilation aborted at 
/usr/share/pnopaste/bin/..//lib/Database.pm line 15.
  Compilation failed in require at /usr/share/pnopaste/bin/..//lib/Expire.pm 
line 13.
  BEGIN failed--compilation aborted at 
/usr/share/pnopaste/bin/..//lib/Expire.pm line 13.
  Compilation failed in require at /usr/share/pnopaste/bin/expired_delete.pl 
line 21.
  BEGIN failed--compilation aborted at 
/usr/share/pnopaste/bin/expired_delete.pl line 21.
  
  ProblemType: Bug
  DistroRelease: Ubuntu 10.04
  Package: pnopaste 1.3-2
  ProcVersionSignature: Ubuntu 2.6.32-30.59-generic-pae 2.6.32.29+drm33.13
  Uname: Linux 2.6.32-30-generic-pae i686
  Architecture: i386
  Date: Tue Apr 26 14:46:07 2011
  InstallationMedia: Ubuntu-Server 10.04.2 LTS "Lucid Lynx" - Release i386 
(20110211.1)
  PackageArchitecture: all
  ProcEnviron:
   LANG=fr_CA.UTF-8
   SHELL=/bin/bash
  SourcePackage: pnopaste

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

Title:
  problem with the cronjob : Can't locate conf/debiandb.pm in @INC

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

Reply via email to