Task #3264 (closed)
Opened 14 years ago
Closed 12 years ago
Bug: initialization of plugins/web.py complains loudly
Reported by: | jamoore | Owned by: | jamoore |
---|---|---|---|
Priority: | minor | Milestone: | OMERO-4.4 |
Component: | Deployment | Version: | n.a. |
Keywords: | n.a. | Cc: | |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | n.a. |
Sprint: | 2012-01-17 (6) |
Description
/tmp/master/dist $ sudo chmod -R 000 etc/ Password: /tmp/master/dist $ ls -ltra total 48 drwxr-xr-x 6 moore wheel 204 Nov 8 13:17 bin d--------- 21 moore wheel 714 Nov 8 13:17 etc -rw-r--r-- 1 moore wheel 17987 Nov 8 13:17 LICENSE.txt drwxr-xr-x 6 moore wheel 204 Nov 8 13:17 sql drwxr-xr-x 9 moore wheel 306 Nov 8 13:17 lib drwxr-xr-x 5 moore wheel 170 Nov 8 13:33 include drwxr-xr-x 25 moore wheel 850 Nov 8 13:37 .. drwxr-xr-x 3 moore wheel 102 Nov 9 12:04 var -rw-r--r-- 1 moore wheel 57 Nov 9 12:30 hang.py drwxr-xr-x 10 moore wheel 340 Nov 9 12:30 . /tmp/master/dist $ bin/omero admin stop Error loading: /private/tmp/master/dist/lib/python/omero/plugins/web.py Traceback (most recent call last): File "/private/tmp/master/dist/lib/python/omero/cli.py", line 1094, in loadpath execfile( str(pathobj), loc ) File "/private/tmp/master/dist/lib/python/omero/plugins/web.py", line 13, in <module> from omeroweb import settings File "/private/tmp/master/dist/lib/python/omeroweb/settings.py", line 55, in <module> CONFIG_XML = omero.config.ConfigXml(CONFIG_XML) File "/private/tmp/master/dist/lib/python/omero/config.py", line 49, in __init__ self.source = open(filename, "a+") #: Open file handle IOError: [Errno 13] Permission denied: '/private/tmp/master/dist/etc/grid/config.xml'
See #3251
Change History (3)
comment:1 Changed 14 years ago by jmoore
comment:2 Changed 12 years ago by jmoore
- Milestone changed from Unscheduled to OMERO-Beta4.4
- Owner set to jmoore
- Sprint set to 2012-01-17 (6)
- Status changed from new to accepted
comment:3 Changed 12 years ago by jmoore
- Resolution set to worksforme
- Status changed from accepted to closed
Currently things look much better with this code:
@sprint6-server-backlog ~/git/dist $ chmod a-rwx etc/ @sprint6-server-backlog ~/git/dist $ bin/omero admin stop FATAL: OMERO directory does not exist: /Users/moore/GlencoeSoftware.git/git/omero.git/dist/etc/grid @sprint6-server-backlog ~/git/dist $ bin/omero web -h usage: bin/omero web [-h] <subcommand> ... OMERO.web configuration/deployment tools Configuration: Configuration for OMERO.web takes place via the omero config commands. The configuration values which are checked are as below: INVALID OR LOCKED CONFIGURATION! Cannot display default values Example Nginx usage: ...
Closing.
Note: See
TracTickets for help on using
tickets.
You may also have a look at Agilo extensions to the ticket.
(In [8580]) Reviewed stopasync/status logic (Fix #3251)
open_config uses self.can_access internally so that:
is printed on access rather than a nasty
IOError. See #3264 for a related issue.