truecharts / public

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

Koel FORCE_HTTPS GUI option not being applied to environment variable #8881

Closed Dhs92 closed 10 months ago

Dhs92 commented 1 year ago

App Name

Koel

SCALE Version

22.12.2

App Version

6.0.27

Application Events

2023-05-09 17:12:16
Created container koel
2023-05-09 17:12:16
Started container koel
2023-05-09 17:12:15
Container image "tccr.io/truecharts/koel:latest@sha256:42c9ef98e2ff3987b4b5c72d03a8945b0d8c8eabbba330d0f25a45cea774381d" already present on machine
2023-05-09 17:11:49
Created container koel-mariadb
2023-05-09 17:11:49
Started container koel-mariadb
2023-05-09 17:11:48
Created container db-wait
2023-05-09 17:11:48
Started container db-wait
2023-05-09 17:11:47
Add eth0 [172.16.24.168/16] from ix-net
2023-05-09 17:11:47
Container image "tccr.io/truecharts/ubuntu:jammy-20221101@sha256:4b9475e08c5180d4e7417dc6a18a26dcce7691e4311e5353dbb952645c5ff43f" already present on machine
2023-05-09 17:11:47
Add eth0 [172.16.24.169/16] from ix-net
2023-05-09 17:11:47
Container image "tccr.io/truecharts/mariadb:10.11.2@sha256:fc01102eef1de92155b5097636ef738700c8bef1735f52a397b1505cbf455c0f" already present on machine
2023-05-09 17:11:46
Updated LoadBalancer with new IPs: [] -> [192.168.1.203]
2023-05-09 17:11:43
Job completed
2023-05-09 17:11:43
Ensuring load balancer
2023-05-09 17:11:43
Applied LoadBalancer DaemonSet kube-system/svclb-koel-88a67265
2023-05-09 17:11:43
Created pod: koel-5f7cfc7d7b-7kms7
2023-05-09 17:11:43
Successfully assigned ix-koel/koel-mariadb-0 to ix-truenas
2023-05-09 17:11:43
Successfully assigned ix-koel/koel-5f7cfc7d7b-7kms7 to ix-truenas
2023-05-09 17:11:33
Add eth0 [172.16.24.166/16] from ix-net
2023-05-09 17:11:33
Container image "tccr.io/truecharts/kubectl:v1.26.0@sha256:6d6e0e50f28b961ed1c1c6a9c140553238641591fbdc9ac7c1a348636f78c552" already present on machine
2023-05-09 17:11:33
Created container koel-manifests
2023-05-09 17:11:33
Started container koel-manifests
2023-05-09 17:11:32
Created pod: koel-manifests-drpsn
2023-05-09 17:11:32
Successfully assigned ix-koel/koel-manifests-drpsn to ix-truenas
2023-05-09 17:10:52
Deleting load balancer
2023-05-09 17:10:52
Deleted LoadBalancer DaemonSet kube-system/svclb-koel-f23e1fa4
2023-05-09 17:10:52
Deleted load balancer
2023-05-09 17:10:52
Deleted pod: koel-5f7cfc7d7b-t996r
2023-05-09 17:10:52
Stopping container koel
2023-05-09 17:10:52
Stopping container koel-mariadb
2023-05-09 14:52:06
Scaled up replica set koel-5f7cfc7d7b to 1 from 0
2023-05-09 14:51:13
Scaled down replica set koel-5f7cfc7d7b to 0 from 1
2023-05-09 14:50:04
delete Pod koel-mariadb-0 in StatefulSet koel-mariadb successful
2023-05-09 14:46:12
create Pod koel-mariadb-0 in StatefulSet koel-mariadb successful

Application Logs

