Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2 Beta - SQL Syntax error when saving Status Page #5336

Closed
1 task done
drewstopherlee opened this issue Nov 12, 2024 · 1 comment Β· Fixed by #5340
Closed
1 task done

v2 Beta - SQL Syntax error when saving Status Page #5336

drewstopherlee opened this issue Nov 12, 2024 · 1 comment Β· Fixed by #5340
Labels
area:status-page Everything related to the status page bug Something isn't working releaseblocker blocking bugs encountered with a new release
Milestone

Comments

@drewstopherlee
Copy link

drewstopherlee commented Nov 12, 2024

πŸ“‘ I have found these related issues/pull requests

Unable to find similar issues via search.

πŸ›‘οΈ Security Policy

Description

When running the v2 Beta (specifically the nightly2 image, sha256:87ad383f586f9251eb6b644c45f2af3480f205d349b8bfa54c755fce323ee1b0), I get an error when trying to save changes made to a status page.

πŸ‘Ÿ Reproduction steps

Fresh install of v2 Beta, add monitors, create status page, while in edit mode, make changes and click Save.

πŸ‘€ Expected behavior

Changes should be applied to the status page and edit mode should close gracefully.

πŸ˜“ Actual Behavior

Red error popup with text that reads:

DELETE FROM `group` WHERE id NOT IN () AND status_page_id = 2 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') AND status_page_id = 2' at line 1

🐻 Uptime-Kuma Version

2.0.0-beta.0-nightly-20241105100611

πŸ’» Operating System and Arch

Ubuntu Server 22.04.5 LTS x64

🌐 Browser

Google Chrome 130.0.6723.117 (64-bit)

πŸ–₯️ Deployment Environment

  • Runtime: Docker 27.3.1
  • Database: Embedded MariaDB
  • Filesystem used to store the database on: local, ext4 on SSD
  • number of monitors: 379

πŸ“ Relevant log output

2024-11-12T05:31:24.310916492Z 2024-11-12T00:31:24-05:00 [SOCKET] ERROR: Error: DELETE FROM `group` WHERE id NOT IN () AND status_page_id = 2 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') AND status_page_id = 2' at line 1
2024-11-12T05:31:24.310993811Z     at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:738:17)
2024-11-12T05:31:24.311009959Z     at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
2024-11-12T05:31:24.311021485Z     at Connection.handlePacket (/app/node_modules/mysql2/lib/connection.js:481:34)
2024-11-12T05:31:24.311033423Z     at PacketParser.onPacket (/app/node_modules/mysql2/lib/connection.js:97:12)
2024-11-12T05:31:24.311051590Z     at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
2024-11-12T05:31:24.311068855Z     at Socket.<anonymous> (/app/node_modules/mysql2/lib/connection.js:104:25)
2024-11-12T05:31:24.311081174Z     at Socket.emit (node:events:519:28)
2024-11-12T05:31:24.311091473Z     at addChunk (node:internal/streams/readable:559:12)
2024-11-12T05:31:24.311101972Z     at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
2024-11-12T05:31:24.311150885Z     at Readable.push (node:internal/streams/readable:390:5) {
2024-11-12T05:31:24.311166361Z   code: 'ER_PARSE_ERROR',
2024-11-12T05:31:24.311176595Z   errno: 1064,
2024-11-12T05:31:24.311186693Z   sqlState: '42000',
2024-11-12T05:31:24.311197072Z   sqlMessage: "You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') AND status_page_id = 2' at line 1",
2024-11-12T05:31:24.311208815Z   sql: 'DELETE FROM `group` WHERE id NOT IN () AND status_page_id = 2'
2024-11-12T05:31:24.311223323Z }
@drewstopherlee drewstopherlee added the bug Something isn't working label Nov 12, 2024
@louislam louislam added this to the 2.0.0-beta.1 milestone Nov 12, 2024
@Ionys320
Copy link
Contributor

Will provide a patch during the day.

@CommanderStorm CommanderStorm added releaseblocker blocking bugs encountered with a new release area:status-page Everything related to the status page labels Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:status-page Everything related to the status page bug Something isn't working releaseblocker blocking bugs encountered with a new release
Projects
None yet
4 participants