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

plane-aio-commercial:stable — all Python services crash at import (OTel version split), and the image registers as Community edition

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
docker, python
领域
backend, devops

调研方向

从用于构建 AIO 镜像的 OTel 依赖定义开始,然后复现 issue 中描述的简单 import plane 检查,并验证所有 supervisord 程序都能启动。检查 /app/supervisor.conf 第 45 行附近的内容,同时查看 bin/docker-entrypoint-api.sh 和 bin/docker-entrypoint-api-ee.sh;与维护者确认预期的商业路径。镜像能够正常 import,并且启动后的实例报告 PLANE_COMMERCIAL,即表示完成。

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

描述

plane-aio-commercial:stable — two defects: all Python services crash at import, and the image registers as Community edition

Summary

Two independent defects in makeplane/plane-aio-commercial:stable (v3.1.3):

  1. An incoherent OpenTelemetry dependency set crashes every Python service at import. The container serves the frontend but returns 502 on all API routes.
  2. The commercial image hardcodes the community startup path, so the instance self-registers as PLANE_COMMUNITY.

Together these make the AIO Commercial image unusable as shipped. Defect 2 also blocks the mobile app, which requires Commercial edition.

Environment

Image makeplane/plane-aio-commercial:stable
Index digest sha256:62c182da93e3c50ceb27d4b7361587bb02d155ba53f4f3b21963e513c565dafc
amd64 manifest sha256:28c2ad6be39869cb0a644fb990bda64a72a1fc458a72658ebae407a21877d431
Reported version v3.1.3 (:stable and :v3.1.3 resolve to the same digest)
Runtime Podman 5.8.4, rootless
Data tier External Postgres 16, Redis 7, RabbitMQ 3, MinIO

v3.1.2 reproduces defect 1 identically, so this is not a one-off bad build.


Defect 1 — OpenTelemetry version split crashes all Python services

Repro

No config, no network, no data tier required:

podman run --rm --entrypoint sh makeplane/plane-aio-commercial:stable \
  -c 'cd /app/backend && python -c "import plane"'
Result
File "/app/backend/plane/celery.py", line 34, in <module>
  from plane.observability.setup import configure_otel, flush_otel
File "/app/backend/plane/observability/setup.py", line 24, in <module>
  from opentelemetry.instrumentation.django import DjangoInstrumentor
