Announcement
Collapse
No announcement yet.
Useful Addons: graphs1090, tar1090 et cetera
Collapse
X
-
ok it is now working thanks to you both. this is what I did. Re ran wiedehopf script, but still got errors. So I then followedabcd567instructions and then re-ran the graphs1090 script and it all worked smoothly. Thank you so much for your time and effort and for all you do in this field of flight radar.
-
Originally posted by wiedehopf View PostIt seems Ubuntu 22 doesn't have collectd. No clue why they would choose to remove it -.-
Sorry for suggesting it.
Not sure how long abcds solution above will work .... let's hope it keeps working for you.
The package I suggested to install (collectd-core_5.12.0-9_amd64.deb) is from Ubuntu Package archive
http://mirrors.edge.kernel.org/ubunt...se/c/collectd/
ubuntu-22-collectd-core.png
.
Leave a comment:
-
It seems Ubuntu 22 doesn't have collectd. No clue why they would choose to remove it -.-
Sorry for suggesting it.
Not sure how long abcds solution above will work .... let's hope it keeps working for you.
I've put something similar in my install script that checks for Ubuntu 22 and will install that package using dpkg .... it's not really a solution but let's hope it works for most people with Ubuntu 22 .....
Really annoyed Ubuntu 22 doesn't have this package.Last edited by wiedehopf; 2022-04-30, 06:50.
Leave a comment:
-
SOLVED
(1) Purged Debian packages installed
Code:abcd@ubuntu22:~$ sudo dpkg --purge collectd-core sudo rm collectd-core_5.12.0-7_amd64.deb
Code:abcd@ubuntu22:~$ wget http://mirrors.kernel.org/ubuntu/pool/universe/c/collectd/collectd-core_5.12.0-9_amd64.deb abcd@ubuntu22:~$ sudo dpkg -i collectd-core_5.12.0-9_amd64.deb
All working now
Leave a comment:
-
After installing "collectd-core" by "dpkg", ran the graph install again
Then checked, got this:
waiting for collectd to start.
Leave a comment:
-
Thanks again wiedehof. Unfortunately no luck. here are the last lines of the install with the error message.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package collectd-core
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package collectd is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'collectd' has no installation candidate
------------------
Failed to install required packages: git rrdtool wget unzip bash-builtins collectd-core
Exiting ...
-----------------------------------
@abcd567
I did follow your instructions and they ran successfully but I got a different error running the graphs1090 install this time. I can get the browser to load, but there is no data.
------------------
Install in progress, this shouldn't take longer than a minute or two ..........
------------------
Overwriting /etc/collectd/collectd.conf, the old file has been moved to /etc/collectd/collectd.conf.graphs1090
------------------
--------------
collectd isn't working, trying to install various libpython versions to work around the issue.
--------------
Hit:1 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:2 http://ca.archive.ubuntu.com/ubuntu jammy InRelease
Hit:3 http://ca.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:4 http://ca.archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:5 https://linux.teamviewer.com/deb stable InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
W: https://linux.teamviewer.com/deb/dis...ble/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
libpython2.7-minimal libpython2.7-stdlib
The following NEW packages will be installed:
libpython2.7 libpython2.7-minimal libpython2.7-stdlib
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 3,485 kB of archives.
After this operation, 15.4 MB of additional disk space will be used.
Get:1 http://ca.archive.ubuntu.com/ubuntu jammy/universe amd64 libpython2.7-minimal amd64 2.7.18-13ubuntu1 [347 kB]
Get:2 http://ca.archive.ubuntu.com/ubuntu jammy/universe amd64 libpython2.7-stdlib amd64 2.7.18-13ubuntu1 [1,977 kB]
Get:3 http://ca.archive.ubuntu.com/ubuntu jammy/universe amd64 libpython2.7 amd64 2.7.18-13ubuntu1 [1,162 kB]
Fetched 3,485 kB in 1s (4,402 kB/s)
Selecting previously unselected package libpython2.7-minimal:amd64.
(Reading database ... 205187 files and directories currently installed.)
Preparing to unpack .../libpython2.7-minimal_2.7.18-13ubuntu1_amd64.deb ...
Unpacking libpython2.7-minimal:amd64 (2.7.18-13ubuntu1) ...
Selecting previously unselected package libpython2.7-stdlib:amd64.
Preparing to unpack .../libpython2.7-stdlib_2.7.18-13ubuntu1_amd64.deb ...
Unpacking libpython2.7-stdlib:amd64 (2.7.18-13ubuntu1) ...
Selecting previously unselected package libpython2.7:amd64.
Preparing to unpack .../libpython2.7_2.7.18-13ubuntu1_amd64.deb ...
Unpacking libpython2.7:amd64 (2.7.18-13ubuntu1) ...
Setting up libpython2.7-minimal:amd64 (2.7.18-13ubuntu1) ...
Setting up libpython2.7-stdlib:amd64 (2.7.18-13ubuntu1) ...
Setting up libpython2.7:amd64 (2.7.18-13ubuntu1) ...
Processing triggers for libc-bin (2.35-0ubuntu3) ...
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package libpython3.9 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libpython3.9' has no installation candidate
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'libpython3.8-stdlib' for regex 'libpython3.8'
Note, selecting 'libpython3.8-dev' for regex 'libpython3.8'
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Job for collectd.service failed because the control process exited with error code.
See "systemctl status collectd.service" and "journalctl -xeu collectd.service" for details.
--------------
Showing the log for collectd using this command: journalctl --no-pager -u collectd | tail -n40
--------------
Apr 29 16:18:04 HUB systemd[1]: Condition check resulted in Statistics collection and monitoring daemon being skipped.
Apr 29 16:18:49 HUB systemd[1]: Starting Statistics collection and monitoring daemon...
Apr 29 16:18:49 HUB collectd[4225]: plugin_load: plugin "syslog" successfully loaded.
Apr 29 16:18:49 HUB collectd[4225]: plugin_load: plugin "rrdtool" successfully loaded.
Apr 29 16:18:49 HUB collectd[4225]: plugin_load: plugin "table" successfully loaded.
Apr 29 16:18:49 HUB collectd[4225]: plugin_load: plugin "interface" successfully loaded.
Apr 29 16:18:49 HUB collectd[4225]: plugin_load: plugin "cpu" successfully loaded.
Apr 29 16:18:49 HUB collectd[4225]: plugin_load: plugin "aggregation" successfully loaded.
Apr 29 16:18:49 HUB collectd[4225]: plugin_load: plugin "match_regex" successfully loaded.
Apr 29 16:18:49 HUB collectd[4225]: plugin_load: plugin "df" successfully loaded.
Apr 29 16:18:49 HUB collectd[4225]: plugin_load: plugin "disk" successfully loaded.
Apr 29 16:18:49 HUB collectd[4225]: ERROR: dlopen("/usr/lib/collectd/python.so") failed: libpython3.9.so.1.0: cannot open shared object file: No such file or directory. The most common cause for this problem is missing dependencies. Use ldd(1) to check the dependencies of the plugin / shared object.
Apr 29 16:18:49 HUB collectd[4225]: Error: Parsing the config file failed!
Apr 29 16:18:49 HUB collectd[4225]: dlopen("/usr/lib/collectd/python.so") failed: libpython3.9.so.1.0: cannot open shared object file: No such file or directory. The most common cause for this problem is missing dependencies. Use ldd(1) to check the dependencies of the plugin / shared object.
Apr 29 16:18:49 HUB collectd[4225]: plugin_load: Load plugin "python" failed with status 2.
Apr 29 16:18:49 HUB collectd[4225]: There is configuration for the `python' plugin, but the plugin isn't loaded. Please check your configuration.
Apr 29 16:18:49 HUB systemd[1]: collectd.service: Main process exited, code=exited, status=1/FAILURE
Apr 29 16:18:49 HUB systemd[1]: collectd.service: Failed with result 'exit-code'.
Apr 29 16:18:49 HUB systemd[1]: Failed to start Statistics collection and monitoring daemon.
Apr 29 16:18:56 HUB systemd[1]: Stopped Statistics collection and monitoring daemon.
Apr 29 16:18:56 HUB systemd[1]: Starting Statistics collection and monitoring daemon...
Apr 29 16:18:56 HUB collectd[4771]: plugin_load: plugin "syslog" successfully loaded.
Apr 29 16:18:56 HUB collectd[4771]: plugin_load: plugin "rrdtool" successfully loaded.
Apr 29 16:18:56 HUB collectd[4771]: plugin_load: plugin "table" successfully loaded.
Apr 29 16:18:56 HUB collectd[4771]: plugin_load: plugin "interface" successfully loaded.
Apr 29 16:18:56 HUB collectd[4771]: plugin_load: plugin "cpu" successfully loaded.
Apr 29 16:18:56 HUB collectd[4771]: plugin_load: plugin "aggregation" successfully loaded.
Apr 29 16:18:56 HUB collectd[4771]: plugin_load: plugin "match_regex" successfully loaded.
Apr 29 16:18:56 HUB collectd[4771]: plugin_load: plugin "df" successfully loaded.
Apr 29 16:18:56 HUB collectd[4771]: plugin_load: plugin "disk" successfully loaded.
Apr 29 16:18:56 HUB collectd[4771]: ERROR: dlopen("/usr/lib/collectd/python.so") failed: libpython3.9.so.1.0: cannot open shared object file: No such file or directory. The most common cause for this problem is missing dependencies. Use ldd(1) to check the dependencies of the plugin / shared object.
Apr 29 16:18:56 HUB collectd[4771]: Error: Parsing the config file failed!
Apr 29 16:18:56 HUB collectd[4771]: dlopen("/usr/lib/collectd/python.so") failed: libpython3.9.so.1.0: cannot open shared object file: No such file or directory. The most common cause for this problem is missing dependencies. Use ldd(1) to check the dependencies of the plugin / shared object.
Apr 29 16:18:56 HUB collectd[4771]: plugin_load: Load plugin "python" failed with status 2.
Apr 29 16:18:56 HUB collectd[4771]: There is configuration for the `python' plugin, but the plugin isn't loaded. Please check your configuration.
Apr 29 16:18:56 HUB systemd[1]: collectd.service: Main process exited, code=exited, status=1/FAILURE
Apr 29 16:18:56 HUB systemd[1]: collectd.service: Failed with result 'exit-code'.
Apr 29 16:18:56 HUB systemd[1]: Failed to start Statistics collection and monitoring daemon.
--------------
collectd still isn't working, you can try and rerun the install script at some other time.
Or report this issue with the full 40 lines above.
--------------
Job for collectd.service failed because the control process exited with error code.
See "systemctl status collectd.service" and "journalctl -xeu collectd.service" for details.
---------
write reducing measures enabled!
---------
Created symlink /etc/systemd/system/default.target.wants/graphs1090.service → /lib/systemd/system/graphs1090.service.
--------------
--------------
All done! Graphs available at http://192.168.1.95/graphs1090
It may take up to 10 minutes until the first data is displayed
Leave a comment:
-
Originally posted by wiedehopf View PostHe could just apt install collectd ... no need to do dpkg stuff .... please.
The error the 2nd time was just me forgetting an || true in the script.
If it fails to install collectd-core it just installs collectd ....
Anyhow i don't want to solve it for one person but everyone using the script, gonna be more people using Ubuntu 22 going forward
Code:abcd@ubuntu22:~$ sudo apt update abcd@ubuntu22:~$ sudo apt install collectd-core Reading package lists... Done Building dependency tree... Done Reading state information... Done E: Unable to locate package collectd-core
Code:abcd@ubuntu22:~$ sudo apt update abcd@ubuntu22:~$ sudo apt install collectd Reading package lists... Done Building dependency tree... Done Reading state information... Done Package collectd is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'collectd' has no installation candidate
Leave a comment:
-
He could just apt install collectd ... no need to do dpkg stuff .... please.
The error the 2nd time was just me forgetting an || true in the script.
If it fails to install collectd-core it just installs collectd ....
Anyhow i don't want to solve it for one person but everyone using the script, gonna be more people using Ubuntu 22 going forward
Leave a comment:
-
Originally posted by sdv View PostE: Unable to locate package collectd-core
[ERROR] Error in line 46 when executing: apt-get install -y --no-install-suggests --no-install-recommends $package
Originally posted by wiedehopf View Postnot sure why Ubuntu doesn't have the collectd-core package anymore
Ubuntu is annoying
Install collectd-core latest version from Debian Packages.
Please see below
Code:abcd@ubuntu22:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04 LTS Release: 22.04 Codename: jammy
Code:abcd@ubuntu22:~$ wget http://ftp.us.debian.org/debian/pool/main/c/collectd/collectd-core_5.12.0-7_amd64.deb abcd@ubuntu22:~$ sudo dpkg -i collectd-core_5.12.0-7_amd64.deb abcd@ubuntu22:~$ sudo apt-cache policy collectd-core collectd-core: Installed: 5.12.0-7 Candidate: 5.12.0-7 Version table: *** 5.12.0-7 100 100 /var/lib/dpkg/status
Leave a comment:
-
My bad try again ....
not sure why Ubuntu doesn't have the collectd-core package anymore but whatever.
Workaround should be in place.
Ubuntu is annoying
Leave a comment:
-
Good Morning,
RAN:
sudo bash -c "$(curl -L -o - https://github.com/wiedehopf/graphs1090/raw/master/install.sh)"
OUTPUT:
etched 143 kB in 0s (369 kB/s)
Selecting previously unselected package bash-builtins.
(Reading database ... 203904 files and directories currently installed.)
Preparing to unpack .../bash-builtins_5.1-6ubuntu1_amd64.deb ...
Unpacking bash-builtins (5.1-6ubuntu1) ...
Setting up bash-builtins (5.1-6ubuntu1) ...
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package collectd-core
[ERROR] Error in line 46 when executing: apt-get install -y --no-install-suggests --no-install-recommends $package
Leave a comment:
-
thanks you for your prompt response wiedehopf! installed fresh Ubuntu 22.04, re-installed FR24 and installed readsb. Tar1090 works great! All working fine. Then installed graphs. seems to be a missing package? Here is the error. any help much appreciated. I did some googling about this..but gave up.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package collectd-core
------------------
Failed to install required packages: git rrdtool collectd-core wget unzip bash-builtins
Exiting .
Thank you
Leave a comment:
-
readsb / graphs1090 should work just fine.
You might want to install this: https://github.com/wiedehopf/adsb-sc...nd-dump1090-fa
Just rerun the graphs1090 install maybe?
On the graphs1090 page there is something in regards to troubleshooting ... what to post when reporting an issue.
If you can reinstall the PC with Ubuntu 22.04 ?
If it's an old Ubuntu ... not sure how well stuff will work.
Leave a comment:
-
Firstly, thanks wiedehopf for all the projects you have made on github for readsb, tar1090 and graphs1090 etc. I am newbie here so please bear with me.
I installed a brand new version of Ubuntu on an old spare computer. I then installed FR24, then readsb, followed by tar1090 and graphs1090.
Q1. I did try installing dump1090 fa - but it does not install on my version (latest) of Ubuntu. Does that make sense? so I installed your readsb which worked
Q2. installed graphs1090, but although I can get to the web page, i just get the the blank template, but no graphs. took a look at your notes but cant find where to start troubleshooting.
Q3. I had FR24 working on an old Raspberrypi which finally died which is why I am using Ubuntu on an old PC to do this. One thing I noticed that is different, is that when using dump1090 on the Raspberrypi, the planes looked as if they were moving smoothly and constantly on the map. With my new setup, they appear to stall for longer without moving and then do a jump to a new location. Any ideas?
Again, thanks for all your scripts etc!
Leave a comment:
Leave a comment: