FIX ERROR — Python2: PIP fails after upgrade

After upgrading PIP to CentOS 6, which still uses Python2.7, PIP for each command crashes with an error. For example:   Reason: PIP versions above 20.3 do not support Python2.7 Solution: Install latest supported version  

FIX ERROR – RDS: Error creating DB Parameter Group: InvalidParameterValue: ParameterGroupFamily

When creating an RDS by specifying an incorrect value for the “ParameterGroupFamily” parameter, a similar error may occur: Error creating DB Parameter Group: InvalidParameterValue: ParameterGroupFamily default.mariadb10.2 is not a valid parameter group family   To see a list of all possible values for the “ParameterGroupFamily” parameter, you can use the following command:    

FIX ERROR – EKS: cloudwatch – 0/1 nodes are available: 1 Insufficient pods.

After installing CloudWatch Agent in the EKS cluster, its pods stuck in the “Pending” state   Watching the describe pod   Solution: The solution was found here. In this EKS cluster, a separate NodeGroup is allocated for the system pods with the instance type: t3.micro, and there is simply not enough capacity to launch the … Continue reading "FIX ERROR – EKS: cloudwatch – 0/1 nodes are available: 1 Insufficient pods."

FIX ERROR – fdisk: DOS partition table format cannot be used on drives for volumes larger than 2199023255040 bytes for 512-byte sectors

When trying to create a partition with the “fdisk” utility, 2 or more TB in size, the following message appears: The size of this disk is 2 TiB (2199023255552 bytes). DOS partition table format cannot be used on drives for volumes larger than 2199023255040 bytes for 512-byte sectors. Use GUID partition table format (GPT).   … Continue reading "FIX ERROR – fdisk: DOS partition table format cannot be used on drives for volumes larger than 2199023255040 bytes for 512-byte sectors"

FIX ERROR – AWS Lambda Python: “main() takes 0 positional arguments but 2 were given”

When trying to execute the Lambda Python function, the following error occurs: { "errorMessage": "main() takes 0 positional arguments but 2 were given", "errorType": "TypeError", "stackTrace": [ " File \"/var/runtime/bootstrap.py\", line 131, in handle_event_request\n response = request_handler(event, lambda_context)\n" ] }   Solution: From the message, we see that we use the “main” function as a … Continue reading "FIX ERROR – AWS Lambda Python: “main() takes 0 positional arguments but 2 were given”"

FIX ERROR – CentOS+Nginx+Jenkins: 502 Bad Gateway

When running Nginx as a reverse proxy to Jenkins on CentOS, a 502 error may occur. Nginx error log will be as follows: 2020/05/07 13:32:33 [crit] 9665#9665: *1 connect() to 127.0.0.1:8080 failed (13: Permission denied) while connecting to upstream, client: 1.2.3.4, server: jenkins.artem.services, request: “GET / HTTP/1.1”, upstream: “http://127.0.0.1:8080/”, host: “jenkins.artem.services”   Solution: Reason SELinux. … Continue reading "FIX ERROR – CentOS+Nginx+Jenkins: 502 Bad Gateway"

FIX ERROR – CentOS 7 kubectl: Invalid choice: ‘eks’, maybe you meant

When trying to execute any “kubectl” command on an EKS cluster, the following error occurs: Invalid choice: ‘eks’, maybe you meant:   A possible reason for this is the old version of “kubectl” available in the repository.   Solution: Install the latest version of “kubectl” using PIP3   To use “kubectl” installed using PIP, you … Continue reading "FIX ERROR – CentOS 7 kubectl: Invalid choice: ‘eks’, maybe you meant"