Skip to content

read_meminfo failed - unable to read ...pages_sharing" #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
caraar12345 opened this issue Oct 5, 2021 · 14 comments
Closed

read_meminfo failed - unable to read ...pages_sharing" #8

caraar12345 opened this issue Oct 5, 2021 · 14 comments

Comments

@caraar12345
Copy link

Hey there! I've been using PBS through Docker for a while now with no issues, but today I can't get it to start.

It's repeatedly spitting out the below to the logs but not booting up.

read_meminfo failed - unable to read "/sys/kernel/mm/ksm/pages_sharing" - No such file or directory (os error 2)

Any idea as to what may be causing this?

I'm running the latest debug version (although it was showing up on :latest too) on a Pi 4 with Debian Buster.

@ayufan
Copy link
Owner

ayufan commented Oct 5, 2021

Interesting. Can you try one of the older versions? And don't use one with .debug :)

I'm sure that v2.0.7 works: https://hub.docker.com/r/ayufan/proxmox-backup-server/tags?page=1&ordering=last_updated

@sysrq-reisub
Copy link

It starts for me, that error appears only into PBS when I try to view some graphs

@dorianim
Copy link

dorianim commented Feb 9, 2022

I have the same issue:
image

Running on a raspberry pi 3b+ on 64bit raspberrypi os.

@dorianim
Copy link

dorianim commented Feb 9, 2022

Is it possible, that this is related to RaspberrypiOS not supporting KMS?

@dorianim
Copy link

dorianim commented Feb 9, 2022

This may be helpful: wofferl/proxmox-backup-arm64#5

@ayufan
Copy link
Owner

ayufan commented Feb 9, 2022

Since this is docker container. Just bind-mount empty file, this should silence this warning very well.

volumes:
  - /dev/null:/sys/kernel/mm/ksm/pages_sharing:ro

@dorianim
Copy link

dorianim commented Feb 9, 2022

Unfortunately, the docker container does not start with that setting added:
image

@dorianim
Copy link

dorianim commented Feb 9, 2022

The error also appears on the dashboard:
image

@dorianim
Copy link

dorianim commented Feb 9, 2022

Would it be possible to apply the patch from wofferl/proxmox-backup-arm64#5 ?
That would solve the problem in a clean way in my opinion :)

@ayufan
Copy link
Owner

ayufan commented Feb 9, 2022 via email

@ayufan
Copy link
Owner

ayufan commented Feb 9, 2022

@dorianim

For time being this should do the trick:

    volumes:
      ...
      - /tmp/pbs-mm:/sys/kernel/mm
    command:
      /bin/bash -c 'mkdir -p /sys/kernel/mm/ksm; echo 0 > /sys/kernel/mm/ksm/pages_sharing; exec runsvdir /runit'

@dorianim
Copy link

dorianim commented Feb 9, 2022

Yes, that worked, thank you!

Also, thanks a lot for wrapping this up! It is the perfect solution and exactly what I was looking for for a long time 👍

@ayufan
Copy link
Owner

ayufan commented Feb 10, 2022

@dorianim @caraar12345 You might check v2.1.5 with a fix: https://hub.docker.com/r/ayufan/proxmox-backup-server.

@dorianim
Copy link

Works for me! 😄

@ayufan ayufan closed this as completed Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants