loris-imageserver / loris

Loris IIIF Image Server
Other
208 stars 87 forks source link

--- no python application found, check your startup logs for errors --- #458

Closed lguariento closed 5 years ago

lguariento commented 5 years ago

Hello,

I'm deploying Loris behind a Nginx server with uWSGI.

This is my WSGI file:


#-*- coding: utf-8 -*-

import sys
from os import path

project_dp = path.dirname(path.dirname(path.realpath(__file__)))

sys.path.append(project_dp)

from loris.webapp import create_app
application = create_app(debug=False, config_file_path='/root/python_ve/loris/etc/loris2.conf')```

I get a `--- no python application found, check your startup logs for errors ---` error, and the log is empty. Where should I check for wrong paths/misconfigurations?

Thanks.
bcail commented 5 years ago

Here's a troubleshooting tip: https://stackoverflow.com/questions/17555699/internal-server-error-with-django-and-uwsgi/31884017#31884017

lguariento commented 5 years ago

Fantastic, it works!!! I had to specify the full path of the uwsgi.ini file. Thanks, @bcail