...
File "/usr/local/lib/python3.12/site-packages/opentelemetry/instrumentation/wsgi/__init__.py", line 250
  from opentelemetry.semconv._incubating.attributes.user_agent_attributes import (
ImportError: cannot import name 'USER_AGENT_SYNTHETIC_TYPE' from
'opentelemetry.semconv._incubating.attributes.user_agent_attributes'
Cause

The image ships two different OTel release generations:

opentelemetry-api                        1.28.1   <- 1.28 generation
opentelemetry-sdk                        1.28.1   <- 1.28 generation
opentelemetry-semantic-conventions       0.49b1   <- pairs with 1.28.1
opentelemetry-instrumentation-*          0.65b0   <- pairs with 1.44.0
opentelemetry-exporter-otlp-proto-grpc   1.44.0   <- 1.44 generation

instrumentation-* 0.65b0 requires semantic-conventions 0.65b0; the image pins 0.49b1.
USER_AGENT_SYNTHETIC_TYPE does not exist in 0.49b1.

Impact

7 of 15 supervisord programs go FATAL: api, worker, beat, migrator,
outbox-poller, webhook-consumer, automation-consumer.

Because the migrator dies, no schema is ever created. Caddy still serves the
static frontend, so / and /god-mode/ return 200 while /api/instances/
returns 502 — the UI shell loads and then fails on every call, which makes this
present as a configuration problem to self-hosters.

Note on the OTEL_ENABLED gate

plane/observability/setup.py imports DjangoInstrumentor unconditionally at
module scope (line 24), and that module is reached from plane/__init__.py →
plane/celery.py on every entrypoint. The OTEL_ENABLED check never executes —
the crash happens at import time. Disabling OTel via configuration is not a
workaround.

Verified fix

Aligning semconv to the generation the instrumentation packages expect resolves it:

pip install --no-cache-dir "opentelemetry-semantic-conventions==0.65b0"

After this, import plane, import plane.celery, and
from plane.observability.setup import configure_otel all succeed, all 15
supervisord programs reach RUNNING, migrations run (406 applied, 299 tables),
and /api/instances/ returns 200.

Note this pulls opentelemetry-api 1.28.1 → 1.44.0 transitively, leaving
sdk at 1.28.1 and producing resolver warnings. A proper fix should align the
whole OTel set to one generation rather than patching a single package.


Defect 2 — the commercial image registers as Community edition

Observed

After defect 1 is worked around and the stack is healthy:

GET /api/instances/

"instance_name": "Plane Community Edition"
"edition":       "PLANE_COMMUNITY"
Cause

The image ships four API entrypoints:

/app/backend/bin/docker-entrypoint-api.sh:39        python manage.py startup community --machine-signature "$MACHINE_SIGNATURE"
/app/backend/bin/docker-entrypoint-api-ee.sh:40     python manage.py startup commercial --machine-signature "$MACHINE_SIGNATURE"
/app/backend/bin/docker-entrypoint-api-cloud.sh:12  python manage.py startup cloud
/app/backend/bin/docker-entrypoint-api-local.sh

/app/supervisor.conf line 45 wires the community one:

[program:api]
command=sh -c "./bin/docker-entrypoint-api.sh"

The -ee variant appears to be the correct entrypoint for this image and is
present but unused.

Impact

plane/db/management/commands/startup.py branches on edition:

if edition == "community":
    call_command("register_instance", machine_signature)
    call_command("configure_instance")
    call_command("create_bucket")
elif edition == "commercial":
    call_command("register_instance_ee", machine_signature)
    call_command("configure_instance")
    call_command("create_bucket")
    call_command("update_licenses")

So on the commercial image, register_instance_ee and update_licenses never
run. Downstream, workspace_governance_allowed is false,
prime_server_base_url is false, and latest_version reports v1.4.2
(older than the running v3.1.3), consistent with registration against the
wrong path.

Per the docs, the mobile app requires self-hosted Commercial v1.12.0+ and
returns 404 against Community — so as shipped, the AIO Commercial image cannot
serve the mobile app.

Question for maintainers

Is docker-entrypoint-api-ee.sh the intended entrypoint for this image, and is
the supervisor.conf reference simply wrong? Or does Commercial activation
require prime-server registration that the AIO image is not expected to perform
standalone? The docs describe AIO as Commercial Edition with the free plan
enabled by default, which suggests the former.

We deliberately did not switch entrypoints, since that is a
licensing-relevant change we are not in a position to make unilaterally.


Additional minor findings

  • Docs/image port mismatch. The AIO docs say to publish SMTP ports
    20025/20465/20587; the image actually exposes 10025/10465/10587.
  • /app/email/tls has no named volume in the documented run command, so it
    mounts as an anonymous volume and TLS material is lost on container recreate.

Related issues

  • #9572 (open) — v3.0.1 commercial AIO: every manage.py/celery process dies
    at import (bundled mcp 2.0.0 renamed streamablehttp_client)
    . Same image, same
    failure signature (all Python services dead at import, frontend still serving),
    but a different mispinned dependency. Defect 1 above is the same class of bug
    recurring in v3.1.3 with opentelemetry-semantic-conventions instead of mcp.
    This suggests the AIO Commercial image's dependency set is not pinned or
    smoke-tested against a plain import plane before release.

  • #8710 (closed) — AIO commercial image ships broken entrypoint scripts
    (missing plane user and su-exec)
    . Prior art for defect 2: the AIO Commercial
    entrypoint layer has shipped broken before.

Suggested regression test

Both defects are catchable with a single check that needs no config, no network,
and no data tier:

podman run --rm --entrypoint sh makeplane/plane-aio-commercial:<tag> \
  -c 'cd /app/backend && python -c "import plane"'

and one assertion on a booted instance:

curl -s localhost/api/instances/ | jq -r .instance.edition   # expect PLANE_COMMERCIAL

The first would have caught #9572 and defect 1. The second would have caught
defect 2.

主要语言
TypeScript
星标
61.1k
派生
6.1k
平均合并
1 天 19 小时
30 天内合并 PR
82

环境准备

从这里开始

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

makeplane/plane 的其他 Issue

查看 makeplane/plane 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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