Re: [rt-users] shredder error

2009-10-27 Thread David Hobley

I thought this was the case; in which case I am still no closer to working out 
why it is crashing for me. 

Does anyone have any suggestions as to how I can get to the bottom of this? 

Couldn't wipeout object: Can't call method "new" on an undefined value at 
/opt/httpd/rt3/sbin/../lib/RT/Transaction_Overlay.pm line 1031,  line 1. 

Cheers, 
David 
- Original Message - 
From: "Ken Crocker"  
To: "Howard Jones"  
Cc: rt-users@lists.bestpractical.com 
Sent: Friday, 16 October, 2009 3:14:26 AM GMT +10:00 Brisbane 
Subject: Re: [rt-users] shredder error 

Howard, 

I thought the "replace-relations" was for links to other tickets. If it offers 
an opportunity to enter a replacement User ID, then I'm sure it's OK. 

Kenn 
LBNL 

On 10/15/2009 9:01 AM, Howard Jones wrote: 

On 15/10/2009 16:41, Ken Crocker wrote: 

Some users may be referred to by transaction history of a ticket
because they sent in corresponance or were the original requestor or
owner. Those kind of relationships shouldn't be deleted because it
will cause an error in yoiur history display. Isn't that what replace_relations 
is supposed to fix?

Regards,

Howard
___ 
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community 
help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com 
Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com 
___ 
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community 
help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com 
Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy 
at http://rtbook.bestpractical.com 

-- 



Cheers, 
David Hobley 

IT Manager 
Creators of Miessence, MiVitality and MiEnviron 

Phone: +61 (7) 5582 7020 
Fax: +61 (7) 5539 6719 
USA Fax 1800 840 0827 
Email : david.hob...@mionegroup.com 
Website: www.mionegroup.com 


___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Re: [rt-users] shredder error

2009-10-15 Thread Ken Crocker

Howard,

I thought the "replace-relations" was for links to other tickets. If it 
offers an opportunity to enter a replacement User ID, then I'm sure it's OK.


Kenn
LBNL

On 10/15/2009 9:01 AM, Howard Jones wrote:

On 15/10/2009 16:41, Ken Crocker wrote:
  

Some users may be referred to by transaction history of a ticket
because they sent in corresponance or were the original requestor or
owner. Those kind of relationships shouldn't be deleted because it
will cause an error in yoiur history display.


Isn't that what replace_relations is supposed to fix?

Regards,

Howard
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


  
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Re: [rt-users] shredder error

2009-10-15 Thread Howard Jones
On 15/10/2009 16:41, Ken Crocker wrote:
> Some users may be referred to by transaction history of a ticket
> because they sent in corresponance or were the original requestor or
> owner. Those kind of relationships shouldn't be deleted because it
> will cause an error in yoiur history display.
Isn't that what replace_relations is supposed to fix?

Regards,

Howard
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] shredder error

2009-10-15 Thread Ken Crocker

David,

Some users may be referred to by transaction history of a ticket because 
they sent in corresponance or were the original requestor or owner. 
Those kind of relationships shouldn't be deleted because it will cause 
an error in yoiur history display.


Kenn
LBNL

On 10/14/2009 4:57 PM, David Hobley wrote:

All,

Having finally purged my db of deleted tickets, I am now trying to 
delete the users who now have no tickets assigned to them.  However 
shredder is failing with rt 3.8.2:


[r...@samba sbin]# ./rt-shredder --plugin 
"Users=no_tickets,1;status,any;replace_relations,Nobody;limit,5"

SQL dump file is '/opt/httpd/rt3/sbin/20091014T232306-0001.sql'
Next objects would be deleted:
RT::User-110031 object
RT::User-1080297 object
RT::User-911624 object
RT::User-352 object
RT::User-430 object
Do you want to proceed? [y/N] y
Couldn't wipeout object: Can't call method "new" on an undefined value 
at /opt/httpd/rt3/sbin/../lib/RT/Transaction_Overlay.pm line 1031, 
 line 1.


Anyone any ideas?

--
Cheers,
David


___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

[rt-users] shredder error

