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:
None 
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
Description:
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:
Download:
https://dev.mysql.com/get/Downloads/MySQL-Cluster-8.0/mysql-cluster-8.0.13-dmr-freebsd11-x...

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
Hi,

Thanks for the report, verified as described.

best regards
Bogdan

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.040 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.