We're Hiring!

Bad Gateway

Having a problem deploying OMERO? Please ask new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

The OMERO.server installation documentation begins here and you can find OMERO.web deployment documentation here.

Re: Bad Gateway

Postby phm » Thu Dec 11, 2014 10:46 am

Hi Simon,

I have take a look at ww.conf from php-fpm and it is listening 127.0.0.1:9000 not 0.0.0.0:4080 :
fastcgi_pass works well with hrm which is configured to send to 127.0.0.1:9000, but for omero php-fpm doesn't listened 0.0.0.:4080 ????
---------------
more /etc/php-fpm.d/ww.conf.org

; Start a new pool named 'www'.
[www]

; The address on which to accept FastCGI requests.
; Valid syntaxes are:
; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific address on
; a specific port;
; 'port' - to listen on a TCP socket to all addresses on a
; specific port;
; '/path/to/unix/socket' - to listen on a unix socket.
; Note: This value is mandatory.
listen = 127.0.0.1:9000

; Set listen(2) backlog. A value of '-1' means unlimited.
; Default Value: -1
;listen.backlog = -1

; List of ipv4 addresses of FastCGI clients which are allowed to connect.
; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original
; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address
; must be separated by a comma. If this value is left blank, connections will be
; accepted from any ip address.
; Default Value: any
listen.allowed_clients = 127.0.0.1

; Set permissions for unix socket, if one is used. In Linux, read/write
; permissions must be set in order to allow connections from a web server. Many
; BSD-derived systems allow connections regardless of permissions.
; Default Values: user and group are set as the running user
; mode is set to 0666
listen.owner = nginx
listen.group = nginx
listen.mode = 0660
.... more


Philippe
phm
 
Posts: 185
Joined: Tue Mar 19, 2013 3:39 pm

Re: Bad Gateway

Postby manics » Thu Dec 11, 2014 11:41 am

Hi Philippe

I'm not familiar with php-fpm, but presumably it's intended for handling .php files? In that case there's no reason you'd want it to handle any OMERO requests. when you run
Code: Select all
bin/omero web start
OMERO.web should be listening on port 4080, and if you've configured nginx correctly it should connect to the OMERO.web process.
User avatar
manics
Team Member
 
Posts: 261
Joined: Mon Oct 08, 2012 11:01 am
Location: Dundee

Re: Bad Gateway

Postby phm » Fri Dec 12, 2014 10:18 am

Hi,

I'm not sur it could help but I tried to start omero web in development mode, then http://0.0.0.4080. Here the error messages that I got :

Code: Select all

Server Error. (500)

Traceback (most recent call last):

  File "/opt/OMERO.server/lib/python/django/core/handlers/base.py", line 201, in get_response
    response = middleware_method(request, response)

  File "/opt/OMERO.server/lib/python/django/middleware/common.py", line 114, in process_response
    BrokenLinkEmailsMiddleware().process_response(request, response)

  File "/opt/OMERO.server/lib/python/django/middleware/common.py", line 156, in process_response
    fail_silently=True)

  File "/opt/OMERO.server/lib/python/django/core/mail/__init__.py", line 99, in mail_managers
    mail.send(fail_silently=fail_silently)

  File "/opt/OMERO.server/lib/python/django/core/mail/message.py", line 255, in send
    return self.get_connection(fail_silently).send_messages([self])

  File "/opt/OMERO.server/lib/python/django/core/mail/backends/smtp.py", line 99, in send_messages
    self.close()

  File "/opt/OMERO.server/lib/python/django/core/mail/backends/smtp.py", line 72, in close
    self.connection.close()

  File "/usr/lib64/python2.6/smtplib.py", line 723, in close
    if self.sock:

AttributeError: SMTP instance has no attribute 'sock'


