Bug #93751 [FreeBSD] MySQL Cluster Installer - No such file or directory '/proc/meminfo'
Submitted: 28 Dec 2018 2:29 Modified: 28 Dec 2018 12:36
Reporter: Aneudy Mota Catalino Email Updates:
Status: Verified Impact on me:
Category:MySQL Cluster: Configurator Severity:S1 (Critical)
Version:8.0.13 OS:FreeBSD (11.2 amd64)
Assigned to: CPU Architecture:Any
Tags: cluster installer, freebsd, ndb cluster installer

[28 Dec 2018 2:29] Aneudy Mota Catalino
When using the MySQL Cluster Installer on FreeBSD to define hosts, I get a "No such file or directory '/proc/meminfo'".

In some Linux® distributions, one could look at /proc/meminfo to determine hardware memory information. However, in FreeBSD, sysctl(8) is instead used to view this and other system settings.

How to repeat:

Run ndb_setup.py

Navigate to the https://hostname-or-ip:8081/welcome.html 

Add a FreeBSD host to the host list

The error should pop-up.

Suggested fix:
For FreeBSD 11, use sysctl to query baseline information from hardware such as memory information. 

man sysctl

shell> sysctl hw.physmem hw.usermem hw.realmem
hw.physmem: 500740096
hw.usermem: 468082688
hw.realmem: 536805376
[28 Dec 2018 2:56] Aneudy Mota Catalino
Another workaround is to add the following line to the FreeBSD /etc/fstab:

linprocfs   /proc   linprocfs   rw   0   0
[28 Dec 2018 12:36] MySQL Verification Team

Thanks for the report, verified as described.

best regards