mohankumarpaluru / oracle-freetier-instance-creation

A script to create free instance
MIT License
177 stars 34 forks source link

Script error with service limit reached but it is not. #22

Open 0xN0BADC0FF33 opened 5 months ago

0xN0BADC0FF33 commented 5 months ago

Describe the bug Appears after some time, but the service limits are fine.

2024-06-13 20:17:29,733 - INFO - Encoundered LimitExceeded Error checking if instance is createdcode :LimitExceeded, message: The following service limits were exceeded: standard-a1-memory-regional-count, standard-a1-core-regional-count. Request a service limit increase from the service limits page in the console. , status: 400

Expected behavior Creating an instance

Instance Type (please complete the following information):

Environment (please complete the following information):

Screenshots Screenshot_14-Jun_18-20-19_27938

Found it but its enough available

Screenshot_14-Jun_18-24-22_20767

Additional context I don't get it why the error speaks about regional and in the service limits it's not findable?

mohankumarpaluru commented 5 months ago

Hey @mxwmnn , This appears to be a false positive case from the Oracle side, which has already been addressed in the latest code, as far as I'm aware.

Could you please check if your log is showing a messages "Didn't find an instance, proceeding with retries" and if the process is continuing after this error, or if it's exiting with any message like ".... exiting the program"?

If the process is continuing after you see this error, then this is the expected behavior. However, if you're only getting this error and nothing else, I don't have a specific fix for your issue. You could try creating a new API key, but I'm not sure if that will resolve the problem.

boris9981 commented 5 months ago

I am having the same issue but I am attempting to set up a server for Oracle Linux 8 on the London server. UNHANDLED_ERROR.log appeared which just stated what mxwmnn posted at the top and the script stopped running until I reran the script. image

josefredohd commented 5 months ago

@mohankumarpaluru Same problem, after that it sends me an email with the following message: _The script encountered an unhandled error and exited unexpectedly. Please re-run the script by executing './setupinit.sh rerun'. And raise a issue on GitHub if its not already existing: https://github.com/mohankumarpaluru/oracle-freetier-instance-creation/issues And include the following error message to help us investigate and resolve the problem: status: 400 code: LimitExceeded message: The following service limits were exceeded: standard-a1-memory-regional-count, standard-a1-core-regional-count. Request a service limit increase from the service limits page in the console. image

josefredohd commented 5 months ago

@mohankumarpaluru The same error came up again, and when I checked the limits on my account, it says I exceeded the limit, but the instance was not created:

image

And then it restarted again: image

mohankumarpaluru commented 5 months ago

this is new, thanks @josefredohd. can you explain what do you mean by restarted.I mean what reset the limits again for you ?

josefredohd commented 5 months ago

@mohankumarpaluru I meant that I restarted the page

mohankumarpaluru commented 5 months ago

Got it, so refreshing the page resolves the issue, displaying the correct limits. This raises concerns about whether Oracle is intentionally implementing this to counter scripts or if their APIs are inherently lousy.

Anyways implementing a solution might be more tricky. I'll let you know once I implement a wait and re-try for this issue

Georgicaz commented 3 months ago

The same thing happened to me, but with all this the script continued, I have a chance to obtain a ampere instance?

mohankumarpaluru commented 2 months ago

@Georgicaz , if the script is running then yeah and also the location plays a major part