Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - LPJon

Pages: 1 [2]
16
So just to make some things easier I'm posting a link to my Github with a working netdata installer as of 8/29/23. This would be a drop-in replacement for the script already in the server at
Code: [Select]
/scripts/install_netdataIf you just replace the scripts and then run the netdata installer from the Web GUI Dashboard it should install and work correctly.

https://raw.githubusercontent.com/LPJon/cwpfixes/main/install_netdata

17
okay here is the second piece of code needed to keep netdata running after reboots.

Code: [Select]
echo 'd /var/run/netdata 0755 root root' > /usr/lib/tmpfiles.d/netdata.conf
this will make systemd create the directory /var/run/netdata on each reboot so the netdata service can use it for the socket file.

If you want to edit the "install_netdata" script file here is the code that will make the script do this automatically from the start.
Code: [Select]
sed -ie '/# restart netdata/a echo "d /var/run/netdata 0755 root root" > /usr/lib/tmpfiles.d/netdata.conf' /scripts/install_netdata

18
I found another problem here I'm working on now. Apparently when the server is restarted the netdata service is not able to start due to a missing directory it can't create for the socket file. I will report back when I have a solution for it. It looks like the directory is deleted each reboot so it needs a little help.

19
There are dependencies missing from the original CWP "install_netdata" installation script. Geeee.....that's surprising. Okay, so the code below will add the dependencies needed so the installation is successful. It adds a line to the script so that they are installed.

!!!BE SURE TO BACKUP THE FILE BEFORE YOU RUN THIS & BE SURE TO REMOVE THE SPACES FROM "/ scripts / install_netdata" BEFORE YOU PRESS ENTER IN THE SSH TERMINAL!!!

Here is the fix:
Code: [Select]
sed -ie '/\tyum -y install libmnl-devel libuv-devel --enablerepo=epel/a \\tyum -y install json-c-devel libatomic libyaml-devel lz4-devel systemd-devel' / scripts / install_netdata
if everything went fine then you will just come back to a prompt after pressing enter.

Here is the original code:
Code: [Select]
        # new centos 8 stream
        cd / usr / local / src
        wget https://github.com/libuv/libuv/archive/refs/tags/v1.41.0.zip
        unzip v1.41.0.zip
        cd libuv-1.41.0
        ## important to run 2 times:
        sh autogen.sh
        sh autogen.sh
        . / configure
        make
        make install
else
        yum -y install curl gcc make autoconf autoconf-archive autogen automake --enablerepo=epel
        yum -y install MySQL-python python python-yaml python-psycopg2 nodejs lm_sensors --enablerepo=epel
        yum -y install nmap-ncat git zlib-devel libuuid-devel --enablerepo=epel
        yum -y install libmnl-devel libuv-devel --enablerepo=epel
fi

Here is the new code with the added line marked:
Code: [Select]
        # new centos 8 stream
        cd / usr / local / src
        wget https://github.com/libuv/libuv/archive/refs/tags/v1.41.0.zip
        unzip v1.41.0.zip
        cd libuv-1.41.0
        ## important to run 2 times:
        sh autogen.sh
        sh autogen.sh
        . / configure
        make
        make install
else
        yum -y install curl gcc make autoconf autoconf-archive autogen automake --enablerepo=epel
        yum -y install MySQL-python python python-yaml python-psycopg2 nodejs lm_sensors --enablerepo=epel
        yum -y install nmap-ncat git zlib-devel libuuid-devel --enablerepo=epel
        yum -y install libmnl-devel libuv-devel --enablerepo=epel
        yum -y install json-c-devel libatomic libyaml-devel lz4-devel systemd-devel    <-----------HERE
fi

After you have ran the above one-liner fix or corrected the script yourself. Just start the install from the Web Dashboard again and wait for the page to refresh. It can take quite a while to install so be patient and wait for it to refresh.

20
The other big note on your revised install_terminal script is that you are installing python3, whereas the default RHEL kit provides & supports python 2.7.5. So know the ramifications of such an installation before proceeding. I've lived with CWP Pro for a while now as is, and will hold steady until early next year when I move over to EL9 -- when CWP for EL9 is ready, of course.

You are correct, and I'm sorry for not also stating the upgrade to Python3. Since you are a senior member here can you tell us if the update to Python3 would effect any of the standard vanilla installations of CWP. Or would this only effect CWP Server admins that have software requirements specifically for Python2?

21
Ah Ha!...so below is a link to my github repo to show the replacement "install_terminal" script that actually works. Use it at your own risk!

https://raw.githubusercontent.com/LPJon/cwpfixes/main/install_terminal

22
Scripts / Re: CWP Pro Terminal Fails to load with a blank (black) Screen
« on: August 28, 2023, 03:58:31 AM »
Ah Ha!...so below is a link to my github repo to show the replacement "install_terminal" script that actually works. Use it at your own risk!

https://raw.githubusercontent.com/LPJon/cwpfixes/main/install_terminal

23
I have a fix for this but oddly enough the CWP forums refuse to let me post it on here with a 403 forbidden error. If you want this fixed reply to this forum topic and I will help you get it done. It's not hard, but it just looks like CWP does NOT want you/me/anyone posting code here for fixing issues with their platform. To those out there that are gonna say it....yes I tried using the CODE enclosures.....they don't work.

In general the problem has to do with GCC and G++ being too old (4.5 I believe) and needs to be updated to 7. But that isn't enough, you also have to rip out the old remnants of the failed install the botched up.

I honestly don't understand why this has been an issue for so long as it's not hard to fix. It did take me a whole week to track down though.

If you are having issues with this reply to this forum topic and I will help you with it. CWP is not on a fast track to fix this.

24
Scripts / CWP Pro Terminal Fails to load with a blank (black) Screen
« on: August 28, 2023, 03:19:23 AM »
I have a fix for this but oddly enough the CWP forums refuse to let me post it on here with a 403 forbidden error. If you want this fixed reply to this forum topic and I will help you get it done. It's not hard, but it just looks like CWP does NOT want you/me/anyone posting code here for fixing issues with their platform. To those out there that are gonna say it....yes I tried using the CODE enclosures.....they don't work.

In general the problem has to do with GCC and G++ being too old (4.5 I believe) and needs to be updated to 7. But that isn't enough, you also have to rip out the old remnants of the failed install the botched up.

I honestly don't understand why this has been an issue for so long as it's not hard to fix. It did take me a whole week to track down though.

If you are having issues with this reply to this forum topic and I will help you with it. CWP is not on a fast track to fix this.

25
Scripts / Re: CWPPRO terminal unable to install
« on: August 28, 2023, 03:16:40 AM »
I have a fix for this but the forums won't let me post it

Pages: 1 [2]