<WSGIRequest
path:/omero/omero/webclient/,
GET:<QueryDict: {}>,
POST:<QueryDict: {}>,
COOKIES:{},
META:{'CONTENT_LENGTH': '',
'CONTENT_TYPE': 'text/plain',
u'CSRF_COOKIE': u'coovoSM4wWeBgjda7ey4f71soB7HJ8Xn',
'CVS_RSH': 'ssh',
'DISPLAY': 'localhost:10.0',
'DJANGO_SETTINGS_MODULE': 'omeroweb.settings',
'GATEWAY_INTERFACE': 'CGI/1.1',
'G_BROKEN_FILENAMES': '1',
'HISTCONTROL': 'ignoredups',
'HISTSIZE': '1000',
'HOME': '/home/omero',
'HOSTNAME': 'omero.college-de-france.fr',
'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
'HTTP_ACCEPT_LANGUAGE': 'fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3',
'HTTP_CONNECTION': 'keep-alive',
'HTTP_HOST': '0.0.0.0:4080',
'HTTP_REFERER': 'http://0.0.0.0:4080/omero/webclient/',
'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0',
'JAVA_HOME': '/usr/java/latest',
'KDEDIRS': '/usr',
'KDE_IS_PRELINKED': '1',
'LANG': 'fr_FR.UTF-8',
'LC_ADDRESS': 'fr_FR.UTF-8',
'LC_IDENTIFICATION': 'fr_FR.UTF-8',
'LC_MEASUREMENT': 'fr_FR.UTF-8',
'LC_MONETARY': 'fr_FR.UTF-8',
'LC_NAME': 'fr_FR.UTF-8',
'LC_NUMERIC': 'fr_FR.UTF-8',
'LC_PAPER': 'fr_FR.UTF-8',
'LC_TELEPHONE': 'fr_FR.UTF-8',
'LC_TIME': 'fr_FR.UTF-8',
'LESSOPEN': '||/usr/bin/lesspipe.sh %s',
'LOGNAME': 'omero',
'LS_COLORS': 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.tbz=01;31:*.tbz2=01;31:*.bz=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.axa=01;36:*.oga=01;36:*.spx=01;36:*.xspf=01;36:',
'MAIL': '/var/spool/mail/omero',
'OLDPWD': '/home/omero',
'OMERO_TEMPDIR': '/tmp',
'PATH': '/usr/pgsql-9.3/bin/:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/dell/srvadmin/bin:/opt/OMERO.server/bin:/opt/dell/srvadmin/sbin:/usr/java/latest/bin',
'PATH_INFO': u'/omero/webclient/',
'PGLIB': '/usr/pgsql-9.3/lib/',
'PWD': '/home/omero/omero',
'PYTHONPATH': '/opt/OMERO.server/lib/python:/opt/OMERO.server/var/lib:/opt/OMERO.server/lib/fallback',
'QTDIR': '/usr/lib64/qt-3.3',
'QTINC': '/usr/lib64/qt-3.3/include',
'QTLIB': '/usr/lib64/qt-3.3/lib',
'QUERY_STRING': '',
'REMOTE_ADDR': '127.0.0.1',
'REMOTE_HOST': '',
'REQUEST_METHOD': 'GET',
'SCRIPT_NAME': u'/omero',
'SELINUX_LEVEL_REQUESTED': '',
'SELINUX_ROLE_REQUESTED': '',
'SELINUX_USE_CURRENT_RANGE': '',
'SERVER_NAME': 'omero.college-de-france.fr',
'SERVER_PORT': '4080',
'SERVER_PROTOCOL': 'HTTP/1.1',
'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.6.6',
'SHELL': '/bin/bash',
'SHLVL': '1',
'SSH_ASKPASS': '/usr/libexec/openssh/gnome-ssh-askpass',
'SSH_CLIENT': '192.168.188.18 54850 22',
'SSH_CONNECTION': '192.168.188.18 54850 192.168.188.21 22',
'SSH_TTY': '/dev/pts/0',
'TERM': 'xterm',
'USER': 'omero',
'_': '/opt/OMERO.server/bin/omero',
'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fc47f5a01e0>,
'wsgi.file_wrapper': <class wsgiref.util.FileWrapper at 0x3904050>,
'wsgi.input': <socket._fileobject object at 0x4244ad0>,
'wsgi.multiprocess': False,
'wsgi.multithread': True,
'wsgi.run_once': False,
'wsgi.url_scheme': 'http',
'wsgi.version': (1, 0)}>

phm
 
Posts: 185
Joined: Tue Mar 19, 2013 3:39 pm

Re: Bad Gateway

Postby atarkowska » Fri Dec 12, 2014 10:36 am

Hi Philippe

Such an error usually is no related to SMTP. You see that email-related error for the simple fact that django is trying to log the exception via its default logging configuration which includes sending an email to the admins of the site.

Kill web development server. Wipe omero.web.server_email and all omero.web.email_* by the following commands:

Code: Select all
bin/omero config set omero.web.server_email
$ bin/omero config set omero.web.email_host
$ bin/omero config set omero.web.email_host_user
$ bin/omero config set omero.web.email_host_password
$ bin/omero config set omero.web.email_host_port
$ bin/omero config set omero.web.email_use_tls
$ bin/omero config set omero.web.email_subject_prefix
$ bin/omero config set omero.web.admins


then start development server and you should see what is the real error.
It should help you in debugging the problem. Make sure omero.web.debug is True

