Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unix exception when starting flow-bin on FreeBSD

FreeBSD has a Linux compatibility layer, so I'd expect flow-bin to be able to run on it. Alas, I got an exception after tagging the linux bin as linux elf:

Unhandled exception: Unix.Unix_error(Unix.EACCESS, "open", "/dev/null")

But /dev/null has proper permissions:

crw-rw-rw- root wheel

Or? Setting it to 777 does not help.

Edit: running as root, still fails, log shows "Out of shared memory" from a Hack library? I'm assuming this specific library does not work on FreeBSD, being to low-level perhaps.

like image 583
Olle Härstedt Avatar asked Oct 14 '22 23:10

Olle Härstedt


1 Answers

In my experience, most programs running under Linuxulator require following pseudo-FSes mounted:

# cat /etc/fstab
<...snip...>
linprocfs   /compat/linux/proc  linprocfs       rw      0       0
tmpfs    /compat/linux/dev/shm  tmpfs   rw,mode=1777    0       0

I suspect, the latter line should fix your second problem.

As for the permission error, you should check not /dev/null, but /compat/linux/dev/null.

like image 90
arrowd Avatar answered Oct 21 '22 08:10

arrowd