...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for 172.18.0.1:38560, 500 Internal Server Error in 3.8ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm) #12167

Closed
opened 2025-11-02 10:00:53 -06:00 by GiteaMirror · 6 comments
Owner

Originally created by @blade1989 on GitHub (Dec 7, 2023).

Description

Migrated from MariaDB Galera Cluster with MaxScale to a single server MariaDB for testing, as I could not fix https://github.com/go-gitea/gitea/issues/27849.

Now, in my Single server MariaDB (11.2.2-MariaDB), - installed docker rootless - I get the below errors every 2 seconds

docker compose logs -f:

gitea  | 2023/12/07 23:31:38 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for 172.18.0.1:38560, 500 Internal Server Error in 8.2ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm)
gitea  | 2023/12/07 23:31:40 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for 172.18.0.1:38560, 500 Internal Server Error in 9.6ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm)
gitea  | 2023/12/07 23:31:42 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for 172.18.0.1:38560, 500 Internal Server Error in 19.8ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm)
gitea  | 2023/12/07 23:31:44 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for 172.18.0.1:38560, 500 Internal Server Error in 12.7ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm)
gitea  | 2023/12/07 23:31:46 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for 172.18.0.1:38560, 500 Internal Server Error in 10.4ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm)
gitea  | 2023/12/07 23:31:48 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for 172.18.0.1:38560, 500 Internal Server Error in 7.7ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm)

In the MariaDB logs, I get the following:

231207 23:31:38    276 Connect  gitea_usr@172.25.0.1 on gitea_db using TCP/IP
           276 Query    SET NAMES utf8mb4
           276 Prepare  SELECT `id`, `uuid`, `name`, `version`, `owner_id`, `repo_id`, `description`, `base`, `repo_range`, `token_hash`, `token_salt`, `last_online`, `last_active`, `agent_labels`, `created`, `updated`, `deleted` FROM `action_runner` WHERE (uuid=?) AND (`deleted`=? OR `deleted` IS NULL) LIMIT 1
           276 Execute  SELECT `id`, `uuid`, `name`, `version`, `owner_id`, `repo_id`, `description`, `base`, `repo_range`, `token_hash`, `token_salt`, `last_online`, `last_active`, `agent_labels`, `created`, `updated`, `deleted` FROM `action_runner` WHERE (uuid='{REDACTED (SAME STRING)}') AND (`deleted`=0 OR `deleted` IS NULL) LIMIT 1
           276 Close stmt   
231207 23:31:40    276 Prepare  SELECT `id`, `uuid`, `name`, `version`, `owner_id`, `repo_id`, `description`, `base`, `repo_range`, `token_hash`, `token_salt`, `last_online`, `last_active`, `agent_labels`, `created`, `updated`, `deleted` FROM `action_runner` WHERE (uuid=?) AND (`deleted`=? OR `deleted` IS NULL) LIMIT 1
           276 Execute  SELECT `id`, `uuid`, `name`, `version`, `owner_id`, `repo_id`, `description`, `base`, `repo_range`, `token_hash`, `token_salt`, `last_online`, `last_active`, `agent_labels`, `created`, `updated`, `deleted` FROM `action_runner` WHERE (uuid='{REDACTED (SAME STRING)}') AND (`deleted`=0 OR `deleted` IS NULL) LIMIT 1
           276 Close stmt   
231207 23:31:41    276 Quit 
231207 23:31:42    277 Connect  gitea_usr@172.25.0.1 on gitea_db using TCP/IP
           277 Query    SET NAMES utf8mb4
           277 Prepare  SELECT `id`, `uuid`, `name`, `version`, `owner_id`, `repo_id`, `description`, `base`, `repo_range`, `token_hash`, `token_salt`, `last_online`, `last_active`, `agent_labels`, `created`, `updated`, `deleted` FROM `action_runner` WHERE (uuid=?) AND (`deleted`=? OR `deleted` IS NULL) LIMIT 1
           277 Execute  SELECT `id`, `uuid`, `name`, `version`, `owner_id`, `repo_id`, `description`, `base`, `repo_range`, `token_hash`, `token_salt`, `last_online`, `last_active`, `agent_labels`, `created`, `updated`, `deleted` FROM `action_runner` WHERE (uuid='{REDACTED (SAME STRING)}') AND (`deleted`=0 OR `deleted` IS NULL) LIMIT 1
           277 Close stmt   
