Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #5574 (closed)

Opened 13 years ago

Closed 13 years ago

cleanse.py should delete pyramid files

Reported by: cblackburn Owned by: cblackburn
Priority: minor Milestone: OMERO-Beta4.3
Component: General Version: n.a.
Keywords: n.a. Cc: jamoore
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: 2011-06-02 (13)

Description

...it should also try to delete any remaining lock and tmp files for deleted Pixels.

Change History (3)

comment:1 Changed 13 years ago by cblackburn

  • Owner set to cblackburn
  • Remaining Time set to 0.5
  • Status changed from new to accepted

comment:2 Changed 13 years ago by cblackburn

cleanse.py is now broken with respect to pyramid files (as well as lock and tmp)

Traceback (most recent call last):
  File "bin/omero", line 123, in <module>
    rv = omero.cli.argv()
  File "/Users/cblackburn/Work/git-repos/ome/dist/lib/python/omero/cli.py", line 1170, in argv
    cli.invoke(args[1:])
  File "/Users/cblackburn/Work/git-repos/ome/dist/lib/python/omero/cli.py", line 720, in invoke
    stop = self.onecmd(line, previous_args)
  File "/Users/cblackburn/Work/git-repos/ome/dist/lib/python/omero/cli.py", line 789, in onecmd
    self.execute(line, previous_args)
  File "/Users/cblackburn/Work/git-repos/ome/dist/lib/python/omero/cli.py", line 869, in execute
    args.func(args)
  File "/Users/cblackburn/Work/git-repos/ome/dist/lib/python/omero/plugins/admin.py", line 956, in cleanse
    config_service=client.sf.getConfigService())
  File "/Users/cblackburn/Work/git-repos/ome/dist/lib/python/omero/util/cleanse.py", line 183, in cleanse
    cleanser.cleanse(full_path)
  File "/Users/cblackburn/Work/git-repos/ome/dist/lib/python/omero/util/cleanse.py", line 100, in cleanse
    self.query_or_defer(path)
  File "/Users/cblackburn/Work/git-repos/ome/dist/lib/python/omero/util/cleanse.py", line 110, in query_or_defer
    self.do_cleanse()
  File "/Users/cblackburn/Work/git-repos/ome/dist/lib/python/omero/util/cleanse.py", line 121, in do_cleanse
    for path in self.deferred_paths]
ValueError: invalid literal for long() with base 10: '632_pyramid'

Mind you it also trips up over .DS_Store

comment:3 Changed 13 years ago by Colin Blackburn <C.Blackburn@…>

  • Remaining Time changed from 0.5 to 0
  • Resolution set to fixed
  • Status changed from accepted to closed

(In [a839451f57dfc54a093175adcef76bbf12e837d8/ome.git] on branch develop) Handle files that do not have purely numeric names. Fixes #5574

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.66090 sec.)

We're Hiring!