MariaDB:
2023-05-10 00:11:49.242573+00:00mariadb 00:11:49.24 
2023-05-10 00:11:49.243473+00:00mariadb 00:11:49.24 Welcome to the Bitnami mariadb container
2023-05-10 00:11:49.244404+00:00mariadb 00:11:49.24 Subscribe to project updates by watching https://github.com/bitnami/containers
2023-05-10 00:11:49.245373+00:00mariadb 00:11:49.24 Submit issues and feature requests at https://github.com/bitnami/containers/issues
2023-05-10 00:11:49.246280+00:00mariadb 00:11:49.24 
2023-05-10 00:11:49.247270+00:00mariadb 00:11:49.24 INFO  ==> ** Starting MariaDB setup **
2023-05-10 00:11:49.258774+00:00mariadb 00:11:49.25 INFO  ==> Validating settings in MYSQL_*/MARIADB_* env vars
2023-05-10 00:11:49.262144+00:00mariadb 00:11:49.26 INFO  ==> Initializing mariadb database
2023-05-10 00:11:49.271390+00:00mariadb 00:11:49.27 INFO  ==> Updating 'my.cnf' with custom configuration
2023-05-10 00:11:49.274667+00:00mariadb 00:11:49.27 INFO  ==> Setting user option
2023-05-10 00:11:49.763027+00:00mariadb 00:11:49.76 INFO  ==> Setting slow_query_log option
2023-05-10 00:11:49.779339+00:00mariadb 00:11:49.77 INFO  ==> Setting long_query_time option
2023-05-10 00:11:49.796350+00:00mariadb 00:11:49.79 INFO  ==> Using persisted data
2023-05-10 00:11:49.851511+00:00mariadb 00:11:49.85 INFO  ==> Running mysql_upgrade
2023-05-10 00:11:49.862467+00:00mariadb 00:11:49.86 INFO  ==> Starting mariadb in background
2023-05-10 00:11:49.893460+00:002023-05-10  0:11:49 0 [Note] Starting MariaDB 10.11.2-MariaDB source revision cafba8761af55ae16cc69c9b53a341340a845b36 as process 67
2023-05-10 00:11:49.907504+00:002023-05-10  0:11:49 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2023-05-10 00:11:49.908821+00:002023-05-10  0:11:49 0 [Note] InnoDB: Number of transaction pools: 1
2023-05-10 00:11:49.908848+00:002023-05-10  0:11:49 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
2023-05-10 00:11:49.908855+00:002023-05-10  0:11:49 0 [Note] mysqld: O_TMPFILE is not supported on /opt/bitnami/mariadb/tmp (disabling future attempts)
2023-05-10 00:11:49.980167+00:002023-05-10  0:11:49 0 [Note] InnoDB: Using Linux native AIO
2023-05-10 00:11:49.980391+00:002023-05-10  0:11:49 0 [Note] InnoDB: Initializing buffer pool, total size = 128.000MiB, chunk size = 2.000MiB
2023-05-10 00:11:49.989041+00:002023-05-10  0:11:49 0 [Note] InnoDB: Completed initialization of buffer pool
2023-05-10 00:11:49.990842+00:002023-05-10  0:11:49 0 [Note] InnoDB: Buffered log writes (block size=512 bytes)
2023-05-10 00:11:49.998840+00:002023-05-10  0:11:49 0 [Note] InnoDB: 128 rollback segments are active.
2023-05-10 00:11:50.000065+00:002023-05-10  0:11:50 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ...
2023-05-10 00:11:50.000094+00:002023-05-10  0:11:50 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB.
2023-05-10 00:11:50.001318+00:002023-05-10  0:11:50 0 [Note] InnoDB: log sequence number 3379074; transaction id 7864
2023-05-10 00:11:50.001367+00:002023-05-10  0:11:50 0 [Note] InnoDB: Loading buffer pool(s) from /bitnami/mariadb/data/ib_buffer_pool
2023-05-10 00:11:50.001384+00:002023-05-10  0:11:50 0 [Note] Plugin 'FEEDBACK' is disabled.
2023-05-10 00:11:50.004975+00:002023-05-10  0:11:50 0 [Note] Server socket created on IP: '127.0.0.1'.
2023-05-10 00:11:50.006182+00:002023-05-10  0:11:50 0 [Note] InnoDB: Buffer pool(s) load completed at 230510  0:11:50
2023-05-10 00:11:50.006337+00:002023-05-10  0:11:50 0 [Warning] 'proxies_priv' entry '@% root@koel-mariadb-0' ignored in --skip-name-resolve mode.
2023-05-10 00:11:50.033924+00:002023-05-10  0:11:50 0 [Note] /opt/bitnami/mariadb/sbin/mysqld: ready for connections.
2023-05-10 00:11:50.033947+00:00Version: '10.11.2-MariaDB'  socket: '/opt/bitnami/mariadb/tmp/mysql.sock'  port: 3306  Source distribution
2023-05-10 00:12:12.057093+00:002023-05-10  0:12:12 23 [Warning] 'proxies_priv' entry '@% root@koel-mariadb-0' ignored in --skip-name-resolve mode.
2023-05-10 00:12:12.064468+00:00find: '/docker-entrypoint-startdb.d/': No such file or directory
2023-05-10 00:12:12.071312+00:00mariadb 00:12:12.07 INFO  ==> Stopping mariadb
2023-05-10 00:12:12.075764+00:002023-05-10  0:12:12 0 [Note] /opt/bitnami/mariadb/sbin/mysqld (initiated by: unknown): Normal shutdown
2023-05-10 00:12:12.076331+00:002023-05-10  0:12:12 0 [Note] InnoDB: FTS optimize thread exiting.
2023-05-10 00:12:12.168745+00:002023-05-10  0:12:12 0 [Note] InnoDB: Starting shutdown...
2023-05-10 00:12:12.168829+00:002023-05-10  0:12:12 0 [Note] InnoDB: Dumping buffer pool(s) to /bitnami/mariadb/data/ib_buffer_pool
2023-05-10 00:12:12.169831+00:002023-05-10  0:12:12 0 [Note] InnoDB: Buffer pool(s) dump completed at 230510  0:12:12
2023-05-10 00:12:12.433989+00:002023-05-10  0:12:12 0 [Note] InnoDB: Removed temporary tablespace data file: "./ibtmp1"
2023-05-10 00:12:12.434020+00:002023-05-10  0:12:12 0 [Note] InnoDB: Shutdown completed; log sequence number 3379074; transaction id 7884
2023-05-10 00:12:12.460533+00:002023-05-10  0:12:12 0 [Note] /opt/bitnami/mariadb/sbin/mysqld: Shutdown complete
2023-05-10 00:12:12.460569+00:002023-05-10T00:12:12.460569322Z
2023-05-10 00:12:13.102308+00:00mariadb 00:12:13.10 INFO  ==> ** MariaDB setup finished! **
2023-05-10 00:12:13.102358+00:002023-05-10T00:12:13.102358528Z
2023-05-10 00:12:13.137954+00:00mariadb 00:12:13.13 INFO  ==> ** Starting MariaDB **
2023-05-10 00:12:13.203394+00:002023-05-10  0:12:13 0 [Note] Starting MariaDB 10.11.2-MariaDB source revision cafba8761af55ae16cc69c9b53a341340a845b36 as process 1
2023-05-10 00:12:13.203425+00:002023-05-10  0:12:13 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2023-05-10 00:12:13.203435+00:002023-05-10  0:12:13 0 [Note] InnoDB: Number of transaction pools: 1
2023-05-10 00:12:13.203458+00:002023-05-10  0:12:13 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
2023-05-10 00:12:13.203468+00:002023-05-10  0:12:13 0 [Note] mysqld: O_TMPFILE is not supported on /opt/bitnami/mariadb/tmp (disabling future attempts)
2023-05-10 00:12:13.251758+00:002023-05-10  0:12:13 0 [Note] InnoDB: Using Linux native AIO
2023-05-10 00:12:13.251843+00:002023-05-10  0:12:13 0 [Note] InnoDB: Initializing buffer pool, total size = 128.000MiB, chunk size = 2.000MiB
2023-05-10 00:12:13.254271+00:002023-05-10  0:12:13 0 [Note] InnoDB: Completed initialization of buffer pool
2023-05-10 00:12:13.259812+00:002023-05-10  0:12:13 0 [Note] InnoDB: Buffered log writes (block size=512 bytes)
2023-05-10 00:12:13.266194+00:002023-05-10  0:12:13 0 [Note] InnoDB: 128 rollback segments are active.
2023-05-10 00:12:13.271165+00:002023-05-10  0:12:13 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ...
2023-05-10 00:12:13.271199+00:002023-05-10  0:12:13 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB.
2023-05-10 00:12:13.271211+00:002023-05-10  0:12:13 0 [Note] InnoDB: log sequence number 3379074; transaction id 7864
2023-05-10 00:12:13.271233+00:002023-05-10  0:12:13 0 [Note] Plugin 'FEEDBACK' is disabled.
2023-05-10 00:12:13.271244+00:002023-05-10  0:12:13 0 [Note] InnoDB: Loading buffer pool(s) from /bitnami/mariadb/data/ib_buffer_pool
2023-05-10 00:12:13.275960+00:002023-05-10  0:12:13 0 [Note] Server socket created on IP: '0.0.0.0'.
2023-05-10 00:12:13.279531+00:002023-05-10  0:12:13 0 [Warning] 'proxies_priv' entry '@% root@koel-mariadb-0' ignored in --skip-name-resolve mode.
2023-05-10 00:12:13.279561+00:002023-05-10  0:12:13 0 [Note] InnoDB: Buffer pool(s) load completed at 230510  0:12:13
2023-05-10 00:12:13.279571+00:002023-05-10  0:12:13 0 [Note] /opt/bitnami/mariadb/sbin/mysqld: ready for connections.
2023-05-10 00:12:13.279590+00:00Version: '10.11.2-MariaDB'  socket: '/opt/bitnami/mariadb/tmp/mysql.sock'  port: 3306  Source distribution

Koel:
2023-05-10 00:12:16.387825+00:00running docker-php-entrypoint with arguments apache2-foreground
2023-05-10 00:12:16.429831+00:00[Tue May 09 17:12:16.429638 2023] [so:warn] [pid 7] AH01574: module xsendfile_module is already loaded, skipping
2023-05-10 00:12:16.430389+00:00AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.16.24.168. Set the 'ServerName' directive globally to suppress this message
2023-05-10 00:12:16.442376+00:00[Tue May 09 17:12:16.442278 2023] [so:warn] [pid 7] AH01574: module xsendfile_module is already loaded, skipping
2023-05-10 00:12:16.442619+00:00AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.16.24.168. Set the 'ServerName' directive globally to suppress this message
2023-05-10 00:12:16.450481+00:00[Tue May 09 17:12:16.450409 2023] [mpm_prefork:notice] [pid 7] AH00163: Apache/2.4.38 (Debian) PHP/8.1.8 configured -- resuming normal operations
2023-05-10 00:12:16.450510+00:00[Tue May 09 17:12:16.450425 2023] [core:notice] [pid 7] AH00094: Command line: 'apache2 -D FOREGROUND'
2023-05-10 00:12:31.044851+00:00172.16.24.24 - - [09/May/2023:17:12:30 -0700] "GET / HTTP/1.1" 200 1041 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/112.0"
2023-05-10 00:12:31.910119+00:00172.16.24.24 - - [09/May/2023:17:12:31 -0700] "GET /sw.js HTTP/1.1" 200 615 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/112.0"
2023-05-10 00:12:35.912966+00:00172.16.24.24 - - [09/May/2023:17:12:35 -0700] "GET / HTTP/1.1" 200 1041 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/112.0"
2023-05-10 00:12:36.828741+00:00172.16.24.24 - - [09/May/2023:17:12:36 -0700] "GET /sw.js HTTP/1.1" 200 615 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/112.0"
2023-05-10 00:12:37.949346+00:00172.16.24.24 - - [09/May/2023:17:12:37 -0700] "GET / HTTP/1.1" 200 1041 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/112.0"
2023-05-10 00:12:38.011667+00:00172.16.24.24 - - [09/May/2023:17:12:38 -0700] "GET /img/icon.png HTTP/1.1" 200 11043 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/112.0"
2023-05-10 00:12:38.015223+00:00172.16.24.24 - - [09/May/2023:17:12:38 -0700] "GET /img/favicon.ico HTTP/1.1" 200 951 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/112.0"
2023-05-10 00:55:42.578551+00:00172.16.24.24 - - [09/May/2023:17:55:42 -0700] "GET / HTTP/1.1" 200 1041 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0"
2023-05-10 00:55:42.761321+00:00172.16.24.24 - - [09/May/2023:17:55:42 -0700] "GET /img/icon.png HTTP/1.1" 200 11043 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0"
2023-05-10 00:55:42.763889+00:00172.16.24.24 - - [09/May/2023:17:55:42 -0700] "GET /img/favicon.ico HTTP/1.1" 200 951 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0"

Application Configuration

image image image image image image

Describe the bug

When FORCE_HTTPS is checked, $FORCE_HTTPS in the Koel container is set to false

To Reproduce

  1. Create Koel container
  2. Check FORCE_HTTPS
  3. Continue normal setup
  4. Save
  5. Open Shell for the Koel container
  6. Type echo $FORCE_HTTPS or env, both will report false

Expected Behavior

$FORCE_HTTPS should be true when marked off in the GUI

Screenshots

image

Additional Context

N/A

I've read and agree with the following

PrivatePuffin commented 1 year ago

Officially we only support https through ingress, so as this is a non ingress related https setting... I'm going to dump this into "backlog" meaning "likely never gets fixed".

Dhs92 commented 1 year ago

This is to force HTTPS URLs on internal URLS for the application. This has nothing to do with ingress.

truecharts-admin commented 11 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in two weeks if no further activity occurs. Thank you for your contributions.

truecharts-admin commented 10 months ago

This issue has been automatically closed due to inactivity. Please re-open if this still requires investigation.

truecharts-admin commented 10 months 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