2009-10-14 Thread David Hobley
All, 

Having finally purged my db of deleted tickets, I am now trying to delete the 
users who now have no tickets assigned to them. However shredder is failing 
with rt 3.8.2: 

[r...@samba sbin]# ./rt-shredder --plugin 
"Users=no_tickets,1;status,any;replace_relations,Nobody;limit,5" 
SQL dump file is '/opt/httpd/rt3/sbin/20091014T232306-0001.sql' 
Next objects would be deleted: 
RT::User-110031 object 
RT::User-1080297 object 
RT::User-911624 object 
RT::User-352 object 
RT::User-430 object 
Do you want to proceed? [y/N] y 
Couldn't wipeout object: Can't call method "new" on an undefined value at 
/opt/httpd/rt3/sbin/../lib/RT/Transaction_Overlay.pm line 1031,  line 1. 

Anyone any ideas? 

-- 
Cheers, 
David 
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

[rt-users] Shredder error and solution

2007-10-12 Thread Stephen Turner

Hello Ruslan,

I'm getting an error with Shredder 0.07 when trying to shred users:

rtx-shredder --force --plugin "Users=limit,100"

[Fri Oct 12 15:40:44 2007] [crit]: Can't locate object method 
"caught" via package "RTx::Shredder::Exception::Info" at 
./rtx-shredder line 109.

 (/usr/local/rt3/lib/RT.pm:285)

This error has been reported a few times on rt-users, but I didn't 
see a solution.


I believe it's caused by having an old version of Exception::Class 
installed. The latest version is 1.23 - we have 1.20 installed, which 
does not include the "caught" method.


Anyway, no reply necessary - I just thought I would post this in case 
someone else ran into the problem.


Steve


Stephen Turner
Senior Programmer/Analyst - Client Support Services
MIT Information Services and Technology (IS&T)


___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] Shredder Error

2007-07-11 Thread Ruslan Zakirov

See below, note that some lines are commented.

On 6/30/07, Mathew Snyder <[EMAIL PROTECTED]> wrote:

I'm trying to remove users using the methods within Shredder.  After gathering
all the email addresses I need to remove I call Shredder like such:

RTx::Shredder::Init( force => 1 );
my $shredder = new RTx::Shredder(RT::SystemUser);
# my $resolver = new RTx::Shredder::Plugin::Users(RT::SystemUser);
# $resolver->SetResolver(Shredder => 10);

   my $resolver = sub {
   my %args = (@_);
   my $t =$args{'TargetObject'};
   foreach my $method ( qw(Creator LastUpdatedBy) ) {
   next unless $t->_Accessible( $method => 'read' );
   $t->__Set( Field => $method, Value => 10 );
   }
   };
   $shredder->PutResolver( BaseClass => 'RT::User', Code => $resolver );


# $shredder->PutResolver($resolver);
if ($ans =~ m/^(y|yes)$/i){
my ($fname, $fh) = $shredder->SetFile( FromStorage => 0, FileName =>
'/usr/local/rt-3.6.1/var/data/RTx-Shredder/Shredder-Users_.sql' );
foreach my $email (@emails){
my $user = new RT::User(RT::SystemUser);
$user->LoadByEmail($email);
next unless $user->id;
$shredder->PutObject(Object => $user);
}
$shredder->WipeoutAll;
}else{
exit;
}

Using this gives me
Odd number of elements in anonymous hash at
/usr/local/rt-3.6.1/local/lib/RTx/Shredder/Plugin/Base.pm line 23.

I looked at the perldocs and verified that Objects => $user is a valid value.
However, I am wondering if it should be something like $user->EmailAddress or
something.

Can someone shed some light on this for me?

Thanks
Mathew
--
Keep up with me and what I'm up to: http://theillien.blogspot.com

--
Best regards, Ruslan.
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


[rt-users] Shredder Error

2007-06-29 Thread Mathew Snyder
I'm trying to remove users using the methods within Shredder.  After gathering
all the email addresses I need to remove I call Shredder like such:

