mohankumarpaluru / oracle-freetier-instance-creation

A script to create free instance
MIT License
150 stars 28 forks source link

After the sript runs for a few hours I get a INFO - LimitExceeded , exiting the program #17

Closed Mrsalai closed 3 months ago

Mrsalai commented 3 months ago

After the sript runs for a few hours I get a INFO - LimitExceeded , exiting the program in the launch instance.log.

mohankumarpaluru commented 3 months ago

@Mrsalai LimitExceeded supposed to be occur when we already reached our free tier limit. Incase you didnt get the instance but still its quitting with this error then Oracle probably did some changes to the API response.

can you please add the below statements after line 430 in Main file and re-run the setup ?

                logging_step5.info("Message: %s ", srv_err.message,)
                logging_step5.info("status: %s ", srv_err.status)

When the script stops again , please provide the new logs here.

If the message says - " The following service limits were exceeded: standard-a1-memory-count, standard-a1-memory-regional-count, standard-a1-core-count, standard-a1-core-regional-count. Request a service limit increase from the service limits page in the console." then its oracle side issue and there is nothing we can do but if its a different message we can add it to exceptions.

Mrsalai commented 3 months ago

Its: 400 code: LimitExceeded message: The following service limits were exceeded: standard-a1-memory-count, standard-a1-memory-regional-count, standard-a1-core-count, standard-a1-core-regional-count. Request a service limit increase from the service limits page in the console.

mohankumarpaluru commented 3 months ago

Check your console if you have an ARM instance and also check if there is a INSTANCE _CREATED file in your project directory

Mrsalai commented 3 months ago

It did not create an instance

mohankumarpaluru commented 3 months ago

then it's probably issue with Oracle , Nothing we can do with the script

TheFlash787 commented 3 months ago

@Mrsalai Do you already have any instance in your Oracle? I wanted to make another instance, but hit this error. The script hard-codes 4cores and 24gb, so if you have a small instance already, it won't fit -- the script can be edited though.

Mrsalai commented 3 months ago

Nope, I have 0 instances, But I did google it and found this stackoverflow post: https://stackoverflow.com/questions/72439600/oci-a1-flex-free-tier-limit-exceeded/72439791#72439791

mohankumarpaluru commented 3 months ago

Nope, I have 0 instances, But I did google it and found this stackoverflow post: https://stackoverflow.com/questions/72439600/oci-a1-flex-free-tier-limit-exceeded/72439791#72439791

okay I'm hoping that checking the list of instances when we get limit exceeded error and only exiting if there is an instance would solve this issue but if there is some error at listing instances as well , then there is nothing we could do

Mrsalai commented 3 months ago

Sounds good, please update us with your progress :)

mohankumarpaluru commented 3 months ago

@Mrsalai try the code from LimitExceeded-false-positive-fix branch , it should fix the issue but I haven't tested it yet.

Mrsalai commented 3 months ago

Hey, sorry for the late reply, I just wanted to make sure it is working. No issues so far. Thanks