Page 1 of 1

Omero 5.0.2 web UnicodeDecodeErr (Windows/fastcgi)

PostPosted: Mon Jun 30, 2014 11:26 am
by xkunes
I would like to use omero with Appache web server, but I can not start the omero web:

I just have installed:
Omero serve 5.0.2
ICE 3.4
Python 2.6.6 (+pillow, pywin, scipy, numpy, matplot)
PostgresSQL 9.3.4

I get a Error: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe1 in position 17: ordinal not in range(128)
Exact output is added below.
(I received the same error with a Omero 5.0.2 with ICE 3.5 and Python 2.7.)

The data base is ready, omero server is running, but I tryied to setup OMERO.web:
Code: Select all
bin\omero config get

omero.data.dir=c:\\OMERO
omero.db.name=omero_database
omero.db.pass=*********
omero.db.user=db_user
omero.web.application_server=fastcgi-tcp
omero.web.application_server.host=localhost
omero.web.application_server.port=4080
omero.web.debug=True


And I run: bin\omero web start

Code: Select all
C:\OMERO.server>bin\omero web start
INFO:__main__:Application Starting...
INFO:root:Processing custom settings for module omeroweb.settings
DEBUG:omeroweb.settings:UPGRADES_URL = 'http://upgrade.openmicroscopy.org.uk/' (source:default)
DEBUG:omeroweb.settings:ADMINS = [] (source:default)
DEBUG:omeroweb.settings:ALLOWED_HOSTS = [u'*'] (source:default)
DEBUG:omeroweb.settings:APPLICATION_SERVER = 'fastcgi-tcp' (source:omero.web.application_server)
DEBUG:omeroweb.settings:APPLICATION_SERVER_HOST = 'localhost' (source:omero.web.application_server.h
ost)
DEBUG:omeroweb.settings:APPLICATION_SERVER_MAX_REQUESTS = 400 (source:default)
DEBUG:omeroweb.settings:APPLICATION_SERVER_PORT = '4080' (source:omero.web.application_server.port)
DEBUG:omeroweb.settings:ADDITIONAL_APPS = [] (source:default)
DEBUG:omeroweb.settings:CACHES = {u'default': {u'BACKEND': u'django.core.cache.backends.dummy.DummyC
ache'}} (source:default)
DEBUG:omeroweb.settings:DATABASES = {} (source:default)
DEBUG:omeroweb.settings:DEBUG = True (source:omero.web.debug)
DEBUG:omeroweb.settings:EMAIL_HOST = None (source:default)
DEBUG:omeroweb.settings:EMAIL_HOST_PASSWORD = u'********************' (source:default)
DEBUG:omeroweb.settings:EMAIL_HOST_USER = None (source:default)
DEBUG:omeroweb.settings:EMAIL_PORT = None (source:default)
DEBUG:omeroweb.settings:EMAIL_SUBJECT_PREFIX = '[OMERO.web] ' (source:default)
DEBUG:omeroweb.settings:EMAIL_USE_TLS = False (source:default)
DEBUG:omeroweb.settings:FORCE_SCRIPT_NAME = None (source:default)
DEBUG:omeroweb.settings:INDEX_TEMPLATE = None (source:default)
DEBUG:omeroweb.settings:LOGDIR = 'C:/OMERO.server/var/log' (source:default)
DEBUG:omeroweb.settings:LOGIN_LOGO = None (source:default)
DEBUG:omeroweb.settings:LOGIN_VIEW = 'weblogin' (source:default)
DEBUG:omeroweb.settings:NANOXML_JAR = 'nanoxml.jar' (source:default)
DEBUG:omeroweb.settings:OPEN_ASTEX_MAX_SIDE = 400 (source:default)
DEBUG:omeroweb.settings:OPEN_ASTEX_MAX_VOXELS = 27000000 (source:default)
DEBUG:omeroweb.settings:OPEN_ASTEX_MIN_SIDE = 20 (source:default)
DEBUG:omeroweb.settings:PING_INTERVAL = 60000 (source:default)
DEBUG:omeroweb.settings:PUBLIC_CACHE_ENABLED = False (source:default)
DEBUG:omeroweb.settings:PUBLIC_CACHE_KEY = u'********************' (source:default)
DEBUG:omeroweb.settings:PUBLIC_CACHE_TIMEOUT = 86400 (source:default)
DEBUG:omeroweb.settings:PUBLIC_ENABLED = False (source:default)
DEBUG:omeroweb.settings:PUBLIC_PASSWORD = u'********************' (source:default)
DEBUG:omeroweb.settings:PUBLIC_SERVER_ID = 1 (source:default)
DEBUG:omeroweb.settings:PUBLIC_URL_FILTER = <_sre.SRE_Pattern object at 0x03BA9B80> (source:default)

DEBUG:omeroweb.settings:PUBLIC_USER = None (source:default)
DEBUG:omeroweb.settings:SCRIPTS_TO_IGNORE = [u'\\omero\\figure_scripts\\Movie_Figure.py', u'\\omero\
\figure_scripts\\Split_View_Figure.py', u'\\omero\\figure_scripts\\Thumbnail_Figure.py', u'\\omero\\
figure_scripts\\ROI_Split_Figure.py', u'\\omero\\export_scripts\\Make_Movie.py', u'\\omero\\setup_sc
ripts\\FLIM_initialise.py', u'\\omero\\import_scripts\\Populate_ROI.py'] (source:default)
DEBUG:omeroweb.settings:SEND_BROKEN_LINK_EMAILS = True (source:default)
DEBUG:omeroweb.settings:SERVER_EMAIL = None (source:default)
DEBUG:omeroweb.settings:SERVER_LIST = [[u'localhost', 4064, u'omero']] (source:default)
DEBUG:omeroweb.settings:SESSION_ENGINE = 'django.contrib.sessions.backends.file' (source:default)
DEBUG:omeroweb.settings:STATIC_URL = '/static/' (source:default)
DEBUG:omeroweb.settings:STATICFILES_DIRS = [] (source:default)
DEBUG:omeroweb.settings:TEMPLATE_DIRS = [] (source:default)
DEBUG:omeroweb.settings:CENTER_PLUGINS = [] (source:default)
DEBUG:omeroweb.settings:UI_MENU_DROPDOWN = {u'ALL': u'All members', u'COLLEAGUES': u'Members', u'LEA
DERS': u'Owners'} (source:default)
DEBUG:omeroweb.settings:RIGHT_PLUGINS = [[u'Acquisition', u'webclient/data/includes/right_plugin.acq
uisition.js.html', u'metadata_tab'], [u'Preview', u'webclient/data/includes/right_plugin.preview.js.
html', u'preview_tab']] (source:default)
DEBUG:omeroweb.settings:TOP_LINKS = [] (source:default)
DEBUG:omeroweb.settings:VIEWER_INITIAL_ZOOM_LEVEL = None (source:default)
DEBUG:omeroweb.settings:WEBGATEWAY_CACHE = None (source:default)
DEBUG:omeroweb.settings:WEBSTART_CLASS = 'org.openmicroscopy.shoola.Main' (source:default)
DEBUG:omeroweb.settings:WEBSTART_HEAP = '1024m' (source:default)
DEBUG:omeroweb.settings:WEBSTART_HOMEPAGE = 'http://www.openmicroscopy.org' (source:default)
DEBUG:omeroweb.settings:WEBSTART_HOST = 'localhost' (source:default)
DEBUG:omeroweb.settings:WEBSTART_ICON = 'webstart/img/icon-omero-insight.png' (source:default)
DEBUG:omeroweb.settings:WEBSTART_JAR = 'omero.insight.jar' (source:default)
DEBUG:omeroweb.settings:WEBSTART_PORT = '4064' (source:default)
DEBUG:omeroweb.settings:WEBSTART_TEMPLATE = None (source:default)
DEBUG:omeroweb.settings:WEBSTART_TITLE = 'OMERO.insight' (source:default)
DEBUG:omeroweb.settings:WEBSTART_VENDOR = 'The Open Microscopy Environment' (source:default)
DEBUG:omeroweb.settings:INSTALLED_APPS=[('django.contrib.staticfiles', 'django.contrib.auth', 'djang
o.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'omeroweb.feedback', 'om
eroweb.webadmin', 'omeroweb.webclient', 'omeroweb.webgateway', 'omeroweb.webtest', 'omeroweb.webredi
rect', 'omeroweb.webstart')]

0 static files copied, 812 unmodified.
Starting OMERO.web...
WARNING: Unless you **really** know what you are doing you should NOT be
using bin\omero web start on Windows with FastCGI.

[OK]
Traceback (most recent call last):
  File "c:\Python26\lib\logging\__init__.py", line 776, in emit
    msg = self.format(record)
  File "c:\Python26\lib\logging\__init__.py", line 654, in format
    return fmt.format(record)
  File "c:\Python26\lib\logging\__init__.py", line 436, in format
    record.message = record.getMessage()
  File "c:\Python26\lib\logging\__init__.py", line 306, in getMessage
    msg = msg % self.args
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe1 in position 21: ordinal not in range(128)
Traceback (most recent call last):
  File "c:\Python26\lib\logging\__init__.py", line 776, in emit
    msg = self.format(record)
  File "c:\Python26\lib\logging\__init__.py", line 654, in format
    return fmt.format(record)
  File "c:\Python26\lib\logging\__init__.py", line 436, in format
    record.message = record.getMessage()
  File "c:\Python26\lib\logging\__init__.py", line 306, in getMessage
    msg = msg % self.args
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe1 in position 17: ordinal not in range(128)

C:\OMERO.server>

Re: Omero 5.0.2 web UnicodeDecodeErr (Windows/fastcgi)

PostPosted: Tue Jul 01, 2014 8:33 am
by bpindelski
Hello,

The error message you posted indicates that the default ASCII encoding used by Python can't decode a character in the input passed to the logger. The first thing I'd check is if you are using any non-ASCII characters in your username, password or any input supplied to OMERO.

In the meantime, I can point you to our demo server, if you want to first try out the software without installation (http://qa.openmicroscopy.org.uk/registry/demo_account/).

Finally - we conduct extensive testing with IIS on Windows and that is the recommended deployment scenario (http://www.openmicroscopy.org/site/supp ... l-web.html).

Regards,
Blazej