chitoku-k / edgerouter-exporter

A Prometheus exporter for EdgeRouter
MIT License
23 stars 3 forks source link

Failed to install - (more a request of help then a issue ) #446

Closed digas closed 5 months ago

digas commented 5 months ago

Hi can you help me , i'm following your install instructions:

my router version: EdgeRouter X v1.10.11 since i'm using a ER-X i'm following the MediaTek-based instructions

root@router:/tmp# sudo mkdir -p /config/data/firstboot/install-packages
root@router:/tmp# mv prometheus-edgerouter-exporter_mipsel.deb /config/data/firstboot/install-packages

root@router:/tmp# sudo dpkg -i /config/data/firstboot/install-packages/prometheus-edgerouter-exporter_mipsel.deb
dpkg-deb: error: archive '/config/data/firstboot/install-packages/prometheus-edgerouter-exporter_mipsel.deb' contains not understood data member control.tar.xz, giving up
dpkg: error processing /config/data/firstboot/install-packages/prometheus-edgerouter-exporter_mipsel.deb (--install):
 subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
 /config/data/firstboot/install-packages/prometheus-edgerouter-exporter_mipsel.deb
chitoku-k commented 5 months ago

Hi, thanks for filing this.

It seems that the version of dpkg in EdgeOS v1.10.11 is too old to handle the currently distributed package format (xz). Can you show which dpkg version does your installation have so I can package it in a different format?

$ apt-cache policy dpkg
chitoku-k commented 5 months ago

As I extracted the OS image of EdgeOS v1.10.11 and checked on /var/lib/pkg/status, it turns out that it does not work anyway even I package it in a different format. EdgeOS v1.10.11 is based on Debian “wheezy” and comes with libc6 2.13-38+deb7u11 but edgerouter-exporter only works with libc6 >= 2.23^1. Closing as I don’t think I can easily provide a binary for such an old release with the current infrastructure but feel free to open a PR if it’s possible.

digas commented 5 months ago

Understood , thanks for all the investigation i was not expecting it from you ;) . I was not updating as i'm using a specific CA cert on this for some reasons , but i will give a try and i should update ;) , to the latest version. Thanks .

Updated ;) .

Linux router 4.14.54-UBNT root@router:~# apt-cache policy libc6 libc6: Installed: 2.24-11+deb9u4 Candidate: 2.24-11+deb9u4 Version table: *** 2.24-11+deb9u4 100 100 /var/lib/dpkg/status