Closed 98jan closed 1 year ago
The 2nd and 3rd request in browser console suggests that the API endpoint is not correctly set.
I think setting the API_URL
and FRONTEND_URL
in the backend config is screwing it up. I have it working perfectly fine when I have just:
config:
PORT: 8080
NUM_WORKERS: 2
PROXY_PART: https://proxy.<snip>
#DISABLE_REGISTRATION: true
database:
connection_url: jdbc:postgresql://postgres-default-rw.database.svc.cluster.local/piped
secret: *secret
You're also using out-of-date chart. Currently latest is 4.0.0.
will try it with your configuration and come back to you. Didn't knew that a Helm Chart in version 4.0.0 is available the GitHub badge suggested that 3.0.2 is the newest version will try it and will come back if everything works.
Keep in mind that 4.0.0 includes a major postgres update if you're not using external postgres. The reason why it hasn't updated in ArtifactHub is that because it had issues fetching the latest metadata, but should hopefully complete soon.
updated values.yaml to match your entries, what is the correct entry:
Tried both setups and having still the same issue (url missing in call to config) with the version 4.1.0, made a fresh installation with removing postgresql volumes.
That suggests that the frontend didn't get the right environment. so please check the frontend container's env.
With the command "printenv" I printed out all available enviornment variables in the frontend container. Can you see that any environment variable is missing?
PIPED_BACKEND_PORT=tcp://10.103.40.160:8080
KUBERNETES_PORT=tcp://10.96.0.1:443
PIPED_BACKEND_SERVICE_PORT=8080
KUBERNETES_SERVICE_PORT=443
HOSTNAME=piped-frontend-69b58d7fc4-h6gw6
PIPED_FRONTEND_PORT=tcp://10.111.181.61:80
PIPED_FRONTEND_SERVICE_PORT=80
SHLVL=1
PIPED_BACKEND_PORT_8080_TCP=tcp://10.103.40.160:8080
HOME=/root
PKG_RELEASE=1
PIPED_FRONTEND_PORT_80_TCP_ADDR=10.111.181.61
PIPED_YTPROXY_SERVICE_PORT_HTTP=8080
PIPED_FRONTEND_PORT_80_TCP_PORT=80
PIPED_FRONTEND_PORT_80_TCP_PROTO=tcp
TERM=xterm
NGINX_VERSION=1.25.3
PIPED_YTPROXY_PORT_8080_TCP_ADDR=10.110.15.44
PIPED_POSTGRESQL_PORT_5432_TCP_ADDR=10.107.107.175
PIPED_YTPROXY_SERVICE_HOST=10.110.15.44
KUBERNETES_PORT_443_TCP_ADDR=10.96.0.1
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PIPED_POSTGRESQL_SERVICE_HOST=10.107.107.175
NJS_VERSION=0.8.2
KUBERNETES_PORT_443_TCP_PORT=443
PIPED_YTPROXY_PORT_8080_TCP_PORT=8080
PIPED_POSTGRESQL_PORT_5432_TCP_PORT=5432
PIPED_FRONTEND_PORT_80_TCP=tcp://10.111.181.61:80
BACKEND_HOSTNAME=pipedapi.<domain>
PIPED_YTPROXY_PORT_8080_TCP_PROTO=tcp
PIPED_POSTGRESQL_PORT_5432_TCP_PROTO=tcp
KUBERNETES_PORT_443_TCP_PROTO=tcp
PIPED_YTPROXY_PORT=tcp://10.110.15.44:8080
PIPED_YTPROXY_SERVICE_PORT=8080
PIPED_BACKEND_SERVICE_PORT_HTTP=8080
PIPED_POSTGRESQL_PORT=tcp://10.107.107.175:5432
PIPED_POSTGRESQL_SERVICE_PORT=5432
PIPED_POSTGRESQL_SERVICE_PORT_TCP_POSTGRESQL=5432
PIPED_FRONTEND_SERVICE_PORT_HTTP=80
PIPED_YTPROXY_PORT_8080_TCP=tcp://10.110.15.44:8080
KUBERNETES_SERVICE_PORT_HTTPS=443
KUBERNETES_PORT_443_TCP=tcp://10.96.0.1:443
PIPED_POSTGRESQL_PORT_5432_TCP=tcp://10.107.107.175:5432
PIPED_BACKEND_SERVICE_HOST=10.103.40.160
PIPED_BACKEND_PORT_8080_TCP_ADDR=10.103.40.160
KUBERNETES_SERVICE_HOST=10.96.0.1
PWD=/
PIPED_BACKEND_PORT_8080_TCP_PORT=8080
PIPED_FRONTEND_SERVICE_HOST=10.111.181.61
PIPED_BACKEND_PORT_8080_TCP_PROTO=tcp
- HTTP_WORKERS or NUM_WORKERS?
HTTP_WORKERS is correct.
Please change your pullPolicy: IfNotPresent
to Always as it's by default like that due to none of the containers following a semver, and thus it will not be updated if set like so at all, if the container "exists" already.
I cannot reproduce, you can try to execute the sed inside the container and check if that does anything.
Thanks the change from IfNotPresent to Always did fix my issue!
Helm chart name
piped
Helm chart version
3.0.2
Container name
1337kavin/piped-frontend
Container tag
3.0.2
Description
Configured Domains for frontend, api and ytproxy in the Helm Chart. When I open the frontend, I get an infinite loading animation and the browser console shows following error messages (see image):
Expected result
Application routing works as expected and now error is thrown in Browser console.
Helm values to reproduce
Additional Information
Repo link
no public repo available