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 #2805 (closed)

Opened 14 years ago

Closed 12 years ago

Bug: use of ~/omero fails if there's a file of that name

Reported by: jamoore Owned by:
Priority: major Milestone: OMERO-4.4
Component: Deployment Version: n.a.
Keywords: n.a. Cc: cxallan, dzmacdonald, jburel
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: 2012-01-17 (6)


omero@OMERO:/Server/omero/dist$ bin/omero config edit
Traceback (most recent call last):
  File "bin/omero", line 152, in <module>
    rv = omero.cli.argv()
  File "/Server/omero/dist/lib/python/omero/cli.py", line 1148, in argv
  File "/Server/omero/dist/lib/python/omero/cli.py", line 701, in invoke
    stop = self.onecmd(line, previous_args)
  File "/Server/omero/dist/lib/python/omero/cli.py", line 770, in onecmd
    self.execute(line, previous_args)
  File "/Server/omero/dist/lib/python/omero/cli.py", line 850, in execute
  File "/Server/omero/dist/lib/python/omero/plugins/prefs.py", line 67, in open_and_close_config
    return func(*args, **kwargs)
  File "/Server/omero/dist/lib/python/omero/plugins/prefs.py", line 211, in edit
    from omero.util.temp_files import create_path, remove_path
  File "/Server/omero/dist/lib/python/omero/util/temp_files.py", line 311, in <module>
    manager = TempFileManager()
  File "/Server/omero/dist/lib/python/omero/util/temp_files.py", line 59, in __init__
    if not self.create(self.userdir) and not self.access(self.userdir):
  File "/Server/omero/dist/lib/python/omero/util/temp_files.py", line 218, in create
  File "/Server/omero/dist/lib/python/path.py", line 919, in makedirs
    os.makedirs(self, mode)
  File "/usr/lib/python2.6/os.py", line 150, in makedirs
    makedirs(head, mode)
  File "/usr/lib/python2.6/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 20] Not a directory: '/home/omero/omero/tmp'

Change History (10)

comment:1 Changed 14 years ago by cxallan

  • Priority changed from minor to major

comment:2 Changed 14 years ago by cxallan

  • Sprint set to 2010-09-09 (16)

comment:3 Changed 14 years ago by jburel

  • Sprint changed from 2010-09-09 (16) to 2010-09-30 (17)

comment:4 Changed 14 years ago by jmoore

  • Owner set to jmoore

comment:5 Changed 14 years ago by jmoore

  • Owner jmoore deleted

comment:6 Changed 14 years ago by jmoore

(In [8301]) Fail fast in OmeroCli when ~/omero is a file (See #2805)

comment:7 Changed 14 years ago by jmoore

(In [8302]) Choosing another temp directory when "omero" or "tmp" are not dirs (See #2805)

comment:8 Changed 14 years ago by jmoore

  • Cc jburel added
  • Milestone changed from OMERO-Beta4.2.1 to Unscheduled
  • Sprint 2010-09-30 (17) deleted

OmeroCli's issues with a non-directory ~/omero should be mostly cleaned up, now. After a discussion with Jean-Marie in devteam, changing the semantics of ~/omero is probably too dangerous for 4.2.1. In 5+, we may want to move to using ~/.omero, etc., but for the moment, Insight is well-behaved, and there are other tickets for importer. Pushing.

comment:9 Changed 13 years ago by jmoore <josh@…>

(In [9abc91c827cbee192404206eb8f30adb6e36dee0/ome.git] on branch dev_4_1_custom) Choosing another temp directory when "omero" or "tmp" are not dirs (See #2805)

git-svn-id: file:///home/svn/omero/trunk@8302 05709c45-44f0-0310-885b-81a1db45b4a6

comment:10 Changed 12 years ago by jmoore

  • Milestone changed from Unscheduled to OMERO-Beta4.4
  • Remaining Time changed from 0.25 to 0
  • Resolution set to fixed
  • Sprint set to 2012-01-17 (6)
  • Status changed from new to closed

Opening a story to migrate the clients to something safer and more flexible (#7746). As far as CLI is concerned, this has been fixed.

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.69486 sec.)

We're Hiring!