truecharts / public

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

Vikunja app missing rediscreds secret #2951

Closed tlnagy closed 2 years ago

tlnagy commented 2 years ago

App Name

Vikunja

SCALE Version

22.02.1

App Version

0.18.1_3.0.5

Application Events

2022-06-21 10:42:19
Container image "tccr.io/truecharts/vikunja-api:v0.18.1@sha256:c79ee38ad40783d6098f302735ca0388b938230aa8f1c6cddfa7a903e2191389" already present on machine
2022-06-21 10:41:53
Container image "ghcr.io/truecharts/redis:v7.0.2@sha256:1260b1716a9b5062f0f4bbd0bf213adcc64c822f429c9c094f22291ae903ded8" already present on machine
2022-06-21 10:41:53
Error: secret "rediscreds" not found
2022-06-21 10:42:19
Error: secret "rediscreds" not found
2022-06-21 10:42:29
Started container proxy
2022-06-21 10:42:28
Created container proxy
2022-06-21 10:42:23
Container image "tccr.io/truecharts/nginx:v1.22.0@sha256:9829252d9891aa3dfc654df8a98f65567ca8b43683e3ef2898944bc44287aeef" already present on machine
2022-06-21 10:42:23
Started container frontend
2022-06-21 10:42:23
Created container frontend
2022-06-21 10:42:19
Container image "tccr.io/truecharts/vikunja-frontend:v0.18.2@sha256:a5b2600ad6854e34d4ded50504b89dc37189ac80140edfbfbcbb25c1124b88ab" already present on machine
2022-06-21 10:42:05
Started container postgresql-init
2022-06-21 10:42:05
Started container vikunja-postgresql
2022-06-21 10:42:05
Created container vikunja-postgresql
2022-06-21 10:42:04
Created container postgresql-init
2022-06-21 10:41:54
Container image "ghcr.io/truecharts/postgresql:v14.3.0@sha256:5a7765edadb738a56757590d843417861d27628cf56fefb25e30870f5e047620" already present on machine
2022-06-21 10:41:54
Container image "ghcr.io/truecharts/postgresql:v14.3.0@sha256:5a7765edadb738a56757590d843417861d27628cf56fefb25e30870f5e047620" already present on machine
2022-06-21 10:41:54
Started container autopermissions
2022-06-21 10:41:53
Started container autopermissions
2022-06-21 10:41:51
Created container autopermissions
2022-06-21 10:41:50
Created container autopermissions
2022-06-21 10:41:50
Started container autopermissions
2022-06-21 10:41:49
Created container autopermissions
2022-06-21 10:41:39
Container image "ghcr.io/truecharts/alpine:v3.15.2@sha256:29ed3480a0ee43f7af681fed5d4fc215516abf1c41eade6938b26d8c9c2c7583" already present on machine
2022-06-21 10:41:39
Add eth0 [172.16.13.50/16] from ix-net
2022-06-21 10:41:38
Container image "ghcr.io/truecharts/alpine:v3.15.2@sha256:29ed3480a0ee43f7af681fed5d4fc215516abf1c41eade6938b26d8c9c2c7583" already present on machine
2022-06-21 10:41:38
Add eth0 [172.16.13.49/16] from ix-net
2022-06-21 10:41:37
Container image "ghcr.io/truecharts/alpine:v3.15.2@sha256:29ed3480a0ee43f7af681fed5d4fc215516abf1c41eade6938b26d8c9c2c7583" already present on machine
2022-06-21 10:41:37
Add eth0 [172.16.13.48/16] from ix-net
Successfully assigned ix-vikunja/vikunja-postgresql-0 to ix-truenas
Successfully assigned ix-vikunja/vikunja-7c89b9fb84-dw6dr to ix-truenas
Successfully assigned ix-vikunja/vikunja-redis-0 to ix-truenas
2022-06-21 10:41:22
Successfully provisioned volume pvc-5dbe848f-47e8-4ee3-bdc0-9bbfad5c84c5
2022-06-21 10:41:22
Successfully provisioned volume pvc-00f79120-4e82-46cc-b130-528deb4ebd07
2022-06-21 10:41:17
waiting for a volume to be created, either by external provisioner "zfs.csi.openebs.io" or manually created by system administrator
2022-06-21 10:41:17
waiting for a volume to be created, either by external provisioner "zfs.csi.openebs.io" or manually created by system administrator
0/1 nodes are available: 1 pod has unbound immediate PersistentVolumeClaims.
2022-06-21 10:41:19
Successfully provisioned volume pvc-0244fa04-6aad-4350-9cc1-a7bded9d9276
0/1 nodes are available: 1 pod has unbound immediate PersistentVolumeClaims.
0/1 nodes are available: 1 pod has unbound immediate PersistentVolumeClaims.
2022-06-21 10:41:18
External provisioner is provisioning volume for claim "ix-vikunja/db-vikunja-postgresql-0"
0/1 nodes are available: 1 pod has unbound immediate PersistentVolumeClaims.
0/1 nodes are available: 1 pod has unbound immediate PersistentVolumeClaims.
2022-06-21 10:41:16
create Pod vikunja-postgresql-0 in StatefulSet vikunja-postgresql successful
2022-06-21 10:41:17
External provisioner is provisioning volume for claim "ix-vikunja/data-vikunja-redis-0"
2022-06-21 10:41:15
create Claim db-vikunja-postgresql-0 Pod vikunja-postgresql-0 in StatefulSet vikunja-postgresql success
2022-06-21 10:41:15
create Pod vikunja-redis-0 in StatefulSet vikunja-redis successful
2022-06-21 10:41:15
create Claim data-vikunja-redis-0 Pod vikunja-redis-0 in StatefulSet vikunja-redis success
0/1 nodes are available: 1 pod has unbound immediate PersistentVolumeClaims.
2022-06-21 10:41:15
Created pod: vikunja-7c89b9fb84-dw6dr
2022-06-21 10:41:15
Scaled up replica set vikunja-7c89b9fb84 to 1
2022-06-21 10:41:15
waiting for a volume to be created, either by external provisioner "zfs.csi.openebs.io" or manually created by system administrator
2022-06-21 10:41:15
External provisioner is provisioning volume for claim "ix-vikunja/vikunja-files"

