Forums

Resolved
0 votes
Hello,

To install ClearOS on an AWS instance, I was told to install centos (https://aws.amazon.com/marketplace/pp/B00O7WM7QW) and then to proceed to an update to ClearOS:

curl http://static.clearsdn.com/1.0/ovh/cos7.sh > cos7.sh
chmod 755 cos7.sh
./cos7.sh

It runs but errors and warning started:
The GPG keys listed for the "ClearOS 7 - x86_64 - OS" repository are already installed but they are not correct for this package.
Check that the correct key URLs are configured for this repository.


Failing package is: python-firewall-0.4.3.2-8.1.el7_3.3.noarch
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ClearOS-7


Then

Redirecting to /bin/systemctl stop  webconfig.service
Failed to stop webconfig.service: Unit webconfig.service not loaded.


and a few others all related to the network and webservice

sed: can't read /etc/clearos/network.conf: No such file or directory
+ service syswatch restart
Redirecting to /bin/systemctl restart syswatch.service
Failed to restart syswatch.service: Unit not found.
+ allow-port -p TCP -d 22 -n SSH
./cos7.sh: line 35: allow-port: command not found
+ allow-port -p TCP -d 81 -n Webconfig
./cos7.sh: line 36: allow-port: command not found
+ sed -i -e 's/^MODE=.*/MODE="standalone"/' /etc/clearos/network.conf
sed: can't read /etc/clearos/network.conf: No such file or directory
+ service webconfig start
Redirecting to /bin/systemctl start webconfig.service
Failed to start webconfig.service: Unit not found.


Help would be appreciated.
Wednesday, July 26 2017, 07:34 AM
Share this post:
Responses (6)
  • Accepted Answer

    Wednesday, July 29 2020, 07:54 PM - #Permalink
    Resolved
    0 votes
    That is good that it still works.
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, July 29 2020, 06:45 PM - #Permalink
    Resolved
    0 votes
    Nick Howitt wrote:

    Bit late.....
    I don't think the AWS install method works any longer. It was going to be updated but that fell by the wayside. I think the only way now is to start with a Centos Minimal installation thenconvert it to ClearOS.


    Well, so far, so good (this is from a copied AMI from N-Virginia to South america).
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, July 29 2020, 05:11 PM - #Permalink
    Resolved
    0 votes
    Bit late.....
    I don't think the AWS install method works any longer. It was going to be updated but that fell by the wayside. I think the only way now is to start with a Centos Minimal installation then convert it to ClearOS.
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, July 29 2020, 02:20 PM - #Permalink
    Resolved
    0 votes
    Nick Howitt wrote:

    Can you post the contents of /var/log/clearos-installer.log?


    Never too late...
    I just create one and this is the result.

    [clearos@clearos var]$ cat /var/log/clearos-installer.log
    cat: /var/log/clearos-installer.log: No such file or directory


    Can’t use locate to check if the file you are talking about has been moved.
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, July 26 2017, 05:25 PM - #Permalink
    Resolved
    0 votes
    Hello Nick,

    (thanks for being such an active member :))

    In the meantime I was told to use the following guide: https://www.clearos.com/resources/documentation/clearos/content:en_us:7_ug_amazon_ec2_support

    I terminate the previous instance and recreate following that guide (I’m completing the wizard as I type) and it work alright.

    Some notes about this guide:

    From your AWS console select Instances => Instances.
    Be sure you selected N. Virginia
    Go to Community AMIs
    Search for ClearOS
    Select clearos-7.2.0 - ami-8fb03898
    Once launch is complete stop and start the instance (before that I couldn’t work it out)
    Login using ssh with 'clearos' user
    ssh -i ~/.ssh/yourkey.pem clearos@yourinstance.amazonaws.com
    (change root passwd as in the doc)
    On the AWS console select Instances => Security Group => Select the instance
    Edit the inbound rules and add custom rule to authorise port 81 to your instance
    Point to your control panel using https. ie : https://yourinstance.amazonaws.com:81
    enter credentials
    Start the install wizard


    Many thanks !
    Bernard
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, July 26 2017, 05:01 PM - #Permalink
    Resolved
    0 votes
    Can you post the contents of /var/log/clearos-installer.log?
    The reply is currently minimized Show
Your Reply