QuantumNous / QuantumNous/new-api

活跃登录会话数量已达上限。请在一台已登录的设备上打开“登录会话”,使用“退出其他登录会话”将其撤销。如果无法访问任何已登录设备,请重置密码以退出所有会话。

Open
#6,972 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Go
Stars
48.5k
Forks
11.6k
Avg merge
1d 17h
Merged PRs (30d)
58

Description

部署来源

本仓库 Release / 官方镜像(自行部署)

您当前的 newapi 版本

v1.0.0-rc.25

提交确认
  • 非重复 issue: 我已搜索现有 Issues,确认目前没有类似 issue。
  • 提交前必读: 我已完整阅读上方“提交前必读”,并已查看文档 https://docs.newapi.ai/、项目 README 且向 AI 提问,确认这不是使用、配置或接入类问题。
  • 受支持版本: 我已提供准确的版本号、commit 或镜像标签(不是 latestunknown),并确认问题可在本仓库未修改的受支持版本中复现。
  • 非第三方服务: 我确认这不是第三方托管站、中转站、API 服务或未经本仓库原版验证的 fork 所独有的问题;第三方实例问题应联系其运营方。
  • 问题归属: 我已提供足以区分客户端、new-api 和上游的证据;转发问题已使用等价的脱敏请求对比直连上游与经过 new-api 的结果,确认错误由 new-api 引入或改变,而非仅原样转发上游报错。
  • 渠道与协议边界: 我确认问题不是由 Coding Plan、逆向渠道、第三方封装接口、Codex 反代接口,或 Codex API 自身特有行为导致;若问题最初出现于此类接口,我已在本仓库支持的标准 API 协议上复现。
  • 维护成本: 我理解项目维护者精力有限,不遵循模板要求的 issue 可能会被无视或直接关闭。
问题描述

podman 部署
admin用户无法登录

复现步骤

podman compose pull
podman compose down
podman compose up -d --remove-orphans
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
a7442a9170e0 docker.io/library/redis:latest redis-server --re... 23 minutes ago Up 23 minutes 6379/tcp redis
d760c6590aa0 docker.io/library/postgres:15 postgres 23 minutes ago Up 23 minutes 5432/tcp postgres
6793e9dba8cf docker.io/calciumion/new-api:latest --log-dir /app/lo... 23 minutes ago Up 23 minutes (healthy) 0.0.0.0:3000->3000/tcp new-api
admin用户无法登录,报活跃登录会话数量已达上限。请在一台已登录的设备上打开“登录会话”,使用“退出其他登录会话”将其撤销。如果无法访问任何已登录设备,请重置密码以退出所有会话。
可以注册用户并登录,但管理员账号无法登录

预期结果

重启容器后可以登录admin账号

相关截图

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the administrator login failure using the reported Podman compose pull, down, and up commands, then compare it with a newly registered user login. Investigate the active-session limit behavior and its persistence across the PostgreSQL and Redis services. Done means the admin account can log in after the container restart without weakening the session limit.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, postgresql, redis
Domain
authentication, backend, database
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.