RTx::Shredder::Init( force => 1 );
my $shredder = new RTx::Shredder(RT::SystemUser);
my $resolver = new RTx::Shredder::Plugin::Users(RT::SystemUser);
$resolver->SetResolver(Shredder => 10);
$shredder->PutResolver($resolver);
if ($ans =~ m/^(y|yes)$/i){
my ($fname, $fh) = $shredder->SetFile( FromStorage => 0, FileName =>
'/usr/local/rt-3.6.1/var/data/RTx-Shredder/Shredder-Users_.sql' );
foreach my $email (@emails){
my $user = new RT::User(RT::SystemUser);
$user->LoadByEmail($email);
next unless $user->id;
$shredder->PutObject(Object => $user);
}
$shredder->WipeoutAll;
}else{
exit;
}

Using this gives me
Odd number of elements in anonymous hash at
/usr/local/rt-3.6.1/local/lib/RTx/Shredder/Plugin/Base.pm line 23.

I looked at the perldocs and verified that Objects => $user is a valid value.
However, I am wondering if it should be something like $user->EmailAddress or
something.

Can someone shed some light on this for me?

Thanks
Mathew
-- 
Keep up with me and what I'm up to: http://theillien.blogspot.com
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] Shredder error

2006-08-03 Thread Ruslan Zakirov

search in archives, this error is documented and means next thing:
RT::Attachment-11334 was created by RT::User-14767, read help for users plugin.

On 8/3/06, Mathew Snyder <[EMAIL PROTECTED]> wrote:

I've eliminated several thousand tickets that were deemed spam.  Now I'm
trying to eliminate all the users that were created as each of the spam
tickets were.  However, when I run the Users plugin I get the following
error on some of the tickets:

Couldn't wipeout object: Couldn't find resolver for dependency
'RT::User-14767 (depends on,resolvable dependency) RT::Attachment-11334'
at /usr/local/rt-3.6.0/local/lib/RTx/Shredder.pm line 394

Have I messed up by removing the tickets first?  Is there a way to
remove the users by ignoring the dependency?

Thanks,
Mathew Snyder
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com




--
Best regards, Ruslan.
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


[rt-users] Shredder error

2006-08-03 Thread Mathew Snyder
I've eliminated several thousand tickets that were deemed spam.  Now I'm
trying to eliminate all the users that were created as each of the spam
tickets were.  However, when I run the Users plugin I get the following
error on some of the tickets:

Couldn't wipeout object: Couldn't find resolver for dependency
'RT::User-14767 (depends on,resolvable dependency) RT::Attachment-11334'
at /usr/local/rt-3.6.0/local/lib/RTx/Shredder.pm line 394

Have I messed up by removing the tickets first?  Is there a way to
remove the users by ignoring the dependency?

Thanks,
Mathew Snyder
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] Shredder error - 404 FnF

2006-05-26 Thread Ruslan Zakirov

Shredder-0.04 should fix 404 error.

On 1/30/06, Stewart Tranter <[EMAIL PROTECTED]> wrote:

Stephen Turner wrote:
> What are the permissions on the
> /opt/rt3/share/html/Admin/Tools/Shredder  directory?
>
> And what options did you use in the installation for 'perl Makefile.PL' ?
>

Hi Steve,

The permissions for the /opt/rt3/share/html/Admin/Tools/Shredder
directory are:

drwxr-xr-x  3 root bin 4096 Jan 27 12:03 Shredder

and I used no options on running 'perl Makefile.PL'.

Thanks,

Stewart

Stewart Tranter
Computing Services
Loughborough University

E:  [EMAIL PROTECTED]
W:  http://www.lboro.ac.uk/computing/
T:  +44 (0) 1509 223719
F:  +44 (0) 1509 223989

___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Be sure to check out the RT Wiki at http://wiki.bestpractical.com

Download a free sample chapter of RT Essentials from O'Reilly Media at 
http://rtbook.bestpractical.com

WE'RE COMING TO YOUR TOWN SOON - RT Training in Amsterdam, Boston and
San Francisco - Find out more at http://bestpractical.com/services/training.html




--
Best regards, Ruslan.
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


We're hiring! Come hack Perl for Best Practical: 
http://bestpractical.com/about/jobs.html