cancel
Showing results for 
Search instead for 
Did you mean: 
chis0
Flight Engineer
Flight Engineer
  • 256 Views

Chapter 7 section 11 lab

Jump to solution

Hello,

When I try to run web_dev_server - it won't run the handlers (task 11)

chis0_0-1768470260640.png

It reports "ERROR! The requested handler 'restart firewalld' was not found in either the main handlers list nor in the listening handlers list'

 

It is a newly created lab instance and I am just following along the excercise as it is written (showing solution).

It is a very difficult exercise so I'm not sure where to begin troubleshooting.

The handler does exist in the role, I checked before.

 

0 Kudos
1 Solution

Accepted Solutions
Travis
Moderator
Moderator
  • 228 Views

@chis0 -

So I know you said you checked, but you might want to check again. I would suggest posting the playbook where it is "calling" this handler that isn't running and the file in the role that runs the task for this handler. 

Most likely you have something, but it also most likely doesn't match. The key here would be the name of the handler. That would be the best starting point at least for now.

Travis Michette, RHCA XIII
https://rhtapps.redhat.com/verify?certId=111-134-086
SENIOR TECHNICAL INSTRUCTOR / CERTIFIED INSTRUCTOR AND EXAMINER
Red Hat Certification + Training

View solution in original post

3 Replies
Travis
Moderator
Moderator
  • 229 Views

@chis0 -

So I know you said you checked, but you might want to check again. I would suggest posting the playbook where it is "calling" this handler that isn't running and the file in the role that runs the task for this handler. 

Most likely you have something, but it also most likely doesn't match. The key here would be the name of the handler. That would be the best starting point at least for now.

Travis Michette, RHCA XIII
https://rhtapps.redhat.com/verify?certId=111-134-086
SENIOR TECHNICAL INSTRUCTOR / CERTIFIED INSTRUCTOR AND EXAMINER
Red Hat Certification + Training
chis0
Flight Engineer
Flight Engineer
  • 66 Views

Hello,

I had to remove all the # comments from roles/apache.developer_configs/meta/main.yml

They were showing as erroneous or 'too long' in vim linting. Perhaps due to the rgdacosta classroom_env helper script.

I'll need to try again without the script, but before removing comments, I couldn't notify the handlers (because infra.apache was not being referenced) after removing comments, the handlers were notified and the play was successful.

 

Also the lab says "

Apache HTTPD failed to restart in the preceding step because the network ports it uses for your developers are labeled with the wrong SELinux contexts."

But it did not fail for me, the tasks were successful even before doing the selinux part.

Of course, I cannot curl servera or serverb, so I still fail to get this lab to complete. I'll trry again another time.

Thanks.

0 Kudos
chis0
Flight Engineer
Flight Engineer
  • 27 Views

I managed to get tihs to run.

I did not use the classroom_env helper this time and everything worked as expected.

0 Kudos
Join the discussion
You must log in to join this conversation.