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
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:
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."
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"
After we installed Docker on the Jenkins server and started it, when we try to build, we get the following error: Solution: Add the user "jenkins" to the "docker" group: After that, the user "jenkins" will be able to work with Docker if he connects via SSH, but with Jenkins job there will …
Continue reading "FIX ERROR – Jenkins: dial unix /var/run/docker.sock: connect: permission denied"
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""
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"
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"
When trying to get a value from AWS SSM, Ansible Playbook using Python3 as an interpreter generates the following error: fatal: [localhost-py3]: FAILED! => {"changed": false, "msg": "AnsibleError: An unhandled exception occurred while templating '{{ lookup('aws_ssm', 'server_listeners', decrypt=false, region=’eu-west-1′) }}'. Error was a <class 'ansible.errors.AnsibleError'>, original message: An unhandled exception occurred while running the lookup …
Continue reading "FIX ERROR – Ansible AWS SSM: AnsibleError: An unhandled exception occurred while templating"
The following error occurred while trying to delete the database in MS SQL: The database 'YOUR_DB_NAME' is enabled for database mirroring. Database mirroring must be removed before you drop the database. Solution: