node_exporter is not running in a container. 
dmesg show me something interesting :
[ 4789.349058]  nvme1n1: p1
[ 4789.413067]  nvme1n1: p1
[ 5302.321060] EXT4-fs (nvme1n1p1): mounted filesystem with ordered data 
mode. Opts: (null)
[ 5372.678396] EXT4-fs (nvme1n1p1): mounted filesystem with ordered data 
mode. Opts: (null)
[ 5426.580451] EXT4-fs (nvme1n1p1): mounted filesystem with ordered data 
mode. Opts: (null)
[ 5560.363303] EXT4-fs (nvme1n1p1): Unrecognized mount option "uid=1000" or 
missing value
[ 5585.173389] EXT4-fs (nvme1n1p1): Unrecognized mount option "uid=1000" or 
missing value
[ 5743.279786] EXT4-fs (nvme1n1p1): Unrecognized mount option "uid=1000" or 
missing value
[14960.754419] EXT4-fs (nvme1n1p1): mounted filesystem with ordered data 
mode. Opts: (null)

so what i realized after that is that the disk is mounted directly to 
/home/ec2-user/data
df -Th | grep nvme
/dev/nvme0n1p1 xfs        30G   18G   13G  58% /
/dev/nvme1n1p1 ext4      367G  195G  154G  56% /home/ec2-user/data

with my /etc/fstab containing
/dev/nvme1n1p1 /home/ec2-user/data ext4 defaults 0 0

I have other machine that run with the same setup but having its own 
directory ie /data instead of /home/ec2-user/data and that works without 
the need of being root.

I can try to move the partition and everything to /data and retry but would 
have been nice to understand what is happening in this setup.

Thanks


On Thursday, August 19, 2021 at 6:53:26 PM UTC+7 Brian Candler wrote:

> > However, even after doing chmod 777 on /home/ec2-user/data I still have 
> the issue. 
>
> What about the parent directories: /home and /home/ec2-user ?
>
> If it's not that, then as Michael said, SELinux/AppArmor etc.  Have a look 
> in the output of "dmesg" to see if there are any logs generated when your 
> non-root user tries to access that directory.
>
> Also: you're not running node_exporter in any sort of container are you?  
> (docker, lxc/lxd etc)
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/db834d6e-7eac-4321-87da-0916c584edaan%40googlegroups.com.

Reply via email to