Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

user data scripts not running on web and db servers #16

Open
JeffGiroux opened this issue Jun 9, 2018 · 4 comments
Open

user data scripts not running on web and db servers #16

JeffGiroux opened this issue Jun 9, 2018 · 4 comments

Comments

@JeffGiroux
Copy link

I ran the two-tier-sample CFT. It deployed the PAN successfully, GUI came up, configurable, logs, everything. But I noticed the applications for web and DB didn't work. I logged into the web server it appears nothing was running. There's a lot of configs happening in User Data, but it doesn't look like anything loaded. Same with DB. MySQL wasn't running after all said and done.

@narayan-iyengar
Copy link
Contributor

can you check the logs @ /var/log/user-data.log?

@JeffGiroux
Copy link
Author

Not much. Looks like routing got in the way. The message "Failed to connect to 54.67.81.185" is the IP of my PAN FW management IP for reference. As a workaround, I was able to manually run all the user-data commands by hand via CLI. My web and DB server work. As mentioned prior, the PAN already successfully pulled the restore and loaded it. The only thing wrong was the web and DB didn't succeed at user data. I didn't check DB logs, but my guess is that it's the same failed error. I think the web and db come up faster than PAN, they are waiting for PAN, but give up? Then user-data never finishes? Just a guess.

Logs below...

ubuntu@ip-10-0-0-99:~$ cat /var/log/user-data.log
Killed old client process
Internet Systems Consortium DHCP Client 4.3.3
Copyright 2004-2015 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/06:8e:e9:9d:61:74
Sending on LPF/eth0/06:8e:e9:9d:61:74
Sending on Socket/fallback
DHCPRELEASE on eth0 to 10.0.1.1 port 67 (xid=0x2e69ce79)
Internet Systems Consortium DHCP Client 4.3.3
Copyright 2004-2015 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/06:8e:e9:9d:61:74
Sending on LPF/eth0/06:8e:e9:9d:61:74
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3 (xid=0xfc15527d)
DHCPREQUEST of 10.0.1.101 on eth0 to 255.255.255.255 port 67 (xid=0x7d5215fc)
DHCPOFFER of 10.0.1.101 from 10.0.1.1
DHCPACK of 10.0.1.101 from 10.0.1.1
bound to 10.0.1.101 -- renewal in 1759 seconds.
curl: (7) Failed to connect to 54.67.81.185 port 443: No route to host
curl: (7) Failed to connect to 54.67.81.185 port 443: No route to host
curl: (7) Failed to connect to 54.67.81.185 port 443: Connection timed out
curl: (7) Failed to connect to 54.67.81.185 port 443: Connection timed out
curl: (7) Failed to connect to 54.67.81.185 port 443: Connection timed out
curl: (7) Failed to connect to 54.67.81.185 port 443: Connection timed out
curl: (7) Failed to connect to 54.67.81.185 port 443: Connection timed out

@narayan-iyengar
Copy link
Contributor

narayan-iyengar commented Jun 12, 2018 via email

@thevirtualx
Copy link

Hello Guys. excuse me I created the stack but it rolled back due to the error "CREATE FAILED - API: ec2:Runinstances Not authorized for images: [ami-7dcb9906]".

error

Best

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

No branches or pull requests

3 participants