statamic / cms

The core Laravel CMS Composer package
https://statamic.com
Other
4.09k stars 534 forks source link

Too many requests to statamic.com. Try again in xx seconds - happens after a few clicks in cp #11154

Open toxsick opened 18 hours ago

toxsick commented 18 hours ago

Bug description

Hey Guys,

in our production environment we are getting these messages all the time after a few clicks:

Monosnap Pages ‹ Collections ‹ Statamic 2024-11-21 23-43-27

What can we do about this. Kind of confusing for our customers.

Thanks a lot and regards, Hannes

How to reproduce

Click through 3 - 4 views in the cp.

Logs

No response

Environment

Environment
Application Name: Statamic
Laravel Version: 11.33.2
PHP Version: 8.3.8
Composer Version: 2.5.8
Environment: production
Debug Mode: OFF
URL: <live-domain>
Maintenance Mode: OFF
Timezone: UTC
Locale: en

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: null
Cache: file
Database: sqlite
Logs: stack / single
Mail: log
Queue: sync
Session: file

Statamic
Addons: 2
Sites: 1
Stache Watcher: Disabled
Static Caching: Disabled
Version: 5.38.1 PRO

Statamic Addons
eminos/statamic-tabs: 1.2.0
thoughtco/statamic-restrict-fields: 1.1.0

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

jasonvarga commented 14 hours ago

Are you using a load balancer? You will need to use a cache driver that can be shared across instances, like Redis.

toxsick commented 7 hours ago

Hey @jasonvarga, thanks for the info, but we are using not load balancer and a pretty simple setup on german hoster Mittwald.

Any suggestions what i could try? Should enable any of these help?

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED
duncanmcclean commented 7 hours ago

Are you sharing the same public IP address as other sites? Do you have a site key set in your .env?

toxsick commented 7 hours ago

Are you sharing the same public IP address as other sites?

Do you have a site key set in your .env?

But i think i understand where you are going. I am doing health checking on the instance (Login Page, API, Laravel Health Endpoint) every minute with Uptime Kuma. I guess this could trigger the requests to statamic.com?!

duncanmcclean commented 7 hours ago

Thanks for confirming!

Are you able to send in a support request with your server's IP address and we can take a closer look?

But i think i understand where you are going. I am doing health checking on the instance (Login Page, API, Laravel Health Endpoint) every minute with Uptime Kuma. I guess this could trigger the requests to statamic.com?!

No, requests will only be made to the Outpost (Statamic's license validation endpoint) when you're logged into the Control Panel.