truecharts / public

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

Snipe-It : APP_URL=http://localhost:80 no matter what since 6.1.0_7.0.24 / chart not working at all ? #9001

Closed pm974 closed 1 year ago

pm974 commented 1 year ago

App Name

snipe-it

SCALE Version

22.12.0

App Version

6.1.0_7.0.24

Application Events

2023-05-17 8:48:11
Created container stock-snipe-it
2023-05-17 8:48:11
Started container stock-snipe-it
2023-05-17 8:48:02
Container image "tccr.io/truecharts/snipe-it:6.1.0@sha256:e399ccea08eb2f6b6e575f4ed98810aebc124b5f68d00c61ea0dfa34bcd62c46" already present on machine
2023-05-17 8:48:02
Updated LoadBalancer with new IPs: [] -> [192.168.3.110]
2023-05-17 8:47:59
Ensuring load balancer
2023-05-17 8:47:59
Applied LoadBalancer DaemonSet kube-system/svclb-stock-snipe-it-b0fe35c6
2023-05-17 8:47:58
Job completed
2023-05-17 8:47:44
Created container stock-snipe-it-manifests
2023-05-17 8:47:44
Started container stock-snipe-it-manifests
2023-05-17 8:47:39
Created container stock-mariadb
2023-05-17 8:47:39
Started container stock-mariadb
2023-05-17 8:47:39
Add eth0 [172.16.4.191/16] from ix-net
2023-05-17 8:47:39
Container image "tccr.io/truecharts/kubectl:v1.26.0@sha256:6d6e0e50f28b961ed1c1c6a9c140553238641591fbdc9ac7c1a348636f78c552" already present on machine
2023-05-17 8:47:38
Created pod: stock-snipe-it-manifests-vtzq9
2023-05-17 8:47:38
Successfully assigned ix-stock/stock-snipe-it-manifests-vtzq9 to ix-truenas
2023-05-17 8:47:35
Add eth0 [172.16.4.190/16] from ix-net
2023-05-17 8:47:35
Container image "tccr.io/truecharts/mariadb:10.11.2@sha256:fc01102eef1de92155b5097636ef738700c8bef1735f52a397b1505cbf455c0f" already present on machine
2023-05-17 8:47:24
Add eth0 [172.16.4.189/16] from ix-net
2023-05-17 8:47:24
Container image "tccr.io/truecharts/redis:7.0.8@sha256:13e0bbf5369ed2f219b96c0e7136b531eb1fdca1db7b7e2c72e13133adf26288" already present on machine
2023-05-17 8:47:24
Add eth0 [172.16.4.188/16] from ix-net
2023-05-17 8:47:24
Container image "tccr.io/truecharts/ubuntu:jammy-20221101@sha256:4b9475e08c5180d4e7417dc6a18a26dcce7691e4311e5353dbb952645c5ff43f" already present on machine
2023-05-17 8:47:24
Created container stock-redis
2023-05-17 8:47:24
Started container stock-redis
2023-05-17 8:47:24
Created container db-wait
2023-05-17 8:47:24
Started container db-wait
2023-05-17 8:47:19
Scaled up replica set stock-snipe-it-6b4688bb48 to 1 from 0
2023-05-17 8:47:19
create Pod stock-redis-0 in StatefulSet stock-redis successful
2023-05-17 8:47:19
Created pod: stock-snipe-it-6b4688bb48-qw2db
2023-05-17 8:47:19
Successfully assigned ix-stock/stock-snipe-it-6b4688bb48-qw2db to ix-truenas
2023-05-17 8:47:19
Successfully assigned ix-stock/stock-redis-0 to ix-truenas
2023-05-17 8:47:19
create Pod stock-mariadb-0 in StatefulSet stock-mariadb successful
2023-05-17 8:47:19
Successfully assigned ix-stock/stock-mariadb-0 to ix-truenas
2023-05-17 8:47:16
Readiness probe failed: dial tcp 172.16.4.183:80: i/o timeout
2023-05-17 8:47:06
error killing pod: failed to "KillContainer" for "stock-redis" with KillContainerError: "rpc error: code = Unknown desc = Error response from daemon: No such container: 8cc76fdaf18682389d9dd7f7d4513145979d004354288ab72799f8cf4d11e0fd"
2023-05-17 8:47:04
Deleting load balancer
2023-05-17 8:47:04
Deleted LoadBalancer DaemonSet kube-system/svclb-stock-snipe-it-18534218
2023-05-17 8:47:04
Deleted load balancer
2023-05-17 8:47:04
Scaled down replica set stock-snipe-it-6b4688bb48 to 0 from 1
2023-05-17 8:47:04
Stopping container stock-mariadb
2023-05-17 8:47:04
Deleted pod: stock-snipe-it-6b4688bb48-ffxx8
2023-05-17 8:47:04
Stopping container stock-snipe-it
2023-05-17 8:47:04
delete Pod stock-mariadb-0 in StatefulSet stock-mariadb successful
2023-05-17 8:47:04
delete Pod stock-redis-0 in StatefulSet stock-redis successful
2023-05-17 8:47:04
Stopping container stock-redis

Application Logs

2023-05-17 8:48:11
Created container stock-snipe-it
2023-05-17 8:48:11
Started container stock-snipe-it
2023-05-17 8:48:02
Container image "tccr.io/truecharts/snipe-it:6.1.0@sha256:e399ccea08eb2f6b6e575f4ed98810aebc124b5f68d00c61ea0dfa34bcd62c46" already present on machine
2023-05-17 8:48:02
Updated LoadBalancer with new IPs: [] -> [192.168.3.110]
2023-05-17 8:47:59
Ensuring load balancer
2023-05-17 8:47:59
Applied LoadBalancer DaemonSet kube-system/svclb-stock-snipe-it-b0fe35c6
2023-05-17 8:47:58
Job completed
2023-05-17 8:47:44
Created container stock-snipe-it-manifests
2023-05-17 8:47:44
Started container stock-snipe-it-manifests
2023-05-17 8:47:39
Created container stock-mariadb
2023-05-17 8:47:39
Started container stock-mariadb
2023-05-17 8:47:39
Add eth0 [172.16.4.191/16] from ix-net
2023-05-17 8:47:39
Container image "tccr.io/truecharts/kubectl:v1.26.0@sha256:6d6e0e50f28b961ed1c1c6a9c140553238641591fbdc9ac7c1a348636f78c552" already present on machine
2023-05-17 8:47:38
Created pod: stock-snipe-it-manifests-vtzq9
2023-05-17 8:47:38
Successfully assigned ix-stock/stock-snipe-it-manifests-vtzq9 to ix-truenas
2023-05-17 8:47:35
Add eth0 [172.16.4.190/16] from ix-net
2023-05-17 8:47:35
Container image "tccr.io/truecharts/mariadb:10.11.2@sha256:fc01102eef1de92155b5097636ef738700c8bef1735f52a397b1505cbf455c0f" already present on machine
2023-05-17 8:47:24
Add eth0 [172.16.4.189/16] from ix-net
2023-05-17 8:47:24
Container image "tccr.io/truecharts/redis:7.0.8@sha256:13e0bbf5369ed2f219b96c0e7136b531eb1fdca1db7b7e2c72e13133adf26288" already present on machine
2023-05-17 8:47:24
Add eth0 [172.16.4.188/16] from ix-net
2023-05-17 8:47:24
Container image "tccr.io/truecharts/ubuntu:jammy-20221101@sha256:4b9475e08c5180d4e7417dc6a18a26dcce7691e4311e5353dbb952645c5ff43f" already present on machine
2023-05-17 8:47:24
Created container stock-redis
2023-05-17 8:47:24
Started container stock-redis
2023-05-17 8:47:24
Created container db-wait
2023-05-17 8:47:24
Started container db-wait
2023-05-17 8:47:19
Scaled up replica set stock-snipe-it-6b4688bb48 to 1 from 0
2023-05-17 8:47:19
create Pod stock-redis-0 in StatefulSet stock-redis successful
2023-05-17 8:47:19
Created pod: stock-snipe-it-6b4688bb48-qw2db
2023-05-17 8:47:19
Successfully assigned ix-stock/stock-snipe-it-6b4688bb48-qw2db to ix-truenas
2023-05-17 8:47:19
Successfully assigned ix-stock/stock-redis-0 to ix-truenas
2023-05-17 8:47:19
create Pod stock-mariadb-0 in StatefulSet stock-mariadb successful
2023-05-17 8:47:19
Successfully assigned ix-stock/stock-mariadb-0 to ix-truenas
2023-05-17 8:47:16
Readiness probe failed: dial tcp 172.16.4.183:80: i/o timeout
2023-05-17 8:47:06
error killing pod: failed to "KillContainer" for "stock-redis" with KillContainerError: "rpc error: code = Unknown desc = Error response from daemon: No such container: 8cc76fdaf18682389d9dd7f7d4513145979d004354288ab72799f8cf4d11e0fd"
2023-05-17 8:47:04
Deleting load balancer
2023-05-17 8:47:04
Deleted LoadBalancer DaemonSet kube-system/svclb-stock-snipe-it-18534218
2023-05-17 8:47:04
Deleted load balancer
2023-05-17 8:47:04
Scaled down replica set stock-snipe-it-6b4688bb48 to 0 from 1
2023-05-17 8:47:04
Stopping container stock-mariadb
2023-05-17 8:47:04
Deleted pod: stock-snipe-it-6b4688bb48-ffxx8
2023-05-17 8:47:04
Stopping container stock-snipe-it
2023-05-17 8:47:04
delete Pod stock-mariadb-0 in StatefulSet stock-mariadb successful
2023-05-17 8:47:04
delete Pod stock-redis-0 in StatefulSet stock-redis successful
2023-05-17 8:47:04
Stopping container stock-redis

