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

Page hangs when creating a agent pool on 0.2.0 & 0.2.1 #661

Closed
adamlc opened this issue Dec 7, 2023 · 3 comments · Fixed by #701
Closed

Page hangs when creating a agent pool on 0.2.0 & 0.2.1 #661

adamlc opened this issue Dec 7, 2023 · 3 comments · Fixed by #701

Comments

@adamlc
Copy link

adamlc commented Dec 7, 2023

When trying to create an agent pool the page hangs.

The pool appears to be created successfully within the database, but the configuration page for the pool simply hangs and never loads. The browser eventually gives up after a few mins and I've tried different browsers.

I have checked logs and unfortunately there doesn't appear to be anything useful there. I have also checked the Postgres DB, the sessions all appear to be idle and theres no locks.

I appreciate this is all a bit vague. If theres any more debugging I can do to help please let me know.

@leg100
Copy link
Owner

leg100 commented Dec 12, 2023

Here's a few things you could try:

  • Turn logging up with -v9
  • Log http requests with --log-http-requests
  • Create a brand new deployment, new database, log in with site admin and create an org and agent pool and see if error still occurs.
  • Use your browser's dev tools to check any hanging http connections
  • Try different versions of postgres

And you could avoid the UI altogether and use the API or the tfe provider.

@adamlc
Copy link
Author

adamlc commented Dec 14, 2023

Unfortunately nothing useful from the logs.

2023/12/14 14:32:17 DEBUG-8 retrieved user username="Adam Curtis" subject=auth
2023/12/14 14:32:17 DEBUG-8 listed agent pools subject="Adam Curtis" count=1
2023/12/14 14:32:17 INFO request duration=4ms status=200 method=GET path=/app/organizations/redacted/agent-pools?
2023/12/14 14:32:17 INFO request duration=0ms status=200 method=GET path=/static/js/main.2b9e9ffdb370cb4f994fa785a4d38c3b3ca00bc078a52f32fc1d22f7144ce48d.js?
2023/12/14 14:32:17 INFO request duration=0ms status=200 method=GET path=/static/js/htmx.1.9.2.min.5ce2eabe7662c84c78e845bdbda25305469a5a0f0219555f5c9915b149896e92.js?
2023/12/14 14:32:17 INFO request duration=0ms status=200 method=GET path=/static/images/hamburger.f7a73f48647489c91c1bea5cdf216dbb1c29e1336a30e9584492f481cbd0da3e.svg?
2023/12/14 14:32:17 INFO request duration=0ms status=200 method=GET path=/static/images/cross.2fa122b4b1b3155a0f172a755d09695404627adf6462e68e924a78ddf1c0cf04.svg?
2023/12/14 14:32:17 INFO request duration=0ms status=200 method=GET path=/static/js/htmx-sse.1.9.2.e190d0970e6596f470a7ff972137585e52389a06966eaf5fa218cf36bd420516.js?
2023/12/14 14:32:17 INFO request duration=0ms status=200 method=GET path=/static/css/output.a656a3bc44f9d7dc697634232e68328a4cf764c36322576b1a39b05b5c3d93cf.css?
2023/12/14 14:32:17 INFO request duration=0ms status=200 method=GET path=/static/images/logo.f08bbd632d49c59b379f3a5a4aa7cb97b72ddff847e367f1fe02a7f44f48b6ca.svg?
2023/12/14 14:32:17 INFO request duration=0ms status=200 method=GET path=/static/images/clipboard_copy.b1d47fb62bc596fa156f687569dfabb355b3e798968ae3a953f3668a08490d86.svg?
2023/12/14 14:32:17 INFO request duration=0ms status=200 method=GET path=/static/js/alpine.3.12.1.min.5401f62a90216b82d63f5abf1938f73834607a1b235d44ba85e7967537097ebe.js?
2023/12/14 14:32:17 INFO request duration=0ms status=200 method=GET path=/static/images/icon.bbf7204b9e6c1c6c4abd11124e74614c04d773d1102f79672430343685048c1b.svg?
2023/12/14 14:32:19 DEBUG-8 retrieved user username="Adam Curtis" subject=auth
2023/12/14 14:32:19 DEBUG-8 retrieved agent pool subject="Adam Curtis" organization=redacted
2023/12/14 14:32:21 DEBUG-8 received agent ping agent_id=agent-Dtmsb1sombRZjXGY
2023/12/14 14:32:31 DEBUG-8 received agent ping agent_id=agent-Dtmsb1sombRZjXGY
2023/12/14 14:32:41 DEBUG-8 received agent ping agent_id=agent-Dtmsb1sombRZjXGY
2023/12/14 14:32:51 DEBUG-8 received agent ping agent_id=agent-Dtmsb1sombRZjXGY
2023/12/14 14:33:01 DEBUG-8 received agent ping agent_id=agent-Dtmsb1sombRZjXGY
2023/12/14 14:33:09 INFO request duration=49819ms status=500 method=GET path=/app/agent-pools/apool-CTJKqxncar7WDjvB?
2023/12/14 14:33:11 DEBUG-8 received agent ping agent_id=agent-Dtmsb1sombRZjXGY

The network tools just show /app/agent-pools/apool-CTJKqxncar7WDjvB? loading until I eventually cancel the request.

I haven't had time to setup a new deployment or different postgres version yet. But if it helps I'm using version 15.

@leg100
Copy link
Owner

leg100 commented Dec 26, 2023

Archiving repo.

@leg100 leg100 closed this as completed Dec 26, 2023
leg100 added a commit that referenced this issue Oct 30, 2024
leg100 pushed a commit that referenced this issue Oct 30, 2024
🤖 I have created a release *beep* *boop*
---


## [0.3.5](v0.3.4...v0.3.5)
(2024-10-30)


### Bug Fixes

* **ui:** unresponsive agent pool page
([#701](#701))
([c0853f5](c0853f5)),
closes [#698](#698)
[#661](#661)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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

Successfully merging a pull request may close this issue.

2 participants