hitrov / oci-arm-host-capacity

This script allows to bypass Oracle Cloud Infrastructure 'Out of host capacity' error immediately when additional OCI capacity will appear in your Home Region / Availability domain.
MIT License
989 stars 497 forks source link

Script stops after 3rd request? #119

Closed Karelak closed 8 months ago

Karelak commented 9 months ago

[Karelka@DESKTOP-FMDRDA7 oci-arm-host-capacity]$ php index.php { "code": "InternalError", "message": "Out of host capacity." } { "code": "InternalError", "message": "Out of host capacity." } { "code": "NotAuthorizedOrNotFound", "message": "shape VM.Standard.A1.Flex not found" }

I will send any files if need be

hitrov commented 9 months ago

Scrips exist after trying all availability domains within your region. Setup cron (periodic run) every 5 minutes or so

Karelak commented 9 months ago

Thanks, I think I figured out the other problem with it as well. Seems like AD3 does not actually have a1.flex, only ad1 and ad2

prono69 commented 9 months ago

Hey @Karelak just asking, you got the vps or this script is still running?

Karelak commented 9 months ago

Hey @Karelak just asking, you got the vps or this script is still running?

Yeah it is still running on a vps. I just made a from job to run it. Really hasn't worked as well it's been a month and I just keep getting out of host capacity

Karelak commented 8 months ago

OK so i got the server after about 1.5 months. I lost ssh keys lol so i found this video in case someone also has the same problem. Very easy with it: https://youtu.be/rQlKDMnGynk?si=nXCUJs1cJn4oGvnF Also another useful thing you can do is make it so you can use all the space available and this video shows how to do that: https://youtu.be/xO_eef6DbnA?si=-tma6lW4wsGUNBAA

prono69 commented 7 months ago

@Karelak is 5 minutes interval is safe ? Or should I use 10 or 15 minutes interval? How much time interval you used ?

guhanmathi commented 6 months ago

@Karelak, Thank you, I fetched the availability domain from the chrome developer tool inspect instance and then used the following in the index.php to avoid similar errors

getenv('OCI_AVAILABILITY_DOMAIN') ?: ["JKjj:UK-LONDON-1-AD-3","JKjj:UK-LONDON-1-AD-1"] ,