mohankumarpaluru / oracle-freetier-instance-creation

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

Couldn't find any logs waiting 60 secs before checking again #27

Closed a-w-1806 closed 5 months ago

a-w-1806 commented 5 months ago

Describe the bug When running ./setup_init.sh rerun I immediately get Couldn't find any logs waiting 60 secs before checking again and after like a minute I get Unhandled Exception Occurred.. I don't get any local log file either.

Expected behavior It should either successfully run, or leave some error log.

Instance Type (please complete the following information):

Environment (please complete the following information):

Screenshots If applicable, add screenshots to help explain your problem.

Additional context And sending email does not work either.

a-w-1806 commented 5 months ago

Running

source .venv/bin/activate
python3 main.py

gives me:

Traceback (most recent call last):
  File "/home/ubuntu/oracle-freetier-instance-creation/main.py", line 57, in <module>
    raise ValueError("oci.env has spaces in values which is not acceptable")
ValueError: oci.env has spaces in values which is not acceptable
a-w-1806 commented 5 months ago

I just restore the oci_env as it is in the repo but still the same error.

a-w-1806 commented 5 months ago

https://github.com/mohankumarpaluru/oracle-freetier-instance-creation/blob/f94e634b4783670ff570f8ff4b7c0ff0ac89611f/main.py#L47

Do you mean " " rather than ""?

mohankumarpaluru commented 5 months ago

Damn you are right, thanks for catching it. Did you test it ?

a-w-1806 commented 5 months ago

Yes I did. It is working for me now.

mohankumarpaluru commented 5 months ago

Thanks again.Since I have already obtained the instance, testing the script has become challenging, I should plan to write some unit test cases for script's functionality soon.