- From: Maven User <
>
- To: chef <
>
- Subject: [chef] Re: Re: Re: services not starting when bootstrapping an EC2 instance....
- Date: Mon, 18 Mar 2013 10:49:14 -0400
Dood - thanks so much for the reply!
It's a standard init script and the service doesn't even have a log
written at this point.
Then I ssh up and run "sudo service <service> start" and it starts/logs.
Is there some weirdness with ubuntu supplied ubuntu ami's?
<snip>
00:30:50.640 DEBUG: received packet nr 276 type 94 len 188
00:30:50.640 INFO: channel_data: 0 166b
00:30:50.640 10.10.1.24 [2013-03-16T05:29:40+00:00] INFO: Processing
link[/etc/init.d/config-service] action create
(/var/chef/cache/cookbooks/maven_artifact/providers/default.rb line
104)
00:30:50.673 DEBUG: read 116 bytes
00:30:50.675 DEBUG: received packet nr 277 type 94 len 92
00:30:50.675 INFO: channel_data: 0 76b
00:30:50.731 10.10.1.24 [2013-03-16T05:29:40+00:00] INFO:
link[/etc/init.d/config-service] created
00:30:50.732 DEBUG: read 196 bytes
00:30:50.732 DEBUG: received packet nr 278 type 94 len 172
00:30:50.732 INFO: channel_data: 0 149b
00:30:50.732 10.10.1.24 [2013-03-16T05:29:40+00:00] INFO: Processing
execute[update-rc] action run
(/var/chef/cache/cookbooks/maven_artifact/providers/default.rb line
115)
00:30:50.733 DEBUG: read 532 bytes
00:30:50.733 DEBUG: received packet nr 279 type 94 len 508
00:30:50.735 INFO: channel_data: 0 486b
00:30:50.736 10.10.1.24 Adding system startup for
/etc/init.d/config-service ...
00:30:50.736 10.10.1.24 /etc/rc0.d/K20config-service ->
../init.d/config-service
00:30:50.736 10.10.1.24 /etc/rc1.d/K20config-service ->
../init.d/config-service
00:30:50.736 10.10.1.24 /etc/rc6.d/K20config-service ->
../init.d/config-service
00:30:50.736 10.10.1.24 /etc/rc2.d/S20config-service ->
../init.d/config-service
00:30:50.771 10.10.1.24 /etc/rc3.d/S20config-service ->
../init.d/config-service
00:30:50.772 10.10.1.24 /etc/rc4.d/S20config-service ->
../init.d/config-service
00:30:50.772 10.10.1.24 /etc/rc5.d/S20config-service ->
../init.d/config-service
00:30:50.772 DEBUG: read 116 bytes
00:30:50.772 DEBUG: received packet nr 280 type 94 len 92
00:30:50.772 INFO: channel_data: 0 71b
00:30:50.772 10.10.1.24 [2013-03-16T05:29:40+00:00] INFO:
execute[update-rc] ran successfully
00:30:50.772 DEBUG: read 212 bytes
00:30:50.773 DEBUG: received packet nr 281 type 94 len 188
00:30:50.773 INFO: channel_data: 0 160b
00:30:50.773 10.10.1.24 [2013-03-16T05:29:40+00:00] INFO: Processing
template[/srv/config-service/conf/services.properties] action create
(chef-config-service::configservice line 45)
00:30:51.510 DEBUG: read 148 bytes
00:30:51.510 DEBUG: read 148 bytes
00:30:51.605 DEBUG: received packet nr 282 type 94 len 124
00:30:51.605 INFO: channel_data: 0 106b
00:30:51.606 10.10.1.24 [2013-03-16T05:29:40+00:00] INFO:
template[/srv/config-service/conf/services.properties] updated content
00:30:51.606 DEBUG: read 180 bytes
00:30:51.606 DEBUG: received packet nr 283 type 94 len 124
00:30:51.606 INFO: channel_data: 0 110b
00:30:51.607 10.10.1.24 [2013-03-16T05:29:40+00:00] INFO:
template[/srv/config-service/conf/services.properties] mode changed to
644
00:30:51.607 DEBUG: received packet nr 284 type 94 len 156
00:30:51.607 INFO: channel_data: 0 128b
***** At this point, the service, when deployed to a vm, this works
just peachy, for the ami, it just does owt *****
00:30:51.607 10.10.1.24 [2013-03-16T05:29:40+00:00] INFO: Processing
service[config-service] action start
(chef-config-service::configservice line 50)
00:30:51.608 DEBUG: read 148 bytes
00:30:51.678 DEBUG: received packet nr 285 type 94 len 124
00:30:51.678 INFO: channel_data: 0 110b
</snip>
On Sat, Mar 16, 2013 at 2:00 AM, AJ Christensen
<
>
wrote:
>
Is there a problem with the service itself? Does the package
>
installation automatically start the service in a bad state?
>
>
Is it an init script, or upstart, systemd, etc?
>
>
Can you post the full chef debug logs.
>
>
Cheers,
>
>
AJ
>
>
On 16 March 2013 18:54, Maven User
>
<
>
>
wrote:
>
> Another clue (maybe) is if the instance is restarted, the service comes up.
>
>
>
> When you bootstrap - you have to specify the "ubuntu" user, I'm not
>
> sure if that's the problem or not...
>
>
>
> On Sat, Mar 16, 2013 at 1:27 AM, Maven User
>
> <
>
>
> wrote:
>
>> Hi all -
>
>>
>
>> I'm struggling to put my finger on what's going wrong here.
>
>>
>
>> I'm trying to bootstrap an ec2 instance, and even though I can ssh up
>
>> after the bootstrapping is complete and "sudo service <service> start"
>
>> it, the:
>
>>
>
>> service <service> do
>
>> action :start
>
>> end
>
>>
>
>> bit doesn't start the service that the same recipe is deploying....
>
>>
>
>> Any suggestions?
Archive powered by MHonArc 2.6.16.