Update NextCloudPi - Unable to locate package prometheus-node-exporter

I am stuck on NextCloudPi v1.37.2 each time update has been attempted I get

Downloading updates
Performing updates
Installing metrics
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Hit:2 http://deb.debian.org/debian buster InRelease         
Hit:3 http://deb.debian.org/debian-security buster/updates InRelease
Hit:4 http://deb.debian.org/debian buster-updates InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package prometheus-node-exporter

prometheus-node-exporter is installed. Metrics and targets seem to show that it’s working, up and with a node / endpoint pointing to the IP of my NCP install.

Any suggestions as to what the problem may be and how to resolve would be great. Thanks.

Can you please include the content of the file /etc/apt/sources.list? I have a raspberry pi using a raspbian based version of nextcloudpi as well and it does find the package.

It seems to find it in deb http://raspbian.raspberrypi.org/raspbian/ buster main

How did you install NCP?

1 Like

please, send the output of sudo ncp-report

Thank you.

deb http://deb.debian.org/debian buster main contrib non-free
deb http://deb.debian.org/debian-security/ buster/updates main contrib non-free
deb http://deb.debian.org/debian buster-updates main contrib non-free
# Uncomment deb-src lines below then 'apt-get update' to enable 'apt-get source'
#deb-src http://deb.debian.org/debian buster main contrib non-free
#deb-src http://deb.debian.org/debian-security/ buster/updates main contrib non-free
#deb-src http://deb.debian.org/debian buster-updates main contrib non-free

Thank you. NextCloudPi diagnostics · GitHub

1 Like

Sorry for the late reply. Can you give me the output of grep -r 'raspberrypi.org' /etc/apt/sources.list.d?

I think you’re missing the package source “http://raspbian.raspberrypi.org/raspbian” for some reason.
What raspberry pi version are you using?

No problem. Thanks again.

/etc/apt/sources.list.d/raspi.list:deb http://archive.raspberrypi.org/debian/ buster main
/etc/apt/sources.list.d/raspi.list:#deb-src http://archive.raspberrypi.org/debian/ buster main

Raspberry Pi 4 Model B Rev 1.1

NextCloudPi v1.37.2 is outdated
update to v1.39.3 through 'ncp-config' or type 'sudo ncp-update'
Last login: Fri Sep 10 20:38:02 2021 from ***.***.*.***

Wi-Fi is currently blocked by rfkill.
Use raspi-config to set the country before use.

pi@nextcloudpi:~ $ sudo ncp-update
Downloading updates
Performing updates
Cannot load Zend OPcache - it was already loaded
Installing metrics
Hit:1 http://deb.debian.org/debian buster InRelease
Hit:2 http://archive.raspberrypi.org/debian buster InRelease
Get:3 http://deb.debian.org/debian-security buster/updates InRelease [65.4 kB]
Get:4 http://deb.debian.org/debian buster-updates InRelease [51.9 kB]
Get:5 http://deb.debian.org/debian-security buster/updates/main arm64 Packages [299 kB]
Get:6 http://deb.debian.org/debian-security buster/updates/main armhf Packages [298 kB]
Get:7 http://deb.debian.org/debian-security buster/updates/main Translation-en [160 kB]
Fetched 874 kB in 1s (682 kB/s)                                 
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package prometheus-node-exporter

Any ideas? prometheus-node-exporter is installed, runnning and with an endpoint / node configured to the nextcloudpi IP address.

apt search | grep prometheus

?

pi@nextcloudpi:~ $ apt search | grep prometheus

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

E: You must give at least one search pattern

so I try this instead…

pi@nextcloudpi:~ $ apt search grep prometheus
Sorting... Done
Full Text Search... Done

hmm…

pi@nextcloudpi:~ $ ls
prometheus
pi@nextcloudpi:~ $ cd prometheus
pi@nextcloudpi:~/prometheus $ ls
console_libraries  consoles  data  LICENSE  NOTICE  prometheus  prometheus.yml  promtool
pi@nextcloudpi:~/prometheus $ 

To check Prometheus is up and working…

**Runtime Information**
Uptime	2021-09-19 14:40:59.82304088 +0000 UTC
Working Directory	/
Configuration reload	Successful
Last successful configuration reload	2021-09-19 14:41:03 +0000 UTC
WAL corruptions	0
Goroutines	30
GOMAXPROCS	4
GOGC	
GODEBUG	
Storage Retention	15d
Build Information
Version	2.22.0
Revision	0a7fdd3b76960808c3a91d92267c3d815c1bc354
Branch	HEAD
BuildUser	root@6321101b2c50
BuildDate	20201015-13:25:59
GoVersion	go1.15.3
Alertmanagers
Endpoint
Head Stats
Number Of Series	Number of Chunks	Current Min Time	Current Max Time
1072	3216	2021-09-21 20:00:00 +0000 UTC (1632254400000)	2021-09-21 21:18:30 +0000 UTC (1632259110313)
Total Query Time: 0.001 Seconds
Highest Cardinality Labels
Name	Count
__name__	421
method	70
le	66
collector	39
device	10
mode	10
quantile	9
mountpoint	6
role	6
version	5
Highest Cardinality Metric Names
Name	Count
node_nfs_requests_total	99
node_scrape_collector_success	39
node_scrape_collector_duration_seconds	39
node_cpu_seconds_total	32
prometheus_http_request_duration_seconds_bucket	30
prometheus_http_response_size_bytes_bucket	27
prometheus_sd_kubernetes_events_total	18
net_conntrack_dialer_conn_failed_total	16
prometheus_tsdb_compaction_chunk_samples_bucket	13
prometheus_tsdb_compaction_chunk_size_bytes_bucket	13
Label Names With Highest Cumulative Label Value Length
Name	Length
__name__	13448
method	596
le	307
collector	254
revision	80
version	73
device	53
chip	51
address	51
mountpoint	49
Most Common Label Pairs
Name	Count
job=node1	655
instance=192.168.0.120:9100	655
instance=localhost:9090	417
job=prometheus	417
__name__=node_nfs_requests_total	99
proto=4	59
__name__=node_scrape_collector_success	39
__name__=node_scrape_collector_duration_seconds	39
device=eth0	35
device=lo
**Prometheus Configuration**
global:
  scrape_interval: 15s
  scrape_timeout: 10s
  evaluation_interval: 15s
alerting:
  alertmanagers:
  - scheme: http
    timeout: 10s
    api_version: v1
    static_configs:
    - targets: []
scrape_configs:
- job_name: prometheus
  honor_timestamps: true
  scrape_interval: 15s
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  static_configs:
  - targets:
    - localhost:9090
- job_name: node1
  honor_timestamps: true
  scrape_interval: 15s
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  static_configs:
  - targets:
    - 192.168.0.***:9100

node1 points to the NCP instance.

@nachoparker We use the same image for RPi3 and 4, right? If so, there’s something off about this installation, because I’m pretty sure it should contain the pkg source raspbian.raspberrypi.org/raspbian

yes, we do… if the user installed one of our images that is