Application Logs

vikunja_vikunja-postgresql-0_vikunja-postgresql.log:

2022-06-21T17:42:05.945218979Z postgresql 17:42:05.87 
2022-06-21T17:42:05.946421178Z postgresql 17:42:05.94 Welcome to the Bitnami postgresql container
2022-06-21T17:42:05.947486961Z postgresql 17:42:05.94 Subscribe to project updates by watching https://github.com/bitnami/bitnami-docker-postgresql
2022-06-21T17:42:05.948591947Z postgresql 17:42:05.94 Submit issues and feature requests at https://github.com/bitnami/bitnami-docker-postgresql/issues
2022-06-21T17:42:05.949640716Z postgresql 17:42:05.94 
2022-06-21T17:42:06.065920824Z postgresql 17:42:06.06 INFO  ==> ** Starting PostgreSQL setup **
2022-06-21T17:42:06.079188951Z postgresql 17:42:06.07 INFO  ==> Validating settings in POSTGRESQL_* env vars..
2022-06-21T17:42:06.083754360Z postgresql 17:42:06.08 INFO  ==> Loading custom pre-init scripts...
2022-06-21T17:42:06.091406280Z postgresql 17:42:06.09 INFO  ==> Initializing PostgreSQL database...
2022-06-21T17:42:06.140848507Z postgresql 17:42:06.14 INFO  ==> pg_hba.conf file not detected. Generating it...
2022-06-21T17:42:06.142238645Z postgresql 17:42:06.14 INFO  ==> Generating local authentication configuration
2022-06-21T17:42:08.250744797Z postgresql 17:42:08.25 INFO  ==> Starting PostgreSQL in background...
2022-06-21T17:42:13.938409970Z postgresql 17:42:13.93 INFO  ==> Changing password of postgres
2022-06-21T17:42:13.967859229Z postgresql 17:42:13.96 INFO  ==> Creating user vikunja
2022-06-21T17:42:13.997751049Z postgresql 17:42:13.99 INFO  ==> Granting access to "vikunja" to the database "vikunja"
2022-06-21T17:42:14.036106237Z postgresql 17:42:14.03 INFO  ==> Setting ownership for the 'public' schema database "vikunja" to "vikunja"
2022-06-21T17:42:14.089218260Z postgresql 17:42:14.08 INFO  ==> Configuring replication parameters
2022-06-21T17:42:14.110058530Z postgresql 17:42:14.10 INFO  ==> Configuring synchronous_replication
2022-06-21T17:42:14.111324482Z postgresql 17:42:14.11 INFO  ==> Configuring fsync
2022-06-21T17:42:14.127832221Z postgresql 17:42:14.12 INFO  ==> Loading custom scripts...
2022-06-21T17:42:14.131244617Z postgresql 17:42:14.13 INFO  ==> Enabling remote connections
2022-06-21T17:42:14.137053225Z postgresql 17:42:14.13 INFO  ==> Stopping PostgreSQL...
2022-06-21T17:42:14.540206490Z waiting for server to shut down.... done
2022-06-21T17:42:14.540233038Z server stopped
2022-06-21T17:42:14.563897842Z postgresql 17:42:14.56 INFO  ==> ** PostgreSQL setup finished! **
2022-06-21T17:42:14.563953142Z 
2022-06-21T17:42:14.581797789Z postgresql 17:42:14.58 INFO  ==> ** Starting PostgreSQL **
2022-06-21T17:42:14.623675299Z 2022-06-21 17:42:14.623 GMT [1] LOG:  pgaudit extension initialized
2022-06-21T17:42:14.639552114Z 2022-06-21 17:42:14.639 GMT [1] LOG:  starting PostgreSQL 14.3 on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
2022-06-21T17:42:14.639835747Z 2022-06-21 17:42:14.639 GMT [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2022-06-21T17:42:14.639849625Z 2022-06-21 17:42:14.639 GMT [1] LOG:  listening on IPv6 address "::", port 5432
2022-06-21T17:42:14.650668217Z 2022-06-21 17:42:14.650 GMT [1] LOG:  listening on Unix socket "/tmp/.s.PGSQL.5432"
2022-06-21T17:42:14.673551082Z 2022-06-21 17:42:14.673 GMT [147] LOG:  database system was shut down at 2022-06-21 17:42:14 GMT
2022-06-21T17:42:14.708039553Z 2022-06-21 17:42:14.707 GMT [1] LOG:  database system is ready to accept connections

vikunja_vikunja-7c89b9fb84-dw6dr_proxy.log

2022-06-21T17:42:29.432180310Z /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
2022-06-21T17:42:29.432228945Z /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
2022-06-21T17:42:29.490482880Z /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
2022-06-21T17:42:29.534081590Z 10-listen-on-ipv6-by-default.sh: info: can not modify /etc/nginx/conf.d/default.conf (read-only file system?)
2022-06-21T17:42:29.534119610Z /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
2022-06-21T17:42:29.562145702Z /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
2022-06-21T17:42:29.563109604Z /docker-entrypoint.sh: Configuration complete; ready for start up
2022-06-21T17:42:29.676457516Z 2022/06/21 17:42:29 [notice] 1#1: using the "epoll" event method
2022-06-21T17:42:29.676529610Z 2022/06/21 17:42:29 [notice] 1#1: nginx/1.22.0
2022-06-21T17:42:29.676551339Z 2022/06/21 17:42:29 [notice] 1#1: built by gcc 10.2.1 20210110 (Debian 10.2.1-6) 
2022-06-21T17:42:29.676570388Z 2022/06/21 17:42:29 [notice] 1#1: OS: Linux 5.10.109+truenas
2022-06-21T17:42:29.676619075Z 2022/06/21 17:42:29 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2022-06-21T17:42:29.676734799Z 2022/06/21 17:42:29 [notice] 1#1: start worker processes
2022-06-21T17:42:29.676974431Z 2022/06/21 17:42:29 [notice] 1#1: start worker process 23
2022-06-21T17:42:29.678095479Z 2022/06/21 17:42:29 [notice] 1#1: start worker process 24
2022-06-21T17:42:29.678124603Z 2022/06/21 17:42:29 [notice] 1#1: start worker process 25
2022-06-21T17:42:29.678132097Z 2022/06/21 17:42:29 [notice] 1#1: start worker process 26

There are no logs for the other containers (the .log files are empty).

Application Configuration

Application Name: vikunja2 Version: 3.0.5 : Show Advanced Controller Settings: false Show Expert Configuration Options: false Image Environment: VIKUNJA_SERVICE_FRONTENDURL: https://vikunja.myserver.com <-- only changed this VIKUNJA_SERVICE_MOTD: VIKUNJA_SERVICE_JWTTTL: 259200 VIKUNJA_SERVICE_JWTTTLLONG: 2592000 VIKUNJA_SERVICE_MAXITEMSPERPAGE: 50 VIKUNJA_FILES_MAXSIZE: 20MB VIKUNJA_SERVICE_ENABLECALDAV: true VIKUNJA_SERVICE_ENABLELINKSHARING: true VIKUNJA_SERVICE_ENABLEREGISTRATION: true VIKUNJA_SERVICE_ENABLETASKATTACHMENTS: true VIKUNJA_SERVICE_ENABLETASKCOMMENTS: true VIKUNJA_SERVICE_ENABLETOTP: true VIKUNJA_SERVICE_ENABLEEMAILREMINDERS: true VIKUNJA_SERVICE_ENABLEUSERDELETION: true VIKUNJA_BACKGROUNDS_ENABLED: true VIKUNJA_RATELIMIT_ENABLED: false VIKUNJA_MAILER_ENABLED: false Timezone: 'America/Los_Angeles' timezone Show Expert Config: false Configure Service(s): Main Service: Service Type: Simple Service's Port(s) Configuration: Main Service Port Configuration: Port: 10220 Show Advanced settings: false Show Expert Config: false Integrated Persistent Storage: App Files Storage: Type of Storage: PVC (simple) readOnly: false Show Advanced Options: false : Main Ingress: Enable Ingress: false Show Expert Configuration Options: false Container Security Settings: Change PUID / UMASK values: false Show Advanced Security Settings: false Pod Security Context: runAsUser: 0 runAsGroup: 0 fsGroup: 568 When should we take ownership?: OnRootMismatch Set Custom Resource Limits/Requests (Advanced): false : VPN: Type: disabled Codeserver: enabled: false Promtail: enabled: false Netshoot: enabled: false Confirm these settings.

Describe the bug

The vikunja hangs after deploying, looks like the redis container isn't deploying which causes the whole deployment to hang.

To Reproduce

  1. Start Vikunja installation
  2. Name application
  3. Change VIKUNJA_SERVICE_FRONTENDURL
  4. Click next through all prompts
  5. Hit save
  6. Wait for deployment to hang

Expected Behavior

.

Screenshots

.

Additional Context

.

I've read and agree with the following

tlnagy commented 2 years ago

I'm very new to this stuff, but a brief search around in this repo seems to suggest that almost all Redis instances are configured with plainhost instead of plainporthost? Could that be the problem?

Vikunja seems to be the only one with plainporthost for the rediscreds key https://github.com/truecharts/apps/blob/2f88a8d0bc79f02e24a4b5628754ac559b18dfed/charts/stable/vikunja/values.yaml#L84-L87

stavros-k commented 2 years ago

I'm very new to this stuff, but a brief search around in this repo seems to suggest that almost all Redis instances are configured with plainhost instead of plainporthost? Could that be the problem?

Vikunja seems to be the only one with plainporthost for the rediscreds key

https://github.com/truecharts/apps/blob/2f88a8d0bc79f02e24a4b5628754ac559b18dfed/charts/stable/vikunja/values.yaml#L84-L87

That's not the case..

https://github.com/truecharts/library-charts/blob/4c2c7ddc0d87c82a55385342832aa0c3710ec073/charts/common/templates/lib/dependencies/_redisInjector.tpl#L26-L28

tlnagy commented 2 years ago

Ah. That makes sense. Not sure what's causing this problem then.

stavros-k commented 2 years ago

@all-contributors please add @tlnagy for bug

allcontributors[bot] commented 2 years ago

@stavros-k

I've put up a pull request to add @tlnagy! :tada:

truecharts-admin commented 1 year ago

This issue is locked to prevent necro-posting on closed issues. Please create a new issue or contact staff on discord of the problem persists