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
docker yeti_1 & yeti-beat_1 crashing BSON field 'no_cursor_timeout' is an unknown field. #501
Comments
I manage to fix this error by following these steps:
Hope that Helps! |
Mokatsu, This does get the app started. Thank you. It may or may not be a long term fix. I am unable to start an investigation using an existing observable. Part of the stack trace includes mongodb. Please confirm if you experience the same behavior
|
I had similar issues with Flask and mongo. I was already planning to use a Caddy for the web server so i eliminated With Mongo I changed the version and defined a persistence volume. Below are excerpts from my yml file
|
Thanks for debugging this folks! I'll change the mongodb image to use 4.0 and not |
Description
yeti_1 and yeti-beat_1 issue Errors
yeti_1 OperationError: Update failed (BSON field 'no_cursor_timeout' is an unknown field.)
yeti-beat_1 | mongoengine.errors.OperationError: Update failed (BSON field 'no_cursor_timeout' is an unknown field.)
Environment
Fresh Ubuntu 18.04.3 LTS install
Fresh Docker CE Install (19.03.1)
Fresh Docker-Compose (1.24.1)
Steps to Reproduce
Expected behavior
yeti-beat_1 does not crash
yeti_1 web app does not return 500 error
Actual behavior
yeti-beat_1 | Traceback (most recent call last):
yeti-beat_1 | File "/usr/local/bin/celery", line 10, in
yeti-beat_1 | sys.exit(main())
yeti-beat_1 | File "/usr/local/lib/python2.7/dist-packages/celery/main.py", line 16, in main
yeti-beat_1 | _main()
yeti-beat_1 | File "/usr/local/lib/python2.7/dist-packages/celery/bin/celery.py", line 322, in main
yeti-beat_1 | cmd.execute_from_commandline(argv)
yeti-beat_1 | File "/usr/local/lib/python2.7/dist-packages/celery/bin/celery.py", line 496, in execute_from_commandline
yeti-beat_1 | celery beat v4.3.0 (rhubarb) is starting.
yeti-beat_1 | super(CeleryCommand, self).execute_from_commandline(argv)))
yeti-beat_1 | File "/usr/local/lib/python2.7/dist-packages/celery/bin/base.py", line 298, in execute_from_commandline
yeti-beat_1 | return self.handle_argv(self.prog_name, argv[1:])
yeti-beat_1 | File "/usr/local/lib/python2.7/dist-packages/celery/bin/celery.py", line 488, in handle_argv
yeti-beat_1 | return self.execute(command, argv)
yeti-beat_1 | File "/usr/local/lib/python2.7/dist-packages/celery/bin/celery.py", line 420, in execute
yeti-beat_1 | ).run_from_argv(self.prog_name, argv[1:], command=argv[0])
yeti-beat_1 | File "/usr/local/lib/python2.7/dist-packages/celery/bin/base.py", line 302, in run_from_argv
yeti-beat_1 | sys.argv if argv is None else argv, command)
yeti-beat_1 | File "/usr/local/lib/python2.7/dist-packages/celery/bin/base.py", line 386, in handle_argv
yeti-beat_1 | return self(*args, **options)
yeti-beat_1 | File "/usr/local/lib/python2.7/dist-packages/celery/bin/base.py", line 252, in call
yeti-beat_1 | ret = self.run(*args, **kwargs)
yeti-beat_1 | File "/usr/local/lib/python2.7/dist-packages/celery/bin/beat.py", line 109, in run
yeti-beat_1 | return beat().run()
yeti-beat_1 | File "/usr/local/lib/python2.7/dist-packages/celery/apps/beat.py", line 81, in run
yeti-beat_1 | self.start_scheduler()
yeti-beat_1 | File "/usr/local/lib/python2.7/dist-packages/celery/apps/beat.py", line 100, in start_scheduler
yeti-beat_1 | print(self.banner(service))
yeti-beat_1 | File "/usr/local/lib/python2.7/dist-packages/celery/apps/beat.py", line 122, in banner
yeti-beat_1 | c.reset(self.startup_info(service))),
yeti-beat_1 | File "/usr/local/lib/python2.7/dist-packages/celery/apps/beat.py", line 132, in startup_info
yeti-beat_1 | scheduler = service.get_scheduler(lazy=True)
yeti-beat_1 | File "/usr/local/lib/python2.7/dist-packages/celery/beat.py", line 627, in get_scheduler
yeti-beat_1 | lazy=lazy,
yeti-beat_1 | File "/opt/yeti/core/scheduling.py", line 61, in init
yeti-beat_1 | self.load_entries()
yeti-beat_1 | File "/opt/yeti/core/scheduling.py", line 79, in load_entries
yeti-beat_1 | self.loaded_entries = get_plugins()
yeti-beat_1 | File "/opt/yeti/core/yeti_plugins.py", line 31, in get_plugins
yeti-beat_1 | entry = obj.get_or_create(name=obj.default_values['name'])
yeti-beat_1 | File "/opt/yeti/core/database.py", line 90, in get_or_create
yeti-beat_1 | r = cls.objects(**select_dict).modify(upsert=True, **update_dict)
yeti-beat_1 | File "/usr/local/lib/python2.7/dist-packages/mongoengine/queryset/base.py", line 650, in modify
yeti-beat_1 | raise OperationError(u'Update failed (%s)' % err)
yeti-beat_1 | mongoengine.errors.OperationError: Update failed (BSON field 'no_cursor_timeout' is an unknown field.)
docker_yeti-beat_1 exited with code 1
yeti_1 | ERROR:app:Exception on / [GET]
yeti_1 | Traceback (most recent call last):
yeti_1 | File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 2446, in wsgi_app
yeti_1 | response = self.full_dispatch_request()
yeti_1 | File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1944, in full_dispatch_request
yeti_1 | self.try_trigger_before_first_request_functions()
yeti_1 | File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1992, in try_trigger_before_first_request_functions
yeti_1 | func()
yeti_1 | File "./core/yeti_plugins.py", line 31, in get_plugins
yeti_1 | entry = obj.get_or_create(name=obj.default_values['name'])
yeti_1 | File "./core/database.py", line 90, in get_or_create
yeti_1 | r = cls.objects(**select_dict).modify(upsert=True, **update_dict)
yeti_1 | File "/usr/local/lib/python2.7/dist-packages/mongoengine/queryset/base.py", line 650, in modify
yeti_1 | raise OperationError(u'Update failed (%s)' % err)
yeti_1 | OperationError: Update failed (BSON field 'no_cursor_timeout' is an unknown field.)
yeti_1 | [pid: 30|app: 0|req: 1/1] 165.225.32.118 () {52 vars in 937 bytes} [Fri Aug 23 18:54:30 2019] GET / => generated 290 bytes in 505 msecs (HTTP/1.1 500) 2 headers in 84 bytes (1 switches on core 0)
172.19.0.7:36972 (18 connections now open)
yeti_1 | ERROR:app:Exception on /favicon.ico [GET]
yeti_1 | Traceback (most recent call last):
yeti_1 | File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 2446, in wsgi_app
yeti_1 | response = self.full_dispatch_request()
yeti_1 | File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1944, in full_dispatch_request
yeti_1 | self.try_trigger_before_first_request_functions()
yeti_1 | File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1992, in try_trigger_before_first_request_functions
yeti_1 | func()
yeti_1 | File "./core/yeti_plugins.py", line 31, in get_plugins
yeti_1 | entry = obj.get_or_create(name=obj.default_values['name'])
yeti_1 | File "./core/database.py", line 90, in get_or_create
yeti_1 | r = cls.objects(**select_dict).modify(upsert=True, **update_dict)
yeti_1 | File "/usr/local/lib/python2.7/dist-packages/mongoengine/queryset/base.py", line 650, in modify
yeti_1 | raise OperationError(u'Update failed (%s)' % err)
yeti_1 | OperationError: Update failed (BSON field 'no_cursor_timeout' is an unknown field.)
Thank you for your help!
The text was updated successfully, but these errors were encountered: