question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Backstage kubernetes app stop refreshing the catalog and components from the DB

See original GitHub issue

I have created the Backstage App using the create-app, added a few plugins and github authentication. Then created the docker image and the kuberntes deployments. The kubernetes deployment starts successfully, I’m able to browse the Backstage App, the template catalog and the components created.

After a few hours the Backstage App stops trying to refresh the catalog and the components. I’m able to browse the existing catalog and components up to the last refresh. I’m also able to create new components and they get created on the DB, but they are not listed on the portal.

Expected Behavior

Backstage continues to refresh the catalog from the DB

Current Behavior

After a few hours the Backstage App stops trying to refresh from the catalog and the compornenets from DB.

Possible Solution

A workaround could be to restart the deployment after 2hs.

Steps to Reproduce

I followed the default instructions:

Create App

Plugins

Docker/Kubernetes

As suggested I’m using the postgres container.

Context

This is the backstage log in debug mode.

2021-07-15T01:10:42.908Z backstage info Loaded config from app-config.yaml
2021-07-15T01:10:42.918Z backstage info Created UrlReader predicateMux{readers=azure{host=dev.azure.com,authed=false},bitbucket{host=bitbucket.org,authed=false},github{host=github.dxc.com,authed=true},github{h
ost=github.com,authed=false},gitlab{host=gitlab.com,authed=false},fetch{}
2021-07-15T01:10:43.386Z auth info Configuring provider, github type=plugin
2021-07-15T01:10:43.403Z techdocs info Creating Local publisher for TechDocs type=plugin
2021-07-15T01:10:43.408Z search info Added DefaultCatalogCollator collator for type software-catalog type=plugin
2021-07-15T01:10:43.417Z app info Serving static app content from /app/packages/app/dist type=plugin
2021-07-15T01:10:43.736Z app info Injecting env config into module-backstage.aa336aff.js type=plugin
2021-07-15T01:10:43.749Z backstage info Initializing http server
2021-07-15T01:10:43.752Z backstage info Listening on :32700
2021-07-15T01:10:44.618Z catalog debug Skipped stitching of template:default/automation-template-v2, no changes type=plugin
2021-07-15T01:10:44.630Z catalog debug Skipped stitching of template:default/runbook_base, no changes type=plugin
2021-07-15T01:10:44.637Z catalog debug Skipped stitching of template:default/contact_information, no changes type=plugin
2021-07-15T01:10:44.646Z catalog debug Skipped stitching of template:default/infrastructure_environment, no changes type=plugin
2021-07-15T01:10:44.650Z catalog debug Skipped stitching of template:default/system_monitoring, no changes type=plugin
2021-07-15T01:10:44.653Z catalog debug Skipped stitching of template:default/application_installation_procedures, no changes type=plugin
2021-07-15T01:10:44.677Z catalog debug Skipped stitching of template:default/disaster-recovery, no changes type=plugin
2021-07-15T01:10:44.704Z catalog debug Skipped stitching of template:default/runbook-template-v2, no changes type=plugin
2021-07-15T01:10:46.410Z search info Starting all scheduled search tasks. type=plugin
2021-07-15T01:10:46.412Z search debug Collating documents for software-catalog via DefaultCatalogCollator type=plugin
.
.
.
2021-07-15T07:40:51.066Z search debug Collating documents for software-catalog via DefaultCatalogCollator type=plugin
2021-07-15T07:40:51.129Z backstage info ::ffff:127.0.0.1 - - [15/Jul/2021:07:40:51 +0000] "GET /api/catalog/entities HTTP/1.1" 200 - "-" "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)" type=in
comingRequest

2021-07-15T07:43:57.908Z catalog debug Skipped stitching of component:default/testbase, no changes type=plugin
2021-07-15T07:43:57.921Z catalog debug Skipped stitching of template:default/automation-template-v2, no changes type=plugin
2021-07-15T07:43:57.952Z catalog debug Skipped stitching of template:default/system_monitoring, no changes type=plugin
2021-07-15T07:43:57.966Z catalog debug Skipped stitching of template:default/contact_information, no changes type=plugin
2021-07-15T07:43:58.158Z catalog debug Skipped stitching of location:default/generated-a46dbbea0cbe03cc548edd58c37e953737a2d1f6, no changes type=plugin
2021-07-15T07:44:05.961Z catalog debug Skipped stitching of template:default/runbook_base, no changes type=plugin
2021-07-15T07:44:05.964Z catalog debug Skipped stitching of template:default/disaster-recovery, no changes type=plugin
2021-07-15T07:44:05.972Z catalog debug Skipped stitching of template:default/application_installation_procedures, no changes type=plugin
2021-07-15T07:44:05.981Z catalog debug Skipped stitching of template:default/runbook-template-v2, no changes type=plugin
2021-07-15T07:44:09.273Z catalog debug Skipped stitching of location:default/generated-1ed150fa2b6e9ffedd9f55ab9dabd58fa5e15b21, no changes type=plugin
2021-07-15T07:44:09.911Z catalog debug Skipped stitching of template:default/infrastructure_environment, no changes type=plugin

This is the last try to refresh from the DB Then, the log only shows this:

2021-07-15T07:50:51.171Z search debug Collating documents for software-catalog via DefaultCatalogCollator type=plugin
2021-07-15T07:50:51.248Z backstage info ::ffff:127.0.0.1 - - [15/Jul/2021:07:50:51 +0000] "GET /api/catalog/entities HTTP/1.1" 200 - "-" "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)" type=in
comingRequest

Your Environment

NodeJS Version (v12): v14.15.3 Operating System and Version (e.g. Ubuntu 14.04): Linux backstage-dev 5.4.0-1034-azure backend: added generic dockerfile + docker-compose #35~18.04.1-Ubuntu SMP Thu Dec 10 09:13:52 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux Browser Information: Firefox 85.0 (64-bit) Kubernetes 18

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
tarascommented, Aug 19, 2021

@nattymachado and I are seeing the same issue with our deployment. We’ll start looking at this now.

1reaction
biancodacommented, Jul 17, 2021

So, like we discussed, I recreated the docker image with sql instead of postgres DB and I left it running all night. The container started around 2021-07-16T20:05:30.154Z and the last DB refresh was around 2021-07-17T04:55:38.665Z There are no errors on the logs, it just stopped refreshing :S and there were no memory/CPU/storage issues.

Read more comments on GitHub >

github_iconTop Results From Across the Web

External integrations · Backstage Software Catalog and ...
The catalog periodically refreshes entities in the catalog, and in doing so it calls out to external systems to fetch changes. This can...
Read more >
View runtime resources on authorization-enabled clusters
To visualize runtime resources on authorization-enabled clusters in Tanzu Application Platform GUI, proceed to the software catalog component of choice and ...
Read more >
TGI Kubernetes 155: Backstage - YouTube
00:00:00 - Welcome to TGIK!- 00:03:20 - Week in Review- 00:20:17 - Starting with backstage - 00:30:41 - Getting node env set up-...
Read more >
Use Workload Identity | Google Kubernetes Engine (GKE)
Disable Workload Identity on each node pool: gcloud container node-pools update. NODEPOOL_NAME \ --cluster= CLUSTER_NAME \ --workload-metadata=GCE_METADATA.
Read more >
Provisioning infrastructure using the AWS Proton open-source ...
For example, app developers can create Backstage components that will be registered in the Backstage software catalog through the plugin, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found