truecharts / public

Community Helm Chart Repository
https://truecharts.org
GNU Affero General Public License v3.0
1.14k stars 617 forks source link

Gitea pod is waiting to start: PodInitializing #2694

Closed ggeremy closed 2 years ago

ggeremy commented 2 years ago

App Name

Gitea

SCALE Version

22.02.0

App Version

1.16.7_6.0.24

Application Events

2022-05-16 22:59:14
Back-off restarting failed container
2022-05-16 22:58:54
Started container 2-configure-gitea
2022-05-16 22:58:54
Created container 2-configure-gitea
2022-05-16 22:58:50
Container image "tccr.io/truecharts/gitea:v1.16.7@sha256:d205d2f644d14d5b2a7c190246228fbe7dd0549b550abc066687447d91a7c70b" already present on machine
2022-05-16 22:58:49
Started container 1-init-directories
2022-05-16 22:58:48
Created container 1-init-directories
2022-05-16 22:58:45
Container image "tccr.io/truecharts/gitea:v1.16.7@sha256:d205d2f644d14d5b2a7c190246228fbe7dd0549b550abc066687447d91a7c70b" already present on machine
2022-05-16 22:58:26
Started container gitea-postgresql
2022-05-16 22:58:25
Created container gitea-postgresql
2022-05-16 22:58:24
Started container postgresql-init
2022-05-16 22:58:23
Created container postgresql-init
2022-05-16 22:58:21
Started container gitea-memcached
2022-05-16 22:58:20
Container image "ghcr.io/truecharts/postgresql:v14.2.0@sha256:cbde43604b745eb85f3e1a8ed916b8b442e4dfc955209837bc867a927f980362" already present on machine
2022-05-16 22:58:20
Created container gitea-memcached
2022-05-16 22:58:19
Started container hostpatch
2022-05-16 22:58:17
Created container hostpatch
2022-05-16 22:58:15
Container image "ghcr.io/truecharts/postgresql:v14.2.0@sha256:cbde43604b745eb85f3e1a8ed916b8b442e4dfc955209837bc867a927f980362" already present on machine
2022-05-16 22:58:14
Started container hostpatch
2022-05-16 22:58:12
Created container hostpatch
2022-05-16 22:58:11
Container image "ghcr.io/truecharts/memcached:v1.6.15@sha256:75a0cbd50dffabd2f7c5862de512a5f85ed630785aec3fb40353143ae34c2c40" already present on machine
2022-05-16 22:58:10
Started container hostpatch
2022-05-16 22:58:09
Created container hostpatch
2022-05-16 22:58:08
Container image "ghcr.io/truecharts/alpine:v3.15.2@sha256:29ed3480a0ee43f7af681fed5d4fc215516abf1c41eade6938b26d8c9c2c7583" already present on machine
2022-05-16 22:58:07
Started container autopermissions
2022-05-16 22:58:06
Created container autopermissions
2022-05-16 22:58:04
Container image "ghcr.io/truecharts/alpine:v3.15.2@sha256:29ed3480a0ee43f7af681fed5d4fc215516abf1c41eade6938b26d8c9c2c7583" already present on machine
2022-05-16 22:58:03
Started container autopermissions
2022-05-16 22:58:02
Created container autopermissions
2022-05-16 22:58:01
Container image "ghcr.io/truecharts/alpine:v3.15.2@sha256:29ed3480a0ee43f7af681fed5d4fc215516abf1c41eade6938b26d8c9c2c7583" already present on machine
2022-05-16 22:58:00
Started container lb-port-10037
2022-05-16 22:58:00
Started container lb-port-2222
2022-05-16 22:58:00
Created container lb-port-2222
2022-05-16 22:58:00
Created container lb-port-10037
2022-05-16 22:57:59
Started container autopermissions
2022-05-16 22:57:58
Created container autopermissions
2022-05-16 22:57:57
Container image "ghcr.io/truecharts/alpine:v3.15.2@sha256:29ed3480a0ee43f7af681fed5d4fc215516abf1c41eade6938b26d8c9c2c7583" already present on machine
2022-05-16 22:57:57
Add eth0 [172.16.12.120/16] from ix-net
2022-05-16 22:57:52
Container image "ghcr.io/truecharts/alpine:v3.15.2@sha256:29ed3480a0ee43f7af681fed5d4fc215516abf1c41eade6938b26d8c9c2c7583" already present on machine
2022-05-16 22:57:52
Add eth0 [172.16.12.119/16] from ix-net
2022-05-16 22:57:50
Container image "rancher/klipper-lb:v0.1.2" already present on machine
2022-05-16 22:57:50
Add eth0 [172.16.12.118/16] from ix-net
2022-05-16 22:57:49
Container image "rancher/klipper-lb:v0.1.2" already present on machine
2022-05-16 22:57:49
Add eth0 [172.16.12.117/16] from ix-net
2022-05-16 22:57:47
Container image "ghcr.io/truecharts/alpine:v3.15.2@sha256:29ed3480a0ee43f7af681fed5d4fc215516abf1c41eade6938b26d8c9c2c7583" already present on machine
2022-05-16 22:57:47
Add eth0 [172.16.12.116/16] from ix-net
Successfully assigned ix-gitea/gitea-postgresql-0 to ix-truenas
2022-05-16 22:57:37
Successfully provisioned volume pvc-fd8aba60-c5a5-4e71-8a49-953df334734d
0/1 nodes are available: 1 pod has unbound immediate PersistentVolumeClaims.
2022-05-16 22:57:33
create Pod gitea-postgresql-0 in StatefulSet gitea-postgresql successful
0/1 nodes are available: 1 pod has unbound immediate PersistentVolumeClaims.
2022-05-16 22:57:32
waiting for a volume to be created, either by external provisioner "zfs.csi.openebs.io" or manually created by system administrator
2022-05-16 22:57:32
create Claim db-gitea-postgresql-0 Pod gitea-postgresql-0 in StatefulSet gitea-postgresql success
2022-05-16 22:57:32
External provisioner is provisioning volume for claim "ix-gitea/db-gitea-postgresql-0"
2022-05-16 22:57:32
Created pod: gitea-memcached-65cd499685-s7rnh
2022-05-16 22:57:32
Created pod: svclb-gitea-ssh-tngwb
Successfully assigned ix-gitea/svclb-gitea-ssh-tngwb to ix-truenas
Successfully assigned ix-gitea/gitea-67c84d8566-ffrwn to ix-truenas
Successfully assigned ix-gitea/gitea-memcached-65cd499685-s7rnh to ix-truenas
Successfully assigned ix-gitea/svclb-gitea-jhgk2 to ix-truenas
2022-05-16 22:57:32
Created pod: svclb-gitea-jhgk2
2022-05-16 22:57:32
Created pod: gitea-67c84d8566-ffrwn
2022-05-16 22:57:32
Scaled up replica set gitea-67c84d8566 to 1
2022-05-16 22:57:32
Scaled up replica set gitea-memcached-65cd499685 to 1

Application Logs

POSTGRESQL POD
2022-05-16T20:58:26.148505112Z postgresql 20:58:26.12 
2022-05-16T20:58:26.151756625Z postgresql 20:58:26.15 Welcome to the Bitnami postgresql container
2022-05-16T20:58:26.154910495Z postgresql 20:58:26.15 Subscribe to project updates by watching https://github.com/bitnami/bitnami-docker-postgresql
2022-05-16T20:58:26.158008406Z postgresql 20:58:26.15 Submit issues and feature requests at https://github.com/bitnami/bitnami-docker-postgresql/issues
2022-05-16T20:58:26.161412313Z postgresql 20:58:26.16 
2022-05-16T20:58:26.185618045Z postgresql 20:58:26.18 INFO  ==> ** Starting PostgreSQL setup **
2022-05-16T20:58:26.209936617Z postgresql 20:58:26.20 INFO  ==> Validating settings in POSTGRESQL_* env vars..
2022-05-16T20:58:26.212802597Z postgresql 20:58:26.21 INFO  ==> Loading custom pre-init scripts...
2022-05-16T20:58:26.220283434Z postgresql 20:58:26.22 INFO  ==> Initializing PostgreSQL database...
2022-05-16T20:58:26.228994384Z postgresql 20:58:26.22 INFO  ==> pg_hba.conf file not detected. Generating it...
2022-05-16T20:58:26.229701405Z postgresql 20:58:26.22 INFO  ==> Generating local authentication configuration
2022-05-16T20:58:27.256007807Z postgresql 20:58:27.25 INFO  ==> Starting PostgreSQL in background...
2022-05-16T20:58:33.363752924Z postgresql 20:58:33.36 INFO  ==> Changing password of postgres
2022-05-16T20:58:33.437976909Z postgresql 20:58:33.43 INFO  ==> Creating user gitea
2022-05-16T20:58:33.494065038Z postgresql 20:58:33.49 INFO  ==> Granting access to "gitea" to the database "gitea"
2022-05-16T20:58:33.607939508Z postgresql 20:58:33.60 INFO  ==> Setting ownership for the 'public' schema database "gitea" to "gitea"
2022-05-16T20:58:33.677990878Z postgresql 20:58:33.67 INFO  ==> Configuring replication parameters
2022-05-16T20:58:33.702107620Z postgresql 20:58:33.70 INFO  ==> Configuring synchronous_replication
2022-05-16T20:58:33.702889115Z postgresql 20:58:33.70 INFO  ==> Configuring fsync
2022-05-16T20:58:33.712597162Z postgresql 20:58:33.71 INFO  ==> Loading custom scripts...
2022-05-16T20:58:33.714561040Z postgresql 20:58:33.71 INFO  ==> Enabling remote connections
2022-05-16T20:58:33.717944315Z postgresql 20:58:33.71 INFO  ==> Stopping PostgreSQL...
2022-05-16T20:58:34.220408824Z waiting for server to shut down.... done
2022-05-16T20:58:34.220474306Z server stopped
2022-05-16T20:58:34.229936555Z postgresql 20:58:34.22 INFO  ==> ** PostgreSQL setup finished! **
2022-05-16T20:58:34.230053749Z 
2022-05-16T20:58:34.256676358Z postgresql 20:58:34.25 INFO  ==> ** Starting PostgreSQL **
2022-05-16T20:58:34.288524750Z 2022-05-16 20:58:34.288 GMT [1] LOG:  pgaudit extension initialized
2022-05-16T20:58:34.327649341Z 2022-05-16 20:58:34.327 GMT [1] LOG:  starting PostgreSQL 14.2 on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
2022-05-16T20:58:34.328276107Z 2022-05-16 20:58:34.328 GMT [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2022-05-16T20:58:34.328330088Z 2022-05-16 20:58:34.328 GMT [1] LOG:  listening on IPv6 address "::", port 5432
2022-05-16T20:58:34.364456521Z 2022-05-16 20:58:34.364 GMT [1] LOG:  listening on Unix socket "/tmp/.s.PGSQL.5432"
2022-05-16T20:58:34.454767071Z 2022-05-16 20:58:34.454 GMT [147] LOG:  database system was shut down at 2022-05-16 20:58:34 GMT
2022-05-16T20:58:34.558221962Z 2022-05-16 20:58:34.558 GMT [1] LOG:  database system is ready to accept connections

MEMCACHED POD
2022-05-16T20:58:20.601172520Z memcached 20:58:20.60 
2022-05-16T20:58:20.601959890Z memcached 20:58:20.60 Welcome to the Bitnami memcached container
2022-05-16T20:58:20.602814569Z memcached 20:58:20.60 Subscribe to project updates by watching https://github.com/bitnami/bitnami-docker-memcached
2022-05-16T20:58:20.603533353Z memcached 20:58:20.60 Submit issues and feature requests at https://github.com/bitnami/bitnami-docker-memcached/issues
2022-05-16T20:58:20.604452220Z memcached 20:58:20.60 
2022-05-16T20:58:20.605469035Z memcached 20:58:20.60 INFO  ==> ** Starting Memcached setup **
2022-05-16T20:58:20.625863899Z memcached 20:58:20.62 INFO  ==> Initializing Memcached
2022-05-16T20:58:20.631584132Z 
2022-05-16T20:58:20.631612435Z memcached 20:58:20.62 INFO  ==> ** Memcached setup finished! **
2022-05-16T20:58:20.639427083Z memcached 20:58:20.63 INFO  ==> ** Starting Memcached **

GITEA POD
none

Application Configuration

I kept all default except App config directory

Describe the bug

The deployment is stuck in 2/3 Gitea POD doesnt deploy I'm sorry but I dont have any more symptoms

To Reproduce

  1. Install gitea
  2. keep default values except username, password, email and HostPath as app data storage
  3. deploy
  4. deployement is stuck for gitea pod

Expected Behavior

deployed application

Screenshots

no screenshots

Additional Context

I have traefik installed

I've read and agree with the following

PrivatePuffin commented 2 years ago

Please file a support ticket with our support staff first.

pretty sure this might just be user error.

kimern88 commented 2 years ago

Just wanted to add that i see the exact same.

I've manually set permissions on the hostpath folder and unticked autopermissions. Folder permissions are still being changed by something when the app is deployed.

EDIT: Tested with PVC instead and seeing the same issue.

kimern88 commented 2 years ago

Resolved, username "admin" is reserved by gitea.

k3s kubectl -n ix-gitea logs gitea-847bf5665-b5zpg -c 2-configure-gitea

ggeremy commented 2 years ago

I put another admin username and disabled automatic permission and it’s working now Than you @kimern88 🙏🏻

PrivatePuffin commented 2 years ago

People, please actually use the support channels instead of abusing github issue.