Архив рубрики: Проблемы и решения

Описания различных проблем и способы их решения

Terraform: InvalidGroupId.Malformed: Invalid id

11 ноября 2016
 

 Обновление инфраструктуры с помощью Terraform упало с ошибкой: … Error applying plan: 1 error(s) occurred: * aws_security_group.api_ec2: Error authorizing security group ingress rules: InvalidGroupId.Malformed: Invalid id: «0» (expecting «sg-…») status code: 400, request id: f761e22f-9773-413e-af57-a13632569604 …

Linux: GRUB — добавить загрузку Windows

31 октября 2016
 

 Во время установки Arch Linux — GRUB (grub-mkconfig) не определил раздел с Windows 7 и не создал соответствующий пункт в меню. Добавляем вручную. Находим раздел с Windows:

Maven: docker-maven-plugin — Exception caught: Request error: POST HTTP 500 Internal Server Error

21 октября 2016
 

 Во время сборки проекта — билд образа с помощью плагина docker-maven-plugin падает с ошибкой:   … [INFO] BUILD FAILURE [INFO] ———————————————————————— [INFO] Total time: 19.379 s [INFO] Finished at: 2016-10-21T09:31:31+00:00 [INFO] Final Memory: 76M/562M [INFO] ———————————————————————— [ERROR] Failed to execute goal com.spotify:docker-maven-plugin:0.4.10:build (default) on project oauth2-authserver: Exception caught: Request error: POST unix://localhost:80/build?t=project.jfrog.io/project-oauth2-authserver:stg-hotfix/LTHS-116-79: 500: HTTP 500… Читать далее »

AWS: S3 Website + CloudFront CDN == AccessDined

19 октября 2016
 

 Ошибка Создаём S3 корзину, настраиваем>>> её как Static Website. Далее — подключаем>>> к ней ClodFront distribution. Для S3 — настраиваем редирект всех ошибок на index.html, пробуем открыть несуществующую страницу — и «ловим» Acess Denied вместо перенаправления: $ curl -L http://profile-testing.domain.com/signinscsdc <?xml version=»1.0″ encoding=»UTF-8″?> <Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>0C488EAFDD6F8311</RequestId><HostId>za8ikpctv9Pr/Hn/AEyb09ikAAlUmd/Fq1ICHjA6AVPq0P2XDn87SNDMrEUkP1jMvTPQ8p2lktw=</HostId></Error>

AWS: The bucket you are attempting to access must be addressed using the specified endpoint.

17 октября 2016
 

 Во время работы с корзинами S3 — AWS CLI сообщает об ошибке: $ aws s3api get-bucket-policy —bucket profile-staging.domain.com A client error (PermanentRedirect) occurred when calling the GetBucketPolicy operation: The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint: profile-staging.domain.com.s3.amazonaws.com You can fix this… Читать далее »

SSH: ssh-copy-id — Permission denied

27 сентября 2016
 

 При копировании RSA-ключа — ошибка: $ ssh-copy-id -i ssh/id_rsa.pub [email protected] /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed /usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed — if you are prompted now it is to install the new keys Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

Chrome: убрать HTTPS редирект

21 сентября 2016
 

 RTFM на старом сервере работает по 80 порту, HTTP. Каждый раз после изменения /etc/hosts, для того что бы зайти на старую копию блога — Chromium выполняет переадресацию на HTTPS 443. Вызывается такая передресация заголовками STS (Strict-Transport-Security) для HTTP (HSTS): … Strict-Transport-Security:max-age=15768000 Strict-Transport-Security:max-age=31536000; includeSubdomains …

CentOS: bash: netstat: command not found

20 сентября 2016
 

 На CentOS 7.2 — ошибка: # netstat -anp | grep java bash: netstat: command not found Ищем: # yum search netstat Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.besthosting.ua * extras: mirror.besthosting.ua * updates: mirror.besthosting.ua ============================================================================================================================== Matched: netstat =============================================================================================================================== dstat.noarch : Versatile resource statistics tool net-snmp.x86_64 : A collection of SNMP… Читать далее »

Chef: This resource is written with Chef 12.5 and requires at least Chef 12.0[…] it will not work with Chef 11.x clients

15 сентября 2016
 

 Ошибка Ошибка во время провижена Adobe Experience Manager (CQ5): … 16:34:13.924 Starting Chef Client, version 11.14.6 16:34:17.226 Compiling Cookbooks… 16:34:17.237 16:34:17.237 ================================================================================ 16:34:17.237 Recipe Compile Error in /home/chef/chef-solo/cookbooks-2/compat_resource/libraries/autoload.rb 16:34:17.237 ================================================================================ 16:34:17.237 16:34:17.237 RuntimeError 16:34:17.237 ———— 16:34:17.237 This resource is written with Chef 12.5 custom resources, and requires at least Chef 12.0 used with the compat_resource cookbook,… Читать далее »