Hi Roberto, Yes teserract is installed and it is some 3.x version.
Mayan is looking for the images in the folder image_cache while all the files are stored under document_storage. And it is throwing the error file not found. -Pavan On Fri, Jan 18, 2013 at 12:11 AM, Roberto Rosario <[email protected]> wrote: > Hi Pavan, > > Yes the HistoryType error looks to be caused by an incomplete installation > delete the database and recreate it again with: > > ./manage.py sync --migrate --noinput > > Regarding the OCR error: Is Teserract installed? Is it version 3.0 or > greater. If you are OCRing an office file, a recent version of LibreOffice > must be installed. > > --Roberto > > > On Tuesday, January 15, 2013 1:46:10 PM UTC-4, Pavan wrote: >> >> Hi Roberto, >> >> I could somehow clear this "Unhandled exception: No >> History Type matches the given query." by clearing the database and >> refilling it. >> >> The last problem I am facing now is the OCR. Somehow mayan-edms is >> trying to look for files in image_cache for the OCR and it complains >> there is no such file in that folder. >> >> exact error is [Errno 2] No such file or directory >> >> I have the document_storage and documents_cache folders and with >> proper permissions >> >> Is this misconfiguration or is something missing here? >> >> -Pavan >> >> On Tue, Jan 15, 2013 at 1:57 PM, Pavan K <[email protected]> wrote: >> > Hi Roberto, >> > >> > But I think the variables exist in settings.py and If I change them to >> > what you suggested. >> > >> > If I dont login I the website is entering an infinite redirect loop. >> > Anyway this is not a very big concern. >> > >> > When I try to upload a document it says "Unhandled exception: No >> > History Type matches the given query." It uploaded once and it never >> > could upload again. This is very strange and any reason you can think >> > of why this is happening? >> > >> > -Pavan >> > >> > >> > On Tue, Jan 15, 2013 at 9:49 AM, Roberto Rosario >> > <[email protected]> wrote: >> >> Hi Pavan, >> >> >> >> Excellent, that will come in handy is anyone experiences a similar >> >> problem >> >> in RedHat 5.6. >> >> >> >> For the login issue, create a settings_local.py on the same directory >> >> that >> >> settings.py and add your specific values for the LOGIN_URL and >> >> LOGIN_REDIRECT_URL settings. >> >> >> >> LOGIN_URL = '/mayan/login/' >> >> LOGIN_REDIRECT_URL = '/mayan/' >> >> >> >> that should redirect you to /mayan if logged in and to /mayan/login if >> >> not >> >> authenticated. >> >> >> >> --Roberto >> >> >> >> On Tuesday, January 15, 2013 4:35:34 AM UTC-4, Pavan wrote: >> >>> >> >>> Hi, >> >>> >> >>> It was actually a python and mod_wsgi incompatibility issue. I got it >> >>> fixed by compiling the source of mod_wsgi and linking it instead of >> >>> the one from yum repo. >> >>> >> >>> Other problem that has surfaced now is I am running the EDMS as an app >> >>> on a webserver(apache). i.e., blabla.com/mayan. >> >>> >> >>> When I am logged in I can enter the site but when I am not, I get >> >>> redirected to blabla.com/login but instead it should be pointing to >> >>> blabla.com/mayan/login. When I change this in settings.py, it enters a >> >>> infinite redirect loop. Where should I change the config so that I can >> >>> enter the site through blabla.com/mayan and if I am not logged in, it >> >>> should reroute me to blabla.com/mayan/login. >> >>> >> >>> The same is the case with logout. After I logout it takes me to >> >>> blabla.com. It should probably take me to blabla.com/mayan/login or >> >>> some default page that I can configure. >> >>> >> >>> Thanks >> >>> >> >>> On Tue, Jan 15, 2013 at 6:59 AM, Roberto Rosario >> >>> <[email protected]> wrote: >> >>> > Hi, >> >>> > >> >>> > That line uses a relative import that shouldn't throw that error >> >>> > ("from >> >>> > __future__ import absolute_import" is even included at the top of >> >>> > the >> >>> > module >> >>> > to support previous versions going back to Python 2.5). Try running >> >>> > from >> >>> > the command line with: >> >>> > >> >>> > ./manage.py runserver >> >>> > >> >>> > after activating the virtualenv with: >> >>> > >> >>> > source <path to Mayan> >> >>> > >> >>> > And see if that throws more light in to the error. >> >>> > >> >>> > --Roberto >> >>> > >> >>> > On Monday, January 14, 2013 12:58:45 PM UTC-4, Pavan wrote: >> >>> >> >> >>> >> I am trying to deploy mayan-edms a django web application on a >> >>> >> RedHat5.6 >> >>> >> server in production mode with apache webserver. >> >>> >> >> >>> >> I have setup the database and the used a virtual-env to setup the >> >>> >> env >> >>> >> >> >>> >> This is my httpd.conf >> >>> >> >> >>> >> WSGIScriptAlias /mayan /var/www/mayan/mayan/wsgi/dispatch.wsgi >> >>> >> WSGIPythonPath >> >>> >> /var/www/mayan/mayan:/var/www/mayan/lib/python2.6/site-packages >> >>> >> <Directory /var/www/mayan/mayan> >> >>> >> <Files wsgi.py> >> >>> >> Order deny,allow >> >>> >> Allow from all >> >>> >> </Files> >> >>> >> </Directory> >> >>> >> >> >>> >> I am getting a 500 error if I start apache with this conf. Could >> >>> >> anyone >> >>> >> tell me where it is getting misconfigured? >> >>> >> >> >>> >> This is the error >> >>> >> >> >>> >> [Mon Jan 14 12:47:02 2013] [error] [client 130.229.146.48] mod_wsgi >> >>> >> (pid=21715): Exception occurred processing WSGI script >> >>> >> '/var/www/mayan/mayan/wsgi/dispatch.wsgi'. >> >>> >> [Mon Jan 14 12:47:02 2013] [error] [client 130.229.146.48] >> >>> >> Traceback >> >>> >> (most >> >>> >> recent call last): >> >>> >> [Mon Jan 14 12:47:02 2013] [error] [client 130.229.146.48] File >> >>> >> >> >>> >> >> >>> >> "/var/www/mayan/lib/python2.6/site-packages/django/core/handlers/wsgi.py", >> >>> >> line 250, in __call__ >> >>> >> [Mon Jan 14 12:47:02 2013] [error] [client 130.229.146.48] >> >>> >> self.load_middleware() >> >>> >> [Mon Jan 14 12:47:02 2013] [error] [client 130.229.146.48] File >> >>> >> >> >>> >> >> >>> >> "/var/www/mayan/lib/python2.6/site-packages/django/core/handlers/base.py", >> >>> >> line 45, in load_middleware >> >>> >> [Mon Jan 14 12:47:02 2013] [error] [client 130.229.146.48] mod >> >>> >> = >> >>> >> import_module(mw_module) >> >>> >> [Mon Jan 14 12:47:02 2013] [error] [client 130.229.146.48] File >> >>> >> >> >>> >> "/var/www/mayan/lib/python2.6/site-packages/django/utils/importlib.py", >> >>> >> line >> >>> >> 35, in import_module >> >>> >> [Mon Jan 14 12:47:02 2013] [error] [client 130.229.146.48] >> >>> >> __import__(name) >> >>> >> [Mon Jan 14 12:47:02 2013] [error] [client 130.229.146.48] File >> >>> >> "/var/www/mayan/mayan/apps/common/__init__.py", line 17 >> >>> >> [Mon Jan 14 12:47:02 2013] [error] [client 130.229.146.48] >> >>> >> from >> >>> >> .conf.settings import (AUTO_CREATE_ADMIN, AUTO_ADMIN_USERNAME, >> >>> >> [Mon Jan 14 12:47:02 2013] [error] [client 130.229.146.48] >> >>> >> ^ >> >>> >> [Mon Jan 14 12:47:02 2013] [error] [client 130.229.146.48] >> >>> >> SyntaxError: >> >>> >> invalid syntax >> >>> > >> >>> > -- >> >>> > >> >>> > >> >>> > >> >>> >> >>> >> >>> >> >>> -- >> >>> /Pavan >> >> >> >> -- >> >> >> >> >> >> >> > >> > >> > >> > -- >> > > > -- > > > -- /Pavan --
