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

Monitor sites showing inactive status #2020

Open
enact-on opened this issue Apr 1, 2025 · 5 comments
Open

Monitor sites showing inactive status #2020

enact-on opened this issue Apr 1, 2025 · 5 comments
Assignees

Comments

@enact-on
Copy link

enact-on commented Apr 1, 2025

Description

When adding sites to monitor through Checkmate, all sites (including reliable domains like google.com) show as inactive. Error logs show issues with the PageSpeed API integration.

Error Messages

Cannot read properties of undefined (reading 'lighthouseResult') (details: Error inserting check for monitor: 67d94dda5a7b96023c9137c4)

Environment

  • Deployment method: Coolify
  • PageSpeed API key: Added but encountering errors
  • Sites tested: Multiple sites including google.com

Steps to Reproduce

  1. Deploy Checkmate through Coolify
  2. Add PageSpeed API key to configuration
  3. Add site to monitor (e.g., google.com)
  4. Observe that site shows as inactive
  5. Check logs and find errors related to lighthouseResult

Additional Information

  • All attempted sites show as inactive
  • Error occurs consistently across different domains
  • PageSpeed API key has been verified as correctly formatted

Questions

  • Is there a known issue with the PageSpeed API integration?
  • Are there specific formatting requirements for URLs when adding sites?
  • Could this be related to network connectivity from the Coolify deployment?

Error Screenhsot:

@gorkem-bwl
Copy link
Contributor

First of all, many thanks for your detailed issue. Appreciate the time and effort you put into this.

That is because the Google Page Speed API blocks our calls, so you need to create your own PageSpeed API and then add it to the .env file, or use as an environment variable. This wasn't so previously, hence we'll add a warning in that screen. In fact let me add this issue for the next release, so people won't be surprised.

Please find more information here: https://docs.checkmate.so/users-guide/quickstart#env-vars-server

Let me know if that works!

@gorkem-bwl gorkem-bwl self-assigned this Apr 1, 2025
@nothingrandom
Copy link

Hey! Also have this same issue; I've already placed the PageSpeed API key I made into the environment variables.

2025-04-03T15:57:27.159656297Z 2025-04-03T15:57:27.158Z error: [StatusService](insertCheck) Cannot read properties of undefined (reading 'lighthouseResult') (details: Error inserting check for monitor: 67eeaf324602c3f9c175a0f3)
2025-04-03T15:58:02.811828845Z 2025-04-03T15:58:02.811Z error: [StatusService](insertCheck) Cannot read properties of undefined (reading 'lighthouseResult') (details: Error inserting check for monitor: 67eeb00a4602c3f9c175a125)
2025-04-03T16:00:27.111601812Z 2025-04-03T16:00:27.110Z error: [StatusService](insertCheck) Cannot read properties of undefined (reading 'lighthouseResult') (details: Error inserting check for monitor: 67eeaf324602c3f9c175a0f3)
2025-04-03T16:01:02.903038914Z 2025-04-03T16:01:02.902Z error: [StatusService](insertCheck) Cannot read properties of undefined (reading 'lighthouseResult') (details: Error inserting check for monitor: 67eeb00a4602c3f9c175a125)

I've got two checks here; and have waited for the first 3 minute check to see if it was just an initial setup issue.

The env variable has been setup the way described in the docs, and if in the termianl of the server instance I check by doing echo $PAGESPEED_API_KEY I get the key details I expect.

@ajhollid
Copy link
Collaborator

ajhollid commented Apr 3, 2025

Hi @nothingrandom ,

Could you please let us know how you are running the application? Are you using docker compose? Or local dev environment?

The pagespeed API key needs to be set in either the server directorie's .env file if you are running the local dev server or in the docker compose file if you are using docker compose.

@enact-on
Copy link
Author

enact-on commented Apr 4, 2025

Hello @gorkem-bwl @ajhollid

We have deployed through Coolify and we are running through docker and we have created and added the pagespeed key in .env file, but the issue persists

Please ref to the image attached

Image

Thanks

@gorkem-bwl
Copy link
Contributor

Hello @gorkem-bwl @ajhollid

We have deployed through Coolify and we are running through docker and we have created and added the pagespeed key in .env file, but the issue persists

Please ref to the image attached

Image

Thanks

Thanks for this. I believe other env variables work, is that right? Also CC'ing @ajhollid here.

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

5 participants