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

Opened 15 years ago

Closed 14 years ago

Permit root ownership of var/ directory

Reported by: jamoore Owned by: jamoore
Priority: major Milestone: OMERO-Beta4.2
Component: Deployment Version: 4.1
Keywords: n.a. Cc: bernhard.hollaender@…, atarkowska
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: 2010-04-16 (7)

Change History (10)

comment:1 Changed 14 years ago by jmoore

  • Cc atarkowska added
  • Priority changed from minor to major

Depends on OmeroWeb storing files under var/ and not under lib/python

comment:2 Changed 14 years ago by jmoore

  • Type changed from User Story to Task

comment:3 Changed 14 years ago by jmoore

  • Remaining Time set to 0.25
  • Sprint set to 2010-04-16 (7)
  • Status changed from new to assigned

comment:4 Changed 14 years ago by jmoore

  • Remaining Time changed from 0.25 to 0
  • Resolution set to fixed
  • Status changed from assigned to closed

(In [6681]) fix #1645 - Permitting use of a var/ belonging to root

comment:5 Changed 14 years ago by jmoore

(In [6746]) see #1645, #2244 - adding var/lib for OmeroWeb usage

comment:6 Changed 14 years ago by atarkowska

  • Resolution fixed deleted
  • Status changed from closed to reopened

When 'syncmedia' is trying to import settings http://trac.openmicroscopy.org.uk/omero/browser/trunk/components/tools/OmeroPy/src/omero/plugins/web.py#L277 is throwing the exception from omeroweb/settings.py 'mac:dist ola$ bin/omero web settings
You just installed OMERO, which means you didn't have settings configured in OMERO.web.
Please enter the domain you want to run OMERO.web on (http://www.domain.com:8000/):localhost:8000
Please enter the Email address you want to send from (omero_admin@…): A.Tarkowska@…
Please enter the SMTP server host you want to send from (smtp.example.com): smtp.dundee.ac.uk
Optional: please enter the SMTP server port (default 25):
Optional: Please enter the SMTP server username:
Optional: Password:
Optional: TSL? (yes/no):
Saved to /Users/ola/Dev/omero/dist/var/custom_settings.py
Error: Can't find the file 'custom_settings.py'.It appears you've customized things.You'll have to run 'bin/omero web settings', passing it your settings module. (If the file custom_settings.py does indeed exist, it's causing an ImportError? somehow.)'

comment:7 Changed 14 years ago by atarkowska

  • Resolution set to fixed
  • Status changed from reopened to closed

comment:8 Changed 14 years ago by atarkowska

Indeed it must be save in 'var/lib'

comment:9 Changed 14 years ago by atarkowska

  • Resolution fixed deleted
  • Status changed from closed to reopened

OMERO.web does not start up because PYHTONPATH is not set:

Starting django... 
['python', 'manage.py', 'runserver', '--noreload']
Error: Can't find the file 'var/lib/custom_settings.py'It appears you haven't customized things.
You'll have to run 'bin/omero web settings', passing it your settings module.
(If the file custom_settings.py does indeed exist, it's causing an ImportError somehow.)

comment:10 Changed 14 years ago by jmoore

  • Resolution set to fixed
  • Status changed from reopened to closed

In a discussion with Ola, the one remaining issue was var/lib was not being added to the PYTHONPATH value in (win)default.xml. However, since we did not want to be supporting the use of:

bin/omero admin server ice enable Web

anymore, this requirement could be dropped. var should now be the only directory which must be non-root owned.

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

We're Hiring!