loader.js:247 Uncaught (in promise) Error: Could not find module discourse/admin/models/admin-plugin imported from discourse/plugins/docker_manager/discourse/models/repo
at loader.js:247:1
at a (loader.js:258:1)
at s.findDeps (loader.js:168:1)
at a (loader.js:262:1)
at s.findDeps (loader.js:168:1)
at a (loader.js:262:1)
at requireModule (loader.js:24:1)
at n.i [as getRoute] (index.ts:121:18)
at p._getQPMeta (index.ts:101:20)
(anonymous) @ loader.js:247
a @ loader.js:258
(anonymous) @ loader.js:168
a @ loader.js:262
(anonymous) @ loader.js:168
a @ loader.js:262
requireModule @ loader.js:24
i @ index.ts:121
_getQPMeta @ index.ts:101
It works normally after disabling plugins, but I can’t pinpoint which plugin is causing the issue. Can you help me take a look?
The issue persists when “Disable unofficial client plugin customizations” is enabled in Safe Mode, but it works correctly when “Disable all client plugin customizations” is enabled.
What is the specific command? My service is packaged into a Docker image and deployed on a remote server’s K8s cluster. The deployment uses the web_only method.
Additionally, when an error occurs on the administrator page, the following error message appears:
Go to where you installed Discourse and type ./launcher rebuild app - wherever discourse_docker is. I believe /var/discourse is the “recommended” place to put the script but it might be different for you.
That’s not supported. You’ll need to do something to load the latest image. You’ll need to migrate the database. There’s usually no problem upgrading multiple versions.
Later, after pre-installing the corresponding version of pnpm using corepack in the image, the database migration succeeded. The service is now normal.