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 3
1
Dutch_Mike,
     Thanks for reporting back on this. Glad it's working as expected. It does take several minutes to compile and install.

Please do remember that CWP will overwrite the "install_netdata" script every 24hrs unless you make it "immutable". This won't have any effect unless you uninstall netdata and try to reinstall it.

The truth is that CentOS 9 Stream isn't doing so well either. Stream versions of CentOS are beta versions of Red Hat. AlmaLinux is looking better moving into the future according to most. However, the next mainstream generation of CWP is going to be supported on CentOS 9 Stream or Rocky Linux I think as this is what it looks like from their website.

To very shortly describe the upgrade process to CentOS 9 Stream, you need to setup another server with CentOS 9 Stream minimal install on it. Then run the CWP installer script provided on their website. Then setup an API key between the servers and migrate from one server into another.

Here is a link to their instructions on how to accomplish this:
https://docs.control-webpanel.com/docs/admin-guide/user-accounts/cwp-to-cwp-migration

Please note that this should work with any version of Linux that CWP supports but I have not tested any of them.

2
I'm just posting fixes for long standing issues that I have gotten working. I agree that AlmaLinux 8 is probably the best option. However, I have not setup a DEV VM for it yet. Are you wanting me to fix this same issue for AlmaLinux 8? If so I can give it a try but I'm not familiar with that flavor yet. If your just posting to let other know that's okay too. Just wondering if this issue exists in other setups as well.

3
Okay! Before you use this I have to make some disclaimers...lol. So here they are:

1. !!!YOU ARE USING THIS AT YOUR OWN RISK!!!
2. This fixes the automatic start issue of Netdata on reboot as well

All that said, all tests on a vanilla CWP install on CentOS 9 stream show good.

If you still want to try this then run the one liner command below:
Code: [Select]
cd /scripts && cp install_netdata install_netdata.orig && wget -O install_netdata https://github.com/LPJon/cwpfixes/raw/main/install_netdata && /scripts/./install_netdata

4
Code updated to support CentOS 7 and 9 Stream. CentOS 7 Limited to Commit 9233b89

5
Code updated to support CentOS 7 and 9 Stream

6
Also if anyone is having issues with yum and being able to run updates you will need to switch over to the vault.cento.org repo. You can reference the following link in order to do so if needed. This script does NOT account for this issue.

Forum link to describe how to switch to vault repo:
https://forum.logik.tv/t/yum-failing-on-centos-8/5225

If you don't understand what is going on in that post then please leave me a message here and I will try to provide a one liner to get you converted over to the vault repos.

For anyone who doesn't know, the "vault" repo is an archive repo for CentOS versions that are EOL and can be found at: https://vault.centos.org/

7
Okay! Before you use this I have to make some disclaimers...lol. So here they are:

1. !!!YOU ARE USING THIS AT YOUR OWN RISK!!!
2. This fixes the automatic start issue of Netdata on reboot

All that said, all tests on a vanilla CWP install on CentOS 7 show good.

If you still want to try this then run the one liner command below:
Code: [Select]
cd /scripts && cp install_netdata install_netdata.orig && wget -O install_netdata https://github.com/LPJon/cwpfixes/raw/main/install_netdata && /scripts/./install_netdata

8
This is a fix for Netdata on CentOS 8 Stream. Please read carefully!!

Okay! Before you use this I have to make some disclaimers...lol. So here they are:

1. !!!YOU ARE USING THIS AT YOUR OWN RISK!!!
2. Two packages are from the CentOS 9 Stream Repo (lz4-libs-1.9.3-5.el9.x86_64.rpm lz4-devel-1.9.3-5.el9.x86_64.rpm) and may cause issues later on since they are not officially for CentOS 8 Stream. They are required for Netdata so there is no getting around this on CentOS 8 Stream as it is EOL.
3. This will remove the old failed install of Netdata before trying to install it again.
4. This fixes the automatic start issue of Netdata on reboot
5. I have NO IDEA the long term effect this install could have because of the CentOS 9 Stream packages.
6. !!!THIS HAS NOT BEEN TESTED ON CENTOS 8 NON STREAM VERSION!!!

All that said, all tests on a vanilla CWP install on CentOS 8 Stream show good.

If you still want to try this then run the one liner command below:
Code: [Select]
cd /scripts && cp install_netdata install_netdata.orig && wget -O install_netdata https://github.com/LPJon/cwpfixes/raw/main/install_netdata && /scripts/./install_netdata

9
This is a fix for Netdata on CentOS 8 Stream. Please read carefully!!

Okay! Before you use this I have to make some disclaimers...lol. So here they are:

1. !!!YOU ARE USING THIS AT YOUR OWN RISK!!!
2. Two packages are from the CentOS 9 Stream Repo (lz4-libs-1.9.3-5.el9.x86_64.rpm lz4-devel-1.9.3-5.el9.x86_64.rpm) and may cause issues later on since they are not officially for CentOS 8 Stream. They are required for Netdata so there is no getting around this on CentOS 8 Stream as it is EOL.
3. This will remove the old failed install of Netdata before trying to install it again.
4. This fixes the automatic start issue of Netdata on reboot
5. I have NO IDEA the long term effect this install could have because of the CentOS 9 Stream packages.
6. !!!THIS HAS NOT BEEN TESTED ON CENTOS 8 NON STREAM VERSION!!!

All that said, all tests on a vanilla CWP install on CentOS 8 Stream show good.

If you still want to try this then run the one liner command below:
Code: [Select]
cd /scripts && cp install_netdata install_netdata.orig && wget -O install_netdata https://github.com/LPJon/cwpfixes/raw/main/install_netdata && /scripts/./install_netdata

10
Okay! Before you use this I have to make some disclaimers...lol. So here they are:

1. !!!YOU ARE USING THIS AT YOUR OWN RISK!!!
2. Two packages are from the CentOS 9 Stream Repo (lz4-libs-1.9.3-5.el9.x86_64.rpm lz4-devel-1.9.3-5.el9.x86_64.rpm) and may cause issues later on since they are not officially for CentOS 8 Stream. They are required for Netdata so there is no getting around this on CentOS 8 Stream as it is EOL.
3. This will remove the old failed install of Netdata before trying to install it again.
4. This fixes the automatic start issue of Netdata on reboot
5. I have NO IDEA the long term effect this install could have because of the CentOS 9 Stream packages.

All that said, all tests on a vanilla CWP install on CentOS 8 Stream show good.

If you still want to try this then run the one liner command below:
Code: [Select]
cd /scripts && cp install_netdata install_netdata.orig && wget -O install_netdata https://github.com/LPJon/cwpfixes/raw/main/install_netdata && /scripts/./install_netdata

11
Hi LP Jon,

Thanks for the clarification. I didn't knew that during copy and paste, scripts were being screwed up.
I downloaded your file and uploaded it to my server. i executed it... through the web gui and the cli,
 but the results the same.  this time it installs but gives a lot of errors at the end and there for its not working.

i have an install log with the errors . https://gofile.io/d/PenG4t

hope you can find out what is going wrong.

Regards,

Mike

Alright! I have a working script but I want to do a few more tests with it. I have some questions for you before I publish it on github.
1. Are you using the "vault.centos.org" repos since CentOS 8 Stream is EOL as of May this year.
2. Do you have issues with installing a few packages from the CentOS 9 Stream Repo? (Not available anywhere else)
3. Can you snapshot your server before trying to install with this. I'm hoping you have it running in a Virtual Machine.
4. If you are not using the "vault" repo...what repo are you using?

I'll report back with more after a few more tests.

12
CentOS 8 Stream EOL: May 31st 2024

13
For thread reference

CentOS 8 Stream Missing or uninstallable packages are required by CWP "install_netdata.sh":
MySQL-python
python
python-yaml
python-psycopg2
libuv(x86-64) = 1:1.23.1-1.el8 needed by libuv-devel-1:1.23.1-1.el8.x86_64

The above was provided by Dutch_Mike and is from the install log for "install_netdata.sh" by the following sections:
Code: [Select]
No match for argument: MySQL-python
No match for argument: python
There are following alternatives for "python": python2, python3.11, python3.12, python36, python38, python39
No match for argument: python-yaml
No match for argument: python-psycopg2
Error: Unable to find a match: MySQL-python python python-yaml python-psycopg2
and
Code: [Select]
Error:
 Problem: cannot install the best candidate for the job
  - nothing provides libuv(x86-64) = 1:1.23.1-1.el8 needed by libuv-devel-1:1.23.1-1.el8.x86_64 from cwp
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

Please note the above is for thread tracking only.....and to help me stay with the errors without cluttering up my own system.

14
Dutch_Mike,

Well...I missed something very important. This forum is for the CentOS 7 OS. You stated earlier that you are using CentOS 8 Stream. I only repaired the CentOS 7 Code part of the script as I was unaware that the CentOS 8 part had any errors in it. As it looks from your log, the only real issues are that several packages needed by Netdata are not (or no longer) available with CentOS 8 Stream. I don't currently have a TESTED fix for that OS just yet. I will need to setup a CentOS 8 Stream DEV VM and see if it can't be fixed or not. I know CentOS 7 just went EOL on June 20th 2024. So I will see what I can come up with and try to push an update for it to work. Fair warning though. I have to reference many sources in order to find a working install environment for CentOS 8 Stream. So this might take a little time. I would recommend that you run the uninstall command from the script to undo changes made as an attempted install.

The following code should do that for you:
Code: [Select]
/usr/local/src/netdata/packaging/installer/./netdata-uninstaller.sh --yes

15
You need to download the script from my github. Then upload it to your server for it to work properly.

To solve your issue and to also understand it. The "\r" (its whats placed a the end of every line when you press enter in a Windows text editor) is a windows return carriage, and Linux HATES those in scripting. This is caused by copying and pasting from Windows Based text editors like Notepad but can also happen when copying from a web browser. When you see that kind of error with the "\r" you can try running the following commands to fix it "In Place" but first you need to install dos2unix in your server. If you are running CentOS then run following command to install it.
Code: [Select]
yum install -y dos2unix
Once that is installed run the following....be sure to put in the full file path including the file name.
Code: [Select]
dos2unix /scripts/install_netdata
Also, running bash scripts is usually executed as the following, but you need to be in the files directory
Code: [Select]
./<filename>
If the above does not work reply here and I will try to workout a solution for you. The easiest way to do this though is to download the file raw from github onto your computer and use winscp to upload and overwrite the original. Be sure to make a copy of the original file first. Copy and paste always goes wrong with Linux....especially when working on bash scripting with Windows.

NOTE: CentOS Web Panel frequently overwrites these files and will overwrite the code you are changing. They have still not implemented this fix as of 6/27/24 even though I have submitted the code to them. Once netdata is installed it will just work....until you uninstall it and try to re-install it again. Please keep that in mind.

THE BELOW PERTAINS TO THE "Immutable" FILE ATTRIBUTE. THIS FORBIDS ANY CHANGES TO THE FILE AT ALL UNTIL THE ATTRIBUTE IS REMOVED.

To make the change permanent run the following to make the file uneditable including "delete" and "overwrite":
Code: [Select]
chattr +i /scripts/install_netdata
To make the file editable again run the following:
Code: [Select]
chattr -i /scripts/install_netdata
To look at the "Immutable" or "i" attribute run the following:
Code: [Select]
lsattr /scripts/install_netdata

Pages: [1] 2 3