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

Cannot run container 3.8.1 #379

Closed
l3r1nmax opened this issue Sep 18, 2019 · 4 comments
Closed

Cannot run container 3.8.1 #379

l3r1nmax opened this issue Sep 18, 2019 · 4 comments

Comments

@l3r1nmax
Copy link

Just tried to run the 3.8.1 version but it will crash. The log is the following:

weblate_1   | Starting...
weblate_1   | weblate
weblate_1   | Updating system timezone to Europe/Madrid
weblate_1   | MySQL is up
weblate_1   | Traceback (most recent call last):
weblate_1   |   File "/usr/local/bin/weblate", line 6, in <module>
weblate_1   |     from weblate.runner import main
weblate_1   |   File "/usr/local/lib/python3.7/dist-packages/weblate/__init__.py", line 23, in <module>
weblate_1   |     from weblate.celery import app as celery_app
weblate_1   |   File "/usr/local/lib/python3.7/dist-packages/weblate/celery.py", line 36, in <module>
weblate_1   |     from raven import Client
weblate_1   |   File "/usr/local/lib/python3.7/dist-packages/raven/__init__.py", line 49, in <module>
weblate_1   |     from raven.base import *  # NOQA
weblate_1   |   File "/usr/local/lib/python3.7/dist-packages/raven/base.py", line 37, in <module>
weblate_1   |     from raven.conf.remote import RemoteConfig
weblate_1   |   File "/usr/local/lib/python3.7/dist-packages/raven/conf/remote.py", line 36, in <module>
weblate_1   |     DEFAULT_TRANSPORT = discover_default_transport()
weblate_1   |   File "/usr/local/lib/python3.7/dist-packages/raven/conf/remote.py", line 18, in discover_default_transport
weblate_1   |     from raven.transport.threaded import ThreadedHTTPTransport
weblate_1   |   File "/usr/local/lib/python3.7/dist-packages/raven/transport/__init__.py", line 13, in <module>
weblate_1   |     from raven.transport.eventlet import *  # NOQA
weblate_1   |   File "/usr/local/lib/python3.7/dist-packages/raven/transport/eventlet.py", line 15, in <module>
weblate_1   |     import eventlet
weblate_1   |   File "/usr/local/lib/python3.7/dist-packages/eventlet/__init__.py", line 10, in <module>
weblate_1   |     from eventlet import convenience
weblate_1   |   File "/usr/local/lib/python3.7/dist-packages/eventlet/convenience.py", line 7, in <module>
weblate_1   |     from eventlet.green import socket
weblate_1   |   File "/usr/local/lib/python3.7/dist-packages/eventlet/green/socket.py", line 21, in <module>
weblate_1   |     from eventlet.support import greendns
weblate_1   |   File "/usr/local/lib/python3.7/dist-packages/eventlet/support/greendns.py", line 69, in <module>
weblate_1   |     setattr(dns.rdtypes.IN, pkg, import_patched('dns.rdtypes.IN.' + pkg))
weblate_1   |   File "/usr/local/lib/python3.7/dist-packages/eventlet/support/greendns.py", line 59, in import_patched
weblate_1   |     return patcher.import_patched(module_name, **modules)
weblate_1   |   File "/usr/local/lib/python3.7/dist-packages/eventlet/patcher.py", line 126, in import_patched
weblate_1   |     *additional_modules + tuple(kw_additional_modules.items()))
weblate_1   |   File "/usr/local/lib/python3.7/dist-packages/eventlet/patcher.py", line 100, in inject
weblate_1   |     module = __import__(module_name, {}, {}, module_name.split('.')[:-1])
weblate_1   |   File "/usr/local/lib/python3.7/dist-packages/dns/rdtypes/IN/WKS.py", line 25, in <module>
weblate_1   |     _proto_tcp = socket.getprotobyname('tcp')
weblate_1   | OSError: protocol not found
weblate_1   | 
weblate_1   | Migration from this version is not supported!
weblate_1   | Please upgrade to 3.0.1-7 first.

Googling the error found this: eventlet/eventlet#370
I noticed the inclusion of eventlet at the requirements file. After removing it I could successfully start the container, but I ignore what issues it might generate on the app performance

@nijel
Copy link
Member

nijel commented Sep 18, 2019

MySQL is up

That doesn't seem to be our container, that supports PostgreSQL only and does not use eventlets, so please use https://hub.docker.com/r/weblate/weblate/ instead. Eventlet is not used by our container because it's broken on Python 3.7, see eventlet/eventlet#526 (and #340).

@nijel nijel closed this as completed Sep 18, 2019
@l3r1nmax
Copy link
Author

I am using your container https://github.com/WeblateOrg/docker/tree/3.8-4 customized for MySQL support, I am doing no more changes. May I then ignore the eventlet dependency at https://github.com/WeblateOrg/docker/blob/3.8-4/requirements.txt ?

nijel added a commit that referenced this issue Sep 18, 2019
Its usage was removed in d492ff4.

Issue #379

Signed-off-by: Michal Čihař <michal@cihar.com>
@nijel
Copy link
Member

nijel commented Sep 18, 2019

Ah good point, it was mistakenly not removed there while removing it's usage.

@nijel
Copy link
Member

nijel commented Sep 18, 2019

And MySQL support will be dropped in future Weblate versions, see WeblateOrg/weblate#2825

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants