Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors after updating #46

Closed
languagerecipes opened this issue Sep 2, 2016 · 14 comments
Closed

Errors after updating #46

languagerecipes opened this issue Sep 2, 2016 · 14 comments
Assignees
Labels
Milestone

Comments

@languagerecipes
Copy link

Hi,

I updated our FLAT server (which worked properly before updating) using the command:

sudo pip install -U FoLiA-Linguistic-Annotation-Tool pynlpl

now I get a series of error messages when trying to log in to the server: http://dpaste.com/1NPB6FW#

Can you please help.

Cheers

@proycon
Copy link
Owner

proycon commented Sep 2, 2016

I can't remember exactly, but weren't you using a virtualenv installation as recommended, rather than a global installation? If so, you have to first activate the virtual environment in the shell (something like . env/bin/activate and do everything without sudo). Also better do sudo uninstall FoLiA-Linguistic-Annotation-Tool pynlpl to undo this global step and prevent confusion later on.

The error seems to point to a Django compatibility problem because it is using the globally installed Django rather than the one in the virtualenv.

@proycon
Copy link
Owner

proycon commented Sep 2, 2016

I just took a look on your server and it seems you are not using a virtualenv, but are using a global installation indeed (which is okay too), so ignore the previous message.

I'll test that FLAT works for Django 1.10 (which is what you have now and where it seems to break).

@proycon proycon self-assigned this Sep 2, 2016
@proycon
Copy link
Owner

proycon commented Sep 2, 2016

I'm preparing a new release that solves compatibility issues with the latest Django

@languagerecipes
Copy link
Author

excellent! thanks.

On Friday, September 2, 2016, Maarten van Gompel [email protected]
wrote:

I'm preparing a new release that solves compatibility issues with the
latest Django


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#46 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AHuwE4zt5Yl3hP9kqaTjzCUYWf2aIesnks5qmHOlgaJpZM4JztFe
.

@proycon
Copy link
Owner

proycon commented Sep 2, 2016

The new FLAT that fixes this issue has just been released (v0.5.1), you can upgrade again using sudo pip install -U FoLiA-Linguistic-Annotation-Tool

Additionaly, the new settings.py has some changes you will need to copy into your own settings file. Please copy the changes as in settings.py in commit ad85b8e , to your version of settings.py. I hope this is evident enough.

@proycon proycon added the ready label Sep 2, 2016
@proycon proycon added this to the v0.5.1 milestone Sep 2, 2016
@languagerecipes
Copy link
Author

Thanks Maarten, is this release stable enough or do you expect other
updates soon? cheers

Behrang

On Fri, Sep 2, 2016 at 9:55 PM, Maarten van Gompel <[email protected]

wrote:

The new FLAT that fixes this issue has just been released (v0.5.1), you
can upgrade again using sudo pip install -U FoLiA-Linguistic-Annotation-
Tool

Additionaly, the new settings.py has some changes you will need to copy
into your own settings file. Please copy the changes as in settings.py in
commit ad85b8e
ad85b8e
, to your version of settings.py. I hope this is evident enough.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#46 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AHuwE21N3CBdXBo3DEYsgKVpXEs9g1JSks5qmH8zgaJpZM4JztFe
.

@proycon
Copy link
Owner

proycon commented Sep 2, 2016

This one should be good to go, unless we encounter something unexpected again.

@languagerecipes
Copy link
Author

languagerecipes commented Sep 5, 2016

Still there are some problems when logging into the server:
Can you please help? (see below)

`Environment:


Request Method: GET
Request URL: http://mwe.phil.hhu.de/login/?next=/

Django Version: 1.10.1
Python Version: 3.4.2
Installed Applications:
('django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.admin',
 'flat.users',
 'flat.modes.viewer',
 'flat.modes.editor',
 'flat.modes.structureeditor')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware')

Template loader postmortem
Django tried loading these templates, in this order:

Using engine :
    This engine did not provide a list of tried templates.



Traceback:

File "/usr/local/lib/python3.4/dist-packages/django/core/handlers/exception.py" in inner
  39.             response = get_response(request)

File "/usr/local/lib/python3.4/dist-packages/django/core/handlers/base.py" in _legacy_get_response
  249.             response = self._get_response(request)

File "/usr/local/lib/python3.4/dist-packages/django/core/handlers/base.py" in _get_response
  187.                 response = self.process_exception_by_middleware(e, request)

File "/usr/local/lib/python3.4/dist-packages/django/core/handlers/base.py" in _get_response
  185.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/usr/local/lib/python3.4/dist-packages/flat/views.py" in login
  198.         return render(request, 'login.html',{"defaultconfiguration":settings.DEFAULTCONFIGURATION, "configurations":settings.CONFIGURATIONS, "version": settings.VERSION})

File "/usr/local/lib/python3.4/dist-packages/django/shortcuts.py" in render
  30.     content = loader.render_to_string(template_name, context, request, using=using)

File "/usr/local/lib/python3.4/dist-packages/django/template/loader.py" in render_to_string
  67.         template = get_template(template_name, using=using)

File "/usr/local/lib/python3.4/dist-packages/django/template/loader.py" in get_template
  25.     raise TemplateDoesNotExist(template_name, chain=chain)

Exception Type: TemplateDoesNotExist at /login/
Exception Value: login.html`

@proycon
Copy link
Owner

proycon commented Sep 6, 2016

This indicates not all of the necessary changes are in your settings.py. Did you copy the changes I made to settings.py to your own version of settings.py? That's unfortunately a necessary manual step for this upgrade. See ad85b8e (last file of the commit). It concerns the TEMPLATE= statement mostly and an extra import statement at the beginning.

@languagerecipes
Copy link
Author

Hi Maarten,

I did update the setting.py by adding/removing lines as highlighted for
setting.py in
ad85b8e

Cheers

Behrang

On Tue, Sep 6, 2016 at 6:51 PM, Maarten van Gompel <[email protected]

wrote:

This indicates not all of the necessary changes are in your settings.py.
Did you copy the changes I made to settings.py to your own version of
settings.py? That's unfortunately a necessary manual step for this upgrade.
See ad85b8e
ad85b8e
(last file of the commit). It concerns the TEMPLATE= statement mostly and
an extra import statement at the beginning.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#46 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AHuwE006E7HA8Bg-sQjs4KL-KoYUlnQ9ks5qnZn_gaJpZM4JztFe
.

@proycon
Copy link
Owner

proycon commented Sep 7, 2016

Do you mean the error still persists despite the changes? Did you restart the apache webserver and the foliadocserve?

@languagerecipes
Copy link
Author

languagerecipes commented Sep 7, 2016

Hi, OK restarting the server resolved the problem. One more question: does Folia doc server runs automatically after each restart?!

Cheers

On Wed, Sep 7, 2016 at 9:57 AM, Maarten van Gompel <[email protected]

wrote:

Do you mean the error still persists despite the changes? Did you restart
the apache webserver and the foliadocserve?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#46 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AHuwE0br0pSicF-SOD3A1prqe_4CrsGAks5qnm5mgaJpZM4JztFe
.

@proycon
Copy link
Owner

proycon commented Sep 7, 2016

No, the document server is not tied to Apache so it has to be started independently on every upgrade. I'll make it clearer in the update instructions.

Make sure the previous foliadocserve process is not running anymore and then just start it again as in the instructions in the README.

@languagerecipes
Copy link
Author

Thanks, the systems looks to work fine.

On Wed, Sep 7, 2016 at 12:07 PM, Maarten van Gompel <
[email protected]> wrote:

No, the document server is not tied to Apache so it has to be started
independently on every upgrade. I'll make it clearer in the update
instructions.

Make sure the previous foliadocserve process is not running anymore and
then just start it again as in the instructions in the README.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#46 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AHuwE4ZxT1uMqqfYFxBJyzfwUuBhSnWMks5qnozLgaJpZM4JztFe
.

@proycon proycon closed this as completed Sep 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants