#2065·v2rayA

Bulk node deletion fails with "FOREIGN KEY constraint failed (787)" when all proxy groups are empty

Author: mojtaba13133Created Sep 29, 2026Updated Oct 1, 2026
Labelsbug

v2rayA version

2.5.7

System and install method

Ubuntu 24.4

Transparent proxy mode

tproxy

What happens

Selecting multiple nodes and deleting them fails when no node is a member of any proxy group. The UI shows constraint failed: FOREIGN KEY constraint failed (787) and none of the selected nodes are deleted.

Expected: the selected nodes are deleted.

Observations:

  • Deleting a single node succeeds in the same state.
  • Workaround: add one node to a proxy group, then select all the other nodes and delete them. The bulk delete succeeds.
  • No node was selected/connected at the time, and every proxy group showed "This group has no nodes".

Steps to reproduce

  1. Make sure no node is selected/connected and every proxy group is empty ("This group has no nodes").
  2. In the node list, select multiple nodes (reproduced with 619 nodes).
  3. Click Delete.
  4. The error constraint failed: FOREIGN KEY constraint failed (787) appears and no nodes are deleted.
  5. Add any one node to a proxy group.
  6. Select all other nodes and click Delete. The deletion now succeeds.

Logs

bash
2026/09/29 10:13:26.069 [W] [asm_amd64.s:1771] TrafficProducer: did not connect: context deadline exceeded
2026/09/29 10:13:26.624 [E] [connection.go:64] failed to start v2ray-core: no server is selected; select at least one server first
2026/09/29 10:13:27.074 [W] [asm_amd64.s:1771] TrafficProducer: did not connect: context deadline exceeded
...
2026/09/29 10:14:18.764 [W] [asm_amd64.s:1771] TrafficProducer: did not connect: context deadline exceeded
2026/09/29 10:14:19.526 [E] [touch.go:41] constraint failed: FOREIGN KEY constraint failed (787)
2026/09/29 10:14:19.788 [W] [asm_amd64.s:1771] TrafficProducer: did not connect: context deadline exceeded
2026/09/29 10:14:20.795 [W] [asm_amd64.s:1771] TrafficProducer: did not connect: context deadline exceeded

Screenshots

No response

Human responsible for this report

@mojtaba13133

Confirm

  • I searched the existing issues and pull requests; I found none reporting this.
  • I checked the boxes above without reading them.
  • This report describes what I observed.
  • I am an AI agent, and this content was submitted without human review.