proper/current directions to install minio in a jail - bounty offered

403incognito

Cadet
Joined
Mar 22, 2020
Messages
8
I'm in need of multiple tenants for minio running in jails on Freenas 11.3

These are the directions I've followed:


It simply doesn't work. I can get minio to run manually "service minio start" but I can't get it to work on bootup by editing in /etc/rc.conf

I've spent hours on this - has anyone gotten it to work? I'm willing to offer a bounty to someone who can get it to work and provide me the steps to do so. Say $100usd ?

If you're interested drop me a line!
 

hertzsae

Contributor
Joined
Sep 23, 2014
Messages
118
Going off of it's not starting automatically, but does manually, I assume the issue is with the rc file. I suspect that the following line is wrong or misleading:
Code:
nano /<jail_root>/Minio/etc/rc.conf

I believe it should be
Code:
nano /<jail_root>/etc/rc.conf


The safe way to add things to an RC file is through sysrc commands. I'll assume your jail name is minio.
Code:
iocage exec minio sysrc minio_enable=YES
iocage exec minio sysrc minio_config=/etc/minio
iocage exec minio sysrc minio_disks=</path/to/your/dataset/inside/jail>
iocage exec minio sysrc minio_address=<listen address / port>


Note that I did not put quotes in. For my jails, like plex, I did not add them, but they are now there in the RC file.
You likely don't have nano installed in the jail, but you can verify that everything is in the right place by launching vi.
Code:
iocage exec minio vi /etc/rc.conf

If you do have nano installed in your jail (or you decide to install it:
Code:
iocage exec minio nano /etc/rc.conf


If it works, there's no need for payment. But if you feel obligated to pay the bounty, feel free to send me a direct message and we'll figure something out via paypal/venmo.
 

403incognito

Cadet
Joined
Mar 22, 2020
Messages
8
Appreciate you chiming in, thank you.

I followed your steps but no love. Any other ideas?









Going off of it's not starting automatically, but does manually, I assume the issue is with the rc file. I suspect that the following line is wrong or misleading:
Code:
nano /<jail_root>/Minio/etc/rc.conf

I believe it should be
Code:
nano /<jail_root>/etc/rc.conf


The safe way to add things to an RC file is through sysrc commands. I'll assume your jail name is minio.
Code:
iocage exec minio sysrc minio_enable=YES
iocage exec minio sysrc minio_config=/etc/minio
iocage exec minio sysrc minio_disks=</path/to/your/dataset/inside/jail>
iocage exec minio sysrc minio_address=<listen address / port>


Note that I did not put quotes in. For my jails, like plex, I did not add them, but they are now there in the RC file.
You likely don't have nano installed in the jail, but you can verify that everything is in the right place by launching vi.
Code:
iocage exec minio vi /etc/rc.conf

If you do have nano installed in your jail (or you decide to install it:
Code:
iocage exec minio nano /etc/rc.conf


If it works, there's no need for payment. But if you feel obligated to pay the bounty, feel free to send me a direct message and we'll figure something out via paypal/venmo.
 
Joined
Dec 14, 2020
Messages
1
Here's what I do.

1. create new jail
2. run this inside TrueNAS FreeBSD jail to install minio:

pkg install minio

3. Add these lines to your jail's /etc/rc.conf:

minio_enable="YES"
minio_config="/usr/local/etc/minio"
minio_disks="/data"
minio_address=":9000"
minio_env="MINIO_ACCESS_KEY=mykey MINIO_SECRET_KEY=mysecret"

Of course, replace mykey with your key and mysecret with your secret

4. to start service, try:

service minio start

5. to check service, try:

service minio status
curl localhost:9000/minio/health/live

(you may need to pkg install curl if you want to use curl inside your jail)
 
Top