Labs - Setup E-Commerce App - All-in-one

I am just getting started and I am already hitting an issue. Whenever I start firewalld it seems to run fine for a couple of seconds (I can run “service firewalld status” and it shows it active (running)…

But after a few seconds if check status it is no longer running and displays the following error:

Any idea what is going on here?

EDIT: This issue persists between instances of the lab.

journalctl -u firewalld

I mean it’s not substantially different from what I already posted.

Anything? Would love a little support.

It’s been over 24 hours with no reasonable response or suggestion. Should I just assume you don’t support this product at all and get my money back? Not at all satisfied with this situation. A simple “we’re not sure but we’re looking into it” would be nice.

I went through your post and I see you have been having trouble with the firewalld service. This task is not part of the two project labs in the end, which is the reason why it is not validated.
(Specifically in the all-in-one-server, since both DB and Web App are running on the same server it is not generally required.)

Here are the steps to be followed for that specific lab:

1  yum install -y mariadb-server
2  service mariadb start
3  systemctl enable mariadb
4  mysql (and the in the prompt)
  MariaDB > CREATE DATABASE ecomdb;
 MariaDB > CREATE USER 'ecomuser'@'localhost' IDENTIFIED BY 'ecompassword';
 MariaDB > GRANT ALL PRIVILEGES ON *.* TO 'ecomuser'@'localhost';
 MariaDB > FLUSH PRIVILEGES;
  
5  mysql < /opt/db-load-script.sql
6   yum install -y httpd php php-mysql
7  sed -i 's/index.html/index.php/g' /etc/httpd/conf/httpd.conf
8  service httpd start; systemctl enable httpd
9  yum install -y git; git clone https://github.com/kodekloudhub/learning-app-ecommerce.git /var/www/html/

10 sed -i ‘s/172.20.1.101/localhost/g’ /var/www/html/index.php

But I can see why this may have been confusing, as in the demo preceding the lab we do use it. I will fix that by either updating the video or including the task in the lab to install firewalld ( As I mentioned, the labs currently do not ask you to install and configure iptables/firewald)

I had a look at the error why it was failing in your attempt. That was because the “iptables” version running in the lab system was older and had to be updated for it to work.

  1. yum update
  2. yum reinstall iptables
  3. yum install firewalld
    And the rest of the firewalld configuration.

I have a somewhat related issue with script execution or maybe not an issue. After I run #5 instruction provided, my prompt drops to just → and no server name or anything else. Did I miss something?

I have a similar issue. It also states for me that the firewalld portion of the e-commerce lab.
I followed the steps that were provided above and I still have the same failure with firewalls. I checked the status and it is always active (running). I am attaching a SS, to show whenever I perform the check, it never passes, and states that “firewalld is not present.” I have notice that when the “CHECK” button is pressed it stops all of the running services. It’s like as if something reset. I have run in to other issues, even with the mariadb, but I believe it is better to place that question in a separate thread.
Here is a before CHECKSS and the after CHECK SS will appear on the next post since I can only post 1 SS.

Any suggestions on what to do?

after CHECK SS