Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

System Exit 1 (When adding too many explorations at once) #24026

@Meeth-webdev

Description

@Meeth-webdev

This error occurred recently in localhost:

Traceback (most recent call last):
  File "/tmp/tmphhyw3akd/lib/python3.10/site-packages/gunicorn/workers/sync.py", line 134, in handle
    self.handle_request(listener, req, client, addr)
  File "/tmp/tmphhyw3akd/lib/python3.10/site-packages/gunicorn/workers/sync.py", line 177, in handle_request
    respiter = self.wsgi(environ, resp.start_response)
  File "/home/meeth/oppia/main.py", line 1603, in __call__
    return self.wsgi_app(environ, start_response)
  File "/tmp/tmphhyw3akd/lib/python3.10/site-packages/webapp2.py", line 1567, in __call__
    rv = self.router.dispatch(request, response)
  File "/tmp/tmphhyw3akd/lib/python3.10/site-packages/webapp2.py", line 1314, in default_dispatcher
    return route.handler_adapter(request, response)
  File "/tmp/tmphhyw3akd/lib/python3.10/site-packages/webapp2.py", line 1138, in __call__
    return handler.dispatch()
  File "/home/meeth/oppia/core/controllers/base.py", line 398, in dispatch
    super().dispatch()
  File "/tmp/tmphhyw3akd/lib/python3.10/site-packages/webapp2.py", line 604, in dispatch
    return method(*args, **kwargs)
  File "/home/meeth/oppia/core/controllers/acl_decorators.py", line 1235, in test_super_admin
    return handler(self, **kwargs)
  File "/home/meeth/oppia/core/controllers/admin.py", line 522, in post
    self._generate_dummy_explorations(
  File "/home/meeth/oppia/core/controllers/admin.py", line 1291, in _generate_dummy_explorations
    exp_services.save_new_exploration(self.user_id, exploration)
  File "/home/meeth/oppia/core/domain/exp_services.py", line 1509, in save_new_exploration
    _create_exploration(
  File "/home/meeth/oppia/core/domain/exp_services.py", line 1434, in _create_exploration
    rights_manager.create_new_exploration_rights(exploration.id, committer_id)
  File "/home/meeth/oppia/core/domain/rights_manager.py", line 317, in create_new_exploration_rights
    subscription_services.subscribe_to_exploration(committer_id, exploration_id)
  File "/home/meeth/oppia/core/domain/subscription_services.py", line 96, in subscribe_to_exploration
    subscriptions_model.put()
  File "/tmp/tmphhyw3akd/lib/python3.10/site-packages/google/cloud/ndb/_options.py", line 102, in wrapper
    return wrapped(*pass_args, **kwargs)
  File "/tmp/tmphhyw3akd/lib/python3.10/site-packages/google/cloud/ndb/utils.py", line 118, in wrapper
    return wrapped(*args, **new_kwargs)
  File "/tmp/tmphhyw3akd/lib/python3.10/site-packages/google/cloud/ndb/utils.py", line 150, in positional_wrapper
    return wrapped(*args, **kwds)
  File "/tmp/tmphhyw3akd/lib/python3.10/site-packages/google/cloud/ndb/model.py", line 5461, in _put
    return self._put_async(_options=kwargs["_options"]).result()
  File "/tmp/tmphhyw3akd/lib/python3.10/site-packages/google/cloud/ndb/tasklets.py", line 210, in result
    self.check_success()
  File "/tmp/tmphhyw3akd/lib/python3.10/site-packages/google/cloud/ndb/tasklets.py", line 154, in check_success
    self.wait()
  File "/tmp/tmphhyw3akd/lib/python3.10/site-packages/google/cloud/ndb/tasklets.py", line 145, in wait
    if not _eventloop.run1():
  File "/tmp/tmphhyw3akd/lib/python3.10/site-packages/google/cloud/ndb/_eventloop.py", line 390, in run1
    return loop.run1()
  File "/tmp/tmphhyw3akd/lib/python3.10/site-packages/google/cloud/ndb/_eventloop.py", line 326, in run1
    delay = self.run0()
  File "/tmp/tmphhyw3akd/lib/python3.10/site-packages/google/cloud/ndb/_eventloop.py", line 286, in run0
    if self._run_current() or self.run_idle():
  File "/tmp/tmphhyw3akd/lib/python3.10/site-packages/google/cloud/ndb/_eventloop.py", line 252, in run_idle
    result = callback(*args, **kwargs)
  File "/tmp/tmphhyw3akd/lib/python3.10/site-packages/google/cloud/ndb/_batch.py", line 60, in idle
    batch.idle_callback()
  File "/tmp/tmphhyw3akd/lib/python3.10/site-packages/google/cloud/ndb/_cache.py", line 104, in idle_callback
    cache_call = self.make_call()
  File "/tmp/tmphhyw3akd/lib/python3.10/site-packages/google/cloud/ndb/_cache.py", line 514, in make_call
    return _global_cache().watch(self.todo)
  File "/tmp/tmphhyw3akd/lib/python3.10/site-packages/google/cloud/ndb/global_cache.py", line 410, in watch
    pipe.watch(key)
  File "/tmp/tmphhyw3akd/lib/python3.10/site-packages/redis/client.py", line 1608, in watch
    return self.execute_command("WATCH", *names)
  File "/tmp/tmphhyw3akd/lib/python3.10/site-packages/redis/client.py", line 1359, in execute_command
    return self.immediate_execute_command(*args, **kwargs)
  File "/tmp/tmphhyw3akd/lib/python3.10/site-packages/redis/client.py", line 1398, in immediate_execute_command
    conn = self.connection_pool.get_connection()
  File "/tmp/tmphhyw3akd/lib/python3.10/site-packages/redis/utils.py", line 163, in wrapper
    provided_args.update(kwargs)
  File "/tmp/tmphhyw3akd/lib/python3.10/site-packages/gunicorn/workers/base.py", line 204, in handle_abort
    sys.exit(1)
SystemExit: 1

Where did the error occur? http://localhost:8181/admin#/activities

Which release did the error occur in? 3.4.1

Frequency of occurrence 4 times (Can be done many times as I will mention the steps to replicate this issue)

Additional context Add any other context that would be useful. Make sure to anonymize user data like user IDs, exploration IDs, state names, user names, etc. Replace any personal data with appropriate placeholders.

Reproduction steps:

  1. Go to admin page .
  2. There is a option to add number of explorations add 1000 exploration and this issue might occur.
  3. If it is not shown in the first try ,try adding 1000 exploration again .

General instructions for contributors
In general, the procedure for fixing server errors should be the following:

  • Analyze the code in the file where the error occurred and come up with a hypothesis for the reason.
  • Based on your hypothesis, determine a list of steps that reliably reproduce the issue (or confirm any repro instructions that have been provided). For example, if your hypothesis is that the issue arises due to a delay in a response from the backend server, try to change the code so that the backend server always has a delay, and see if the error then shows up 100% of the time on your local machine.
  • Explain your proposed fix, the logic behind it, and any other findings/context you have on this thread. You can also link to a debugging doc if you prefer.
  • Get your approach validated by an Oppia team member.
  • Make a PR that fixes the issue.

Metadata

Metadata

Assignees

Labels

Impact: HighBlocks or significantly slows down a core workflow.Work: MediumThe means to find the solution is clear, but it isn't at good-first-issue level yet.bugLabel to indicate an issue is a regressionserver errors

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions