mohankumarpaluru / oracle-freetier-instance-creation

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

When the script runs, it says it's succesfull.. the launch instance log, does stay empty #19

Closed Red-Banana-Official closed 3 months ago

Red-Banana-Official commented 3 months ago

When the script runs, it says it's succesfull.. the launch instance log, does stay empty though... when using ls, i see a file named: ERROR_IN_CONFIG.log

The only error there is: No option 'user' in section: 'DEFAULT'

But i am not quite sure where i would look to fix that? probably overlooking it..

Can someone help me out?

Red-Banana-Official commented 3 months ago

Corrected: That issue seems fixed, i made a typo in the config path.... no error files showing, but the launch instance log stays empty.

Doing .venv, and running python3 main.py it outputs the following issue:

Traceback (most recent call last): File "/home/ubuntu/oracle-freetier-instance-creation/main.py", line 66, in config = oci.config.from_file(oci_config_path) File "/home/ubuntu/oracle-freetier-instance-creation/.venv/lib/python3.10/site-packages/oci/config.py", line 120, in from_file invalid_key_file_path_checker(config, expanded_file_location, profile_name) File "/home/ubuntu/oracle-freetier-instance-creation/.venv/lib/python3.10/site-packages/oci/config.py", line 224, in invalid_key_file_path_checker raise InvalidKeyFilePath(message) oci.exceptions.InvalidKeyFilePath: Config file /home/ubuntu/oracle-freetier-instance-creation/oci_config is invalid: the key_file's value '/home/ubuntu/oracle-freetier-instance-creation/oci_api_private_key.pem # TODO' at line 6 must be a valid file path. For more info about config file and how to get required information, see https://docs.oracle.com/en-us/iaas/Content/API/Concepts/sdkconfig.htm

But it is a valid path? i removed # TODO from the line, and rerun, same issue.