Ola
atarkowska
 
Posts: 327
Joined: Mon May 18, 2009 12:44 pm

Re: Bad Gateway

Postby atarkowska » Fri Dec 12, 2014 10:47 am

Sorry I forgot about bin/omero config set omero.web.admins as well
Ola
atarkowska
 
Posts: 327
Joined: Mon May 18, 2009 12:44 pm

Re: Bad Gateway

Postby phm » Fri Dec 12, 2014 11:22 am

atarkowska wrote:Sorry I forgot about bin/omero config set omero.web.admins as well
Ola


Hi Atarkowska,

I restarted the server in development mode after clearing all items that you mentioned. And now I get a page not found after http://0.0.0.0:4080/omero/omero/webclient/
And debug tell :

Code: Select all
omero web start
INFO:__main__:Application Starting...
INFO:root:Processing custom settings for module omeroweb.settings
DEBUG:omeroweb.settings:FEEDBACK_URL = 'http://qa.openmicroscopy.org.uk' (source:default)
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 = 'development' (source:omero.web.application_server)
DEBUG:omeroweb.settings:APPLICATION_SERVER_HOST = '0.0.0.0' (source:default)
DEBUG:omeroweb.settings:APPLICATION_SERVER_MAX_REQUESTS = 400 (source:default)
DEBUG:omeroweb.settings:APPLICATION_SERVER_PORT = '4080' (source:default)
DEBUG:omeroweb.settings:ADDITIONAL_APPS = [u'figure'] (source:omero.web.apps)
DEBUG:omeroweb.settings:CACHES = {u'default': {u'BACKEND': u'django.core.cache.backends.dummy.DummyCache'}} (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 = '/omero' (source:omero.web.force_script_name)
DEBUG:omeroweb.settings:INDEX_TEMPLATE = None (source:default)
DEBUG:omeroweb.settings:LOGDIR = '/opt/OMERO.server/var/log' (source:default)
DEBUG:omeroweb.settings:LOGIN_LOGO = '/static/webclient/image/logo_CIRB.jpg' (source:omero.web.login_logo)
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 0x37e65e0> (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_scripts/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_COOKIE_AGE = 86400 (source:default)
DEBUG:omeroweb.settings:SESSION_ENGINE = 'omeroweb.filesessionstore' (source:default)
DEBUG:omeroweb.settings:SESSION_EXPIRE_AT_BROWSER_CLOSE = True (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'LEADERS': u'Owners'} (source:default)
DEBUG:omeroweb.settings:RIGHT_PLUGINS = [[u'Acquisition', u'webclient/data/includes/right_plugin.acquisition.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 = [[u'Figure', u'figure_index', {u'target': u'figure'}]] (source:omero.web.ui.top_links)
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:Attempting to import additional app settings for app: figure
INFO:root:Processing custom settings for module figure.settings
DEBUG:omeroweb.settings:INSTALLED_APPS=[('django.contrib.staticfiles', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'omeroweb.feedback', 'omeroweb.webadmin', 'omeroweb.webclient', 'omeroweb.webgateway', 'omeroweb.webredirect', 'omeroweb.webstart', u'omeroweb.figure')]

0 static files copied, 873 unmodified.
Starting OMERO.web... INFO:__main__:Application Starting...
INFO:root:Processing custom settings for module omeroweb.settings
DEBUG:omeroweb.settings:FEEDBACK_URL = 'http://qa.openmicroscopy.org.uk' (source:default)
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 = 'development' (source:omero.web.application_server)
DEBUG:omeroweb.settings:APPLICATION_SERVER_HOST = '0.0.0.0' (source:default)
DEBUG:omeroweb.settings:APPLICATION_SERVER_MAX_REQUESTS = 400 (source:default)
DEBUG:omeroweb.settings:APPLICATION_SERVER_PORT = '4080' (source:default)
DEBUG:omeroweb.settings:ADDITIONAL_APPS = [u'figure'] (source:omero.web.apps)
DEBUG:omeroweb.settings:CACHES = {u'default': {u'BACKEND': u'django.core.cache.backends.dummy.DummyCache'}} (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 = '/omero' (source:omero.web.force_script_name)
DEBUG:omeroweb.settings:INDEX_TEMPLATE = None (source:default)
DEBUG:omeroweb.settings:LOGDIR = '/opt/OMERO.server/var/log' (source:default)
DEBUG:omeroweb.settings:LOGIN_LOGO = '/static/webclient/image/logo_CIRB.jpg' (source:omero.web.login_logo)
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 0x32745e0> (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_scripts/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_COOKIE_AGE = 86400 (source:default)
DEBUG:omeroweb.settings:SESSION_ENGINE = 'omeroweb.filesessionstore' (source:default)
DEBUG:omeroweb.settings:SESSION_EXPIRE_AT_BROWSER_CLOSE = True (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'LEADERS': u'Owners'} (source:default)
DEBUG:omeroweb.settings:RIGHT_PLUGINS = [[u'Acquisition', u'webclient/data/includes/right_plugin.acquisition.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 = [[u'Figure', u'figure_index', {u'target': u'figure'}]] (source:omero.web.ui.top_links)
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:Attempting to import additional app settings for app: figure
INFO:root:Processing custom settings for module figure.settings
DEBUG:omeroweb.settings:INSTALLED_APPS=[('django.contrib.staticfiles', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'omeroweb.feedback', 'omeroweb.webadmin', 'omeroweb.webclient', 'omeroweb.webgateway', 'omeroweb.webredirect', 'omeroweb.webstart', u'omeroweb.figure')]
Validating models...

0 errors found
December 12, 2014 - 11:12:28
Django version 1.6, using settings 'omeroweb.settings'
Starting development server at http://0.0.0.0:4080/
Quit the server with CONTROL-C.
[12/Dec/2014 11:13:04] "GET / HTTP/1.1" 301 0
[12/Dec/2014 11:13:04] "GET /omero/webclient/ HTTP/1.1" 404 3125
[12/Dec/2014 11:13:05] "GET /static/webgateway/img/ome.ico HTTP/1.1" 200 1150



And the nginx error file say the same error :

Code: Select all
2014/12/12 12:20:59 [crit] 23092#0: *198 stat() "/opt/OMERO.server/var/maintenance.html" failed (13: Permission denied), client: 192.168.188.21, server: omero.college-de-france.fr, request: "GET /omero/webclient/login/?url=%2Fomero%2Fwebclient%2F HTTP/1.1", host: "omero.college-de-france.fr"
2014/12/12 12:20:59 [crit] 23092#0: *198 connect() to 0.0.0.0:4080 failed (13: Permission denied) while connecting to upstream, client: 192.168.188.21, server: omero.college-de-france.fr, request: "GET /omero/webclient/login/?url=%2Fomero%2Fwebclient%2F HTTP/1.1", upstream: "fastcgi://0.0.0.0:4080", host: "omero.college-de-france.fr"



Philippe
phm
 
Posts: 185
Joined: Tue Mar 19, 2013 3:39 pm

Re: Bad Gateway

Postby phm » Fri Dec 12, 2014 11:39 am

Hi Atarkowska,

And if I remove all statics file in omero web folder. It should reinstall the new files ???

Philippe
phm
 
Posts: 185
Joined: Tue Mar 19, 2013 3:39 pm

Re: Bad Gateway

Postby atarkowska » Fri Dec 12, 2014 11:51 am

Hi Philippe

Development server has nothing to do with nginx.

when you set omero.web.application_server to "development" you see that stand alone webserver started:

Code: Select all
Django version 1.6, using settings 'omeroweb.settings'
Starting development server at http://0.0.0.0:4080/
Quit the server with CONTROL-C.


FORCE_SCRIP_NAME = custom prefix does not work with development server (see https://code.djangoproject.com/ticket/7930), you need to wipe
Code: Select all
$OMERO_HOME/bin/omero config set omero.web.static_url
$OMERO_HOME/bin/omero config set omero.web.force_script_name


Then when you go to http://localhost:4080/webclient/ you should see login page

do not delete anything

IF nothing appear on the console development server allows you to see errors on the webbrowser and also should write to omero/var/logs/OMEROweb.log

Ola
atarkowska
 
Posts: 327
Joined: Mon May 18, 2009 12:44 pm

Re: Bad Gateway

Postby atarkowska » Fri Dec 12, 2014 12:02 pm

I had another thoguht, If you managed to start webserver I think your issues with nginx has nothing to to with OMERO at all. Permission denied must come from some changes in nginx configurations when you installed php-fpm. I would google for that

Ola
atarkowska
 
Posts: 327
Joined: Mon May 18, 2009 12:44 pm

Re: Bad Gateway

Postby phm » Fri Dec 12, 2014 12:12 pm

Hi Ola,

Super the development mode server is working perfectly. That mean the problem with bad gateway come from nginx conf or some permissions. But I can't identify the source of the problem.

Philippe
phm
 
Posts: 185
Joined: Tue Mar 19, 2013 3:39 pm

PreviousNext

Return to Installation and Deployment

Who is online

Users browsing this forum: No registered users and 1 guest