Title: 加载插件后启动报错 Application startup failed. Exiting. · Issue #30 · nonebot/plugin-orm · GitHub
Open Graph Title: 加载插件后启动报错 Application startup failed. Exiting. · Issue #30 · nonebot/plugin-orm
X Title: 加载插件后启动报错 Application startup failed. Exiting. · Issue #30 · nonebot/plugin-orm
Description: 启动orm涉及插件"nonebot_plugin_delta_helper"和"nonebot_plugin_memes",任何一个启动了均无法启动 2025-09-04 00:27:49.142 | ERROR | uvicorn:send:121 - Traceback (most recent call last): File "/home/ubuntu/bot/nb2/.venv/lib/python3.12/site-packages/alembic/scri...
Open Graph Description: 启动orm涉及插件"nonebot_plugin_delta_helper"和"nonebot_plugin_memes",任何一个启动了均无法启动 2025-09-04 00:27:49.142 | ERROR | uvicorn:send:121 - Traceback (most recent call last): File "/home/ubuntu/bot/nb2/.venv/l...
X Description: 启动orm涉及插件"nonebot_plugin_delta_helper"和"nonebot_plugin_memes",任何一个启动了均无法启动 2025-09-04 00:27:49.142 | ERROR | uvicorn:send:121 - Traceback (most recent call last): File "/ho...
Opengraph URL: https://github.com/nonebot/plugin-orm/issues/30
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"加载插件后启动报错 Application startup failed. Exiting.","articleBody":"启动orm涉及插件\"nonebot_plugin_delta_helper\"和\"nonebot_plugin_memes\",任何一个启动了均无法启动\n\n```\n2025-09-04 00:27:49.142 | ERROR | uvicorn:send:121 - Traceback (most recent call last):\n File \"/home/ubuntu/bot/nb2/.venv/lib/python3.12/site-packages/alembic/script/base.py\", line 217, in _catch_revision_errors\n yield\n File \"/home/ubuntu/bot/nb2/.venv/lib/python3.12/site-packages/alembic/script/base.py\", line 280, in get_revisions\n self.revision_map.get_revisions(id_),\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/home/ubuntu/bot/nb2/.venv/lib/python3.12/site-packages/alembic/script/revision.py\", line 542, in get_revisions\n return sum([self.get_revisions(id_elem) for id_elem in id_], ())\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/home/ubuntu/bot/nb2/.venv/lib/python3.12/site-packages/alembic/script/revision.py\", line 565, in get_revisions\n return tuple(\n ^^^^^^\n File \"/home/ubuntu/bot/nb2/.venv/lib/python3.12/site-packages/alembic/script/revision.py\", line 566, in \u003cgenexpr>\n self._revision_for_ident(rev_id, branch_label)\n File \"/home/ubuntu/bot/nb2/.venv/lib/python3.12/site-packages/alembic/script/revision.py\", line 637, in _revision_for_ident\n raise ResolutionError(\nalembic.script.revision.ResolutionError: No such revision or branch 'fc352174a592'\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n File \"/home/ubuntu/bot/nb2/.venv/lib/python3.12/site-packages/starlette/routing.py\", line 694, in lifespan\n async with self.lifespan_context(app) as maybe_state:\n File \"/usr/lib/python3.12/contextlib.py\", line 210, in __aenter__\n return await anext(self.gen)\n ^^^^^^^^^^^^^^^^^^^^^\n File \"/home/ubuntu/bot/nb2/.venv/lib/python3.12/site-packages/nonebot/drivers/fastapi.py\", line 154, in _lifespan_manager\n await self._lifespan.startup()\n File \"/home/ubuntu/bot/nb2/.venv/lib/python3.12/site-packages/nonebot/internal/driver/_lifespan.py\", line 66, in startup\n await self._run_lifespan_func(self._startup_funcs)\n File \"/home/ubuntu/bot/nb2/.venv/lib/python3.12/site-packages/nonebot/internal/driver/_lifespan.py\", line 55, in _run_lifespan_func\n await cast(ASYNC_LIFESPAN_FUNC, func)()\n File \"/home/ubuntu/bot/nb2/.venv/lib/python3.12/site-packages/nonebot_plugin_orm/__init__.py\", line 92, in init_orm\n await greenlet_spawn(migrate.check, alembic_config)\n File \"/home/ubuntu/bot/nb2/.venv/lib/python3.12/site-packages/sqlalchemy/util/_concurrency_py3k.py\", line 201, in greenlet_spawn\n result = context.throw(*sys.exc_info())\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/home/ubuntu/bot/nb2/.venv/lib/python3.12/site-packages/nonebot_plugin_orm/migrate.py\", line 562, in check\n script.run_env()\n File \"/home/ubuntu/bot/nb2/.venv/lib/python3.12/site-packages/alembic/script/base.py\", line 549, in run_env\n util.load_python_file(self.dir, \"env.py\")\n File \"/home/ubuntu/bot/nb2/.venv/lib/python3.12/site-packages/alembic/util/pyfiles.py\", line 116, in load_python_file\n module = load_module_py(module_id, path)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/home/ubuntu/bot/nb2/.venv/lib/python3.12/site-packages/alembic/util/pyfiles.py\", line 136, in load_module_py\n spec.loader.exec_module(module) # type: ignore\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"\u003cfrozen importlib._bootstrap_external>\", line 995, in exec_module\n File \"\u003cfrozen importlib._bootstrap>\", line 488, in _call_with_frames_removed\n File \"/home/ubuntu/bot/nb2/.venv/lib/python3.12/site-packages/nonebot_plugin_orm/templates/generic/env.py\", line 82, in \u003cmodule>\n await_only(coro)\n File \"/home/ubuntu/bot/nb2/.venv/lib/python3.12/site-packages/sqlalchemy/util/_concurrency_py3k.py\", line 132, in await_only\n return current.parent.switch(awaitable) # type: ignore[no-any-return,attr-defined] # noqa: E501\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/home/ubuntu/bot/nb2/.venv/lib/python3.12/site-packages/sqlalchemy/util/_concurrency_py3k.py\", line 196, in greenlet_spawn\n value = await result\n ^^^^^^^^^^^^\n File \"/home/ubuntu/bot/nb2/.venv/lib/python3.12/site-packages/nonebot_plugin_orm/templates/generic/env.py\", line 71, in run_migrations_online\n await connection.run_sync(do_run_migrations)\n File \"/home/ubuntu/bot/nb2/.venv/lib/python3.12/site-packages/sqlalchemy/ext/asyncio/engine.py\", line 887, in run_sync\n return await greenlet_spawn(\n ^^^^^^^^^^^^^^^^^^^^^\n File \"/home/ubuntu/bot/nb2/.venv/lib/python3.12/site-packages/sqlalchemy/util/_concurrency_py3k.py\", line 203, in greenlet_spawn\n result = context.switch(value)\n ^^^^^^^^^^^^^^^^^^^^^\n File \"/home/ubuntu/bot/nb2/.venv/lib/python3.12/site-packages/nonebot_plugin_orm/templates/generic/env.py\", line 61, in do_run_migrations\n context.run_migrations()\n File \"\u003cstring>\", line 8, in run_migrations\n File \"/home/ubuntu/bot/nb2/.venv/lib/python3.12/site-packages/alembic/runtime/environment.py\", line 946, in run_migrations\n self.get_context().run_migrations(**kw)\n File \"/home/ubuntu/bot/nb2/.venv/lib/python3.12/site-packages/alembic/runtime/migration.py\", line 615, in run_migrations\n for step in self._migrations_fn(heads, self):\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/home/ubuntu/bot/nb2/.venv/lib/python3.12/site-packages/nonebot_plugin_orm/migrate.py\", line 547, in retrieve_migrations\n if set(script.get_revisions(rev)) != set(script.get_revisions(\"heads\")):\n ^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/home/ubuntu/bot/nb2/.venv/lib/python3.12/site-packages/alembic/script/base.py\", line 277, in get_revisions\n with self._catch_revision_errors():\n File \"/usr/lib/python3.12/contextlib.py\", line 158, in __exit__\n self.gen.throw(value)\n File \"/home/ubuntu/bot/nb2/.venv/lib/python3.12/site-packages/alembic/script/base.py\", line 249, in _catch_revision_errors\n raise util.CommandError(resolution) from re\nalembic.util.exc.CommandError: Can't locate revision identified by 'fc352174a592'\n\n2025-09-04 00:27:49.142 | ERROR | uvicorn:startup:59 - Application startup failed. Exiting.\n```","author":{"url":"https://github.com/Agnes4m","@type":"Person","name":"Agnes4m"},"datePublished":"2025-09-03T16:34:14Z","url":"https://github.com/nonebot/plugin-orm/issues/30"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d0063cd7-ba51-bfb4-1000-3d3d6711cf0c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E6C8:E046C:898473:C0BE58:6B04810B |
| html-safe-nonce | 9af924da3843ed1050a3a275cd6aafafe13337edb960c2baed5fd029b088b754 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNkM4OkUwNDZDOjg5ODQ3MzpDMEJFNTg6NkIwNDgxMEIiLCJ2aXNpdG9yX2lkIjoiMzAzMzIyMjc4NTE3NTY4MzMzOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9707cded587c57561bbdbecde1d8d21000fe804c72102b4be1d969eede70da99 |
| hovercard-subject-tag | issue:3380496719 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nonebot/plugin-orm/30/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6836c9dedc16e86ace4bc14ab308a681804f05bda8e3ae95e4a7db85537efffa/nonebot/plugin-orm/issues/30 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6836c9dedc16e86ace4bc14ab308a681804f05bda8e3ae95e4a7db85537efffa/nonebot/plugin-orm/issues/30 |
| og:image:alt | 启动orm涉及插件"nonebot_plugin_delta_helper"和"nonebot_plugin_memes",任何一个启动了均无法启动 2025-09-04 00:27:49.142 | ERROR | uvicorn:send:121 - Traceback (most recent call last): File "/home/ubuntu/bot/nb2/.venv/l... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Agnes4m |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0366ddfb372682a32e92a5d86155cb08fa83e5bbe79953a968789f2f7e24c511 |
| turbo-cache-control | no-preview |
| go-import | github.com/nonebot/plugin-orm git https://github.com/nonebot/plugin-orm.git |
| octolytics-dimension-user_id | 63496654 |
| octolytics-dimension-user_login | nonebot |
| octolytics-dimension-repository_id | 624721795 |
| octolytics-dimension-repository_nwo | nonebot/plugin-orm |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 624721795 |
| octolytics-dimension-repository_network_root_nwo | nonebot/plugin-orm |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ed3f2e01f6b7672780c586c8af0e72726374d7b6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width