Server error: `POST https://api.cloudflare.com/client/v4/accounts/dcdd1aa52d8172728a5085d084214ab8/r2/buckets/data/custom_domains` resulted in a `500 Internal Server Error` response: {"success":false,"errors":[{"code":10001,"message":"We encountered an internal error. Please try again."}],"messages":[] (truncated...)
Yup, seems to be a temporary error. Nothing on the status page. I'll just manually create the record.FWIW, I went and tried it (creating an R2 bucket, assigning domain and all that) from within the addon and it's working as expected for me. So maybe whatever issue was going on with Cloudflare has since resolved itself?
Ya... like I said, not really much we can do about 5xx errors beyond what we are already doing (if a 5xx error happens, the addon will automatically retry the request). Usually that's enough to "fix" whatever it is since it's something on Cloudflare's side and a second try will usually work. So in your case the 2nd try also failed with a 5xx so it logged the error. Beyond that, not much we can do since it's Cloudflare's side (can't realistically just loop and try over and over and over until it finally works... not sure Cloudlfare would appreciate 10,000 API calls happening per second if they are actually having an issue).Yup, seems to be a temporary error. Nothing on the status page. I'll just manually create the record.
9654/26834 [==========>-----------------] 35% 50 mins 485.3 KB/s
10458/26834 [==========>-----------------] 38% 1 hr 419.7 KB/s
70/26834 [>---------------------------] 0% 1 min 110.8 KB/s
--processes
option?Have you tried the--processes
option?
Is it possible that your server doesn’t have enough available resources? Disk read speed, CPU cycles or just bandwidth available?
500KB/sec seems incredibly slow. When I ran my first test of the CLI migration tool it ran at 9.1MB/sec:
https://xenforo.com/community/threads/digitalpoint-app-for-cloudflare-r.206176/post-1616106
It’s never going to be insanely fast (there’s more to it than just pushing bytes around), but that’s still about 20x faster than what you are seeing.
22:19:38 up 863 days, 11:19, 3 users, load average: 2.57, 1.97, 1.67
avg-cpu: %user %nice %system %iowait %steal %idle
6.86 0.00 1.56 1.19 0.04 90.35
Device: tps kB_read/s kB_wrtn/s kB_read kB_wrtn
sda 155.53 2334.83 543.45 174187669533 40543325800
sdd 1.69 202.26 97.48 15089514045 7272284952
sdb 0.05 0.09 0.23 6449572 17104008
971: Please wait and consider throttling your request speed
ErrorException: [E_WARNING] Trying to access array offset on value of type bool in src/addons/DigitalPoint/Cloudflare/Repository/Cloudflare.php at line 1081
[LIST=1]
[*]XF::handlePhpError() in src/addons/DigitalPoint/Cloudflare/Repository/Cloudflare.php at line 1081
[*]DigitalPoint\Cloudflare\Repository\CloudflareAbstract->getZoneSettings() in src/addons/DigitalPoint/Cloudflare/Repository/Cloudflare.php at line 787
[*]DigitalPoint\Cloudflare\Repository\CloudflareAbstract->organizeSettings() in src/addons/DigitalPoint/Cloudflare/Admin/Controller/Cloudflare.php at line 49
[*]DigitalPoint\Cloudflare\Admin\Controller\Cloudflare->actionIndex() in src/XF/Mvc/Dispatcher.php at line 352
[*]XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 258
[*]XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 115
[*]XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 57
[*]XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2485
[*]XF\App->run() in src/XF.php at line 524
[*]XF::runApp() in admin.php at line 13
[/LIST]
That's an API rate limit (for general API stuff, not R2). Cloudflare allows 1200 API requests per rolling 5 minute period. Normally that's going to be plenty, but if you are reloading the settings page over and over very quickly, you could get it I guess (there's 13 API requests made to read all the settings), so viewing the settings (as well as changing settings) takes 13 per instance. So if you make around 80 Cloudflare settings changes in a short period of time (5 minutes), you will need to wait a bit.Since getting this going, I get this when browsing the Cloudflare settings in the AdminCP...
Code:971: Please wait and consider throttling your request speed
And this if I try to go to the CF Settings page in the Admin CP
Code:ErrorException: [E_WARNING] Trying to access array offset on value of type bool in src/addons/DigitalPoint/Cloudflare/Repository/Cloudflare.php at line 1081 [LIST=1] [*]XF::handlePhpError() in src/addons/DigitalPoint/Cloudflare/Repository/Cloudflare.php at line 1081 [*]DigitalPoint\Cloudflare\Repository\CloudflareAbstract->getZoneSettings() in src/addons/DigitalPoint/Cloudflare/Repository/Cloudflare.php at line 787 [*]DigitalPoint\Cloudflare\Repository\CloudflareAbstract->organizeSettings() in src/addons/DigitalPoint/Cloudflare/Admin/Controller/Cloudflare.php at line 49 [*]DigitalPoint\Cloudflare\Admin\Controller\Cloudflare->actionIndex() in src/XF/Mvc/Dispatcher.php at line 352 [*]XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 258 [*]XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 115 [*]XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 57 [*]XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2485 [*]XF\App->run() in src/XF.php at line 524 [*]XF::runApp() in admin.php at line 13 [/LIST]
Edit: I'm running the migrator again this time on the data directory. I see it won't follow symlinksThat's a real bummer LOL. I've got so much of this data symlinked to block storage or other drives.
Does it work as expected if you disable R2? The only thing being used underneath it all is XenForo's abstracted filesystem, so if something isn't landing in R2, I'd suspect XenForo is rejecting it for whatever reason and not trying to send it. Maybe an invalid image or something? Either way, check with R2 disabled... if it's not working with R2 disabled, it's definitely not going to work with it enabled.After updating today, I noticed XFMG thumbnails are not working, and not being uploaded the R2, Image link is:
Code:data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
That's an API rate limit (for general API stuff, not R2). Cloudflare allows 1200 API requests per rolling 5 minute period. Normally that's going to be plenty, but if you are reloading the settings page over and over very quickly, you could get it I guess (there's 13 API requests made to read all the settings), so viewing the settings (as well as changing settings) takes 13 per instance. So if you make around 80 Cloudflare settings changes in a short period of time (5 minutes), you will need to wait a bit.
It should follow symlinks... all it's doing to read is using XenForo's abstracted filesystem, so if XenForo can read them (however they are setup... symlinks or otherwise), it should work.
In NotSupportedException.php line 21:
Links are not supported, encountered link at /home/nginx/domains/XXX.net/public/data/ph
otos
The error is coming from Flysystem (the abstracted filesystem that XenForo uses). Can't tell tell much else without the full error backtrace though.It gave me this error when there were symlinks... when I moved them it worked fine.
Code:In NotSupportedException.php line 21: Links are not supported, encountered link at /home/nginx/domains/XXX.net/public/data/ph otos
Yes, it's a rate limit per account (which will include calls made with API tokens for the account as well as normal Cloudflare dashboard usage). It does not include R2 API calls (it's primarily reading/writing settings, purging cache, etc.)Is their API rate limit per "account" -- as we have quite a few Cloudflare sites under this one account. Probably about 25... and most of them have your plugin on it which also displays the stats in the Admin CP. We don't access the Admin CP on all the sites often or anything like that but there are definitely lots of sites on this Cloudflare account.
Edit: I'm also assuming that uploading a lot of these files while doing a migration eats up API calls?
Purge cache when post is created or deleted
option. The only thing it will affect is guests (non-registered users) and how fast they would see new posts. Probably not going to matter much at the end of the day since you are only talking about guest users anyway.We use essential cookies to make this site work, and optional cookies to enhance your experience.