231207 23:31:44    277 Prepare  SELECT `id`, `uuid`, `name`, `version`, `owner_id`, `repo_id`, `description`, `base`, `repo_range`, `token_hash`, `token_salt`, `last_online`, `last_active`, `agent_labels`, `created`, `updated`, `deleted` FROM `action_runner` WHERE (uuid=?) AND (`deleted`=? OR `deleted` IS NULL) LIMIT 1
           277 Execute  SELECT `id`, `uuid`, `name`, `version`, `owner_id`, `repo_id`, `description`, `base`, `repo_range`, `token_hash`, `token_salt`, `last_online`, `last_active`, `agent_labels`, `created`, `updated`, `deleted` FROM `action_runner` WHERE (uuid='{REDACTED (SAME STRING)}') AND (`deleted`=0 OR `deleted` IS NULL) LIMIT 1
           277 Close stmt   
231207 23:31:45    277 Quit 
231207 23:31:46    278 Connect  gitea_usr@172.25.0.1 on gitea_db using TCP/IP
           278 Query    SET NAMES utf8mb4
           278 Prepare  SELECT `id`, `uuid`, `name`, `version`, `owner_id`, `repo_id`, `description`, `base`, `repo_range`, `token_hash`, `token_salt`, `last_online`, `last_active`, `agent_labels`, `created`, `updated`, `deleted` FROM `action_runner` WHERE (uuid=?) AND (`deleted`=? OR `deleted` IS NULL) LIMIT 1
           278 Execute  SELECT `id`, `uuid`, `name`, `version`, `owner_id`, `repo_id`, `description`, `base`, `repo_range`, `token_hash`, `token_salt`, `last_online`, `last_active`, `agent_labels`, `created`, `updated`, `deleted` FROM `action_runner` WHERE (uuid='{REDACTED (SAME STRING)}') AND (`deleted`=0 OR `deleted` IS NULL) LIMIT 1
           278 Close stmt   
231207 23:31:48    278 Prepare  SELECT `id`, `uuid`, `name`, `version`, `owner_id`, `repo_id`, `description`, `base`, `repo_range`, `token_hash`, `token_salt`, `last_online`, `last_active`, `agent_labels`, `created`, `updated`, `deleted` FROM `action_runner` WHERE (uuid=?) AND (`deleted`=? OR `deleted` IS NULL) LIMIT 1
           278 Execute  SELECT `id`, `uuid`, `name`, `version`, `owner_id`, `repo_id`, `description`, `base`, `repo_range`, `token_hash`, `token_salt`, `last_online`, `last_active`, `agent_labels`, `created`, `updated`, `deleted` FROM `action_runner` WHERE (uuid='{REDACTED (SAME STRING)}') AND (`deleted`=0 OR `deleted` IS NULL) LIMIT 1
           278 Close stmt   
231207 23:31:49    278 Quit

Gitea Version

1.21.1

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

built in

Operating System

Ubuntu 22.04.3 LTS

How are you running Gitea?

Docker rootless on Ubuntu 22.04

Client:
 Context:    default
 Debug Mode: false
 Plugins:
  compose: Docker Compose (Docker Inc., v2.12.2)

Server:
 Containers: 2
  Running: 2
  Paused: 0
  Stopped: 0
 Images: 2
 Server Version: 20.10.21
 Storage Driver: overlay2
  Backing Filesystem: xfs
  Supports d_type: true
  Native Overlay Diff: false
  userxattr: true
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 1c90a442489720eec95342e1789ee8a5e1b9536f
 runc version: v1.1.4-0-g5fd4c4d1
 init version: de40ad0
 Security Options:
  seccomp
   Profile: default
  rootless
  cgroupns
 Kernel Version: 5.15.0-89-generic
 Operating System: Ubuntu 22.04.3 LTS
 OSType: linux
 Architecture: x86_64
 CPUs: 1
 Total Memory: 1.871GiB
 Name: {REDACTED}
 ID: {REDACTED}:{REDACTED}:{REDACTED}:{REDACTED}:{REDACTED}:{REDACTED}:{REDACTED}:{REDACTED}:{REDACTED}:{REDACTED}:{REDACTED}:{REDACTED}
 Docker Root Dir: {REDACTED}/gitea/.local/share/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false
 Product License: Community Engine

WARNING: No cpuset support

Database

MySQL/MariaDB

Originally created by @blade1989 on GitHub (Dec 7, 2023). ### Description Migrated from MariaDB Galera Cluster with MaxScale to a single server MariaDB for testing, as I could not fix https://github.com/go-gitea/gitea/issues/27849. Now, in my Single server MariaDB (11.2.2-MariaDB), - installed docker rootless - I get the below errors every 2 seconds `docker compose logs -f`: ```bash gitea | 2023/12/07 23:31:38 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for 172.18.0.1:38560, 500 Internal Server Error in 8.2ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm) gitea | 2023/12/07 23:31:40 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for 172.18.0.1:38560, 500 Internal Server Error in 9.6ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm) gitea | 2023/12/07 23:31:42 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for 172.18.0.1:38560, 500 Internal Server Error in 19.8ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm) gitea | 2023/12/07 23:31:44 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for 172.18.0.1:38560, 500 Internal Server Error in 12.7ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm) gitea | 2023/12/07 23:31:46 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for 172.18.0.1:38560, 500 Internal Server Error in 10.4ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm) gitea | 2023/12/07 23:31:48 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for 172.18.0.1:38560, 500 Internal Server Error in 7.7ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm) ``` In the MariaDB logs, I get the following: ```bash 231207 23:31:38 276 Connect gitea_usr@172.25.0.1 on gitea_db using TCP/IP 276 Query SET NAMES utf8mb4 276 Prepare SELECT `id`, `uuid`, `name`, `version`, `owner_id`, `repo_id`, `description`, `base`, `repo_range`, `token_hash`, `token_salt`, `last_online`, `last_active`, `agent_labels`, `created`, `updated`, `deleted` FROM `action_runner` WHERE (uuid=?) AND (`deleted`=? OR `deleted` IS NULL) LIMIT 1 276 Execute SELECT `id`, `uuid`, `name`, `version`, `owner_id`, `repo_id`, `description`, `base`, `repo_range`, `token_hash`, `token_salt`, `last_online`, `last_active`, `agent_labels`, `created`, `updated`, `deleted` FROM `action_runner` WHERE (uuid='{REDACTED (SAME STRING)}') AND (`deleted`=0 OR `deleted` IS NULL) LIMIT 1 276 Close stmt 231207 23:31:40 276 Prepare SELECT `id`, `uuid`, `name`, `version`, `owner_id`, `repo_id`, `description`, `base`, `repo_range`, `token_hash`, `token_salt`, `last_online`, `last_active`, `agent_labels`, `created`, `updated`, `deleted` FROM `action_runner` WHERE (uuid=?) AND (`deleted`=? OR `deleted` IS NULL) LIMIT 1 276 Execute SELECT `id`, `uuid`, `name`, `version`, `owner_id`, `repo_id`, `description`, `base`, `repo_range`, `token_hash`, `token_salt`, `last_online`, `last_active`, `agent_labels`, `created`, `updated`, `deleted` FROM `action_runner` WHERE (uuid='{REDACTED (SAME STRING)}') AND (`deleted`=0 OR `deleted` IS NULL) LIMIT 1 276 Close stmt 231207 23:31:41 276 Quit 231207 23:31:42 277 Connect gitea_usr@172.25.0.1 on gitea_db using TCP/IP 277 Query SET NAMES utf8mb4 277 Prepare SELECT `id`, `uuid`, `name`, `version`, `owner_id`, `repo_id`, `description`, `base`, `repo_range`, `token_hash`, `token_salt`, `last_online`, `last_active`, `agent_labels`, `created`, `updated`, `deleted` FROM `action_runner` WHERE (uuid=?) AND (`deleted`=? OR `deleted` IS NULL) LIMIT 1 277 Execute SELECT `id`, `uuid`, `name`, `version`, `owner_id`, `repo_id`, `description`, `base`, `repo_range`, `token_hash`, `token_salt`, `last_online`, `last_active`, `agent_labels`, `created`, `updated`, `deleted` FROM `action_runner` WHERE (uuid='{REDACTED (SAME STRING)}') AND (`deleted`=0 OR `deleted` IS NULL) LIMIT 1 277 Close stmt 231207 23:31:44 277 Prepare SELECT `id`, `uuid`, `name`, `version`, `owner_id`, `repo_id`, `description`, `base`, `repo_range`, `token_hash`, `token_salt`, `last_online`, `last_active`, `agent_labels`, `created`, `updated`, `deleted` FROM `action_runner` WHERE (uuid=?) AND (`deleted`=? OR `deleted` IS NULL) LIMIT 1 277 Execute SELECT `id`, `uuid`, `name`, `version`, `owner_id`, `repo_id`, `description`, `base`, `repo_range`, `token_hash`, `token_salt`, `last_online`, `last_active`, `agent_labels`, `created`, `updated`, `deleted` FROM `action_runner` WHERE (uuid='{REDACTED (SAME STRING)}') AND (`deleted`=0 OR `deleted` IS NULL) LIMIT 1 277 Close stmt 231207 23:31:45 277 Quit 231207 23:31:46 278 Connect gitea_usr@172.25.0.1 on gitea_db using TCP/IP 278 Query SET NAMES utf8mb4 278 Prepare SELECT `id`, `uuid`, `name`, `version`, `owner_id`, `repo_id`, `description`, `base`, `repo_range`, `token_hash`, `token_salt`, `last_online`, `last_active`, `agent_labels`, `created`, `updated`, `deleted` FROM `action_runner` WHERE (uuid=?) AND (`deleted`=? OR `deleted` IS NULL) LIMIT 1 278 Execute SELECT `id`, `uuid`, `name`, `version`, `owner_id`, `repo_id`, `description`, `base`, `repo_range`, `token_hash`, `token_salt`, `last_online`, `last_active`, `agent_labels`, `created`, `updated`, `deleted` FROM `action_runner` WHERE (uuid='{REDACTED (SAME STRING)}') AND (`deleted`=0 OR `deleted` IS NULL) LIMIT 1 278 Close stmt 231207 23:31:48 278 Prepare SELECT `id`, `uuid`, `name`, `version`, `owner_id`, `repo_id`, `description`, `base`, `repo_range`, `token_hash`, `token_salt`, `last_online`, `last_active`, `agent_labels`, `created`, `updated`, `deleted` FROM `action_runner` WHERE (uuid=?) AND (`deleted`=? OR `deleted` IS NULL) LIMIT 1 278 Execute SELECT `id`, `uuid`, `name`, `version`, `owner_id`, `repo_id`, `description`, `base`, `repo_range`, `token_hash`, `token_salt`, `last_online`, `last_active`, `agent_labels`, `created`, `updated`, `deleted` FROM `action_runner` WHERE (uuid='{REDACTED (SAME STRING)}') AND (`deleted`=0 OR `deleted` IS NULL) LIMIT 1 278 Close stmt 231207 23:31:49 278 Quit ``` ### Gitea Version 1.21.1 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version built in ### Operating System Ubuntu 22.04.3 LTS ### How are you running Gitea? Docker rootless on Ubuntu 22.04 ```bash Client: Context: default Debug Mode: false Plugins: compose: Docker Compose (Docker Inc., v2.12.2) Server: Containers: 2 Running: 2 Paused: 0 Stopped: 0 Images: 2 Server Version: 20.10.21 Storage Driver: overlay2 Backing Filesystem: xfs Supports d_type: true Native Overlay Diff: false userxattr: true Logging Driver: json-file Cgroup Driver: systemd Cgroup Version: 2 Plugins: Volume: local Network: bridge host ipvlan macvlan null overlay Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog Swarm: inactive Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc Default Runtime: runc Init Binary: docker-init containerd version: 1c90a442489720eec95342e1789ee8a5e1b9536f runc version: v1.1.4-0-g5fd4c4d1 init version: de40ad0 Security Options: seccomp Profile: default rootless cgroupns Kernel Version: 5.15.0-89-generic Operating System: Ubuntu 22.04.3 LTS OSType: linux Architecture: x86_64 CPUs: 1 Total Memory: 1.871GiB Name: {REDACTED} ID: {REDACTED}:{REDACTED}:{REDACTED}:{REDACTED}:{REDACTED}:{REDACTED}:{REDACTED}:{REDACTED}:{REDACTED}:{REDACTED}:{REDACTED}:{REDACTED} Docker Root Dir: {REDACTED}/gitea/.local/share/docker Debug Mode: false Registry: https://index.docker.io/v1/ Labels: Experimental: false Insecure Registries: 127.0.0.0/8 Live Restore Enabled: false Product License: Community Engine WARNING: No cpuset support ``` ### Database MySQL/MariaDB
GiteaMirror added the issue/needs-feedbacktype/bug labels 2025-11-02 10:00:53 -06:00
Author
Owner

@lunny commented on GitHub (Dec 12, 2023):

Can you enable dev mode, so you can get more detail about the 500 error.

@lunny commented on GitHub (Dec 12, 2023): Can you enable dev mode, so you can get more detail about the 500 error.
Author
Owner

@cooperspencer commented on GitHub (Dec 15, 2023):

I have the same error messages within Gitea, but I use postgres as db.

@cooperspencer commented on GitHub (Dec 15, 2023): I have the same error messages within Gitea, but I use postgres as db.
Author
Owner

@GiteaBot commented on GitHub (Jan 16, 2024):

We close issues that need feedback from the author if there were no new comments for a month. 🍵

@GiteaBot commented on GitHub (Jan 16, 2024): We close issues that need feedback from the author if there were no new comments for a month. :tea:
Author
Owner

@Audiotape-2 commented on GitHub (Feb 1, 2024):

@blade1989 did you find a solution? It appears as if I've got the same problem...

@Audiotape-2 commented on GitHub (Feb 1, 2024): @blade1989 did you find a solution? It appears as if I've got the same problem...
Author
Owner

@blade1989 commented on GitHub (Feb 4, 2024):

@Audiotape-2 nope. Same problem. I am planning on migrating to a docker less installation.

I've got it running in rootless docker, and I think the networking engine behind docker rootless is behind this.

Will take some time, as I need to do allot of prepping for the migration...

Will keep y'all posted!

@blade1989 commented on GitHub (Feb 4, 2024): @Audiotape-2 nope. Same problem. I am planning on migrating to a docker less installation. I've got it running in rootless docker, and I think the networking engine behind docker rootless is behind this. Will take some time, as I need to do allot of prepping for the migration... Will keep y'all posted!
Author
Owner

@github-actions[bot] commented on GitHub (Feb 28, 2024):

Automatically locked because of our CONTRIBUTING guidelines

@github-actions[bot] commented on GitHub (Feb 28, 2024): Automatically locked because of our [CONTRIBUTING guidelines](https://github.com/go-gitea/gitea/blob/main/CONTRIBUTING.md#issue-locking)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#12167