Application Configuration

env

IMAGE_LIB=gd REDIS_PORT=6379 KUBERNETES_SERVICE_PORT=443 KUBERNETES_PORT=tcp://172.17.0.1:443 DB_CONNECTION=mysql HOSTNAME=stock-snipe-it-6b4688bb48-ffxx8 USER_ID=568 APP_URL=http://localhost:80 DB_PORT=3306 API_TOKEN_EXPIRATION_YEARS=40 HOME=/root UMASK_SET=2 DB_DATABASE=snipe-it PGID=50 MAX_RESULTS=500 SESSION_DRIVER=redis GROUP_ID=50 DB_USERNAME=snipe-it ENCRYPT=false LOGIN_LOCKOUT_DURATION=60 QUEUE_DRIVER=redis CACHE_DRIVER=redis TERM=xterm KUBERNETES_PORT_443_TCP_ADDR=172.17.0.1 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin GID=50 KUBERNETES_PORT_443_TCP_PORT=443 KUBERNETES_PORT_443_TCP_PROTO=tcp SECURE_COOKIES=false EXPIRE_ON_CLOSE=false FILESYSTEM_DISK=local LOGIN_MAX_ATTEMPTS=5 PUID=568 COOKIE_NAME=snipeit_session UID=568 SESSION_LIFETIME=30 APP_TIMEZONE=Europe/Brussels UMASK=2 REDIS_PASSWORD=secret KUBERNETES_SERVICE_PORT_HTTPS=443 KUBERNETES_PORT_443_TCP=tcp://172.17.0.1:443 DB_PASSWORD=secret APP_ENV=production APP_KEY=secret REDIS_HOST=stock-redis KUBERNETES_SERVICE_HOST=172.17.0.1 PWD=/var/www/html NVIDIA_VISIBLE_DEVICES=void DB_HOST=stock-mariadb TZ=Europe/Brussels APP_LOCALE=en

Describe the bug

No matter what I input in the chart for APP-URL, the .env keeps returning APP_URL=http://localhost:80 preventing the application from working properly. This didn't happen in previous version 6.0.14. https://subdomain.domain.com/setup will redirect to http://localhost/setup making the process (and the upgrade) impossible. "Force TLS" not working as well as app PUID / PGID etc. -> it seems the hole chart isn't taking effect...

To Reproduce

  1. install the app "snipe-it" from stable train
  2. launch snipe-it shell
  3. type env to preview the configuration
  4. look for APP-URL= and see if it matches what you declared in the chart

Expected Behavior

The .env should reflect the deployment chart specified by the user.

Screenshots

Screenshot 2023-05-17 at 08 57 34

Additional Context

If I force https://subdomain.domain.com/setup I can see the first setup page, but clicking the button to go to the next step will rediret again to localhost:80 making the process impossible to complete.

I've read and agree with the following

PrivatePuffin commented 1 year ago

Please use correct issue titles. We cannot smell its about snipeit.

pm974 commented 1 year ago

Please use correct issue titles. We cannot smell its about snipeit.

Done.

stavros-k commented 1 year ago

I wonder how much you searched and then checked the I've checked all open and closed issues and my issue is not there. image


Duplicate of #8886