Unable to open credentials / config file
To Whom this may concern:
I am extremely new to C++. I am able to get the s3 example up and running. I am able to compile and zip everything as long as I have "BUILD_SHARED_LIBS" set to "OFF".
The issue arises when I add a custom library and header file, I keep getting the following error. I am not sure if I am including the header file incorrectly, building the library (.so) file incorrectly or what is happening.
Any pointers would be huge. Thanks!
-20 02:38:12.715 FileSystemUtils [140315066702144] Home dir not stored in environment, trying to fetch manually from the OS.
[INFO] 2021-01-20 02:38:12.715 FileSystemUtils [140315066702144] Pulled /home/sbx_user1051 as home directory from the OS.
[DEBUG] 2021-01-20 02:38:12.715 FileSystemUtils [140315066702144] Home directory is missing the final / appending one to normalize
[DEBUG] 2021-01-20 02:38:12.715 FileSystemUtils [140315066702144] Final Home Directory is /home/sbx_user1051/
[INFO] 2021-01-20 02:38:12.715 Aws::Config::AWSConfigFileProfileConfigLoader [140315066702144] Initializing config loader against fileName /home/sbx_user1051/.aws/credentials and using profilePrefix = 0
[TRACE] 2021-01-20 02:38:12.715 FileSystemUtils [140315066702144] Checking HOME for the home directory.
[DEBUG] 2021-01-20 02:38:12.715 FileSystemUtils [140315066702144] Environment value for variable HOME is
[WARN] 2021-01-20 02:38:12.715 FileSystemUtils [140315066702144] Home dir not stored in environment, trying to fetch manually from the OS.
[INFO] 2021-01-20 02:38:12.715 FileSystemUtils [140315066702144] Pulled /home/sbx_user1051 as home directory from the OS.
[DEBUG] 2021-01-20 02:38:12.715 FileSystemUtils [140315066702144] Home directory is missing the final / appending one to normalize
[DEBUG] 2021-01-20 02:38:12.715 FileSystemUtils [140315066702144] Final Home Directory is /home/sbx_user1051/
[INFO] 2021-01-20 02:38:12.715 Aws::Config::AWSConfigFileProfileConfigLoader [140315066702144] Initializing config loader against fileName /home/sbx_user1051/.aws/config and using profilePrefix = 1
[TRACE] 2021-01-20 02:38:12.715 FileSystemUtils [140315066702144] Checking HOME for the home directory.
[DEBUG] 2021-01-20 02:38:12.715 FileSystemUtils [140315066702144] Environment value for variable HOME is
[WARN] 2021-01-20 02:38:12.715 FileSystemUtils [140315066702144] Home dir not stored in environment, trying to fetch manually from the OS.
[INFO] 2021-01-20 02:38:12.715 FileSystemUtils [140315066702144] Pulled /home/sbx_user1051 as home directory from the OS.
[DEBUG] 2021-01-20 02:38:12.715 FileSystemUtils [140315066702144] Home directory is missing the final / appending one to normalize
[DEBUG] 2021-01-20 02:38:12.715 FileSystemUtils [140315066702144] Final Home Directory is /home/sbx_user1051/
[INFO] 2021-01-20 02:38:12.715 Aws::Config::AWSConfigFileProfileConfigLoader [140315066702144] Unable to open config file /home/sbx_user1051/.aws/credentials for reading.
[INFO] 2021-01-20 02:38:12.715 Aws::Config::AWSProfileConfigLoader [140315066702144] Failed to reload configuration.
[TRACE] 2021-01-20 02:38:12.715 FileSystemUtils [140315066702144] Checking HOME for the home directory.
[DEBUG] 2021-01-20 02:38:12.715 FileSystemUtils [140315066702144] Environment value for variable HOME is
[WARN] 2021-01-20 02:38:12.715 FileSystemUtils [140315066702144] Home dir not stored in environment, trying to fetch manually from the OS.
[INFO] 2021-01-20 02:38:12.715 FileSystemUtils [140315066702144] Pulled /home/sbx_user1051 as home directory from the OS.
[DEBUG] 2021-01-20 02:38:12.715 FileSystemUtils [140315066702144] Home directory is missing the final / appending one to normalize
[DEBUG] 2021-01-20 02:38:12.715 FileSystemUtils [140315066702144] Final Home Directory is /home/sbx_user1051/
[INFO] 2021-01-20 02:38:12.715 Aws::Config::AWSConfigFileProfileConfigLoader [140315066702144] Unable to open config file /home/sbx_user1051/.aws/config for reading.
[INFO] 2021-01-20 02:38:12.715 Aws::Config::AWSProfileConfigLoader [140315066702144] Failed to reload configuration.
[INFO] 2021-01-20 02:38:12.753 CurlHttpClient [140315066702144] Initializing Curl library with version: 7.61.1, ssl version: OpenSSL/1.0.2k
[DEBUG] 2021-01-20 02:38END RequestId: 790e3dbc-97bd-4ec8-9701-0a2a12daa8e8
REPORT RequestId: 790e3dbc-97bd-4ec8-9701-0a2a12daa8e8 Duration: 379.63 ms Billed Duration: 380 ms Memory Size: 128 MB Max Memory Used: 10 MB
RequestId: 790e3dbc-97bd-4ec8-9701-0a2a12daa8e8 Error: Runtime exited with error: signal: segmentation fault (core dumped)
Runtime.ExitError
Hi All,
I do have exactly the same problem and struggling to fix it. Any help would be greatly appreciated.
2021-09-22T14:21:24.602+02:00 | [INFO] 2021-09-22 12:21:24.599 Aws_Init_Cleanup [140148096981248] Initiate AWS SDK for C++ with Version:1.9.104 | 2021-09-22T14:21:24.602+02:00 | [TRACE] 2021-09-22 12:21:24.601 FileSystemUtils [140148096981248] Checking HOME for the home directory. | 2021-09-22T14:21:24.602+02:00 | [DEBUG] 2021-09-22 12:21:24.601 FileSystemUtils [140148096981248] Environment value for variable HOME is | 2021-09-22T14:21:24.602+02:00 | [WARN] 2021-09-22 12:21:24.601 FileSystemUtils [140148096981248] Home dir not stored in environment, trying to fetch manually from the OS. | 2021-09-22T14:21:24.602+02:00 | [INFO] 2021-09-22 12:21:24.602 FileSystemUtils [140148096981248] Pulled /home/sbx_user1051 as home directory from the OS. | 2021-09-22T14:21:24.602+02:00 | [DEBUG] 2021-09-22 12:21:24.602 FileSystemUtils [140148096981248] Home directory is missing the final / appending one to normalize | 2021-09-22T14:21:24.602+02:00 | [DEBUG] 2021-09-22 12:21:24.602 FileSystemUtils [140148096981248] Final Home Directory is /home/sbx_user1051/ | 2021-09-22T14:21:24.602+02:00 | [INFO] 2021-09-22 12:21:24.602 Aws::Config::AWSConfigFileProfileConfigLoader [140148096981248] Initializing config loader against fileName /home/sbx_user1051/.aws/credentials and using profilePrefix = 0
I have the same problem when I deploy and test the unmodified s3 example.
[TRACE] 2021-09-24 17:45:16.400 FileSystemUtils [139781221128768] Checking HOME for the home directory.
[DEBUG] 2021-09-24 17:45:16.400 FileSystemUtils [139781221128768] Environment value for variable HOME is
[WARN] 2021-09-24 17:45:16.400 FileSystemUtils [139781221128768] Home dir not stored in environment, trying to fetch manually from the OS.
[INFO] 2021-09-24 17:45:16.400 FileSystemUtils [139781221128768] Pulled /home/sbx_user1051 as home directory from the OS.
[DEBUG] 2021-09-24 17:45:16.400 FileSystemUtils [139781221128768] Home directory is missing the final / appending one to normalize
[DEBUG] 2021-09-24 17:45:16.400 FileSystemUtils [139781221128768] Final Home Directory is /home/sbx_user1051/
[INFO] 2021-09-24 17:45:16.400 Aws::Config::AWSConfigFileProfileConfigLoader [139781221128768] Unable to open config file /home/sbx_user1051/.aws/config for reading.
[INFO] 2021-09-24 17:45:16.400 Aws::Config::AWSProfileConfigLoader [139781221128768] Failed to reload configuration.