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

Renovate CE never opening PRs #610

Open
KarstenSiemer opened this issue Nov 23, 2024 · 0 comments
Open

Renovate CE never opening PRs #610

KarstenSiemer opened this issue Nov 23, 2024 · 0 comments

Comments

@KarstenSiemer
Copy link

KarstenSiemer commented Nov 23, 2024

Hi! First of all, thanks for supplying a CE version of this amazing tool.
I am currently trying it out on a little dummy project I have where do some GitOps stuff just for the sake of it.
This helps me to evaluate projects in a sandboxed way, as I a looking into buying a premium project for my employer currently. Since that is all on-prem in private cloud, it will require a self-hosted version.
Anyways, I can't get the self-deployed version to open PRs on my dummy project.
It once opened the onboarding PR this one and thats it. I tried to debug all day but didn't get any further than installing the cloud github app, which worked perfectly from the get go, so it is nothing wrong with my repo. As it opened the onboarding PR, there should be nothing wrong with my app either. So it must be actual ce installation.
I restarted it quite often (no persistence), but it never got better.
It just prints the following:

DEBUG: Performing app sync at bulk mode (repository=KarstenSiemer/BMMI)
DEBUG: Performing app sync (repository=KarstenSiemer/BMMI)
 INFO: Post app sync statistics (repository=KarstenSiemer/BMMI)
       "organizationCount": 1,
       "repositoryCount": 2
DEBUG: App sync completed (repository=KarstenSiemer/BMMI)
DEBUG: Done processing task (repository=KarstenSiemer/BMMI)
DEBUG: Processing new task (repository=KarstenSiemer/BMMI)
       "task": {
         "id": "96ddbb5b-ae7f-5ba2-a3e1-8b6f82c7c01d",
         "reason": "scheduledAll",
         "priority": 10,
         "action": "enqueue-jobs",
         "addedAt": "2024-11-23 20:05:00",
         "repositories": [],
         "attempts": 1,
         "type": "internal"
       }

I'll attach the full debug log.
renovate.log

I can see that it has that one parsing error, which it logs, but as the cloud version still manages to succeed, i figure that thats probably not the problem.

I have used the CE license which was mentioned here
I installed it using terraform and the helm chart from this repo on a local KinD cluster (k8s v1.31.0), like so:

resource "random_password" "renovate_admin_api" {
  count   = local.install_tools_cluster ? 1 : 0
  length  = 8
  special = true
}

resource "helm_release" "renovate" {
  count = local.install_tools_cluster ? 1 : 0

  cleanup_on_fail   = false
  force_update      = false
  dependency_update = true
  lint              = true
  name              = "renovate"
  namespace         = "renovate"
  repository        = "https://mend.github.io/renovate-ce-ee"
  chart             = "mend-renovate-ce"
  version           = "8.7.0"
  timeout           = 900
  wait_for_jobs     = true
  create_namespace  = true

  lifecycle {
    ignore_changes = [metadata]
  }

  values = [
    yamlencode({
      renovate = {
        mendRnvAcceptTos           = "y"
        mendRnvPlatform            = "github"
        mendRnvEndpoint            = "https://api.github.com/"
        mendRnvCronJobSchedulerAll = "*/5 * * * *" # every 5 minutes
        mendRnvCronAppSync         = "*/5 * * * *" # every 5 minutes
        mendRnvAdminApiEnabled     = true
        mendRnvLogHistoryTTLDays   = "1"
        logLevel                   = "debug"
      }
    }),
    yamlencode({
      renovate = {
        config = <<-EOF
          module.exports = {
          }
        EOF
      }
    }),
    sensitive(yamlencode({
      renovate = {
        mendRnvLicenseKey      = var.renovatebot_license
        mendRnvGithubAppId     = tostring(var.github_app_id)
        mendRnvGithubAppKey    = var.github_app_private_key
        githubComToken         = var.github_password
        mendRnvServerApiSecret = random_password.renovate_admin_api[0].result
      }
    })),
    yamlencode({
      cachePersistence = {
        enabled      = false
        storageClass = "standard"
        size         = "10Gi"
      }
    }),
    yamlencode({
      ingress = {
        enabled          = true
        hosts            = ["renovate.${var.env}.${var.domain}"]
        ingressClassName = "nginx"
      }
    }),
    yamlencode({
      serviceAccount = {
        create = true
      }
    }),
    yamlencode({
      resources = {
        requests = {
          cpu    = "400m"
          memory = "1Gi"
        }
      }
    }),
    yamlencode({
      livenessProbe = {
        initialDelaySeconds = 90
        periodSeconds       = 20
        timeoutSeconds      = 3
      }
    })
  ]
}

The api return me this kind of data:

❯ renovate status                                                                                                                                                                                                        
{
  "bootTime": "2024-11-23 19:59:13",
  "endpoint": "https://api.github.com/",
  "platform": "github",
  "app": {
    "organizationCount": 1,
    "repositoryCount": 2
  },
  "jobs": {
    "history": {
      "lastDispatchDate": "2024-11-23 19:59:30",
      "lastEnqueueDate": "2024-11-23 19:59:16",
      "processed": 0
    },
    "queue": {
      "inProgress": [
        {
          "jobId": "14b643dc-8651-4f6c-b7e9-61ecfdbbe494",
          "reason": "repositories-added",
          "priority": 60,
          "addedAt": "2024-11-23 19:59:16",
          "startedAt": "2024-11-23 19:59:30",
          "lastAlive": "2024-11-23 20:10:01",
          "attempts": 1,
          "repository": "KarstenSiemer/BMMI",
          "organizationName": "KarstenSiemer",
          "repositorySelection": "selected",
          "installationId": 56719688
        }
      ],
      "size": 2
    }
  },
  "scheduler": {
    "allJobs": {
      "cron": "*/5 * * * *",
      "lastScheduling": "2024-11-23 20:10:00"
    },
    "sync": {
      "cron": "*/5 * * * *",
      "lastScheduling": "2024-11-23 20:10:00"
    }
  },
  "webhooks": {
    "lastValidWebhookReceived": ""
  },
  "renovateVersion": "38.142.4"
}
❯ renovate job
{
  "running": [
    {
      "jobId": "14b643dc-8651-4f6c-b7e9-61ecfdbbe494",
      "reason": "repositories-added",
      "priority": 60,
      "addedAt": "2024-11-23 19:59:16",
      "startedAt": "2024-11-23 19:59:30",
      "lastAlive": "2024-11-23 20:10:31",
      "attempts": 1,
      "repository": "KarstenSiemer/BMMI",
      "organizationName": "KarstenSiemer",
      "repositorySelection": "selected",
      "installationId": 56719688
    }
  ],
  "pending": [
    {
      "jobId": "a734307d-0c3f-44d5-a067-28a8b08931d5",
      "reason": "repositories-added",
      "priority": 60,
      "addedAt": "2024-11-23 19:59:16",
      "attempts": 0,
      "repository": "KarstenSiemer/kubernetes-alm-example",
      "organizationName": "KarstenSiemer",
      "repositorySelection": "selected",
      "installationId": 56719688
    }
  ]
}
❯ renovate sync 
{
  "message": "sync task successfully enqueued"
}

I think I most likely have made a stupid mistake and am somehow too blind.

Any help would be greatly appreciated.
Thanks in advance :-)

Edit: I have deactivated the cloud renovate and closed its latest PR, so if the self-hosted one starts working, it should open that one up again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant