Page 1 of 2

Difficulties with Apache config file(Omero.web)

PostPosted: Mon Mar 07, 2016 1:36 pm
by slozosnitram
Hi Everybody,

Recently installed Omero.server on Ubuntu server 14.04. With Omero.insight works OK but unfortunately I'm having problems with the Omero.web. I'm stuck with apache configuration (never worked with apache configs before).
At this moment I generated config with "omero web config apache" and edited omero-web.config accordingly.
But something is not working.
So can anybody give me an advice how to configure correctly (I'll provide any screenshots if necessary).

Regards Martins.

Re: Difficulties with Apache config file(Omero.web)

PostPosted: Mon Mar 07, 2016 1:48 pm
by manics
Hi Martins

Have you tried following the walkthrough: http://www.openmicroscopy.org/site/supp ... tml#apache

Ubuntu 14.04 provides Apache 2.4, so you'll need to run
Code: Select all
omero web config apache24 ...


If that doesn't work can you give us details of your setup, including OMERO version, output of
Code: Select all
omero admin diagnostics
and
Code: Select all
omero config get --hide-password
and your Apache logs
Code: Select all
/var/log/apache2/

Re: Difficulties with Apache config file(Omero.web)

PostPosted: Mon Mar 07, 2016 3:52 pm
by slozosnitram
Hi

Please see attached diagnostic, config, log screens (I'm temporary working over KVM ... something is wrong with PuTTy).

DiagnosticPartOne.JPG
DiagnosticPartOne.JPG (113.91 KiB) Viewed 5298 times

DiagnosticPartTwo.JPG
DiagnosticPartTwo.JPG (139.66 KiB) Viewed 5298 times

ErrorLogOne.JPG
ErrorLogOne.JPG (132.91 KiB) Viewed 5298 times

Re: Difficulties with Apache config file(Omero.web)

PostPosted: Mon Mar 07, 2016 4:01 pm
by slozosnitram
Other screens.

OmeroConfig.JPG
OmeroConfig.JPG (23.94 KiB) Viewed 5295 times

omero-web.config.JPG
omero-web.config.JPG (102.05 KiB) Viewed 5295 times

ErrorLogTwo_PartThree.JPG
ErrorLogTwo_PartThree.JPG (156.16 KiB) Viewed 5295 times

This is the part of the logfile .... error.log.1

Re: Difficulties with Apache config file(Omero.web)

PostPosted: Mon Mar 07, 2016 8:01 pm
by atarkowska
Hi

It looks to me like https://groups.google.com/forum/#!topic ... Ws2XJ-nlq0
Could you check if
Code: Select all
WSGISocketPrefix /var/run/apache2/wsgi
help?

Ola

Re: Difficulties with Apache config file(Omero.web)

PostPosted: Tue Mar 08, 2016 10:22 am
by slozosnitram
Hi,

Sorry I attached old version of config. here is actual one ..
omero-web.config.JPG
omero-web.config.JPG (97.81 KiB) Viewed 5266 times

and here are contents of /var/run/apache2/wsgi
ContentsOf_VarRunApache2wsgi.JPG
ContentsOf_VarRunApache2wsgi.JPG (13.06 KiB) Viewed 5266 times

but any way after "service apache2 reload" and "omero web start" I'm getting
OmeroWebStart.JPG
OmeroWebStart.JPG (43.28 KiB) Viewed 5266 times

Re: Difficulties with Apache config file(Omero.web)

PostPosted: Tue Mar 08, 2016 10:30 am
by manics
You shouldn't run "omero web start", since Apache will handle the running of OMERO.web. Do you see anything in your web browser, or in the Apache logs?

Re: Difficulties with Apache config file(Omero.web)

PostPosted: Tue Mar 08, 2016 12:11 pm
by slozosnitram
Browser says:

The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at [no address given] to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Apache/2.4.7 (Ubuntu) Server at 137.43.93.26 Port 80

Re: Difficulties with Apache config file(Omero.web)

PostPosted: Wed Mar 09, 2016 9:35 am
by manics
What's in your apache error logs when you see that browser error?

Re: Difficulties with Apache config file(Omero.web)

PostPosted: Wed Mar 09, 2016 10:49 am
by kennethgillen
Hi Martins,

slozosnitram wrote:log screens (I'm temporary working over KVM ... something is wrong with PuTTy)


Rather than uploading screenshots, you might find it easier to use the "tail" command and paste output into the "mail" command, e.g.

Code: Select all
tail Blitz-0.log | mail myemail@address.com


Whatever works though!

All the best,

Kenny