Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Gitea] Stuck on deploying (2/3) version .34 onwards #1865

Closed
Boostflow opened this issue Feb 7, 2022 · 17 comments
Closed

[Gitea] Stuck on deploying (2/3) version .34 onwards #1865

Boostflow opened this issue Feb 7, 2022 · 17 comments
Labels
bug Something isn't working

Comments

@Boostflow
Copy link

As of version 1.16.0_5.0.35 Gitea is stuck on deploying 2/3 pods. Rollback to version 1.16.0_5.0.34 is confirmed to work. Here are all the requested artifacts:

Scale version: TrueNAS-SCALE-22.02-RC.2
App version: 1.16.0_5.0.39

image
image
image
image
image
image

Logs:
image
image

@Boostflow Boostflow added the bug Something isn't working label Feb 7, 2022
@stavros-k
Copy link
Member

stavros-k commented Feb 7, 2022

Note for whoever picks it up:

Fail appeared right after the common change to add Upgrade and Install initContainers
Commits:
04a3aa9
0496669

Seems that init Container 2-configure-gitea fails

Events:
  Type     Reason            Age                 From               Message
  ----     ------            ----                ----               -------
  Warning  FailedScheduling  16m                 default-scheduler  0/1 nodes are available: 1 pod has unbound immediate PersistentVolumeClaims.
  Warning  FailedScheduling  16m                 default-scheduler  0/1 nodes are available: 1 pod has unbound immediate PersistentVolumeClaims.
  Normal   Scheduled         16m                 default-scheduler  Successfully assigned ix-gitea/gitea-6c7ffdc8f5-575sf to ix-truenas
  Normal   AddedInterface    16m                 multus             Add eth0 [172.16.0.65/16] from ix-net
  Normal   Pulled            16m                 kubelet            Container image "ghcr.io/truecharts/alpine:v3.14.2@sha256:4095394abbae907e94b1f2fd2e2de6c4f201a5b9704573243ca8eb16db8cdb7c" already present on machine
  Normal   Created           16m                 kubelet            Created container autopermissions
  Normal   Started           16m                 kubelet            Started container autopermissions
  Normal   Pulled            16m                 kubelet            Container image "ghcr.io/truecharts/alpine:v3.14.2@sha256:4095394abbae907e94b1f2fd2e2de6c4f201a5b9704573243ca8eb16db8cdb7c" already present on machine
  Normal   Created           16m                 kubelet            Created container inotify
  Normal   Started           16m                 kubelet            Started container inotify
  Normal   Pulled            16m                 kubelet            Container image "ghcr.io/truecharts/postgresql:v14.1.0@sha256:f729127ca5517840f75e3ab107e2b60efe8257b27f2c679e070dffcaf534e88a" already present on machine
  Normal   Created           16m                 kubelet            Created container postgresql-init
  Normal   Started           16m                 kubelet            Started container postgresql-init
  Normal   Pulling           15m                 kubelet            Pulling image "tccr.io/truecharts/gitea:v1.16.0@sha256:d248e0dcc76de23704e75c447711f8b747f870aa799ba3e0f3c62759a1a11c5b"
  Normal   Pulled            15m                 kubelet            Successfully pulled image "tccr.io/truecharts/gitea:v1.16.0@sha256:d248e0dcc76de23704e75c447711f8b747f870aa799ba3e0f3c62759a1a11c5b" in 23.688872187s
  Normal   Created           15m                 kubelet            Created container 1-init-directories
  Normal   Started           15m                 kubelet            Started container 1-init-directories
  Normal   Pulled            14m (x3 over 15m)   kubelet            Container image "tccr.io/truecharts/gitea:v1.16.0@sha256:d248e0dcc76de23704e75c447711f8b747f870aa799ba3e0f3c62759a1a11c5b" already present on machine
  Normal   Created           14m (x3 over 15m)   kubelet            Created container 2-configure-gitea
  Normal   Started           14m (x3 over 15m)   kubelet            Started container 2-configure-gitea
  Warning  BackOff           86s (x65 over 15m)  kubelet            Back-off restarting failed container
scale# k logs -n ix-gitea pod/gitea-6c7ffdc8f5-575sf -c 2-configure-gitea
Wait for database to become avialable...
gitea-postgresql (172.17.220.120:5432) open
==== BEGIN GITEA MIGRATION ====
2022/02/07 19:24:37 ...s/setting/setting.go:543:SetCustomPathAndConf() [W] Using 'custom' directory as relative origin for configuration file: '/data/gitea/"/etc/gitea/app.ini"'
2022/02/07 19:24:37 ...s/setting/setting.go:543:SetCustomPathAndConf() [W] Using 'custom' directory as relative origin for configuration file: '/data/gitea/"/etc/gitea/app.ini"'
2022/02/07 19:24:37 ...s/setting/setting.go:583:loadFromConf() [F] Unable to find configuration file: "/data/gitea/\"/etc/gitea/app.ini\"".
        Ensure you are running in the correct environment or set the correct configuration file with -c.

@progmboy
Copy link

progmboy commented Feb 9, 2022

I think this is a bug of Gitea-1.16.0
looks like go-gitea/gitea#18524 fix this bug.
Just update gitea >=1.16.1 will resolve this.

@PrivatePuffin
Copy link
Member

Thanks for the memo, i'll push an extra round of container updates right away! :)

@Boostflow
Copy link
Author

I'm afraid with the latest update the issue still persists. I'm on 1.16.1_5.0.41
image

@PrivatePuffin
Copy link
Member

This. Sucks.

@stavros-k
Copy link
Member

Okay, this seems wrong Unable to find configuration file: "/data/gitea/\"/etc/gitea/app.ini\"".
Opened a PR, with couple of things and let CI test it. I have to go for now, will come back later to check how it did go.

@stavros-k
Copy link
Member

stavros-k commented Feb 10, 2022

Well The problem seems to be upstream on gitea.
I narrowed it down to this commit PR.
https://github.com/go-gitea/gitea/pull/18535/files
As the error seems to match
Unable to find configuration file: "/data/gitea/\"/data/gitea/conf/app.ini\"".

Also the date merged and the days we update our images matches also.

If you agree also, we can report it upstream

@stavros-k
Copy link
Member

stavros-k commented Feb 11, 2022

I was right! :) Now we wait the new image to be released ;)

go-gitea/gitea#18690

@PrivatePuffin
Copy link
Member

To be fair:
This is precisely one of the reasons I want stricter testing on the enterprise train :)

@Boostflow
Copy link
Author

I just deployed the latest update 1.16.1_5.0.44 which I see included version 1.16.1 Gitea. Reading here: https://github.com/go-gitea/gitea/releases/tag/v1.16.1 I assume to bug fix should have been shipped with this version (correct me if I'm wrong). However running this latest version on Truenas still poses an issue with running Gitea:
image
Is there something I'm missing here on anything I can do to add to the solution?

@stavros-k
Copy link
Member

This release is 15days ago, while fix is merged 12 days ago.. So..

@PrivatePuffin
Copy link
Member

PrivatePuffin commented Feb 22, 2022

@stavros-k No there is another fix that also needs to be merged which they did not release yet.

go-gitea/gitea#18699

@truecharts truecharts deleted a comment from jayeltwo Mar 7, 2022
@truecharts truecharts deleted a comment from soilheart Mar 7, 2022
@PrivatePuffin
Copy link
Member

Cleaned up the "When updateszzz"...
Use discord please people, unless you have code to report on.

@PrivatePuffin
Copy link
Member

@Boostflow There where some issues with 1.6.2 getting released, should be released within 24 hours

@PrivatePuffin
Copy link
Member

@all-contributors please add @Boostflow for bugs

@allcontributors
Copy link
Contributor

@Ornias1993

I've put up a pull request to add @Boostflow! 🎉

@truecharts-admin
Copy link
Collaborator

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

@truecharts truecharts locked and limited conversation to collaborators Feb 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants