Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Scancode.io startup fails

未关闭
#2,157 4 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@tdruez 已经在做这个了。

开始于 2026年5月11日。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
django, docker, nginx, python

调研方向

使用列出的 git、make envfile、docker compose build 和 docker compose up 命令重现故障。从 manage.py、scancodeio/init.py 以及 Django 的 collectstatic traceback 入手,重点关注 /var/scancodeio/static 路径和报告的权限错误。Web 容器保持运行且 Web UI 可以访问即表示完成。

由索引模型根据 Issue 内容生成。

描述

bug

Describe the bug

When running scancode.io from docker I cannot access the web ui (hangs) and I see the following in the log:

.... snip
nginx-1     | 2026/05/08 09:46:20 [notice] 1#1: start worker processes
nginx-1     | 2026/05/08 09:46:20 [notice] 1#1: start worker process 29
nginx-1     | 2026/05/08 09:46:20 [notice] 1#1: start worker process 30
nginx-1     | 2026/05/08 09:46:20 [notice] 1#1: start worker process 31
nginx-1     | 2026/05/08 09:46:20 [notice] 1#1: start worker process 32
nginx-1     | 2026/05/08 09:46:20 [notice] 1#1: start worker process 33
nginx-1     | 2026/05/08 09:46:20 [notice] 1#1: start worker process 34
nginx-1     | 2026/05/08 09:46:20 [notice] 1#1: start worker process 35
nginx-1     | 2026/05/08 09:46:20 [notice] 1#1: start worker process 36
nginx-1     | 2026/05/08 09:46:20 [notice] 1#1: start worker process 37
nginx-1     | 2026/05/08 09:46:20 [notice] 1#1: start worker process 38
nginx-1     | 2026/05/08 09:46:20 [notice] 1#1: start worker process 39
nginx-1     | 2026/05/08 09:46:20 [notice] 1#1: start worker process 40
nginx-1     | 2026/05/08 09:46:20 [notice] 1#1: start worker process 41
nginx-1     | 2026/05/08 09:46:20 [notice] 1#1: start worker process 42
nginx-1     | 2026/05/08 09:46:20 [notice] 1#1: start worker process 43
nginx-1     | 2026/05/08 09:46:20 [notice] 1#1: start worker process 44
web-1       | Operations to perform:
web-1       |   Apply all migrations: admin, auth, contenttypes, django_rq, scanpipe, sessions, taggit
web-1       | Running migrations:
web-1       |   No migrations to apply.
web-1       | Traceback (most recent call last):
web-1       |   File "/opt/scancodeio/./manage.py", line 14, in <module>
web-1       |     command_line()
web-1       |     ~~~~~~~~~~~~^^
web-1       |   File "/opt/scancodeio/scancodeio/__init__.py", line 107, in command_line
web-1       |     execute_from_command_line(sys.argv)
web-1       |     ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
web-1       |   File "/opt/scancodeio/.venv/lib/python3.13/site-packages/django/core/management/__init__.py", line 443, in execute_from_command_line
web-1       |     utility.execute()
web-1       |     ~~~~~~~~~~~~~~~^^
web-1       |   File "/opt/scancodeio/.venv/lib/python3.13/site-packages/django/core/management/__init__.py", line 437, in execute
web-1       |     self.fetch_command(subcommand).run_from_argv(self.argv)
web-1       |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
web-1       |   File "/opt/scancodeio/.venv/lib/python3.13/site-packages/django/core/management/base.py", line 420, in run_from_argv
web-1       |     self.execute(*args, **cmd_options)
web-1       |     ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
web-1       |   File "/opt/scancodeio/.venv/lib/python3.13/site-packages/django/core/management/base.py", line 464, in execute
web-1       |     output = self.handle(*args, **options)
web-1       |   File "/opt/scancodeio/.venv/lib/python3.13/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 214, in handle
web-1       |     collected = self.collect()
web-1       |   File "/opt/scancodeio/.venv/lib/python3.13/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 119, in collect
web-1       |     self.clear_dir("")
web-1       |     ~~~~~~~~~~~~~~^^^^
web-1       |   File "/opt/scancodeio/.venv/lib/python3.13/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 290, in clear_dir
web-1       |     self.storage.delete(fpath)
web-1       |     ~~~~~~~~~~~~~~~~~~~^^^^^^^
web-1       |   File "/opt/scancodeio/.venv/lib/python3.13/site-packages/django/core/files/storage/filesystem.py", line 165, in delete
web-1       |     os.remove(name)
web-1       |     ~~~~~~~~~^^^^^^
web-1       | PermissionError: [Errno 13] Permission denied: '/var/scancodeio/static/billboard-3.0.1.pkgd.min.js.ABOUT'
web-1 exited with code 1

System configuration

  • Which version of ScanCode.io are you running?
    git latest
$ git rev-parse HEAD
904373abf472e0567a99a3b1b5213e084040b5c1
  • Are you running the app using Docker?
    Yes
  • On which OS?
    Ubuntu 25.10
  • What inputs are you using?
    N/A - fails starting up
  • Which pipeline are you running?
    N/A - fails starting up

To Reproduce
Steps to reproduce the behavior:

git clone https://github.com/aboutcode-org/scancode.io.git && cd scancode.io
make envfile
docker compose build
docker compose up

Note: I purged every container/image in docker before executing the above commands.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

主要语言
Python
星标
223
派生
214
平均合并
2 天 3 小时
30 天内合并 PR
13

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

aboutcode-org/scancode.io 的其他 Issue

查看 aboutcode-org/scancode.io 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。