Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

CREATE_FAILED---ScanAutoScalingGroup #31

Closed
Sisy opened this issue Feb 21, 2018 · 5 comments
Closed

CREATE_FAILED---ScanAutoScalingGroup #31

Sisy opened this issue Feb 21, 2018 · 5 comments
Labels

Comments

@Sisy
Copy link

Sisy commented Feb 21, 2018

Hi -

Having some issues creating the s3-virusscan stack.

I've followed the instructions you provided as best as possible.

  1. Created vpc that you provided (vpc-2azs), which has A/B public subnet.
  2. When creating the s3-virusscan stack, in the wizard I set parentvpc as vpc-2azs.

I'm still seeing this error:
error

Thank you

@icelandman2
Copy link

I had the same failure! I wasn't able to resolve, but was able to get a different error by manually setting the scaling bounds to something within reason for my use case.

@michaelwittig
Copy link
Contributor

michaelwittig commented Feb 27, 2018

There are excellent debug instructions here: #12 (comment)

Could you try the same steps and share the logs with us?

@icelandman2
Copy link

I tried again with t2.small (and again with t2.medium) and got:

2018-02-28 10:03:35,425 [DEBUG] Using service modifier: /sbin/chkconfig
2018-02-28 10:03:35,425 [DEBUG] Setting service clamd.scan to enabled
2018-02-28 10:03:35,427 [INFO] enabled service clamd.scan
2018-02-28 10:03:35,428 [DEBUG] Restarting clamd.scan due to change detected in dependency
2018-02-28 10:03:35,428 [DEBUG] Using service runner: /sbin/service
2018-02-28 10:03:45,539 [ERROR] Could not restart service clamd.scan; return code was 1
2018-02-28 10:03:45,539 [DEBUG] Service output: Stopping clamd.scan: [FAILED]^M
Starting clamd.scan: ERROR: LOCAL: Socket file /var/run/clamd.scan/clamd.sock could not be bound: No such file or directory
[FAILED]^M

2018-02-28 10:03:45,540 [ERROR] Error encountered during build of config: Could not restart clamd.scan
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/cfnbootstrap/construction.py", line 542, in run_config
CloudFormationCarpenter(config, self._auth_config).build(worklog)
File "/usr/lib/python2.7/dist-packages/cfnbootstrap/construction.py", line 270, in build
CloudFormationCarpenter._serviceToolsmanager.apply(services, changes)
File "/usr/lib/python2.7/dist-packages/cfnbootstrap/service_tools.py", line 161, in apply
self._restart_service(service)
File "/usr/lib/python2.7/dist-packages/cfnbootstrap/service_tools.py", line 185, in _restart_service
raise ToolError("Could not restart %s" % service)
ToolError: Could not restart clamd.scan
2018-02-28 10:03:45,541 [ERROR] -----------------------BUILD FAILED!------------------------
2018-02-28 10:03:45,543 [ERROR] Unhandled exception during build: Could not restart clamd.scan
Traceback (most recent call last):
File "/opt/aws/bin/cfn-init", line 171, in
worklog.build(metadata, configSets)
File "/usr/lib/python2.7/dist-packages/cfnbootstrap/construction.py", line 129, in build
Contractor(metadata).build(configSets, self)
File "/usr/lib/python2.7/dist-packages/cfnbootstrap/construction.py", line 530, in build
self.run_config(config, worklog)
File "/usr/lib/python2.7/dist-packages/cfnbootstrap/construction.py", line 542, in run_config
CloudFormationCarpenter(config, self._auth_config).build(worklog)
File "/usr/lib/python2.7/dist-packages/cfnbootstrap/construction.py", line 270, in build
CloudFormationCarpenter._serviceToolsmanager.apply(services, changes)
File "/usr/lib/python2.7/dist-packages/cfnbootstrap/service_tools.py", line 161, in apply
self._restart_service(service)
File "/usr/lib/python2.7/dist-packages/cfnbootstrap/service_tools.py", line 185, in _restart_service
raise ToolError("Could not restart %s" % service)
ToolError: Could not restart clamd.scan
2018-02-28 10:03:45,800 [DEBUG] CloudFormation client initialized with endpoint https://cloudformation.us-east-2.amazonaws.com
2018-02-28 10:03:45,800 [DEBUG] Signaling resource ScanAutoScalingGroup in stack s3-virusscan with unique ID i-0a26840620b788c49 and status FAILURE

with

Feb 28 10:03:35 ip-10-0-1-7 freshclam[2889]: Database updated (6428113 signatures) from database.clamav.net (IP: 72.21.91.8)
Feb 28 10:03:35 ip-10-0-1-7 clamd[2908]: Received 0 file descriptor(s) from systemd.
Feb 28 10:03:35 ip-10-0-1-7 clamd[2908]: clamd daemon 0.99.3 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64)
Feb 28 10:03:35 ip-10-0-1-7 clamd[2908]: Running as user clamscan (UID 497, GID 495)
Feb 28 10:03:35 ip-10-0-1-7 clamd[2908]: Log file size limited to 1048576 bytes.
Feb 28 10:03:35 ip-10-0-1-7 clamd[2908]: Reading databases from /var/lib/clamav
Feb 28 10:03:35 ip-10-0-1-7 clamd[2908]: Not loading PUA signatures.
Feb 28 10:03:35 ip-10-0-1-7 clamd[2908]: Bytecode: Security mode set to "TrustSigned".
Feb 28 10:03:44 ip-10-0-1-7 clamd[2908]: Loaded 6422021 signatures.
Feb 28 10:03:45 ip-10-0-1-7 clamd[2908]: LOCAL: Socket file /var/run/clamd.scan/clamd.sock could not be bound: No such file or directory

from /var/logs/messages. Any idea why the socket isn't found? (Sorry - somewhat new to AWS/not sure if I'm looking at things right)

@michaelwittig
Copy link
Contributor

Can you attach the template that you are using and the parameters? I try to reproduce the error then.

@michaelwittig
Copy link
Contributor

duplicate of #32

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants