<p>Having trouble running the <code>manage.py migrate</code> command in our kubernetes cluster. It seems to have lost permission to run anything. None of the <code>manage.py</code> commands work, they all get the same issue.</p>
<p>I have no ability to change the permissions or ownership on the container. This worked in the past (at least Nov 2021) but using the latest version causes this error. Does anyone have any idea why the commands no longer work?</p>
<pre><code>bash-4.4$ ./manage.py migrate
Traceback (most recent call last):
  File &quot;./manage.py&quot;, line 12, in &lt;module&gt;
    execute_from_command_line(sys.argv)
  File &quot;/venv/lib64/python3.8/site-packages/django/core/management/__init__.py&quot;, line 425, in execute_from_command_line
    utility.execute()
  File &quot;/venv/lib64/python3.8/site-packages/django/core/management/__init__.py&quot;, line 419, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File &quot;/venv/lib64/python3.8/site-packages/django/core/management/base.py&quot;, line 373, in run_from_argv
    self.execute(*args, **cmd_options)
  File &quot;/venv/lib64/python3.8/site-packages/django/core/management/base.py&quot;, line 417, in execute
    output = self.handle(*args, **options)
  File &quot;/venv/lib64/python3.8/site-packages/django/core/management/base.py&quot;, line 90, in wrapped
    res = handle_func(*args, **kwargs)
  File &quot;/venv/lib64/python3.8/site-packages/django/core/management/commands/migrate.py&quot;, line 75, in handle
    self.check(databases=[database])
  File &quot;/venv/lib64/python3.8/site-packages/django/core/management/base.py&quot;, line 438, in check
    all_issues = checks.run_checks(
  File &quot;/venv/lib64/python3.8/site-packages/django/core/checks/registry.py&quot;, line 77, in run_checks
    new_errors = check(app_configs=app_configs, databases=databases)
  File &quot;/venv/lib64/python3.8/site-packages/tcms/core/checks.py&quot;, line 15, in check_installation_id
    with open(filename, &quot;w&quot;, encoding=&quot;utf-8&quot;) as file_handle:
PermissionError: [Errno 13] Permission denied: '/Kiwi/uploads/installation-id'
</code></pre>

Jose
<p>Needed to add this to <code>deployment.yaml</code>:</p>
<pre><code>securityContext:
   fsGroup: 1001
</code></pre>
