VS2 free is not working properly and displays Error: /proc must be mounted

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: VS2 free is not working properly and displays Error: /proc must be mounted  (Read 3835 times)

0 Members and 1 Guest are viewing this topic.

wedcomcnm

  • Newbie
  • *
  • Offline Offline
  • Posts: 3

Recently, when VPS uses the "free" command to view RAM usage or other commands, it displays

Error: /proc must be mounted
To mount /proc at boot you need an /etc/fstab line like:
proc   /proc   proc    defaults
In the meantime, run "mount proc /proc -t proc"

I have reinstalled the system multiple times, but it still hasn't solved the problem.
May I ask how to solve this malfunction?
Logged


vs2-free-users

  • Newbie
  • *
  • Offline Offline
  • Posts: 2

Recently, when VPS uses the "free" command to view RAM usage or other commands, it displays

Error: /proc must be mounted
To mount /proc at boot you need an /etc/fstab line like:
proc   /proc   proc    defaults
In the meantime, run "mount proc /proc -t proc"

I have reinstalled the system multiple times, but it still hasn't solved the problem.
May I ask how to solve this malfunction?

Hi,

i have no problems with free and /proc
Code: [Select]
root@12-u:~# free
              gesamt       benutzt     frei      gemns.  Puffer/Cache verfügbar
Speicher:    1000000       66568      563620         392      369812      933432
Swap:        1000000        7208      992792
root@12-u:~# df -h
Dateisystem    Größe Benutzt Verf. Verw% Eingehängt auf
/dev/loop46     9,8G    839M  8,4G    9% /
/dev/loop47      99G     52G   42G   56% /home/nas1
none            492K    4,0K  488K    1% /dev
devtmpfs         32G       0   32G    0% /dev/tty
tmpfs           100K       0  100K    0% /dev/lxd
tmpfs           100K       0  100K    0% /dev/.lxd-mounts
tmpfs            32G       0   32G    0% /dev/shm
tmpfs            13G     80K   13G    1% /run
tmpfs           5,0M       0  5,0M    0% /run/lock
tmpfs           4,0M       0  4,0M    0% /sys/fs/cgroup
tmpfs            98M       0   98M    0% /run/user/0
:~#

Which os do you use? Did you create faulty entries in the fstab(in my case fstab is empty)?
Logged

wedcomcnm

  • Newbie
  • *
  • Offline Offline
  • Posts: 3

Code: [Select]
root@srv28913:~# free
Error: /proc must be mounted
  To mount /proc at boot you need an /etc/fstab line like:
      proc   /proc   proc    defaults
  In the meantime, run "mount proc /proc -t proc"
root@srv28913:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/loop56     9.8G  1.4G  7.9G  15% /
none            492K  4.0K  488K   1% /dev
devtmpfs         16G     0   16G   0% /dev/tty
tmpfs           100K     0  100K   0% /dev/lxd
tmpfs           100K     0  100K   0% /dev/.lxd-mounts
tmpfs            16G     0   16G   0% /dev/shm
tmpfs           3.2G  116K  3.2G   1% /run
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs            16G     0   16G   0% /sys/fs/cgroup
tmpfs            98M     0   98M   0% /run/user/0
root@srv28913:~#

Hi, My problem still exists. In order to try to solve the problem, I have reinstalled different systems, including debian 10, debian 11, Ubuntu 20.04, etc., Currently, I am using Ubuntu 20.04, but the problem has not been resolved. My fstab file is also empty, I haven't created any entries in the fstab.

And /proc appears to be mounted normally, but when I tried the command 'cat /proc/cpuinfo' or 'cat /proc/meminfo', it displayed 'Permission denied'.

Code: [Select]
root@srv28913:~# cd /proc
root@srv28913:/proc# ls
1    256  628  66  74         capi      cpuinfo    dma          filesystems  ioports   keys         kpagecount  mdstat   mounts        partitions   scsi      stat           sysvipc      uptime       zoneinfo
100  56   634  67  acpi       cgroups   crypto     driver       fs           irq       key-users    kpageflags  meminfo  mtrr          pressure     self      swaps          thread-self  version
21   624  648  72  buddyinfo  cmdline   devices    execdomains  interrupts   kallsyms  kmsg         loadavg     misc     net           sched_debug  slabinfo  sys            timer_list   vmallocinfo
239  627  65   73  bus        consoles  diskstats  fb           iomem        kcore     kpagecgroup  locks       modules  pagetypeinfo  schedstat    softirqs  sysrq-trigger  tty          vmstat
root@srv28913:/proc# cat cpuinfo
cat: cpuinfo: Permission denied
root@srv28913:/proc# cat meminfo
cat: meminfo: Permission denied
root@srv28913:/proc#
Logged

Forum-Support4

  • Administrator
  • Newbie
  • *****
  • Offline Offline
  • Posts: 6

Hi,

@wedcomcnm please provide the IPv6 of the server for further checks.
Logged

wedcomcnm

  • Newbie
  • *
  • Offline Offline
  • Posts: 3

IPV6:2a02:0180:0006:0001:0000:0000:0000:05ca

Thank you for your reply.
Logged

Forum-Support4

  • Administrator
  • Newbie
  • *****
  • Offline Offline
  • Posts: 6

Hi,

@wedcomcnm we can not find any problem with your vps. Please contact the support and refer to this thread.
Logged

Forum-Support4

  • Administrator
  • Newbie
  • *****
  • Offline Offline
  • Posts: 6

The problem have been fixed by support team.
Logged
Pages: [1]   Go Up
 

Page created in 0.047 seconds with 22 queries.